* src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
[s-roff.git] / ChangeLog
blob6127a19dfad0d2d38a3959ac5a50f7b67f017db6
1 2001-06-15  Werner LEMBERG  <wl@gnu.org>
3         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
5         * src/devices/grohtml/grohtml.man: Minor improvements.
7 2001-06-14  Werner LEMBERG  <wl@gnu.org>
9         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
11 2001-06-11  Werner LEMBERG  <wl@gnu.org>
13         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
14         line to specify preprocessor options -- mandb 2.3.1 only recognizes
15         the former.
16         * src/preproc/grn/grn.man: Add proper '\" string.
18 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
20         * test-groff: Don't use PATH but GROFF_BIN_PATH.
22 2001-06-08  Werner LEMBERG  <wl@gnu.org>
24         Updated to autoconf 2.50.
26         * configure.in: Renamed to...
27         * configure.ac: This.
28         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
29         (GROFF_OS390): Updated.
30         * configure: Regenerated.
32 2001-05-18  Werner LEMBERG  <wl@gnu.org>
34         * src/roff/troff/env.c, src/roff/troff/env.h,
35         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
36         from 2000-12-21.
38 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
40         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
42 2001-05-16  Bruce Lilly  <blilly@erols.com>
44         * contrib/mm/m.tmac (TH): Fix incorrect error message.
46 2001-05-16  Werner LEMBERG  <wl@gnu.org>
48         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
49         less than or equal zero; set it to 1 then.
50         * src/roff/troff/node.h (node::node): Initialize `last'.
52 2001-05-08  Werner LEMBERG  <wl@gnu.org>
54         * tmac/an-old.tmac: Make predefined strings work in compatibility
55         mode.
56         Add troff version guard.
57         * tmac/doc.tmac: Simplify version guard.
59 2001-05-07  Werner LEMBERG  <wl@gnu.org>
61         The .ns and .rs requests are now honoured not only in the top-level
62         but in all diversions (similar to UNIX troff).
64         This change is based on a patch from Tadziu Hoffmann
65         <hoffmann@usm.uni-muenchen.de>.
67         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
68         (top_level_diversion): Remove `no_space_mode' member.
69         * src/roff/troff/div.cc (diversion::diversion,
70         top_level_diversion::top_level_diversion): Updated.
71         (macro_diversion::output): Reset `no_space_mode'.
72         (no_space, restore_spacing): Use `curdiv' unconditionally.
73         (space_request, blank_line): Check `curdiv->no_space_mode'.
74         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
75         `curdiv' unconditionally.
76         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
77         Updated.
79 2001-05-06  Werner LEMBERG  <wl@gnu.org>
81         Added two new requests `de1' and `am1' which are similar to `de' and
82         `am' with the difference that compatibility mode is saved on entry,
83         switched off during macro execution, and restored on exit.
85         * src/roff/troff/input.h: Added two new special characters
86         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
87         * src/roff/troff/input.cc (input_iterator): Added two member
88         functions `save_compatible_flag' and `get_compatible_flag'.
89         (input_stack): Ditto.
90         (string_iterator): Ditto.  Also add private member
91         `saved_compatible_flag'.
92         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
93         (calling_mode): New enumeration.
94         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
95         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
96         (define_macro, define_indirect_macro, append_macro, ignore): Use
97         `calling_mode'.
98         (define_nocomp_macro, append_nocomp_macro): New functions.
99         (init_input_requests): Updated.
100         (do_request): Rename local variable `saved_compatible_flag' to
101         `old_compatible_flag'.
102         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
104         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
105         public and trap-invoked macros.  As a consequence, the man macros
106         work in compatibility mode also.
108 2001-05-06  Solar Designer  <solar@openwall.com>
110         * Makefile.in: Use $(mandir).
112 2001-05-06  Alexios Zavras <zvr@pobox.com>
114         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
116 2001-05-05  Werner LEMBERG  <wl@gnu.org>
118         Added `.ns' number register: Returns 1 in no-space mode (if in
119         top-level diversion), 0 otherwise.
121         * src/roff/troff/div.cc (no_space_mode_reg): New class.
122         (init_div_requests): Updated.
123         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
124         Document it.
126 2001-05-04  Werner LEMBERG  <wl@gnu.org>
128         * src/roff/nroff/nroff.man: Improved documentation (especially
129         locales).
131 2001-05-02  Werner LEMBERG  <wl@gnu.org>
133         Added `brp' request: This is \p as a request.
135         * src/roff/troff/env.cc (environment::do_break): Add parameter
136         `spread'.
137         (do_break_request): New function (was `break_request').
138         (break_request): Calls `do_break_request'.
139         (break_spread_request): New; calls `do_break_request'.
140         (init_env_requests): Updated.
141         * src/roff/troff/env.h: Updated.
142         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
144         * REVISION: Increased to 1.
145         * win32-diffs: Updated.
147 2001-05-01  Werner LEMBERG  <wl@gnu.org>
149         * tmac/an-old.tmac: Fix minor compatibility mode issue.
150         * tmac/troffrc-end: Make it really work in compatibility mode.
152 2001-04-27  Werner LEMBERG  <wl@gnu.org>
154         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
155         stdlib.h.
157 2001-04-22  Werner LEMBERG  <wl@gnu.org>
159         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
160         latest versions from glibc CVS archive.
162         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
163         <c.zeelenberg@hccnet.nl>.
165 2001-04-21  Werner LEMBERG  <wl@gnu.org>
167         * configure.in: Move check for mkstemp() to...
168         * aclocal.m4 (GROFF_MKSTEMP): This new function.
169         * configure: Regenerated.
171         * src/include/groff-getopt.h: Don't use variable names in
172         declarations.
174         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
175         * src/devices/grohtml/Makefile.sub,
176         src/devices/grohtml/post-html.cc: Updated.
178 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
180         * configure.in: Add special check for mkstemp().
181         * src/libs/libgroff/tmpfile.cc: Use it.
182         * src/utils/indxbib/indxbib.cc: Ditto.
183         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
184         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
185         `const'.
187 2001-04-20  Bruce Lilly  <blilly@erols.com>
189         `Version_string' as C++ object was not visible to linker from C
190         object files.
191         Add `const' to `Version_string'.
193         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
194         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
195         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
196         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
197         (scanArguments), src/preproc/refer/refer.cc (main),
198         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
199         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
200         (main), src/devices/grohtml/post-html.cc (main),
201         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
202         (main), src/utils/hpftodit/hpftodit.cc (main),
203         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
204         (main), src/utils/lkbib/lkbib.cc (main),
205         src/utils/addftinfo/addftinfo.cc (main): Implement it.
207         * src/roff/groff/pipeline.c: Add _UWIN.
208         * src/include/nonposix.h: Ditto.
210 2001-04-20  Werner LEMBERG  <wl@gnu.org>
212         * src/include/lib.h: Use HAVE_STRERROR.
213         * src/roff/groff/pipeline.c: Ditto.
214         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
215         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
216         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
217         * win32-diffs: Updated.
218         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
220 2001-04-19  Werner LEMBERG  <wl@gnu.org>
222         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
223         instead of hardwired `"troff"'.
224         (char_buffer::read_file): Remove unused variables.
225         (char_buffer::write_file_troff): Ditto.
226         (char_buffer::write_file_html): Ditto.
227         (generateImages): Ditto.
228         (abs): Removed.
229         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
231         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
233         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
234         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
235         index_search_item::search1): Ditto.
236         * src/roff/troff/node.h (width_list): Reorder members.
237         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
238         (lookup_warning): Ditto.
239         (prepend_string): Commented out.
240         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
241         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
242         * src/preproc/tbl/main.cc (process_format): Ditto.
243         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
244         compiler warnings.
245         * src/preproc/pic/pic.cc: Updated.
246         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
247         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
248         * src/preproc/refer/command.cc (execute_command): Ditto.
249         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
250         * src/preproc/refer/token.cc (lookup_token): Ditto.
251         * src/preproc/soelim/soelim.cc: Ditto.
252         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
253         (isHexDigit): Commented out.
254         (pushBackBuffer::isString): Remove unused variable.
255         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
256         warning.
257         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
258         resource_manager::read_resource_arg, read_one_of, parse_extensions):
259         Ditto.
260         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
261         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
262         lookup_paper_size): Ditto.
263         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
264         (text_glob, element_list): Reorder members.
265         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
266         compiler warning.
267         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
268         return value to `void'.
269         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
270         of initializers.
271         * src/devices/grohtml/html.h (simple_output::check_newline,
272         simple_output::space_or_newline, simple_output::enable_newlines):
273         Add return value.
274         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
275         compiler warnings.
276         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
277         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
278         output_ligatures, output_charset, read_map): Ditto.
279         * src/utils/lookbib/lookbib.cc (main): Ditto.
280         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
281         (do_file): Fix typo (`=' -> `==').
282         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
283         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
285 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
287         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
288         Fix usage of GROFF_BIN_PATH.
289         * src/roff/nroff/nroff.man: Updated.
291 2001-04-18  Werner LEMBERG  <wl@gnu.org>
293         * NEWS: Fixing typos.
294         Updated.
296 Version 1.17 released
297 =====================
299 2001-04-17  Werner LEMBERG  <wl@gnu.org>
301         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
302         directory, not in $(srcdir).
304 2001-04-16  Werner LEMBERG  <wl@gnu.org>
306         * doc/groff.texinfo: More info on conditionals.
308 2001-04-15  Werner LEMBERG  <wl@gnu.org>
310         * doc/groff.texinfo: Added some info about groff internals.
312         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
313         about missing special character only if the name is non-null.
315 2001-04-14  Werner LEMBERG  <wl@gnu.org>
317         Removing the grohtml-old device driver which is now obsolete.
319         * src/devices/grohtml-old/*: Removed.
320         * font/devhtml-old/*: Removed.
321         * src/libgroff/htmlindicate.cc (graphic_start, graphic_end): Remove
322         comments.
323         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
324         * test-groff (PATH): Updated.
325         * tmac/Makefile.sub (NORMALFILES): Updated.
326         * tmac/an-old.tmac: Remove special code for html-old device.
327         Replace `html-or-html-old' register with `an-html'.
328         * tmac/eqnrc: Updated.
329         * tmac/html-old.tmac: Removed.
330         * tmac/troffrc, tmac/troffrc-end: Updated.
331         * tmac/www.tmac: Remove special code for html-old device.
332         Replace `html-or-html-old' register with `www-html'.
334         * src/libgroff/tmpfile.cc (remove_tmp_files),
335         src/libgroff/htmlindicate.cc (graphic_end), include/htmlindicate.h,
336         src/preproc/grn/*.cc, src/roff/groff/env.{cc,h}: Remove `void'
337         parameter if used as a single argument for consistency with rest of
338         source code.
340         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
342 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
344         * src/roff/troff/troff.man: Fixing typos.
346 2001-04-13  Werner LEMBERG  <wl@gnu.org>
348         * doc/pic.ms: Fixing many font switches.
349         * doc/groff.texinfo: Fixes, additions.
350         * MORE.STUFF: Updated.
352 2001-04-12  Gaius Mulley <gaius@glam.ac.uk>
354         * src/devices/grohtml/grohtml.man: Updated manual page regarding
355         simple anchor.
356         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
357         cropping of images.
358         (removeTempFiles): New function to tidy up temporary files.
359         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
360         Many fixes to do with the new inline suppress node and image regions
361         are much tighter.
362         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
363         (generate_img_src): New function.
364         (html_printer::do_auto_image): Utilizes it.
365         (do_heading, do_title): Include inline images within their contents.
366         (html_printer::begin_page): Tidied up comments that are issued to
367         the html output file.
368         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
369         than courier.
370         (text_glob::is_br): New method used by do_heading.
371         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
372         equivalent diversion.
373         * src/include/html-strings.h: Altered image tags to reflect the
374         inline image node.
375         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
376         parameter.
377         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
378         it is already inside a pic image.  Only emit tags if the argument
379         `-Tps:html' is present.
380         * src/preproc/tbl/main.cc: Changes to reflect additional
381         `html_end_suppress' parameter.
382         * src/roff/troff/env.cc: Only emit eol tag if a node has been
383         emitted since the last eol tag was written.
384         * src/roff/troff/env.h: New boolean `emitted_node'.
385         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
386         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
387         * src/roff/troff/node.cc (check_charinfo): New method. 
388         (troff_output_file::determine_line_limits): Alterations to limit
389         checking.
390         * tmac/www.tmac: Changes to reflect new suppress nodes.
391           
392 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
394         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
395         Escape the html_glyph in the buffer.
396         (str_translate_to_html): Output the unescaped escaped_char.
397         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
398         `frame=void', not `frame=none'.  Add `border=0'.
400 2001-04-12  Ruslan Ermilov  <ru@FreeBSD.org>
402         * contrib/mm/groff_mm.man: Fixing some typos.
404 2001-04-12  Werner LEMBERG  <wl@gnu.org>
406         * PROBLEMS: Add some words on how to avoid wrapper macros.
408 2001-04-11  Blake McBride  <blake@florida-software.com>
410         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
412 2001-04-11  Werner LEMBERG  <wl@gnu.org>
414         * font/devlbp/Makefile.sub (CLEANADD): Set it.
415         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
416         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
417         * Makefile.sub (DISTCLEANFILES): Here.
419         * libs/libgroff/new.cc: Include `nonposix.h'.
420         * win32-diffs: Updated.
422 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
424         Added skeleton macro for defunct macros.
426         Updated documentation.
428         When inside displays, an empty input line warning should be
429         suppressed.  If another macro call is put inside a display,
430         all subsequent empty lines found in that display caused a
431         warning to be emitted.
433         * tmac/doc.tmac (doc-defunct-macro): New macro.
434         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
435         (doc-restore-global-vars): Fixed typo.
436         (doc-empty-line): Check the `doc-display-depth' register to
437         determine whether we are inside display or not.
439         * tmac/doc-common: Removed `Or' and `Sf' registers.
440         Moved obsolete `Ds' macro to doc.tmac.
442         * tmac/groff_mdoc.man: Bump document date.
443         Document `.Vt' under ``Variable Types''.
444         Removed documentation for obsolete `.Or' macro.
446 2001-04-10  Werner LEMBERG  <wl@gnu.org>
448         * NEWS: Updated.
449         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
451 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
453         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
454         (usage): Add stream argument. Don't exit.
455         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
456         Write --version output to stdout, not stderr.
457         (usage): Add stream argument. Don't exit.
458         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
459         (usage): Add stream argument. Don't exit.
460         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
461         constants.
462         (usage): Add stream argument. Don't exit.
463         (main): Write --help output to stdout, not stderr.
464         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
465         (usage): Add stream argument. Don't exit.
466         * src/devices/grops/ps.cc (main): Accept --help and --version.
467         (usage): Add stream argument. Don't exit.
468         * src/devices/grotty/tty.cc (main): Accept --help and --version.
469         (usage): Add stream argument. Don't exit.
470         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
471         (main): Accept --help and --version.
472         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
473         (main): Accept --help and --version.
474         * src/preproc/html/pre-html.cc (usage): Add stream argument.
475         (scanArguments): Accept --help and --version.
476         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
477         (main): Accept --help and --version.
478         * src/preproc/refer/refer.cc (main): Accept --help and --version.
479         (usage): Add stream argument. Don't exit.
480         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
481         exit.
482         (main): Accept --help and --version.
483         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
484         (main): Accept --help and --version.
485         * src/roff/groff/groff.cc (main): Accept --help and --version.
486         (synopsis): Add stream argument.
487         (help): Write --help output to stdout, not stderr.
488         (usage): Add stream argument. Don't exit.
489         * src/roff/grog/grog.pl: Accept --help and --version.
490         (help): New sub.
491         * src/roff/grog/grog.sh: Accept --help and --version.
492         * src/roff/nroff/nroff.sh: Accept --help and --version.
493         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
494         (usage): Add stream argument. Don't exit.
495         (main): Accept --help and --version.
496         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
497         (usage): New function with stream argument, doesn't exit.
498         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
499         (usage): New function with stream argument, doesn't exit.
500         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
501         (usage): Add stream argument. Don't exit.
502         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
503         (main): Accept --help and --version.
504         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
505         exit.
506         (main): Accept --help and --version.
507         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
508         (main): Accept --help and --version.
509         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
510         (usage): Add stream argument. Don't exit.
512 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
514         Fix indentation in SYNOPSIS.
516         Updated to include changes of latest BSD mdoc version (basically,
517         the only change is that `.Fn' and `.Fc' put a final semicolon after
518         a function declaration in the SYNOPSIS section).
520         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
521         (doc-in-synopsis-section): New variable.  Updated all related
522         functions.
523         (doc-indent-synopsis-active): New register.
524         (Nd, Fn, Fo): Use it.
525         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
526         `.Cd' with long argument line produces indented wrapped lines. 
527         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
528         undesirable line break to be output.
529         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
530         `.rs'.
531         (Fn, Fc): Add final `;' to output.
532         (doc-save-global-vars, doc-restore-global-vars): Updated.
533         * tmac/doc-common: Remove `Ex' register.
534         Updated.
535         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
536         copyright.
538 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
540         * tmac/doc.tmac (Cd): Simplify code.
541         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
543 2001-04-06  Werner LEMBERG  <wl@gnu.org>
545         Implement continuous underlining for nroff mode.  To do that, a new
546         request in the ditroff language has been added: `x u N' (N is 0
547         or 1).
549         \X and \Y are now transparent to end-of-sentence recognition.
551         * src/include/printer.h (printer): Add `type' parameter to `special'
552         method.
553         * src/libs/libdriver/printer.cc (printer::special): Updated.
554         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
556         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
557         specials of type `p'.
558         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
559         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
560         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
561         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
562         (glyph::order): New method.
563         (tty_printer::add_char): Use it.
564         (tty_printer::special): New method.
565         (tty_printer::end_page): Implement it.
567         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
568         * src/roff/troff/node.cc (special_node::special_node): Add parameter
569         to set `no_init_string'.
570         (special_node::tprint_start): Use it.
571         (special_node::same, special_node::copy): Updated.
572         (special_node::ends_sentence): New method.
573         (troff_output_file::start_special): Add parameter to include
574         inititialization of special conditionally.
576         * src/roff/troff/env.h (environment): New member `underline_spaces'.
577         * src/roff/troff/env.cc (do_underline_special): New function.
578         (environment::set_font): Use it.
579         (do_underline): Use it.  This was `underline()'.
580         (underline): Call `do_underline()'.
581         (continuous_underline): New function which calls `do_underline()'.
582         (environment::newline): Use `do_underline_special()'.
583         (init_env_requests): Updated.
585         * NEWS, man/troff_out.man: Updated.
587 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
589         * font/devutf8/R.proto: Fix code of 'shc'.
591 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
593         Many fixes.  Diag lists can now be nested also; additionally,
594         `-compact' and `-offset' are supported.
596         * tmac/doc.tmac (doc-have-indent): Replaced with ...
597         (doc-list-have-indent-stackXXX): A new register stack.
598         (doc-have-diag-list): Removed.
599         (Bl): Use `doc-list-have-indent-stackXXX'.
600         (El): Updated.
601         (doc-diag-list): Use `doc-compact-list-stackXXX'.
602         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
603         (doc-set-vertical-and-indent): Ditto.
604         (doc-next-list-depth): Removed.
605         (doc-increment-list-stack): Updated.
606         (doc-decrement-list-stack): Use `doc-list-depth' instead of
607         `doc-next-list-depth'.
608         (doc-end-list, doc-end-column-list): Don't use
609         `doc-increment-list-stack'.
610         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
611         (doc-save-global-vars, doc-restore-global-vars): Updated.
612         * tmac/doc-common: Updated.
613         * tmac/groff_mdoc.man: Updated.
614         * NEWS: Fix typo.
616 2001-04-02  Werner LEMBERG  <wl@gnu.org>
618         * src/devices/grotty/grotty.man: Fix grammatical error.
620 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
622         Remove .Ld from mdoc package; replace it with special handling of
623         `...'.
625         * tmac/doc-common: Remove `Ld' register.
626         Uncomment `doc-volume-ds-*' strings.
627         Remove `doc-operating-system-default'.
628         (Os): Updated.
629         * tmac/doc-syms (Ld): Removed.
630         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
631         `...' specially.
632         * NEWS: Updated.
634         * tmac/groff_mdoc.man: Many fixes and updates.
636 2001-03-29  Werner LEMBERG  <wl@gnu.org>
638         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
639         Bond <tkb@tkb.mpl.com>.
640         * tmac/www.tmac: Save compatibility mode.
642 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
644         * tmac/groff_mdoc.man: Many fixes.
646 2001-03-28  Werner LEMBERG  <wl@gnu.org>
648         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
649         isn't recognized.
651 2001-03-27  Werner LEMBERG  <wl@gnu.org>
653         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
654         diversion.  This fixes overlong tags.
656 2001-03-26  Werner LEMBERG  <wl@gnu.org>
658         * doc/groff.texinfo: Fixed and improved documentation of fonts.
659         * tmac/doc-syms: Fix error messages.
660         * tmac/an-old.tmac: Remove incorrect double backslashes.
662 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
664         * tmac/Makefile.sub: Strip mdoc.local also
665         * tmac/strip.sed: Fixed.
667 2001-03-24  Werner LEMBERG  <wl@gnu.org>
669         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
670         selecting the font size.
671         * tmac/groff_mdoc.man, NEWS: Document it.
673 2001-03-23  Werner LEMBERG  <wl@gnu.org>
675         * src/roff/troff/div.cc (save_vertical_space): Add default argument
676         to `sv' request.
677         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
678         argument to restore previous font family.
679         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
681         * doc/groff.texinfo: More fixes and additions (mainly for font
682         manipulating commands).
684         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
685         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
686         * tmac/Makefile.sub, NEWS: Updated.
688 2001-03-23  Werner LEMBERG  <wl@gnu.org>
690         Replaced mdoc implementation.  The new version is `state of the
691         art', using almost all new features of groff 1.17 -- it won't run
692         with older versions.
694         * tmac/doc.tmac: Completely rewritten.
695         * tmac/doc-common: Ditto.
696         * tmac/doc-nroff: Ditto.
697         * tmac/doc-ditroff: Ditto.
698         * tmac/doc-syms: Ditto.
699         * tmac/mdoc.local: New file.
700         * tmac/groff_mdoc.samples.man: Replaced with ...
701         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
702         * tmac/strip.sed: Updated.
703         * tmac/Makefile.sub: Updated.
704         * INSTALL: Updated.
706         * tmac/groff_man.man: Add `man.local' to the FILES section.
708 2001-03-22  Werner LEMBERG  <wl@gnu.org>
710         * doc/groff.texinfo: Added many @noindent.
711         Replaced @end_Example -> @endExample.
712         Added info whether registers are r/o.
713         Many other additions and fixes.
715 2001-03-21  Werner LEMBERG  <wl@gnu.org>
717         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
718         in makeinfo of texinfo 4.0) to be used in @Def* macros.
719         Improved @Def* macros: Now the exact syntax of request, register,
720         and escapes is shown.
721         Added macros for parentheses and brackets to be used in @Def*.
722         Many fixes and improvements of the documentation.
724 2001-03-20  Werner LEMBERG  <wl@gnu.org>
726         * doc/groff.texinfo: Added new index: `st' (for strings).
727         Added macros @Defstr(x).
728         Added macro @Example (adding @group).
729         Other minor improvements.
731 2001-03-19  Werner LEMBERG  <wl@gnu.org>
733         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
734         `rq' for requests.  `fn' is no longer used.
735         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
736         Removed @Deffn(x).
738         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
739         number with name of man page.
741 2001-03-19  Larry Kollar  <kollar@alltel.net>
743         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
744         consistency.
746 2001-03-19  Werner LEMBERG  <wl@gnu.org>
748         * man/groff_font.man: Document `prepro', `postpro', and `print'.
749         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
750         * src/devices/grohtml/grohtml.man: Fixing typos.
752 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
754         * tmac/s.tmac (@IP): Pass `.ip' html tag.
755         * tmac/groff_mwww.man: Remove .LINE macro
756         * tmac/www.tmac (LINE): Add `.ti'.
758         * src/devices/grohtml/post-html.cc (html_printer): New member
759         `indent'.
760         (html_printer::emit_raw): Use it.
761         (html_printer::do_linelength): Ditto.
762         (html_printer::do_pageoffset): Ditto.
763         (html_printer::do_indentation): Ditto.
764         (html_printer::do_tempindent): Ditto.
765         (html_printer::do_break): Ditto.
766         (html_printer::begin_page): Ditto.
767         (html_printer::do_indentedparagraph): New function.
768         (html_printer::troff_tag): Handle `.ip'.
769         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
770         Add `<td width=...>' handling.
771         (html_text::do_table): Add parameter.
772         (html_text::do_indent): Updated.
773         * src/devices/groohtml/html-text.h: Updated.
775 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
777         Introduced simple html tables to implement indentation.
779         * src/devices/grohtml/html.h (word, word_list): New structures.
780         (simple_output): Use it.
781         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
782         (html_printer): Improve indentation handling.
783         (html_printer::emit_raw): Set `in_table' element.  Handle
784         indentation if set.
785         (html_printer::write_header): Move conditional downwards.
786         Don't allow whitespace in tags.
787         (html_printer::do_linelength): Handle line length and indentation
788         conditionally.
789         (html_printer::do_pageoffset): Handle indentation conditionally.
790         (html_printer::do_indentation): Ditto.
791         (html_printer::do_tempindent): New function member.
792         (html_printer::do_fill): Take care of indentation.
793         (html_printer::do_flush): Finish table.
794         (html_printer::do_links): Ditto.
795         (html_printer::do_break): New function for handling `.br' and `.ti'.
796         (html_printer::troff_tag): Use it.
797         Handle `.ti'.
798         (html_printer::flush_globs): Fix.
799         (html_printer::flush_page): Finish table.
800         (html_printer::html_printer): Fix error message.  Set up
801         `linelength'.
802         (html_printer::add_to_sbuf): Remove special handling of character
803         code 255.
804         (to_unicode): Remove `stop()'.
805         (html_printer::write_title): Cleanup.
806         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
807         (html_printer::~html_printer): Flush text and end the line.
808         Use `put_string()'.
809         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
810         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
811         emission of tags.
812         (html_text::start_tag): Disable newlines.
813         (html_text::table_is_void): New function.
814         (html_text::issue_table_begin): Ditto.
815         (html_text::issue_table_end): Ditto.
816         (html_text::push_para): Better table handling.
817         (html_text::do_indent): New function.
818         (html_text::do_table): Ditto.
819         (html_text::done_table): Ditto.
820         (html_text::do_tt): Handle PRE_TAG.
821         (html_text::is_in_table): New function.
822         (html_text::check_emit_text): Handle tables.
823         (html_text::do_emittext): Use `nl()'.
824         (html_text::do_para): Handle table.
825         (html_text::remove_def): New function.
826         * src/devices/grohtml/output.cc (word, word_list): Implement
827         methods.
828         (simple_output::end_line): Flush last word.
829         (simple_output::simple_comment): Ditto.
830         (simple_output::begin_comment): Recoded.
831         (simple_output::end_comment): Ditto.
832         (simple_output::comment_arg): Removed.
833         (simple_output::check_newline): Improve test and flush last word.
834         (simple_output::space_or_newline): Improved.
835         (simple_output::write_newline): Replaced with...
836         (simple_output::nl): This.
837         (simple_output::put_raw_char): Flush last word.
838         (simple_output::check_space): Removed.
839         (simple_output::put_translated_string): Ditto.
840         (simple_output::put_string): Simplified.
841         (simple_output::put_number): Updated.
842         (simple_output::put_float): Ditto.
843         (simple_output::put_symbol): Removed.
844         (simple_output::enable_newlines): Add `check_newline()'.
845         (simple_output::flush_last_word): New function.
847         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
848         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
850         * tmac/s.tmac (@PP, @IP): Add html conditional code.
851         * tmac/an-old.tmac (TP): Ditto.
853 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
855         * mdate.sh: Make it POSIX compliant.
857 2001-03-09  Werner LEMBERG  <wl@gnu.org>
859         Added the `return' request to end a macro immediately.  It simply
860         pops iterators from the input stack until a macro iterator is found.
862         * src/roff/troff/input.cc (input_iterator::is_macro,
863         macro_iterator::is_macro): New member.
864         (input_return_boundary): New class to signal an immediate return
865         to while_request().
866         (input_stack::add_return_boundary, input_stack::is_return_boundary):
867         New functions.
868         (input_stack::clear): Use it.
869         (input_stack::pop_macro): New function.
870         (while_request): Use `is_return_boundary()'.
871         (return_macro_request): New function.
872         (init_input_requests): Use it.
874         * src/roff/troff/TODO: Updated.
875         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
877 2001-03-08  Werner LEMBERG  <wl@gnu.org>
879         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
880         cleanup.
882 2001-03-07  Werner LEMBERG  <wl@gnu.org>
884         Make `\B' more rigid.
886         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
887         parameter.
888         (get_number_rigidly): New function.
889         * src/roff/troff/input.cc (do_expr_test): Use it.
890         * src/roff/troff/token.h: Updated.
892         * src/roff/troff/request.h: Fix typo (init_html_request ->
893         init_markup_request).
895 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
897         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
898         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
899         are now `.begin', `.end', `.image'.
901         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
902         (html_printer::add_to_sbuf): Changing type of `code' parameter.
903         Use add_char_to_sbuf().
904         (to_unicode): New function.
905         (char_translate_to_html): Changing type of `ch' parameter.
906         Use `to_unicode()'.
907         (html_printer::~html_printer): Comment out doctype string.
908         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
909         instead of `.html-end'.
910         (write_start_image): Use `.begin' and `.image' instead of
911         `.html-begin' and `.html-image'.
912         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
913         (html_begin): Renamed to ...
914         (begin): This.
915         (html_end): Renamed to ...
916         (end): This.
917         (html_image): Renamed to ...
918         (image): This.
919         (init_html_requests): Renamed to ...
920         (init_markup_requests): This.
921         * tmac/www.tmac: Updated.
923 2001-02-28  Bram  <bram@avontuur.org>
925         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
926         constructor.
928 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
930         * doc/meref.me: Fixing some typos.
932 2001-02-16  Werner LEMBERG  <wl@gnu.org>
934         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
935         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
936         * src/roff/troff/node.h: Updated.
938 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
940         * tmac/groff_tmac.man: Fix typo.
942 2001-02-16  Werner LEMBERG  <wl@gnu.org>
944         Fixing a bug which prevented proper end-of-sentence recognition
945         between an `unformatted' box and the following text.  As a
946         consequence, vertical line distances are no longer preserved in
947         boxes after a call to `.unformat' -- because boxes aren't
948         line-oriented (contrary to diversions), this doesn't make sense
949         anyway.
951         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
952         value.
953         (vertical_size_node::set_unformat_flag): New method.
954         * src/roff/troff/node.hh: Updated.
955         * src/roff/troff/input.cc (word_space_node::reread,
956         hmotion_node::reread): Reset `unformat' flag after usage.
957         (unformat_macro): Append only if `set_unformat_flag()' returns
958         non-zero.
959         * src/roff/troff/troff.man: Updated.
961 2001-02-15  Werner LEMBERG  <wl@gnu.org>
963         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
964         documentation of `asciify' and `unformat' requests.
966 2001-02-13  Werner LEMBERG  <wl@gnu.org>
968         Redesigned the `unformat' request.  It is no longer connected with
969         `asciify' but rather uses new `reread()' methods if the `unformat'
970         flag is set.  Additionally, the handling of space characters after
971         unformatting has been fixed so that they retain their width.
973         * src/roff/troff/node.h (width_list): New structure to store
974         original widths of spaces.
975         (node): Added `unformat' member.
976         Replaced `num_spaces' variable with `orig_width' list.
977         * src/roff/troff/node.cc (*node::asciify,
978         asciify_reverse_node_list): Removed `unformat_only' flag and related
979         code.
980         (word_space_node::asciify, word_space_node::word_space_node): Use
981         `orig_width'.
982         (word_space_node::~word_space_node): New destructor.
983         (word_space_node::copy): Updated to handle `orig_width'.
984         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
985         (*node::merge_space): Update `orig_width' list if necessary.
986         (*node::set_unformat_flag): New methods to set the `unformat' flag.
987         * src/roff/troff/enc.cc (environment::space_newline): Use
988         `width_list'.
989         (environment::space): Added method to handle space width and
990         sentence space width as parameters.  Use `width_list'.
991         (environment::make_tab_node): Updated.
992         * src/roff/troff/env.h: Updated.
993         * src/roff/troff/input.cc (word_space_node::reread,
994         unbreakable_space_node::reread, hmotion_node::reread): New methods
995         to handle nodes specially if `unformat' flag is set.
996         (do_asciify_macro): Renamed back to ...
997         (asciify_macro): This.
998         (unformat_macro): New implementation to simply set the `unformat'
999         flag.
1001         * MORE.STUFF: Added more info about deroff.
1003 2001-02-08  Werner LEMBERG  <wl@gnu.org>
1005         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
1006         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
1007         and `add_self()' methods to avoid hyphenation.  For example, the
1008         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
1009         soft hyphen after `foo'.  Now the hyphen list is correctly
1010         `foo<ignore><ignore>bar'.
1012 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
1014         * tmac/groff_tmac.man: Fix `BIR' macro.
1016 2001-02-04  Werner LEMBERG  <wl@gnu.org>
1018         A new escape sequence `\:', inserting a zero-width break point.
1020         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
1021         * src/roff/troff/input.cc (get_copy, token::next, asciify):
1022         Implement it.
1023         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
1024         method.
1025         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
1026         and `asciify()' methods.
1027         * src/roff/troff/node.cc (space_node::space_node): Updated.
1028         (space_node::asciify): Handle `was_escape_colon'.
1029         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1031         Handle `\~' similar to other comparable requests.
1033         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
1034         label.
1035         (token::next): Move creation of an unbreakable_space_node to...
1036         (token::add_to_node_list): Here.
1038         Fix a bug which sometimes prevented hyphenation of words connected
1039         with `\~' or `\ ' (and other escape sequences handled as
1040         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
1041         (after a call to the `unformat' request).
1043         * src/roff/troff/env.h (environment::possibly_break_line,
1044         environment::hyphenate_line): Introducing `start_here' parameter.
1045         * src/roff/troff/env.cc (environment::space_newline,
1046         environment::space): Use it.
1047         (environment::possibly_break_line, environment::hyphenate_line):
1048         Implement it.
1049         * src/roff/troff/input.cc (process_input_stack): Use it.
1050         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
1051         space_char_hmotion_node, overstrike_node): Add
1052         `get_hyphenation_type()' method.
1053         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
1054         if `unformat_only' is active.
1056 2001-01-30  Werner LEMBERG  <wl@gnu.org>
1058         Implemented new read-only number register `.linetabs' which
1059         returns 1 if in line-tabs mode, 0 otherwise.
1061         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
1062         * src/roff/troff/env.cc (get_line_tabs): New function.
1063         (init_env_requests): Use it.
1064         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1066         * VERSION, REVISION: Changing to 1.17.0.
1068 2001-01-28  Werner LEMBERG  <wl@gnu.org>
1070         Fixed a bug which prevented hyphenation of words which are finished
1071         with `\)'.
1073         * src/roff/troff/token.h (token): Add enum type
1074         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
1075         * src/roff/troff/input.cc (token::next, token::description,
1076         get_line_arg, token::add_to_node_list, token::process): Use it.
1078 2001-01-27  Werner LEMBERG  <wl@gnu.org>
1080         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
1081         * src/roff/troff/div.cc (do_divert): Use it.
1083         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
1085 2001-01-25  Werner LEMBERG  <wl@gnu.org>
1087         Adding the `linetabs' request.  If set, tab distances are not
1088         computed relative to the input line but relative to the output line.
1090         * src/roff/troff/env.h (environment): New member `line_tabs'.
1091         * src/roff/troff/env.cc (line_tabs_request): Implement request.
1092         (environment::environment, environment::copy): Updated.
1093         (environment::distance_to_next_tab): Use `line_tabs'.
1094         (init_env_requests): Register request.
1095         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
1096         fixes.
1098 2001-01-24  Werner LEMBERG  <wl@gnu.org>
1100         Introducing a new read-only register `.int' which is set to a
1101         positive value if the last output line is interrupted (i.e., if it
1102         contains `\c').
1104         * src/roff/troff/env.cc (init_env_requests): Add it.
1105         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1107 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
1109         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
1110         * src/preproc/html/pre-html.cc (findPrefix): New function which
1111         generates the troff executable name via the system prefix.
1112         * src/preproc/eqn/main.cc: Modified warning message.
1114 2001-01-23  Werner LEMBERG  <wl@gnu.org>
1116         troff's `box' and `boxa' requests didn't preserve temporary
1117         indentation.
1119         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
1120         `saved_target_text_length' members.
1121         * src/roff/troff/div.cc (do_divert): Use them.
1123         Tabs (but not yet leaders and fields) are now handled correctly by
1124         `asciify' request.
1126         * node.h (hmotion_node): Add field `was_tab'.
1127         * env.cc (environment::make_tab_node): Set it.
1128         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
1130         Added new request `unformat' which will, contrary to `asciify',
1131         preserve font information after unformatting (i.e., only nodes
1132         dealing with horizontal space are converted back to input
1133         characters).
1135         * input.cc (asciify_macro): Renamed to ...
1136         (do_asciify_macro): this, having a new parameter `unformat_only'.
1137         (asciify_macro, unformat_macro): New; using do_asciify_macro.
1138         (init_input_requests): Added `unformat'.
1139         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
1140         parameter to control asciification process.
1141         * node.h (*_node::asciify): Ditto.
1142         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1144 2001-01-20  Werner LEMBERG  <wl@gnu.org>
1146         * doc/groff.texinfo: Minor improvement of `.in' documentation.
1148 2001-01-18  Werner LEMBERG  <wl@gnu.org>
1150         * tmac/ps.tmac: Remove call of psold.tmac.
1151         * tmac/psold.tmac: Comment updated.
1152         * tmac/psnew.tmac: Removed since no longer needed.
1153         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
1155         * font/devutf8/R.proto: Adding `shc' glyph.
1156         * font/devutf8/NOTES: Updated.
1158         * test-groff: Updated.
1160 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
1162         First cut of the new html device driver.  Changes to pre-html and
1163         the new grohtml are too numerous to be documented here.
1165         Stuff related to `html' has been renamed to `html-old' and `html2'
1166         stuff has been renamed to `html' (including directories).  The new
1167         html device driver is therefore invoked as `-Thtml'.
1169         Added new `\O' escape to suppress output (needed by html driver).
1171         Added functions and code to pass info about input-level commands
1172         (`.in', `.fl', etc.) to html driver.
1174         Three new functions (.html-begin, .html-end, and .html-image) for
1175         better html handling: `html-begin' will execute the remaining line
1176         if at the outermost nesting level, increasing an internal counter.
1177         `html-end' does the same but decreases the internal counter.
1178         `html_image' puts its arguments into a special node (suppress_node)
1179         to define an image region.
1181         The `output' request has been removed.
1183         * tmac/html-tags.tmac: Removed.
1184         * tmac/arkup.tmac: Updated and renamed to ...
1185         * tmac/www.tmac: New file.
1186         * tmac/markup.tmac Updated and renamed to ...
1187         * tmac/mwww.tmac: New file.
1188         * tmac/Makefile.sub: Updated.
1189         * tmac/an-old.tmac: Updated.
1190         * tmac/eqnrc: Updated.
1191         * tmac/groff_man.man
1192         * tmac/groff_markup.man: Updated and renamed to ...
1193         * tmac/groff_mwww.man: New file.
1194         * tmac/groff_tmac.man: Updated.
1195         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
1196         * tmac/html.tmac: Updated and renamed from html2.tmac.
1197         * tmac/pspic.tmac: Updated html support.
1198         * tmac/s.tmac: Added html output support.
1199         * tmac/troffrc, tmac/troffrc-end: Updated.
1201         * Makefile.in, doc/Makefile: Updated.
1202         * doc/groff.texinfo: Added info about new `\O' escape.
1203         * doc/homepage.ms: Use `MAILTO' macro.
1205         * font/devhtml/DESC.proto: Add `C' font.
1206         * font/devhtml/Makefile.sub: Updated.
1207         * font/devhtml/R.proto: Minor fixes.
1208         * font/devhtml-old/Makefile.sub: Updated.
1210         * src/devices/grohtml-old/Makefile.sub: Updated.
1212         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
1213         method.
1214         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
1215         graphic_start): Add `inline' parameter.  Update.
1216         (html_end_suppress, graphic_end): Update.
1218         * src/include/html-strings.h: New file.
1219         * src/include/htmlindicate.h: Comments updated.
1220         * src/include/printer.h: Updated.
1222         * src/preproc/eqn/main.cc (do_file, main): Updated.
1223         * src/preproc/pic/troff.cc (troff_output::start_picture,
1224         troff_output::finish_picture): Updated.
1225         * src/preproc/tbl/main.cc (process_input_file): Updated.
1227         * src/roff/groff/groff.cc (main): Updated.
1228         Pass device arguments to predrivers also.
1229         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
1230         * src/roff/troff/env.h (environment): Updated.
1231         New elements `need_eol' and `ignore_next_eol' (for html output).
1232         * src/roff/troff/env.cc (environment::environment): Add initializers
1233         for `need_eol' and `ignore_next_eol'.
1234         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
1235         functions.
1236         (point_size, fill, no_fill, center, right_justify, line_length,
1237         indent, temporary_indent, break_request, handle_tab): Use
1238         `add_html_tag()'.
1239         (set_tabs): Use `add_html_tag_tabs()'.
1240         (environment::add_html_tag): Updated.
1241         (environment::do_break): Updated.
1242         * src/roff/troff/div.cc (space_request, flush_output): Use
1243         `environment::add_html_tag()'.
1244         * src/roff/troff/input.cc: Updated.
1245         New variable `html_level' to indicate nested `html-begin' requests.
1246         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
1247         (non_interpreted_char_node, token_node, non_interpreted_node): Add
1248         `force_tprint()' method.
1249         (token::next): Handle `\O'.
1250         (do_suppress): Implement it.
1251         (html_begin, html_end, html_image): New functions.
1252         (init_output_requests): Renamed to ...
1253         (init_html_requests): this.
1254         (main): Use it.
1255         (macro::append_str, macro::append_unsigned, macro::append_int): New
1256         methods.
1257         New variable `output_low_mark_miny' to limit minimal value of y.
1258         (reset_output_registers): Use it.
1259         (output_request): Removed.
1260         (get_output_registers): New function.
1261         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
1262         (*_node): Added `force_tprint()' if necessary.
1263         (special_node): New elements `tf' and `get_tfont()'.
1264         (suppress_node): New class.
1265         * src/roff/troff/node.cc:
1266         New global variables `image_no' and `suppress_start_page'.
1267         (real_output_file): New method `is_on()'.
1268         (troff_output_file): New method `start_special(tfont)'.
1269         (troff_output_file::really_print_line): Use `tprint' conditionally.
1270         (real_output_file::print_line): Updated.
1271         (real_output_file::on): Updated.
1272         (*_node): Added `force_tprint()'.
1273         (special_node::special_node): Initializer updated.
1274         (special_node::same, special_node::copy, special_node::tprint_start):
1275         Updated.
1276         (get_reg_int, get_reg_str): New functions.
1277         (suppress_node::*): New methods.
1278         New global variables last_position, last_image_filename;
1279         (min): New inline function.
1280         * src/roff/troff/reg.h, src/roff/troff/request.h,
1281         src/roff/troff/troff.h: Updated.
1283 2001-01-13  Werner LEMBERG  <wl@gnu.org>
1285         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
1286         documentation of `asciify' request.
1288 2001-01-12  Werner LEMBERG  <wl@gnu.org>
1290         * src/roff/troff/input.cc: Move definition of special characters
1291         like `ESCAPE_TILDE' to ...
1292         * src/roff/troff/input.h: New file.
1293         * src/roff/troff/Makefile.sub (HDRS): Add it.
1295         Extending the .asciify request to `unformat' space characters also.
1297         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
1298         to count input space characters.
1299         Update constructors to take care of it.
1300         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
1301         `ESCAPE_SPACE' instead of normal space.
1302         (word_space_node::asciify): New method.
1303         (unbreakable_space_node::asciify): New method.
1304         (word_space_node::merge_space): New method.
1305         * src/roff/troff/env.cc (environment::space_newline,
1306         environment::space): Add code to initialize `num_spaces' (using the
1307         constructor of `word_space_node').
1308         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
1309         Document it.
1311 2001-01-09  Werner LEMBERG  <wl@gnu.org>
1313         * man/groff_char.man: Use table header traps only conditionally.
1315 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
1317         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
1319 2001-01-08  Werner LEMBERG  <wl@gnu.org>
1321         Introducing the `box' and `boxa' requests which are similar to
1322         `di' resp. `da' but omitting a partially filled line (which is
1323         restored after ending the diversion).
1325         * src/roff/troff/div.h (diversion): Add elements to save partially
1326         filled line.
1327         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
1328         partially filled line.
1329         (divert, divert_append): Updated.
1330         (box, box_append): New functions.
1331         (init_div_requests): Use them.
1332         * src/roff/troff/env.h (environment): do_divert() is now a friend.
1333         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1335         * doc/groff.texinfo: Fix documentation of `lf' request.
1337 2000-12-25  Werner LEMBERG  <wl@gnu.org>
1339         * src/roff/troff/troff.man, NEWS: Document `writem' request.
1341 2000-12-21  Werner LEMBERG  <wl@gnu.org>
1343         Ignore `ss' request if in compatibility mode.
1345         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
1346         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
1347         * src/roff/troff/env.cc (space_size): Use it.
1349         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
1350         `ss' request in nroff mode.
1352         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
1353         changes.
1355 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
1357         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
1359 2000-12-13  Werner LEMBERG  <wl@gnu.org>
1361         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
1362         * src/preproc/eqn/neqn.man: Small fixes and additions.
1364 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
1366         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
1367         Fixing typo.
1369         * src/preproc/eqn/neqn.man: New file.
1371         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
1372         negative' warning.
1374         * tmac/e.tmac: Add `T&' macro.
1375         Fix `indent cannot be negative' warning.
1376         * tmac/s.tmac: Fix `indent cannot be negative' warning.
1378 2000-12-07  Werner LEMBERG  <wl@gnu.org>
1380         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
1382 2000-12-06  Werner LEMBERG  <wl@gnu.org>
1384         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
1385         `alloca' symbol .
1387         * MORE.STUFF: Added info about deroff for djgpp.
1389         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
1390         documentation of -rcR switch.
1392 2000-12-03  Werner LEMBERG  <wl@gnu.org>
1394         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
1395         if -rcR=1 (which is now the default in nroff mode), a single, very
1396         long page is created instead of multiple pages: All `ne' and `wh'
1397         requests are put into conditionals; a new macro `an-end' is added to
1398         be called with `em'.
1400         Some other minor cleanups.
1402         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
1404 2000-12-02  Werner LEMBERG  <wl@gnu.org>
1406         Fixing a bug which prevented hyphenation in words followed
1407         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
1409         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
1410         Adding possibly_break_line().
1411         * src/roff/troff/env.h (environment): Make possibly_break_line()
1412         public.
1414         Make `\~' usable in .tr request.
1416         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
1417         (token): Add stretchable_space().
1418         * src/roff/troff/input.cc (token::next, token::delimiter,
1419         token::description, process_input_stack, do_translate,
1420         add_to_node_list, token::process): Use it.
1421         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
1422         for adjusting the space.
1423         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
1424         for stretchable space.
1425         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
1426         (make_node): Add code for stretchable space.
1427         * src/roff/troff/env.cc (environment::add_char): Use it.
1428         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
1429         (get_copy, token::next, transparent_translate, asciify): Use it.
1431         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
1432         doc/groff.texinfo: Updated.
1433         * man/groff.man: Small reorderings.
1435 2000-11-23  Werner LEMBERG  <wl@gnu.org>
1437         * NEWS: Fixes.
1438         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
1439         option.
1440         * src/roff/troff/input.cc (main): Add `config_macro_path' and
1441         `safer_macro_path' to -M option.
1442         * src/roff/troff/troff.man: Fixes.
1444 2000-11-22  Werner LEMBERG  <wl@gnu.org>
1446         Use safer path (except for config files) if -U isn't specified.  Add
1447         a special macro path (without home and current directory) for config
1448         files.  Add home directory to unsafe path for consistency.  Don't
1449         include the home directory in the font path.
1451         * src/lib/libgroff/macropath.cc: Add `config_macro_path', change
1452         `macro_path'.
1453         * src/include/macropath.h: Add `config_macrp_path'.
1454         * src/lib/libgroff/fontfile.cc: Fix font path.
1455         * src/roff/troff/input.cc (process_startup_file): Use
1456         `config_macro_path'.
1457         (main): Select unsafe path if -U is given.
1459         * src/preproc/eqn/main.cc (main): Fixing search path for
1460         configuration file.
1461         * src/preproc/eqn/eqn.man: Updated.
1463         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
1464         Updated.
1466         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
1467         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
1468         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
1469         src/devices/grotty/grotty.man: Updated.
1471         * Makefile.in: Fix comments.
1473 2000-11-17  Werner LEMBERG  <wl@gnu.org>
1475         * tmac/safer.tmac: Empty file added (again) for compatibility
1476         reasons.
1477         * tmac/Makefile.sub: Updated.
1479 2000-11-16  Werner LEMBERG  <wl@gnu.org>
1481         * src/devices/grodvi/dvi.cc (main),
1482         src/devices/grohtml2/post-html.cc (main),
1483         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1484         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1485         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
1486         (main), src/preproc/html2/pre-html.cc (main),
1487         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
1488         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
1489         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
1490         (main), src/utils/hpftodit/hpftodit.cc (main),
1491         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
1492         (main), src/utils/lookbib/lookbib.cc (main),
1493         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
1494         (main): Use stdout for -v.
1495         * src/roff/groff/groff.cc (run_commands),
1496         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
1497         to make direct printing to stdout possible.
1498         * src/roff/groff/pipeline.h: Updated.
1500         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
1501         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
1502         * src/utils/afmtodit/afmtodit.man: Updated.
1504         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
1505         (version): New function.
1506         (usage): Updated.
1507         * src/utils/addftinfo/addftinfo.man: Updated.
1509         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
1510         Fixing copyright dates.
1512         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
1513         replacing it.
1515         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
1516         version_string.
1518         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
1520 2000-11-15  Werner LEMBERG  <wl@gnu.org>
1522         In all programs, make -v return immediately with exit status 0 to
1523         be compliant with the GNU standard.
1525         * src/devices/grodvi/dvi.cc (main),
1526         src/devices/grohtml2/post-html.cc (main),
1527         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1528         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1529         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
1530         (main), src/preproc/html2/pre-html.cc (main),
1531         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
1532         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
1533         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
1534         (main): Implement it.
1535         * NEWS: Updated.
1537         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
1538         and postprocessors to the -v option.
1540         * src/roff/grog/grog.pl: Implement -v.
1541         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
1542         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
1544         * src/roff/nroff/nroff.sh: Implement -v.
1545         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
1546         * src/roff/nroff/nroff.man: Updated.
1547         
1548         * src/preproc/eqn/main.cc (main): Fix comment typo.
1550         * MORE.STUFF: Added info about djgpp port of grap.
1552 2000-11-14  Werner LEMBERG  <wl@gnu.org>
1554         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
1555         mode (or rather, implemented non-compatibility mode).
1556         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
1558         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
1559         replacing it -- we don't find gxditview otherwise.
1560         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
1562         * src/preproc/pic/depend: Removed.  Unnecessary.
1564         Implemented dummy keyword `solid' in pic for compatibility with
1565         AT&T pic.
1567         * lex.cc (lookup_keyword): Added `solid'.
1568         * pic.y: Added SOLID with dummy rule.
1569         * pic.cc, pic_tab.h: Regenerated.
1570         * doc/pic.ms: Updated.
1572 2000-11-13  Werner LEMBERG  <wl@gnu.org>
1574         For security reasons, don't use the current directory but the home
1575         directory while searching and scanning troffrc and troffrc-end.
1576         Similarly, replace the current directory with the home directory
1577         in the font path.
1579         * Makefile.in (fontpath, tmacpath): Remove current directory.
1581         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
1582         two parameters `add_home' and `add_current'.
1583         (search_path::~search_path, search_path::command_line_dir,
1584         search_path::open_file): Remove tests for `dirs' being zero.
1585         * src/include/searchpath.h: Adjust.
1586         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
1587         `safer_macro_path'.
1588         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
1590         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
1591         * src/roff/troff/input.cc: Use `mac_path', initialized with
1592         `macro_path'.
1593         (process_startup_file): Set `mac_path' to `safer_macro_path'.
1594         * src/roff/troff/env.cc: Use `mac_path'.
1596         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
1598         * NEWS, man/roff.man, src/roff/troff/troff.man,
1599         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
1600         Updated.
1602 2000-11-12  Werner LEMBERG  <wl@gnu.org>
1604         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
1606         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
1607         * configure.in: Fix typo in comment.
1608         * configure: Regenerated.
1610         * src/libgroff/*, src/include/*, src/roff/troff/*: Fixing copyright
1611         dates.
1613 2000-11-08  Werner LEMBERG  <wl@gnu.org>
1615         Add system tmac directory (/usr/local/lib/groff/site-tmac).
1617         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
1618         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
1619         $(systemtmacdir).
1620         Use @libdir@.
1621         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
1622         * tmac/Makefile.sub (install_data): Create
1623         $(systemtmacdir) and $(localtmacdir).
1624         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
1625         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
1626         NEWS, doc/groff.texinfo: Updated and minor fixes.
1628         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
1629         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
1630         $(systemtmacdir) since the wrapper files are platform-dependent.
1632 2000-11-01  Werner LEMBERG  <wl@gnu.org>
1634         * doc/groff.texinfo: Fix typo.
1636 2000-10-26  Werner LEMBERG  <wl@gnu.org>
1638         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
1639           tmac.doc.old -> doc-old.tmac
1640           tmac.an.old  -> an-old.tmac
1642         * tmac/tmac.*: Moved to ...
1643         * tmac/*.tmac: this.
1644         * tmac/man.local: Fix comment.
1645         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
1646         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
1647         Added some `FILES' sections.  More use of @...@ directives.  Other
1648         minor updates.
1649         * arch/djgpp/README, font/devutf8/NOTES: Updated.
1650         * doc/homepage.ms, doc/groff.texinfo: Updated.
1651         * man/groff.man, man/roff.man: Updated.
1652         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
1653         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
1654         src/devices/grotty/grotty.man: Updated.
1655         * src/preproc/pic/pic.man: Updated.
1656         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
1657         instead of -mdoc.old.
1658         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
1659         * src/roff/nroff/nroff.man: Updated.
1660         * NEWS: Updated.
1662         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
1664         * tmac/mm.diff: Removed -- it has no use now since the mm package
1665         is part of groff.
1667         * tmac/*: Removed trailing spaces.
1669         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
1670         the tmac subdirectory also).
1672         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
1673         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
1674         stuff since it is no longer needed.
1676         * README, PROBLEMS: Updated.
1678 2000-10-25  Werner LEMBERG  <wl@gnu.org>
1680         Invert current behaviour: Search first FOOBAR.tmac, then
1681         tmac.FOOBAR.
1683         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
1684         (open_mac_file, macro_source): Implement it.
1685         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
1686         doc/groff.texinfo, NEWS: Document it.
1688         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
1689         Small documentation improvements.
1691         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
1692         subdirectory also).
1694         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
1696 2000-10-24  Werner LEMBERG  <wl@gnu.org>
1698         Add local tmac directory (groff/site-tmac).
1700         * Makefile.in: Add $(localtmacdir).
1701         (uninstall_dirs): Add $(localtmacdir).
1702         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
1703         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
1704         in $(localtmacdir).  Create $(localtmacdir).
1705         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
1706         Updated and minor fixes.
1708         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
1710         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
1712 2000-10-23  Werner LEMBERG  <wl@gnu.org>
1714         Move hyphen.us to tmac directory.
1716         * src/roff/troff/hyphen.us: Removed.
1717         * src/tmac/hyphen.us: Added.
1718         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
1720         Change installation structure for data files from .../groff/... to
1721         .../groff/<version><revision>/... to be conform with other GNU
1722         programs.
1724         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
1725         doc/Makefile: Implement it.
1726         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
1727         * configure: Updated.
1728         * arch/djgpp/README, font/devutf8/NOTES: Use it.
1729         * NEWS: Document it.
1730         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
1731         @MACRODIR@ instead of hard-coded directories.
1733 2000-10-22  Werner LEMBERG  <wl@gnu.org>
1735         Implement $GROFF_BIN_PATH environment variable (which defaults to
1736         $bindir) used for child programs of groff and similar wrappers.
1738         * gendefs.sh: Improve documentation.
1739         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
1740         src/preproc/eqn/Makefile.sub (neqn),
1741         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
1742         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
1743         $GROFF_BIN_PATH.
1744         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
1745         $GROFF_PATH__ (the latter for communication with troff).
1746         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
1747         set.
1748         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
1749         doc/groff.texinfo: Document it.
1751         * doc/groff.texinfo: Improve documentation of troff's -a option.
1753 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
1755         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
1756         non-intrusive eol marker.
1757         (troff_output_file::determine_line_limits): New function.
1758         (troff_output_file::draw): Use it.
1759         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
1760         output_pending_lines() instead of output_line().
1761         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
1762         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
1763         createImage): Small fixes.
1764         
1765 2000-10-14  Werner LEMBERG  <wl@gnu.org>
1767         Replace tmac.safer with a real secure solution.
1769         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
1770         system_request, pipe_output): Disable requests if in safer mode.
1771         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
1772         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
1773         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
1774         doc/groff.texinfo, src/roff/groff/groff.man,
1775         src/roff/troff/troff.man, arch/djgpp/README: Updated.
1777         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
1778         (resource_manager::output_prolog): Replace setenv() with putenv().
1780 2000-10-09  Werner LEMBERG  <wl@gnu.org>
1782         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
1783         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
1784         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
1785         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
1786         compilation errors with some compilers.  It seems that this code
1787         is no longer necessary -- if yes, it is easy to add some #ifdef's
1788         for that particular old-fashioned compiler.
1790         * MORE.STUFF: Added info about Meta-tbl.
1792         * doc/groff.texinfo: Added more info about `.if "..."..."'.
1794 2000-10-07  Werner LEMBERG  <wl@gnu.org>
1796         Adding a new escape sequence \B'...': If the string between
1797         the delimiters is a valid numeric expression, return the character
1798         `1', and `0' otherwise.  This is an analogon to \A.
1800         * src/roff/troff/input.cc (do_expr_test): Implement it.
1801         (token::next): Use it.
1802         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
1804         * tmac/tmac.trace: Made independent from escape character.
1806 2000-10-06  Werner LEMBERG  <wl@gnu.org>
1808         Adding a new request .dei: define indirect.  The first and second
1809         parameter of .dei are taken from string registers instead directly;
1810         this very special request is needed to make tmac.trace independent
1811         from the escape character (which might even be disabled).
1813         * src/roff/troff/input.cc (do_define_macro): Implement it.
1814         (define_macro_indirect): New function.
1815         (init_input_requests): Use it.
1817         Adding two requests .ecs and .ecr: Save and restore the escape
1818         character.  These two requests are needed to make tmac.trace
1819         independent from the escape character (which might even be
1820         disabled).
1822         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
1823         Implement it.
1824         (init_input_requests): Use it.
1826         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
1828 2000-09-22  Ricardo Soares Guimarães <ricardo@conectiva.com.br>
1830         Adding a new option -P and new environment variable GROPS_PROLOGUE
1831         to grops, selecting a different prologue file (minor modifications
1832         by WL).
1834         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
1835         src/devices/grops/ps.cc (main): Implement it.
1836         * src/devices/grops/grops.man, NEWS: Document it.
1838 2000-09-22  Werner LEMBERG  <wl@gnu.org>
1840         * INSTALL: Add info about selecting paper format.
1842 2000-09-21  Werner LEMBERG  <wl@gnu.org>
1844         * src/roff/troff/input.cc (main): Fixing compiler warning.
1845         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
1846         strings.h from the former to the latter.
1847         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
1848         stuff from the former to the latter.
1850 2000-09-11  Werner LEMBERG  <wl@gnu.org>
1852         Implementing two new requests .tm1 and .tmc: The former is similar
1853         to .tm but can output leading spaces; its syntax is similar to
1854         defining a string, i.e., a `"' can be used to mark the beginning of
1855         the string to be written to stderr: `.tm1 " test'.  The latter is
1856         similar to .tm1 but doesn't write out a final newline character.
1858         * src/roff/troff/input.cc (terminal1, terminal_continue,
1859         do_terminal): New functions.
1860         (init_input_requests): Use them.
1861         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
1863 2000-09-09  Werner LEMBERG  <wl@gnu.org>
1865         * tmac/groff_mdoc.samples.man: Small fixes.
1867 2000-09-08  Werner LEMBERG  <wl@gnu.org>
1869         * tmac/groff_mdoc.man: Fixing typo.
1871 2000-09-02  Werner LEMBERG  <wl@gnu.org>
1873         Implementing a .nop request which does nothing.
1875         * src/roff/troff/input.cc (nop_request): New function.
1876         (init_input_requests): Use it.
1877         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
1879 2000-09-01  Werner LEMBERG  <wl@gnu.org>
1881         * doc/groff.texinfo: Added some comments.
1883 2000-08-30  Werner LEMBERG  <wl@gnu.org>
1885         * src/roff/troff/TODO: Updated.
1887 2000-08-28  Bruno Haible  <haible@clisp.cons.org>
1889         * contrib/mm/Makefile.sub: New target 'all', makes all prerequisites
1890         of 'install'.
1892 2000-08-25  Werner LEMBERG  <wl@gnu.org>
1894         * doc/groff.texinfo: Fix comment how to compile the DVI file.
1896 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
1898         * font/devps/generate/Makefile (SHELL): Define explicitly to
1899         "/bin/sh", for non-Unix platforms.
1900         (extraclean): Use a more portable "" quoting instead of a
1901         backslash (which doesn't work on DOS/Windows).
1902         
1903         * font/devlj4/generate/Makefile (extraclean): Ditto.
1905         * font/devdvi/generate/Makefile (extraclean): Ditto.
1907 2000-08-25  Werner LEMBERG  <wl@gnu.org>
1909         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
1910         src/roff/troff/troff.man: Document Eli's latest changes.
1912 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
1914         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
1915         macro file names of the form NAME.tmac as well as tmac.NAME.
1917 2000-08-25  Werner LEMBERG  <wl@gnu.org>
1919         * src/include/posix.h: Remove definition of FILENAME_MAX.
1921         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
1922         `sys_fatal' and `stop' function().
1924         * test-groff: Updated.
1926 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
1928         Added the new troff command .output <arg> to suppress output (while
1929         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
1930         registers (for passing the output dimensions to the output device).
1932         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
1933         parameter.
1934         * src/roff/troff/node.h, src/roff/troff/node.cc
1935         (troff_output_file::really_print_line,
1936         ascii_output_file::really_print_line,
1937         supress_output_file::really_print_line): Use `width' parameter.
1938         (troff_output_file::really_on, troff_output_file::really_off,
1939         output_file::on, output_file::off, real_output_file::on,
1940         real_output_file::off, real_output_file::really_on,
1941         real_output_file::really_off): New functions.
1942         (real_output_file:public output_file): New variable `output_on'.
1943         (real_output_file::begin_page, real_output_file::copy_file,
1944         real_output_file::transparent_char, real_output_file::print_line):
1945         Use it.
1946         (real_output_file::print_line): Use check_output_limits.
1947         * src/roff/troff/reg.h, src/roff/troff/request.h,
1948         src/roff/troff/input.cc (assign_registers): New function to remove
1949         two `goto's.
1950         (do_ps_file): Use it.
1951         (check_output_limits, reset_output_registers, output_request,
1952         init_output_requests): New functions.
1953         (init_input_requests): Updated.
1955         Added new grohtml2 device and html2 preprocessor (coding
1956         not yet finished) which will eventually replace grohtml.
1958         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
1959         Updated.
1960         * src/include/htmlindicate.h, src/include/htmlindicate
1961         (html_begin_suppress, html_end_suppress): New functions.
1962         * src/preproc/tbl/main.cc: Use it.
1963         * src/roff/groff/groff.cc: Add support for html2 device (which will
1964         automatically invoke the html2 preprocessor).
1965         * src/roff/troff/input.cc (is_html2): New variable.
1966         * src/roff/troff/troff.h, src/roff/troff/env.h,
1967         src/roff/troff/env.cc (environment::add_html_tag): New function
1968         (uses `is_html2').
1969         (environment::do_break): Use it.
1970         * font/devhtml2/*: New files.
1971         * src/devices/grohtml2: New device.
1972         * src/preproc/html2: New preprocessor.
1973         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
1975 2000-08-23  Werner LEMBERG  <wl@gnu.org>
1977         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
1979 2000-08-22  Werner LEMBERG  <wl@gnu.org>
1981         * src/include/lib.h: Provide a fix for IRIX to not include
1982         groff-getopt.h.
1984 2000-08-18  Werner LEMBERG  <wl@gnu.org>
1986         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
1987         since some non-GNU sed programs can't handle null regexps.
1988         * configure, src/preproc/eqn/Makefile.sub,
1989         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
1991         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
1992         bug (string.h and strings.h are both needed according to latest
1993         POSIX standard).
1995         * MORE.STUFF: Added info about unroff and troffcvt.
1997 2000-08-08  Werner LEMBERG  <wl@gnu.org>
1999         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
2000         used before -ms.
2002         * tmac/tmac.man.old: Remove unused number register.
2004         * tmac.doc: Minor documentation fix.
2006 2000-08-07  Paul Eggert  <eggert@twinsun.com>
2008         * src/roff/groff/pipeline.c (is_system_shell):
2009         Fix typo: "monocased_shell" no longer exists.
2011 2000-08-07  Paul Eggert  <eggert@twinsun.com>
2013         Remove FILENAME_MAX limits.
2015         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
2016         that the argument length is less than FILENAME_MAX.
2017         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
2018         Use struct hack to allocate and free file name.
2019         (struct xtmpfile_list): fname is now part of the structure,
2020         not a pointer to another string.
2022 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
2024         * src/include/posix.h: Add a default value for FILENAME_MAX.
2026 2000-08-06  Paul Eggert  <eggert@twinsun.com>
2028         Add support for new BSD-style man pages (with ".Dd" instead of
2029         ".TH"), so that "groff -man" understands both styles, even
2030         when running "groff -man" on a host whose system man page
2031         macros don't support ".Dd".
2033         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
2034         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
2035         in case the system man macros don't define Dd or TH.
2037         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
2038         * tmac/tmac.an: New one-line file.
2039         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
2041 2000-08-06  Werner LEMBERG  <wl@gnu.org>
2043         * src/roff/troff/troff.man: Fixing typos.
2045 Version 1.16.1 released
2046 =======================
2048 2000-07-31  Werner LEMBERG  <wl@gnu.org>
2050         Preparing release 1.16.1.
2052         * REVISION: Revision number set to 1.
2053         * MORE.STUFF: Added info about port to DOS.
2054         * NEWS, win32-diffs: Updated.
2056         * src/include/nonposix.h: Remove first line -- this file is used
2057         in C also.
2059         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
2060         link to it.
2062 2000-07-30  Werner LEMBERG  <wl@gnu.org>
2064         * doc/texinfo.tex: Update to latest version.
2066 2000-06-28  Paul Eggert  <eggert@twinsun.com>
2068         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
2069         commands that fail.  Don't assume that "export a=b" is valid shell
2070         syntax.  This is needed for Solaris 2.5.1.
2072         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
2073         comment about missing Solaris headers.
2075         * PROBLEMS: Add section about problems with Sun Make and VPATH.
2077 2000-06-25  Werner LEMBERG  <wl@gnu.org>
2079         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
2080         SET_BINARY().
2082         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
2084         * win32-diffs: Updated.
2085         * README.WIN32: Added CRs to make all Windows editors happy.
2087         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
2088         src/roff/groff/pipeline.c).
2090 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
2092         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
2093         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
2095 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
2097         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
2098         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
2099         are binary files.
2100         (main): Support non-Posix systems with several different styles of
2101         slash characters in file names.
2103         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
2104         (main) [SET_BINARY]: Switch stdin into binary mode.
2106         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
2107         (main): Support file names with several possible slash-type
2108         characters, as given by DIR_SEPS[] in nonposix.h.
2109         (main) [__MSDOS__]: If renaming the temporary index file fails
2110         because it has more than one dot in its trunk, replace the dot
2111         with an underscore and try again.
2112         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
2113         Newline.
2114         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
2116         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
2117         (File::File): Open the input file in binary mode.  Strip CR
2118         characters from each CR-LF pair.
2119         (xbasename): Support file names with several possible slash-type
2120         characters, as given by DIR_SEPS[] in nonposix.h.
2122         * src/include/Makefile.sub (HDRS): Add nonposix.h.
2124         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
2125         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
2126         [!_POSIX_VERSION]: Define for traditional Unix systems.
2127         (real_output_file::real_output_file): Remove the MSVC-specific
2128         call to popen, use instead POPEN_WT, appropriately defined on
2129         nonposix.h.  #include nonposix.h.
2130         (real_output_file::~real_output_file): Remove the MSVC-specific
2131         call to pclose, a suitable macro is now defined on nonposix.h.
2132         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
2133         and WEXITSTATUS instead of assuming traditional Unix
2134         interpretation of the status returned by pclose.
2136         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
2137         call to popen, use POPEN_RT instead (appropriately defined on
2138         nonposix.h).  #include nonposix.h.
2139         (ps_bbox_request): Open the PostScript file in binary mode.
2140         Close the file after processing it.
2141         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
2142         nonposix.h.
2144         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
2145         A version of run_pipeline that doesn't use `fork'.
2146         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
2147         (system_shell_name, system_shell_dash_c)
2148         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
2149         the ugliness of testing DOS/Windows file names for equality, and
2150         support both stock shells and ports of Unix shells.
2152         * src/roff/groff/groff.cc: #include nonposix.h.
2153         (BSHELL): Definition moved to nonposix.h.
2154         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
2155         instead of a literal "-c".
2156         (xbasename): Support file names with several possible slash-type
2157         characters, as given by DIR_SEPS[] in nonposix.h.
2158         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
2159         of literal strings.
2161         * src/preproc/soelim/soelim.cc: #include nonposix.h.
2162         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
2164         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
2165         pic_tab.h.
2167         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
2169         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
2170         eqn_tab.h.
2172         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
2174         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
2175         P_tmpdir is defined, use it instead of the literal "/tmp".
2176         (remove_tmp_files, add_tmp_file): New functions.
2177         (xtmpfile): Record temporary files and register an atexit function
2178         to delete them explicitly, instead of relying on the OS to do
2179         that, which doesn't work on non-Unix systems.
2181         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
2182         (search_path::search_path): Use PATH_SEP instead of a literal
2183         colon.
2184         (search_path::command_line_dir): Ditto.
2185         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
2186         to support non-Posix systems.
2188         * src/libc/libbib/search.cc: #include nonposix.h.
2189         (search_list::add_file): Open the file in binary mode.
2191         * src/libs/libbib/linear.cc: #include nonposix.h.
2192         (file_buffer::load): Remove \r characters preceding \n from the
2193         loaded buffer.
2195         * src/libs/libbib/index.cc: #include nonposix.h.
2196         (make_index_search_item): Open index_filename in O_BINARY mode.
2197         (index_search_item_iterator::get_tag): Ditto.  Remove \r
2198         characters before \n characters.
2199         (index_search_item::check_files): Open files in binary mode.
2200         (index_search_item::munge_filename): Support DOS-style file names
2201         with backslashes and drive letters, use IS_ABSOLUTE.
2203         * src/devices/grops/ps.cc: #include nonposix.h.
2204         (main) [SET_BINARY]: Switch stdout to binary mode.
2206         * src/devices/grolj4/lj4.cc: #include nonposix.h.
2207         (main) [SET_BINARY]: Switch stdout to binary mode.
2209         * src/devices/grolbp/lbp.cc: #include nonposix.h
2210         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
2212         * src/devices/grodvi/dvi.cc: #include nonposix.h.
2213         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
2214         nonposix.h).
2215         (main) [SET_BINARY]: Switch stdout to binary mode.
2216         [_MSC_VER]: Remove an explicit call to _setmode.
2218         * src/include/nonposix.h: New file.
2220         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
2221         operation when building with DJGPP.
2222         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
2223         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
2224         ENVSETUP.
2226         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
2227         MS-DOS.
2228         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
2229         etc. can include a semi-colon on DOS/Windows.
2230         (depend.temp): Use depend1.temp instead of depend.temp1, to
2231         prevent files from overerwiting each other on 8+3 filesystems.
2233         * gendef.sh (t): Change definition to work with DOS/Windows.
2235         doc/groff.texinfo: Apart of some typo corrections, I also changed
2236         some index entris, to make them more non-ambiguous, and also put
2237         @ignore around some parts that are not yet written, to allow the
2238         Info output be readable.
2240 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
2242         Replaced specific checks for function declarations with a generic
2243         routine taken from GNU bfd.
2245         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
2246         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
2247         * configure.in: Use it.
2248         * src/devices/grolbp/lbp.cc, src/include/lib.h,
2249         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
2250         src/roff/groff/groff.cc: Use it.
2251         * Makefile.in, configure: Updated.
2253 2000-06-07  Paco Andres Verdu  <pandres@dragonet.es>
2255         * src/devides/grolbp/lbp.h: Removed unused variables.
2257 2000-05-31  Keith Thompson  <kst@sdsc.edu>
2259         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
2260         strncasecmp().
2262 2000-05-31  Werner LEMBERG  <wl@gnu.org>
2264         * aclocal.m4 (GROFF_SRAND): New function to test the return value
2265         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
2266         * configure.in: Use it.
2267         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
2268         * configure, Makefile.in: Updated.
2270         * configure.in: Add test for strncasecmp().
2271         * src/include/lib.h: Use it.
2273 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
2275         * src/preproc/grn/Makefile.sub: Add MLIB.
2277 2000-05-29  Nix  <nix@esperi.demon.co.uk>
2279         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
2281 2000-05-29  Werner LEMBERG  <wl@gnu.org>
2283         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
2285         * PROBLEMS: Small update.
2287         * src/devices/grolbp/lbp.cc: Various small fixes.
2289 2000-05-28  Keith Thompson  <kst@sdsc.edu>
2291         * src/roff/nroff/nroff.sh: Fix main loop syntax.
2293         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
2295 2000-05-25  Werner LEMBERG  <wl@gnu.org>
2297         * man/roff.man: Removed unused macro.
2299 2000-05-24  Werner LEMBERG  <wl@gnu.org>
2301         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
2302         This is needed e.g. if you do
2303         `make distclean; ./configure; make dist'.
2305 Version 1.16 released
2306 =====================
2308 2000-05-23  Werner LEMBERG  <wl@gnu.org>
2310         Adding font CWI (constant width italic) to devdvi.
2312         * font/devdvi/CWI: New file.
2313         * font/devdvi/generate/Makefile: Add generating rule.
2314         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
2315         tmac/tmac.dvi: Use it.
2316         * NEWS: Announce it.
2318         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
2319         * font/devlj4/generate/Makefile: Cosmetic changes only.
2321         * man/groff.man: Removed most of the redundant description of
2322         special characters (which is in groff_char.man).  Added font
2323         translation CB->CR for devdvi.  Other minor fixes.
2325         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
2326         (registered) symbols.
2328 2000-05-22  Werner LEMBERG  <wl@gnu.org>
2330         * doc/Makefile: Added rule for creating info files.
2332         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
2333         AMS font metrics.
2334         * font/devdvi/generate/Makefile: Fixed dependencies.
2336         * font/devps/*: Regenerated.  Heavy changes for Bookman and
2337         NewCentury Schoolbook!
2338         * font/devps/generate/afmname: Will now run with GNU awk.
2339         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
2340         * font/devps/generate/Makefile: Cosmetic changes only.
2342 2000-05-21  Werner LEMBERG  <wl@gnu.org>
2344         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
2345         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
2346         `.SS' now produces a heading with a smaller size than `.SH'. 
2347         Completely formatted.
2348         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
2350         * man/groff.man: Improved table appearance.  Use of `eo' request
2351         to reduce number of doubled backslashes in macro definitions.
2352         Replacing `\e' with `\(rs'.  Other minor fixes.
2354         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
2355         to have correct line number.
2357         * INSTALL: Small improvement.
2359 2000-05-20  Bernd Warken  <bwarken@mayn.de>
2361         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
2362         WL).
2364 2000-05-19  Bernd Warken  <bwarken@mayn.de>
2366         * man/groff.man: Complete update (with a lot of corrections by WL).
2368 2000-05-18  Werner LEMBERG  <wl@gnu.org>
2370         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
2372         * font/*/*: Implement it.
2373         * man/groff_char.man, NEWS: Document it.
2375         * src/include/unix.h: Removed.  It isn't used.
2377         * doc/groff.texinfo: Slight improvements.
2379 2000-05-17  Werner LEMBERG  <wl@gnu.org>
2381         * README, win32-diffs: Small fixes and improvements.
2383 2000-05-16  Werner LEMBERG  <wl@gnu.org>
2385         * FDL: New file (the Free Documentation License version 1.1).
2387         * doc/groff.texinfo: Added many start-up values for gtroff.
2388         Some structural improvements of the source code.
2390 2000-05-15  Werner LEMBERG  <wl@gnu.org>
2392         * src/roff/troff/input.cc: Added small comment about troffrc-end.
2393         * src/roff/troff/troff.man: Added info about troffrc-end.
2395 2000-05-14  Werner LEMBERG  <wl@gnu.org>
2397         * Makefile.in (EXTRADIRS): Fix typos.
2398         (dist): Handle deletion of old .tar.gz file correctly.
2399         (DISTDIRS): Include all tty output devices.
2401         * doc/groff.texinfo: Adding more cross references; countless other
2402         fixes.
2404 2000-05-13  Werner LEMBERG  <wl@gnu.org>
2406         * MORE.STUFF: Added Robert Marks's utilities.
2408 2000-05-12  Werner LEMBERG  <wl@gnu.org>
2410         Added win32 port contributed by Blake McBride
2411         <blake@florida-software.com>.
2413         * README.WIN32, win32-diffs: New files.
2414         * NEWS: Updated.
2416         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
2417         (tmove, tmove2): Added parentheses to avoid compiler warnings.
2418         (change): Removed unused variables.
2420         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
2421         (savebounds): Changed return value from `int' to `void'.
2422         * src/preproc/grn/hdb.cc: Ditto.
2424         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
2425         final backslash in comment to avoid compiler warning.
2427         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
2429         * doc/groff.texinfo: More fixes.
2431 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
2433         * tmac/tmac.doc: Documentation fix.
2435 2000-05-11  Werner LEMBERG  <wl@gnu.org>
2437         * doc/groff.texinfo: Reading the source code shows up a lot of
2438         omissions and incorrect data...  More conversion to @Deffn macros.
2440 2000-05-10  Werner LEMBERG  <wl@gnu.org>
2442         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
2443         dependency.
2445         * src/roff/troff/request.h: Removing unused `no_break_flag'.
2447 2000-05-09  Werner LEMBERG  <wl@gnu.org>
2449         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
2450         improvements.
2452         * doc/groff.texinfo: Extended history section.  More conversion to
2453         @Deffn macros.  More .tr documentation.
2455 2000-05-07  Werner LEMBERG  <wl@gnu.org>
2457         * doc/groff.texinfo: Completed tab section.  Added info about
2458         fields.
2460 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
2462         * PROBLEMS: Describe configure script fix for OS/390 Unix.
2464 2000-05-05  Werner LEMBERG  <wl@gnu.org>
2466         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
2467         LaTeX 2e).
2468         * NEWS: Document it.
2470         * man/troff.man: Minor optical improvements.
2472 2000-05-03  Werner LEMBERG  <wl@gnu.org>
2474         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
2476         * font/*/*: Implement it.
2477         * man/groff_char.man, NEWS: Document it.
2479 2000-05-02  Werner LEMBERG  <wl@gnu.org>
2481         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
2482         expansion.
2483         * NEWS: Document the three new man pages.
2485         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
2486         * configure: Updated.
2488         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
2490 2000-05-01  Werner LEMBERG  <wl@gnu.org>
2492         Added grap support to grog.
2494         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
2495         * src/roff/grog/grog.man: Document it.
2497         * doc/groff.texinfo, NEWS: Add info about grap support.
2499         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
2500         (with slight fixes by me).
2502         * tmac/groff_tmac.man: New file documenting tmac mechanism.
2503         * tmac/Makefile.sub: Add groff_tmac.man.
2504         * man/roff.man: New file giving overview of roff system.
2505         * man/troff.man: A short reference of troff.
2506         * man/Makefile.sub: Add roff.man and troff.man.
2508 2000-04-30  Werner LEMBERG  <wl@gnu.org>
2510         Added grap support to groff.
2512         * src/roff/groff/groff.cc: Implement it.
2513         * src/roff/groff/groff.man: Document it.
2515         * src/devices/grotty/grotty.man: Add cp1047 device.
2516         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
2517         Ditto.
2518         * src/roff/groff/groff.man: Ditto.
2519         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
2520         * doc/groff.texinfo: Ditto.
2522         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
2523         for cp1047.
2525 2000-04-29  Werner LEMBERG  <wl@gnu.org>
2527         * man/groff_char.man: Add `pc' glyph.
2528         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
2529         * tmac/tmac.tty: Add `pc' glyph.
2530         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
2531         we use cp1047 output device.
2533         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
2534         there are still hardcoded latin1->unicode values in utf8's font
2535         definition files.
2536         * configure: Updated.
2537         * NEWS: Minor clarification.  Updated.
2539         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
2540         Unix.
2542 2000-04-28  Werner LEMBERG  <wl@gnu.org>
2544         Adding EBCDIC code page 1047.
2546         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
2547         font/devcp1047/DESC.proto: New files.
2549         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
2550         either ascii/latin1 or cp1047.
2551         * Makefile.in: Use it.
2552         * configure: Updated.
2554         Replacing and/or adding `md' (mathdot) glyph with `pc'
2555         (periodcentered) in all text fonts.
2557         * font/*/*: Change it.
2559 2000-04-27  Werner LEMBERG  <wl@gnu.org>
2561         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
2563         * configure.in: Add check for strings.h.
2564         * src/include/driver.h: Use HAVE_STRINGS_H.
2565         * src/devices/grolbp/lpb.cc: Remove string.h.
2567         * src/include/groff-getopt.h: New file.  It will be used instead of
2568         getopt.h (to be included in lib.h) to avoid endless problems with
2569         picky C++ compilers.
2570         * src/include/lib.h: Use groff-getopt.h.
2571         * src/include/Makefile.sub: Updated.
2573         * configure: Updated.
2574         * Makefile.in: Updated.
2576         * NEWS: Mention EBCDIC support.
2578 2000-04-26  Werner LEMBERG  <wl@gnu.org>
2580         * TODO: Some additions.
2582 2000-04-25  Werner LEMBERG  <wl@gnu.org>
2584         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
2585         of mso request.
2587 2000-04-23  Werner LEMBERG  <wl@gnu.org>
2589         * src/roff/troff/troff.man: Minor fixes.
2591 2000-04-22  Werner LEMBERG  <wl@gnu.org>
2593         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
2594         `.T' string register and the incompatible definition of the `.T'
2595         number register (compared to Unix troff).
2597         * man/groff_char.man: Add some missing characters.
2598         * font/devutf8/NOTES: Update.
2600 2000-04-21  Werner LEMBERG  <wl@gnu.org>
2602         * src/include/htmlindicate.h, src/include/lib.h,
2603         src/include/posix.h: Fix copyright.
2605         * src/include/Makefile.sub: Update.
2607 2000-04-20  Werner LEMBERG  <wl@gnu.org>
2609         * src/roff/troff/input.cc (input_char_description): Removing
2610         superfluous space char.
2612         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
2614         * doc/groff.texinfo: Document EBCDIC.
2616 2000-04-19  Werner LEMBERG  <wl@gnu.org>
2618         Introducing `shc' as the glyph name for the soft hyphen character.
2620         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
2621         font/devlatin1/R.proto: Use it.
2623         * NEWS: Updated.
2625 2000-04-18  Werner LEMBERG  <wl@gnu.org>
2627         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
2628         dependency on ASCII order.
2630 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
2632         * src/libs/libgroff/illegal.c: Added EBCDIC table.
2633         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
2635         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
2636         to increase portability.
2638 2000-04-15  Werner LEMBERG  <wl@gnu.org>
2640         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
2641         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
2642         the generic `\n' if under OS/390 Unix.
2644         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
2646         * configure: Regenerated.
2648 2000-04-14  Werner LEMBERG  <wl@gnu.org>
2650         * doc/groff.texinfo: More conversions to @Deffn.
2652 2000-04-12  Werner LEMBERG  <wl@gnu.org>
2654         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
2655         with `:'.
2657         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
2659 2000-04-10  Werner LEMBERG  <wl@gnu.org>
2661         * doc/groff.texinfo: More conversions to @Deffn.
2663 2000-04-08  Werner LEMBERG  <wl@gnu.org>
2665         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
2666         Updated to latest version (glibc 2.1.3).
2668 2000-04-07  Werner LEMBERG  <wl@gnu.org>
2670         * doc/Makefile (clean): Include more index files.
2671         Add rule texinfo->dvi.
2673 2000-04-05  Werner LEMBERG  <wl@gnu.org>
2675         * doc/groff.texinfo: Added new index `op' for operators.  More
2676         info on end of sentence characters.  More use of @Deffn.
2678 2000-03-30  Werner LEMBERG  <wl@gnu.org>
2680         * */*.man: Adding a note that a whitespace can be inserted between
2681         a command line option and its parameter -- we are using GNU getopt.
2683         * src/roff/groff/groff.man: Add example of `-m mandoc'.
2685 2000-03-28  Werner LEMBERG  <wl@gnu.org>
2687         Correct anachronism of calling the man macro file with `-man'
2688         instead of `-m man' etc.
2690         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
2691         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
2692         load tmac.<package>.
2694         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
2696         * NEWS: Updated.
2698         * doc/groff.texinfo: Updated.
2700         * tmac/groff_man.man: Copyright added.
2702 2000-03-27  Werner LEMBERG  <wl@gnu.org>
2704         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
2705         typeset the request resp. escape name with a tt font -- due to a
2706         bug in texinfo.tex it is necessary to use the `-e' switch with
2707         texi2dvi.
2709         Improving info about usage of groff units.
2711         Other minor fixes.
2713 2000-03-20  Werner LEMBERG  <wl@gnu.org>
2715         * doc/groff.texinfo: Added section about man macro package
2716         (I've basically taken groff_man.man).  Introducing new indices `ma'
2717         for macros/strings and `gl' for glyph names.  Other minor fixes.
2719         * tmac/groff_man.man: Fixed some typos.
2721 2000-03-19  Werner LEMBERG  <wl@gnu.org>
2723         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
2724         Other minor fixes.
2726         * doc/texinfo.tex: New file.
2728 2000-03-18  Werner LEMBERG  <wl@gnu.org>
2730         * doc/groff.texinfo: Improved section on number registers.  Other
2731         minor updates.
2733 2000-03-16  Werner LEMBERG  <wl@gnu.org>
2735         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
2736         synopsis.
2738         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
2739         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
2740         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
2741         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
2743         * src/preproc/grn/grn.man: Better synopsis; added copyright.
2745         * src/roff/grog/grog.man: Updated copyright date.
2747 2000-03-14  Francisco Andres Verdu  <pandres@dragonet.es>
2749         * configure.in: Added test for strdup.
2751         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
2752         is available.
2754         Replaced dynamic allocation of arrays `[...]' with `new' operator.
2756         Other minor fixes.
2758 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
2760         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
2762 2000-03-11  Werner LEMBERG  <wl@gnu.org>
2764         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
2765         compilers silent.
2766         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
2767         * src/include/lib.h: Remove some spaces.
2769 2000-03-10  Werner LEMBERG  <wl@gnu.org>
2771         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
2772         initializers from arguments (some compilers don't like this).
2774 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
2776         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
2777         used by pic and eqn to tell grohtml where the graphic regions start
2778         and end.
2779         * src/libs/libgroff/Makefile.sub: Use it.
2780         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
2781         graphic_start() and graphic_end() from htmlindicate.cc.
2783 2000-03-09  Werner LEMBERG  <wl@gnu.org>
2785         * tmac/tmac.safer: Will now work correctly in compatibility mode.
2786         * tmac/groff_man.man: More fixes.
2788 2000-03-08  Werner LEMBERG  <wl@gnu.org>
2790         * doc/Makefile: Added texput.log to the `clean' target.
2791         * doc/groff.texinfo: Added info about delimiters for escapes.
2793 2000-03-08  Bernd Warken  <bwarken@mayn.de>
2795         * src/preproc/pic/pic.man: Add info on conversion of pic images to
2796         other graphic formats.
2798 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
2800         * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
2801         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
2802         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
2803         files.
2805 2000-03-07  Werner LEMBERG  <wl@gnu.org>
2807         * doc/groff.texinfo: Spelling fixes.
2809 2000-03-06  Werner LEMBERG  <wl@gnu.org>
2811         * tmac/groff_man.man: Completely revised to cover everything in
2812         tmac.an.
2814         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
2815         Other minor fixings.
2816         * src/roff/troff/env.cc (environment_copy): Improve error message and
2817         fix itoa->i_to_a.
2818         * src/roff/troff/TODO: Updated.
2820         * doc/Makefile: Bug fixes -- this is still provisional, though...
2822         * tmac/eqnrc: Small fixes.
2824 2000-03-05  Abramo Bagnara <abramo@alsa-project.org>
2826         Adding a request `evc' to copy environments.
2828         * src/roff/troff/env.cc (environment::copy, environment_copy):
2829         Implement it.
2830         * src/roff/troff/env.h: Add prototype.
2832 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
2834         Adding strsep() -- Solaris 8 doesn't have it.
2836         * configure.in: Test it.
2837         * src/devices/grolbp/lbp.cc: Add code.
2839 2000-03-05  Werner LEMBERG  <wl@gnu.org>
2841         * src/roff/troff/div.cc (macro_diversion::output,
2842         top_level_diversion::output): Fixing an incompatibility with
2843         original troff: \x'0' updates the .a register also.  Thanks to
2844         <Andries.Brouwer@cwi.nl> for pointing this out.
2845         * doc/groff.texinfo: Document it.
2847         * Makefile.in: Create Makefile.dep if necessary before calling the
2848         submake process to avoid warning about nonexistent file.
2850         * NEWS, PROJECTS: Updated.
2852 2000-03-04  Werner LEMBERG  <wl@gnu.org>
2854         * tmac/troffrc: Add tmac.lbp.
2856 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
2858         * tmac/tmac.lbp: New file.
2859         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
2860         command.
2862 2000-03-03  Werner LEMBERG  <wl@gnu.org>
2864         * Makefile.in: Fixing $(subdir).
2866         * README, NEWS: Small fixes.
2868         * test-groff: Adding path to grolbp.
2870         * configure.in: The (new) file src/xditview/Imakefile.in will be
2871         also configured -- it is now possible to build gxditview in a
2872         directory different from $srcdir.
2874 2000-03-02  Blake McBride  <blake@florida-software.com>
2876         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
2878         * MORE.STUFF: Added website of bell labs and info about plot2dev.
2880 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
2882         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
2883         files.
2885 2000-02-29  Werner LEMBERG  <wl@gnu.org>
2887         Adding GNU getopt to the groff distribution.
2889         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
2890         New files.
2891         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
2892         * aclocal.a4: Remove GROFF_GETOPT function.
2893         * configure.in, Makefile.in, PROBLEMS: Update.
2894         * src/include/lib.h: Replace getopt tests with getopt.h.
2895         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
2897         * doc/groff.texinfo: Further checking/updating.  Adding more index
2898         entries.
2900         * man/groff_out.man: Fix nroff mode activation (for emacs).
2901         * man/groff_font.man: Add missing ligature.
2903 2000-02-28  Werner LEMBERG  <wl@gnu.org>
2905         * doc/groff.texinfo: Further checking/updating.  Adding more index
2906         entries.
2908         * src/devices/grolbp/grolbp.man: Added a comment line at the
2909         beginning of the file (similar to shell scripts) which indicates
2910         that `tbl' should be used as a preprocessor.
2912 2000-02-27  Blake McBride  <blake@florida-software.com>
2914         Adapting groff to MS Visual C++ 6.0 compiler (tested with
2915         Windows NT 4.0).  Uses _MSC_VER define where necessary.
2917         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
2918         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
2919         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
2920         src/include/lib.h, src/libs/libgroff/errarg.cc,
2921         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
2922         src/preproc/refer/label.y, src/preproc/refer/label.cc,
2923         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
2924         src/roff/troff/div.cc, src/roff/troff/env.cc,
2925         src/roff/troff/input.cc, src/roff/troff/node.cc,
2926         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
2927         if_to_a() to avoid name clashes.
2928         * src/include/posix.h: Don't use unistd.h.
2929         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
2930         clause for integrating non-Unix xtmpfile() code.
2931         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
2932         structure; use "rt" for popen() in pipe_source(); add getpid()
2933         dummy function.
2934         * src/roff/troff/node.cc: Use special versions of popen() in
2935         real_output_file() and pclose() in ~real_output_file().
2937 2000-02-27  Werner LEMBERG  <wl@gnu.org>
2939         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
2940         LBP-8 series laser printers).  This code has been contributed by
2941         Francisco Andres Verdu <pandres@dragonet.es>.
2943         * src/devices/grolbp/*: The grolbp output device.
2944         * font/devlpb/*: The font description files.
2945         * Makefile.in: Add grolpb and devlbp subdirectories.
2947         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
2948         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
2949         typographic fixes.
2951         * doc/groff.texinfo: Further checking/updating.  Adding more index
2952         entries.
2954         * NEWS: Updated.
2956         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
2958         * man/groff_font.man: Adding info about obsolete DESC keywords.
2959         * src/devices/grolj4/grolj4.man: Documenting additional DESC
2960         keywords.
2962 2000-02-26  Werner LEMBERG  <wl@gnu.org>
2964         * src/preproc/grn/grn.man: Added info about the gremlin file format
2965         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
2967 2000-02-25  Werner LEMBERG  <wl@gnu.org>
2969         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
2970         friends to be non-integer.
2972         * src/preproc/grn/grn.man: Document it.
2974         * doc/groff.texinfo: Further checking/updating.  Adding more index
2975         entries.
2977 2000-02-24  Werner LEMBERG  <wl@gnu.org>
2979         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
2980         line thicknesses to be integer multiples of this value.
2982         * src/preproc/grn/grn.man: Commenting out the -s option -- the
2983         corresponding code doesn't work (yet).
2985         * doc/groff.texinfo: Further checking/updating.  Adding more index
2986         entries.
2988 2000-02-23  Werner LEMBERG  <wl@gnu.org>
2990         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
2991         specify line thickness instead of base units.  The new default
2992         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
2993         thick lines respectively.
2995         Removed unused variable `prevval'.
2997         * src/preproc/grn/grn.man: Updated.
2999 2000-02-22  Werner LEMBERG  <wl@gnu.org>
3001         * src/preproc/grn/main.cc: Slight formatting.
3003         * src/roff/groff/groff.man: Formatting fix.
3004         * src/preproc/grn/grn.man: Ditto.
3006         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
3008         * doc/groff.texinfo: Further checking/updating.
3010 2000-02-21  Werner LEMBERG  <wl@gnu.org>
3012         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
3014         * test-groff: Added grn subdir to path.
3016         * doc/groff.texinfo: Some restructing and other small improvements.
3018         * src/roff/groff/groff.cc (help): Fixed info string.
3020 2000-02-20  Werner LEMBERG  <wl@gnu.org>
3022         * doc/meref.me: Fix description of .GS request.
3024         * src/roff/troff/troff.man: Fixing typo.
3026         Adding the `grn' preprocessor for gremlin graphic files.
3028         * src/preproc/grn/*: This is the Berkeley distribution written by
3029         David Slattengren and Barry Roitblat, adapted to groff by Daniel
3030         Senderowicz and Werner Lemberg.
3032         * doc/grnexampl.{me,g}: A sample for grn.
3034         * Makefile.in: Added subdirectory entry for grn.
3036         * src/roff/groff/groff.cc: Added support for grn.  It can be now
3037         called with the switch `-g'.
3039         * src/roff/groff/groff.man: Updated.
3041         * src/roff/grog/grog.{man,pl,sh}: Updated.
3043         * NEWS: Updated.
3045 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
3047         * src/include/lib.h: Added xtmptemplate and made xtmpfile
3048         parametrically polymorphic.
3050         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
3051         and the alterations to xtmpfile.
3052         xtmpfile can be requested to return the filename created
3053         and asked not to unlink the temp file.  The default behaviour
3054         if parameters are absent is exactly the same as before.
3056 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
3058         A new request `length' is available which returns the length of a
3059         string in a number register:
3061         * src/roff/troff/input.cc (length_macro): Implement it.
3062         * src/roff/troff/input.cc (init_input_requests): Register it.
3064 2000-02-11  Werner LEMBERG  <wl@gnu.org>
3066         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
3067         of the `substring' request.
3069         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
3070         request.
3072         * src/roff/troff/TODO, NEWS: Updated.
3074 2000-02-09  Werner LEMBERG  <wl@gnu.org>
3076         * src/roff/groff/groff.man: Added an example.
3078 2000-02-06  Werner LEMBERG  <wl@gnu.org>
3080         I've considerably modified the directory structure of the
3081         distribution to get a more vertical layout.  For example, the number
3082         of top level directories has been reduced from 42 to 6.
3084         As a consequence, many changes, especially to the makefiles, were
3085         necessary:
3087         * The makefile variables `top_builddir' and `top_srcdir' have been
3088         introduced.  Virtually all relative paths have been replaced with
3089         absolute ones using these two variables.
3091         * Dependencies (in the files `Makefile.dep') are no longer part of
3092         the distribution.  Instead, they are created during a `make install'
3093         in the build directory.
3095         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
3096         make `top_srcdir' and `top_builddir' absolute.
3098         Some other changes:
3100         * Man pages no depend on the files `VERSION' and `REVISION'.
3102         * The added shell script `mkinstalldirs' will replace `mkdir' in
3103         almost all cases.
3105         * VERSION: Version number increased to 1.16.
3107 2000-02-04  Werner LEMBERG  <wl@gnu.org>
3109         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
3111         * Makefile.in: Removed $(tmac_m) since it is no longer needed
3112         (after an update of the mm stuff).
3114         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
3116 2000-02-03  Werner LEMBERG  <wl@gnu.org>
3118         The .psbb request will now also accept Mac PS images (i.e. using LF
3119         as the EOL character).
3121         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
3122         (with slight modifications).
3123         * troff/input.cc (do_ps_file): Use it.
3125         * test-groff: Add grohtml and grolj4 output devices to PATH.
3127 2000-01-30  Werner LEMBERG  <wl@gnu.org>
3129         * NEWS, MORE.STUFF: Updated.
3131 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
3133         Add the `srand' command to pic.
3135         * pic/lex.cc, pic/pic.y: Implement it.
3136         * pic/pic.man: Document it.
3137         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
3139 2000-01-30  Werner LEMBERG  <wl@gnu.org>
3141         Add a new request `.psbb'.  This does exactly what the external
3142         program psbb did.  It scans a PostScript image file for a
3143         %%BoundingBox comment and extracts the bounding box values (in
3144         PostScript units) which are then stored in the four new (read-only)
3145         number registers `llx', `lly', `urx', and `ury'.
3147         This will allow the usage of the .PSPIC macro without worrying
3148         about unsafe behaviour of groff, i.e., it will work without the
3149         `-U' switch of groff.
3151         * troff/input.cc: Implement it.
3152         * tmac/tmac.pspic: Use it.
3153         * troff/troff.man, grops/grops.man, NEWS: Document it.
3154         * psbb/*, Makefile.in: Remove it since it is no longer needed.
3156         This is bloody C code simply adapted from psbb.c!  Any improvements
3157         welcome.
3159 2000-01-29  Werner LEMBERG  <wl@gnu.org>
3161         * man/groff_font.man: Minor clarifications.
3163         * NEWS: Updated.
3165 2000-01-28  Werner LEMBERG  <wl@gnu.org>
3167         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
3169 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
3171         * man/groff_font.man: Brought up to date regarding tcommand
3172         extensions.
3173         * libgroff/font.cc: Handle everything after `--' as a comment
3174         in the font files.
3175         * devps/*: Added comment delimiter inside devps font files.
3177 2000-01-28  Werner LEMBERG  <wl@gnu.org>
3179         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
3180         \fC...\fP (which now works as expected).
3182         * troff/troff.man: Fix typo.
3184 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
3186         Completed the pass_filenames implementation in troff.
3188         * libdriver/input.cc: Will read the new `F' tcommand.
3189         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
3190         * troff/input.cc: Use it.
3192 2000-01-26  Werner LEMBERG  <wl@gnu.org>
3194         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
3195         font will now be updated even if an invalid font is selected.
3197 2000-01-24  Werner LEMBERG  <wl@gnu.org>
3199         * doc/homepage.ms: Updated for new tmac.arkup.
3201         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
3203         * tmac/tmac.arkup: Cleanup.
3205         Added `\&' to .HTML macro to `leave vertical mode', so to say.
3207         Removed obsolete .LINK macro completely.
3209         The macros .URL, .FTP, and .MAILTO now accept a third argument which
3210         will be immediately appended to the second argument (to be used with
3211         punctuation, for example).
3213         Disabled .CDFTP macro temporarily for security reasons.
3215         * tmac/groff_markup.man: Complete revision for latest changes in
3216         tmac.arkup -- note that it does not yet format correctly with
3217         grohtml :-(
3219 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
3221         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
3222         * devutf8/R.proto: Add mappings for wp, lh, rh.
3223         * devutf8/NOTES: Updated.
3225 2000-01-23  Werner LEMBERG  <wl@gnu.org>
3227         * doc/groff.texinfo: Updated version/copyright info.
3229 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
3231         Added support for two new directives in device descriptions:
3232         `pass_filenames' (to pass the input file name to the output device)
3233         and `use_charnames_in_special' (to support e.g. accented characters
3234         in the `X' request).
3236         * include/font.h, troff/charinfo.h: Declare it.
3238         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
3240         * devhtml/DESC: Use it.
3242         * troff/input.cc: New function encoded_char.
3244         * troff/token.h: Add test for `specialness'.
3246 2000-01-21  Werner LEMBERG  <wl@gnu.org>
3248         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
3249         mistake from the list of files to be installed.
3251 2000-01-18  Werner LEMBERG  <wl@gnu.org>
3253         * README: Added info how to apply patches.
3255 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
3257         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
3259 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
3261         * troff/input.cc: Add support for troffrc-end.
3263         * tbl/main.cc: Altered to issue table-start and table-end special
3264         characters if using the html device.
3266         * devhtml/*: Modified font files to incorporate html encoding of
3267         characters.
3269         * tmac/groff_markup.man: New file documenting tmac.arkup.
3271         * tmac/troffrc-end: New file.  This is invoked after all user
3272         specified macros.  Currently used by the html device to include
3273         tmac.html.  Thus no need for users to specify -mhtml anymore.
3275         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
3276         (MAN7): Add groff_markup.man.
3278         * tmac/tmac.an, tmac/tmac.html: Small html updates.
3280         * tmac/troffrc: tmac.arkup will now be called for the html device.
3282         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
3283         extra device specific information about fonts.
3285         * doc/homepage.ms: New file.  It is an example how an HTML home page
3286         could look like with grohtml.
3288         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
3290 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
3292         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
3293         of Im, Re.
3295         * devutf8/NOTES: Updated.
3297 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
3299         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
3300         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
3301         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
3302         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
3303         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
3304         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
3305         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
3306         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
3307         warnings.
3309         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
3311 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
3313         grolj4: Paper size will be searched case-insensitively.
3315         * include/lib.h: Add check for strcasecmp().
3316         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
3317         * configure.in: Check for strcasecmp().
3319 2000-01-11  Werner LEMBERG  <wl@gnu.org>
3321         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
3322         `REVISION'.
3324 2000-01-10  Werner LEMBERG  <wl@gnu.org>
3326         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
3327         revision scheme.
3329         Add a new read-only register, `.Y', which contains the groff
3330         revision.
3332         * troff/input.cc (init_input_requests): Define it.
3333         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
3334         * doc/groff.texinfo, troff/troff.man: Document it.
3336         * libgroff/Makefile.sub (version.cc): Add definition of
3337         `Version_string[]', consisting of `<major>.<minor>.<revision>'
3338         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
3339         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
3340         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
3341         troff/input.cc, pfbtops/pfbtops.c: Use it.
3343 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
3345         Add a revision scheme to the groff package.
3347         * REVISION: New file.
3348         * libgroff/Makefile.sub (version.cc): Use it to define
3349         `revision_string[]'.
3350         * grops/psrm.cc: Use revision_string (converted to an unsigned
3351         integer) in constructor of resource_manager.
3353 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
3355         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
3356         files.
3357         * Makefile.in (DEVDIRS): Add devutf8.
3358         * grotty/tty.cc: Include device.h.
3359         (glyph): Change type of `code' to `unsigned int'.
3360         (tty_printer): New field is_utf8.  Constructor takes device argument.
3361         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
3362         (tty_printer::add_char): Change type of first arg to `unsigned int'.
3363         (tty_printer::put_char): New function.
3364         (tty_printer::end_page): Use put_char() instead of ::putchar().
3365         (make_printer): Pass device to tty_printer constructor.
3366         * nroff.sh: Determine default device by calling 'locale'.  As a
3367         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
3368         Recognize UTF-8 locales.
3369         * tmac/eqnrc: Recognize utf8 like latin1.
3370         * tmac/troffrc: Device utf8 needs tmac.tty.
3372 2000-01-07  Werner LEMBERG  <wl@gnu.org>
3374         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
3376 2000-01-07  Paul Eggert  <eggert@twinsun.com>
3378         Add a new predefined writeable number register, `year',
3379         which contains the current year.
3381         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
3382         * tmac/tmac.s: Use it.
3383         * troff/input.cc (init_registers): Initialize it.
3385 2000-01-06  Werner LEMBERG  <wl@gnu.org>
3387         * PROBLEMS: Fixed typo.
3389 2000-01-04  Paul Eggert  <eggert@twinsun.com>
3391         * PROBLEMS: Add Y2k advice for the yr number register.
3393 2000-01-03  Paul Eggert  <eggert@twinsun.com>
3395         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
3397 2000-01-02  Werner LEMBERG  <wl@gnu.org>
3399         * tmac/tmac.arkup: Slight modification of macros to provide better
3400         appearance for non-HTML formats.
3402 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
3404         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
3405         does not automatically translate to malloc(n) on all OSes
3406         (e.g., SunOS) so do it explicitly.  Also, check the returned
3407         value.
3409 2000-01-01  Werner LEMBERG  <wl@gnu.org>
3411         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
3413         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
3414         expects this variable
3416 2000-01-01  Gaius Mulley <gaius@glam.ac.uk>
3418         * doc/Makefile: Added instructions to create HTML and text
3419         versions of some files.
3421 1999-12-31  Werner LEMBERG  <wl@gnu.org>
3423         * Updated INSTALL.gen.
3425         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
3426         better resp. correctly with non-HTML devices.
3428 Version 1.15 released
3429 =====================
3431 1999-12-28  Werner LEMBERG  <wl@gnu.org>
3433         * NEWS, VERSION: Changed to 1.15
3435 1999-12-27  Paul Eggert  <eggert@twinsun.com>
3437         * nroff/nroff.man: -S is safer, not safe.
3439         * groff/groff.cc (main): Use `safer', not `safe', in variable
3440         names.  This does not change the behavior.
3442         * troff/input.cc (main): Likewise.
3444         * nroff/nroff.sh: Likewise.
3446         * troff/input.cc (prepend_string): New function.
3447         (main): Prepend -msafer, so that we check macro libraries for
3448         safety.
3450         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
3452 Version 1.14 released
3453 =====================
3455 1999-12-26  Werner LEMBERG  <wl@gnu.org>
3457         * NEWS, VERSION: Changed to 1.14.
3459 1999-12-24  Werner LEMBERG  <wl@gnu.org>
3461         * refer/refer.cc: Fixing the last fix.
3463 Version 1.13 released
3464 =====================
3466 1999-12-23  Werner LEMBERG  <wl@gnu.org>
3468         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
3469         number disappear.
3471         * NEWS: Updated.
3473         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
3475         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
3476         document conventions, the version number must be a real.
3478 Version 1.12.1 released
3479 =======================
3481 1999-12-22  Werner LEMBERG  <wl@gnu.org>
3483         * VERSION: Changed to 1.12.1.
3485 1999-12-22  Alan Rooks  <arooks@istar.ca>
3487         * refer/refer.cc (do_file): Slight modification to satisfy the
3488         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
3489         UnixWare 7.1.
3491 1999-12-20  Werner LEMBERG  <wl@gnu.org>
3493         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
3494         notices.
3496         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
3497         list of unsafe requests.
3499         * pic/pic.man: Fixed a typo.
3501         * man/groff_out.man: Fixed a typo.
3503 1999-12-18  Werner LEMBERG  <wl@gnu.org>
3505         * Makefile.in: Doc fixes.
3507 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
3509         * groff/groff.cc: Missing `U' option added to getopt().
3511         * troff/troff.man: Missing `U' option added to synopsis.
3513 Version 1.12 released
3514 =====================
3516 1999-12-14  Werner LEMBERG  <wl@gnu.org>
3518         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
3519         to the synopsis.
3521         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
3522         with the more appropriate terms `safer' and `unsafe'.
3524         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
3525         sys_nerr and sys_errlist[].
3527         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
3529         * pic/pic.y, pic/pic.cc: Added check for fmod().
3531 1999-12-13  Werner LEMBERG  <wl@gnu.org>
3533         * VERSION: Changed to 1.12.
3535         Here some patches from various sources; most of them taken from
3536         the Debian distribution.
3538         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
3539         tmac/Makefile.sub: New files copied directly from the NetBSD
3540         distribution.  Probably, some additional adaptation later on is
3541         necessary...
3543         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
3544         of unsafe requests.
3546         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
3547         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
3548         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
3549         (`-S') is now the default.
3551         * README, NEWS: Updated.
3553 1999-12-09  Werner LEMBERG  <wl@gnu.org>
3555         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
3557         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
3559 1999-12-06  Werner LEMBERG  <wl@gnu.org>
3561         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
3562         grief than relief today.  Additionally, it is against the GNU
3563         coding standards.
3565         * configure: Recreated.
3567 1999-12-05  Werner LEMBERG  <wl@gnu.org>
3569         * configure.in: Added GROFF_LIBM.
3571         * configure: Recreated.
3573         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
3574         necessary.
3576         * Makefile.in: Added definition of $(LIBM).
3578         * Makefile.comm (LIBM): Removed.
3580         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
3582 1999-12-03  Gaius Mulley <gaius@glam.ac.uk>
3584         * doc/Makefile: Added rule for generation pic.html.
3586         (clean): Files produced by grohtml will be removed also.
3588         * doc/pic.ms: Small fix.
3590         * tmac/tmac.html: Fixed suppression of headers.
3592 1999-11-16  Gaius Mulley <gaius@glam.ac.uk>
3594         * tmac/tmac.html: Fixing horizontal arrows.
3596         Turning off hyphenation.
3598         * tmac/tmac.an: Improved support for grohtml; better indentation,
3599         no footers/headers.
3601 1999-10-31  Gaius Mulley <gaius@glam.ac.uk>
3603         * tmac/tmac.arkup: Added CDFTP macro
3605         * tmac/tmac.html: All headers are turned off for ms, me, and mm
3606         macros.
3608         * tmac/troffrc: Some additions for HTML stuff.
3610 1999-10-06  Gaius Mulley <gaius@glam.ac.uk>
3612         * tmac/tmac.html: Small changes.
3614 1999-09-26  Werner LEMBERG  <wl@gnu.org>
3616         * doc/groff.texinfo: Minor fixes.
3618 1999-09-26  Gaius Mulley <gaius@glam.ac.uk>
3620         * devhtml/TR: Changed spacewidth to 3.
3622         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
3624         * tmac/tmac.html: Moved markup macros to tmap.arkup.
3626         * tmac/tmac.arkup: New file.
3628         * grohtml/ChangeLog: New file.
3630 1999-09-16  Werner LEMBERG  <wl@gnu.org>
3632         * doc/groff.texinfo (Common Features): Added Copying chapter.
3633         Changed format to @smallbook.
3635 1999-09-15  Werner LEMBERG  <wl@gnu.org>
3637         * NEWS: Added info about groff.texinfo.
3639         * doc/groff.texinfo: Will now compile (using texi2dvi) without
3640         warning messages.
3642 1999-09-14  Werner LEMBERG  <wl@gnu.org>
3644         * groff/groff.man: More updates.
3646 1999-09-13  Werner LEMBERG  <wl@gnu.org>
3648         * doc/groff.texinfo: New file.  This manual is still very
3649         rudimentary.  It has been originally contributed by Trent
3650         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
3651         additions by me.
3653         * INSTALL: Added information about the `doc' subdir
3655         * troff/troff.man: Minor fixes.
3657         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
3658         reordered options.
3660         * troff/input.cc (usage): Added missing `-ffam' to usage message.
3662         * Makefile.in (dist): groff-$(version).tar.gz must be removed
3663         also, otherwise it is included itself in another call of `make
3664         dist'.
3666         * groff/groff.cc (synopsis): Removed superfluous space.
3668         * PROJECTS, PROBLEMS, NEWS: Updated.
3670         * VERSION: Updated to 1.12beta.
3672         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
3674         * README: Updated: Included documentation about CVS repository,
3675         mailing lists, and daily snapshots.
3677         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
3679 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
3681         * tmac/tmac.an: If the tag didn't fit into the space that the
3682         macro `TP' specifies, the rest of the tag went into the space for
3683         the next line.
3685 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
3687         * grolj4/lj4.cc: Added duplex printing (option `-d').
3689         * grolj4/grolj4.man: Document duplex printing.
3691 1999-09-12  Werner LEMBERG  <wl@gnu.org>
3693         * doc/Makefile (pic.ps): Fixed rule which caused problems with
3694         non-GNUish sed programs.
3696         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
3697         definition.
3699         * configure.in (LIBS): Added `-lc'
3701         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
3703         * pic/tex.cc (solid_arc): Casting M_PI to double.
3705         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
3707         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
3708         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
3709         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
3711         * groff/groff_man.man: New file.  This manual page was originally
3712         written for the Debian GNU/Linux system by Susan G. Kleinmann
3713         <sgk@debian.org>.
3715         * eqn/list.cc (list_box::compute_metrics,
3716         list_box::compute_sublist_width): Removed variable declaration to
3717         avoid shadowing warnings.
3719         * grops/psrm.cc (resource_manager::process_file): Ditto.
3721         * tfmtodit/tfmtodit.cc (main): Ditto.
3723         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
3724         to avoid shadowing warnings.
3726         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
3727         shadowing loop variable.
3729         * groff/groff.man, troff/troff.man: Added doc about grohtml.
3731 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
3733         New grohtml frontend to convert groff input to html.
3735         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
3737         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
3739         * tmac/eqnrc: Added html device.
3741         * tmac/tmac.html: New file.
3743         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
3744         (troff_output::start_picture, troff_output::finish_picture),
3745         tbl/main.cc (process_input_file):
3746         Surrounded output with `graphics_start' and `graphics_end' so that
3747         the html driver can identify non-text portions.
3749         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
3750         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
3751         grotty/tty.ps (tty_printer::set_char): Additional parameter
3752         `name'.
3754         * include/printer.h: Class printer: New function
3755         set_char_and_width; new variables (is_char_named, is_named_set,
3756         named_command, named_char_s, named_char_n) to hold information
3757         about named characters -- needed by the html driver.
3759         * libdriver/printer.cc (printer::set_ascii_char,
3760         printer::set_special_char): Use set_char_and_width.
3762         * devhtml/*: New device files for html driver.
3764         * grohtml/*: New driver grohtml.
3766 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
3768         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
3769         default strings.
3771 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
3773         * libgroff/string.cc (search): Small fix to test against NULL
3774         pointer.
3776 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
3778         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
3779         \b'abc') were stacked in reverse order when processed in a
3780         diversion.
3782         * troff/node.h: Added `*last' to struct `node' to make the above
3783         fix work.
3785         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
3786         The default scale for the 'f' and 't' graphics functions were 'm'
3787         rather than 'u' (i.e., no scaling).
3789 1999-09-11  Peter Miller  <peterm@jna.com.au>
3791         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
3792         do_file), soelim/soelim.man: Added `-I file' option to soelim,
3793         defining include paths.
3795         * soelim/soelim.cc (include_path_append): New function.
3797 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
3799         * tbl/main.cc (process_options): Unix (at least Documenter's
3800         Workbench) tbl allows arbitrary non-alpha characters between
3801         options.
3803 1999-09-11  Paul Eggert  <eggert@twinsun.com>
3805         Y2k fixes.  Don't assume that the current year precedes 2000.
3807         * doc/meref.me: Add \n(y2, \n(y4.
3809         * tmac/doc-common (Yr): New number register.
3810         (Dd): Don't assume current year precedes 2000.
3812         * tmac/tmac.e (td): Likewise.
3813         (y2, y4): New number registers.
3815         * pic/pic.man: Update reference for pic paper to May, 1991
3816         version.
3818 1999-09-11  Werner LEMBERG  <wl@gnu.org>
3820         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
3821         Removed quotation marks which prevented correct expansion of
3822         $(tmac_wrap).
3824         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
3826 1999-09-10  Werner LEMBERG  <wl@gnu.org>
3828         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
3829         `config.cache'.
3831         * Removed configure.old.
3833 1999-08-31  Werner LEMBERG  <wl@gnu.org>
3835         * VERSION: Updated to 1.11.1
3837 1999-05-27  Werner LEMBERG  <wl@gnu.org>
3839         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
3841         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
3842         added quotations around $(tmac_wrap) to avoid syntax error if
3843         variable is empty.
3845         * configure: Newly generated using autoconf 2.13.
3847         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
3849 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
3851         * README, PROJECTS, NEWS, INSTALL, VERSION, 
3852         doc/Makefile. doc/pic.ms, groff/groff.man:
3853         Prepare for 1.11 release.  No code changes.
3854         Documentation for pic added (doc/pic.ms).
3856 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
3858         * Version 1.10 released.
3860 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
3862         * afmtodit/afmtodit.pl: Avoid comment on first line.
3864 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
3866         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
3867         * configure.in: Call it.
3869         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
3870         (distfiles): Doesn't depend on config.log or config.cache.
3872 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
3874         * grog/grog.sh: Use print "" rather than print in END rule.
3876 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
3878         * tbl/main.cc (process_data): Don't give error for excess data
3879         entries that are comments.
3881 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
3883         * tbl/main.cc (process_data): Fix case where new for-scope rules
3884         silently change meaning of code.
3886 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
3888         * troff/env.cc (hyphenate): Loop over all consecutive sequences
3889         of non-zero hyphenation codes.
3891 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
3893         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
3895 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
3897         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
3899 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
3901         * tmac/tmac.andoc: Make it work in compatibility mode.
3903         * refer/token.h (token_info::is_range_sep): New function.
3904         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
3905         * refer/ref.cc (reference::output): More sophisticated check for
3906         multiple pages.
3908         * devps/prologue.ps (MANUAL): New procedure.
3909         * grops/ps.cc (main): New -m option.
3910         (usage): Include -m.
3911         (ps_printer::~ps_printer): Implement -m.
3913         * aclocal.m4 (GROFF_G): New macro.
3914         * configure.in: Call it.
3915         * Makefile.in (g): Provided by configure.
3917         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
3919         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
3920         translations.
3922         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
3923         (tmac_m, tmac_s): Deleted.
3924         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
3925         tmac_s_prefix): New variables.
3926         (MDEFINES): Change accordingly.
3927         * Makefile.comm (.man.n): Use new TMAC_* variables.
3928         * configure.in (GROFF_TMAC): Call.
3929         * aclocal.m4 (GROFF_TMAC): Define.
3930         * tmac/Makefile.sub (stamp_wrap): New target.
3931         (install_data, uninstall_sub): Handle macro wrapping.
3933 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
3935         * tbl/main.cc (main): Ignore -T option.
3937 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
3939         * devlj4/generate/special.map: Add definition of \(nb.
3941         * tmac/tmac.dvi: Add definition of \(nb.
3943         * troff/dictionary.c (dictionary::dictionary): association::v gets
3944         initialized by association::association.
3946         * tmac/Makefile.sub: Avoid using temporary files when installing.
3948         * troff/env.cc (environment::set_font): Make bad font number a
3949         warning.
3951         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
3953         * Makefile.in (datadir): Use share rather than lib.
3955         * groff/groff.cc (basename): Rename to xbasename.
3957 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
3959         * Makefile (CCLIBS): Don't use.
3960         * Makefile.ccpg: Likewise.
3962         * acgroff.m4: Rename to...
3963         * aclocal.m4: Modify extensively for autoconf 2.
3964         * configure.in: Likewise.
3965         * Makefile.in: Likewise.
3967         * groff/pipeline.c (const): Declare as empty if __STDC__ not
3968         defined.
3969         (xstrsignal): Check for definition of NSIG. Conditionalize
3970         on SYS_SIGLIST_DECLARED.  Make return type const.
3972 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
3974         * troff/input.cc (interpolate_macro): Rephrase missing space
3975         warning.
3977 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
3979         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
3980         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
3981         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
3982         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
3983         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
3984         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
3985         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
3986         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
3987         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
3988         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
3989         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
3990         Fix 'for' scoping.
3992 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
3994         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
3995         string_iterator.
3996         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
3997         file.
3998         (macro_iterator::macro_iterator): Add additional argument.
4000 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
4002         * troff/div.cc (vertical_size::vertical_size): In place of integer
4003         specifying line spacing use cunits specifying post vertical
4004         space.
4005         (macro_diversion::output, top_level_diversion::output): Likewise.
4006         * troff/div.h: Change declarations accordingly.
4007         * troff/env.cc (pending_output_line): Replace ls field by post_vs
4008         field.
4009         (pending_output_line::pending_output_line,
4010         pending_output_line::output, environment::output,
4011         environment::output_line, environment::output_title,
4012         environment::hyphenate_line):  In place of
4013         integer specifying line spacing use cunits specifying post vertical
4014         space.
4015         (environment::environment): Add post_vertical_spacing and
4016         prev_post_vertical_spacing arguments.
4017         (environment::get_post_vertical_spacing): New function.
4018         (environment::total_post_vertical_spacing): New function.
4019         (environment::post_vertical_spacing): New function.
4020         (init_env_requests): Initialize pvs request and .pvs register.
4021         * troff/env.h: Change declarations.
4023 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
4025         * tmac/tmac.pspic: Immediately remove the temporary file.
4027 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
4029         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
4030         height is specified.
4032 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
4034         * tbl/table.c (struct vertical rule, class table_entry): Use int
4035         not short for start_row and end_row.
4037 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
4039         * troff/input.cc (trapping_blank_line, blank_line_macro): New
4040         functions.
4041         (diverted_space_node::reread, process_input_stack): Call
4042         trapping_blank_line() rather than blank_line().
4043         (init_input_requests): Bind "blm" to blank_line_macro().
4045         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
4047 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
4049         * troff/env.cc (environment::possibly_break_line): Require that
4050         width total excluding width of final space node be greater than
4051         the target text length.
4053 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
4055         * troff/node.cc (kern_pair_node::vertical_extent): New function.
4057 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
4059         * troff/node.cc (charinfo_node): New class.
4060         (glyph_node, composite_node): Derive from charinfo_node.  Change
4061         member functions accordingly.
4063 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
4065         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
4067 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
4069         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
4071         * devps/generate/textmap (notsubset): Add.
4073         * tmac/tmac.a4: New file.
4075 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
4077         * pic/main.cc (had_parse_error): New variable.
4078         (do_picture, do_whole_file): Set had_parse_error if yyparse()
4079         returns non-zero.
4080         (main): Return 1 if had_parse_error is true.
4082 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
4084         * grolj4/lj4.cc (main): Avoid use of strtoul.
4086 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
4088         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
4089         iso_8859_1 or $LESSCHARSET is latin1.
4091 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
4093         * hpftodit: New directory.
4094         * Makefile.in (CCPROGDIRS): Add hpftodit.
4095         * devlj4/generate: New directory.
4097 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
4099         * configure.in: Don't use AC_VFORK.
4100         * groff/pipeline.c (run_pipeline): Use fork() always.
4102 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
4104         * grops/ps.cc (main): Use %1 not %s in error message for -w.
4106         * Makefile.in (CCPROGDIRS): Add grolj4.
4107         (DEVDIRS): Add devlj4.
4108         * grolj4, devlj4: New directories.
4109         * tmac/troffrc: Handle lj4.
4110         * tmac/tmac.lj4: New file.
4112 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
4114         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
4116 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
4118         * troff/input.cc (do_if_request): At end of second string, switch
4119         environments before getting next token.
4121 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
4123         * devps/psstrip.sed: Split rule that strips whitespace on either
4124         side of delimiters.
4126 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
4128         * troff/node.h (font_family::make_definition): Add return value to
4129         declaration.  * troff/symbol.h (symbol::operator==,
4130         symbol::operator!=): Likewise.
4132 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
4134         * groff/groff.cc (main, help, synopsis): Handle -S.
4135         (possible_command::insert_arg): New function.
4137         * tmac/tmac.safer: New file.
4138         * tmac/msafer.man: New file.
4139         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
4141 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
4143         * pic/pic.h, pic/main.cc (safer_flag): New variable.
4144         * pic/pic.y (placeless_element): Avoid unsafe operations if
4145         `safer_flag' is set.
4146         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
4148 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
4150         * eqn/lex.cc (get_token): Put call to add_context() in block to
4151         work around Sun C++ 4.0 bug.
4153         * include/stringclass.h (operator +): Use ?: instead of `if' to
4154         work around Sun C++ 4.0 bug.
4156 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
4158         * tbl/main.cc (process_format): Accept - as a synonym for the _
4159         key letter.
4161         * libbib/index.cc (minus_one): Don't declare as const.
4163 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
4165         * troff/input.cc (get_char_for_escape_name): Push back a newline.
4167 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
4169         * troff/input.cc (write_macro_request): New function.
4170         (init_input_requests): Bind write_macro_request to writem.
4172 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
4174         * tmac/tmac.s (@EN): Turn filling back on even if there was no
4175         equation.
4177         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
4179         * tmac/tmac.s (@TS): Renamed from TS.
4180         (TS): Call LP then TS again.
4181         (cov*ab-init): Alias @TS to TS.
4183         * tmac/tmac.s: Allow QP or RS to initialize.
4185         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
4186         Move initializations of PS and LL here.
4187         (par@init): Don't initialize HY.  Avoid changing environment 0.
4188         (par*env-init): Don't all par@reset.
4190 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
4192         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
4194 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
4196         * Makefile.in (MDEFINES): Add LDFLAGS.
4197         (LDFLAGS): Add definition line.
4199 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
4201         * troff/input.cc (get_optional_char): Split off error check into...
4202         (check_missing_character): New function.
4203         * troff/token.h: Declare it.
4204         * troff/env.cc (margin_character): Don't call get_optional_char.
4205         Only call tok.next() after making the node.
4207         * include/lib.h (getopt): Make 2nd argument char *const *.
4209 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
4211         * nroff/conftest.sh: Deleted.
4213 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
4215         * pic/make-dos-dist: Deleted.
4217 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
4219         * devps/psstrip.sed: Strip comments before stripping trailing
4220         white space.
4222 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
4224         * Version 1.09 released.
4226 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
4228         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
4230 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
4232         * libgroff/font.cc (font::load_desc): Fix typo in error message.
4234 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
4236         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
4237         about returning without a value.
4239         * troff/charinfo.h (charinfo::get_special_translation): Cast
4240         TRANSLATE_NONE to int.
4242         * refer/token.cc (lookup_token, store_token): Remove bogus loop
4243         test.  Fix test so that it works with n unsigned.
4245         * pic/pic.y (defaults_table): Fully bracket initializer.
4246         * pic/lex.cc (lookup_keyword): Likewise.
4247         * eqn/lex.cc (token_table, def_table): Likewise.
4248         * eqn/box.cc (param_table): Likewise.
4249         * troff/input.cc (warning_table): Likewise.
4250         * libgroff/font.cc (table): Likewise.
4251         * grops/ps.cc (ps_printer::special): Likewise.
4252         * grops/psrm.cc (resource_manager::process_file): Likewise.
4253         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
4254         * refer/command.cc (command_table): Likewise.
4255         * addftinfo/addftinfo.cc (param_table): Likewise.
4257         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
4258         about temp's being unused.
4259         (unused): New function.
4261         * groff/pipeline.cc: Declare c_fatal.
4263         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
4264         uchar.
4266         * libbib/index.cc (index_search_item::load): Prevent compiler
4267         warnings about fd_closer's being unused.
4268         (unused): New function.
4270 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
4272         * troff/input.cc (copy_mode_error): Make `prefix' static.
4273         Fix typo.
4275         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
4276         defined.
4277         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
4278         HAVE_CC_OSFCN_H and modify accordingly.
4280         * troff/input.cc (init_charset_table): radicalex overlaps
4281         horizontally.
4283         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
4284         udodo!hans@relay.NL.net).
4285         * groff/configure.in: Call it.
4287         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
4288         * groff/configure.in: Call it.
4289         * include/lib.h: Conditionalize declaration of pclose.
4291         * troff/div.cc (last_page_number): New global variable.
4292         (top_level_diversion::begin_page): Exit if we just printed the
4293         last page.
4294         * troff/div.h (last_page_number): Declare it.
4295         * troff/input.cc (parse_output_page_list): Set last_page_number.
4297         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
4298         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
4299         tmac/tmac.X: Likewise.
4300         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
4301         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
4303 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
4305         * tmac/doc-ditroff (hK): Remove groff specific code which
4306         prevented page-breaks between separate manual entries.  If this is
4307         the first page, don't set the page number to 1.
4309         * acgroff.m4 (GROFF_POSIX): New macro.
4310         * configure.in: Use it.
4312         * troff/node.cc (class real_output_file,
4313         real_output_file::real_output_file,
4314         real_output_file::~real_output_file): Conditionalize use of
4315         popen/pclose on POPEN_MISSING.
4316         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
4317         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
4318         (pipe_source): Similarily.
4320         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
4322         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
4323         presence of declarations by trying to compile example with
4324         conflicting declarations.  (gcc only gives a warning for missing
4325         declarations.)
4327 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
4329         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
4330         (from Ulrich Lauther).
4332 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
4334         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
4336 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
4338         * indxbib/indxbib.cc (write_hash_table): Add code for case where
4339         pointers and ints have different sizes.
4341 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
4343         * tmac/tmac.s (par*env-init): Call par@reset.
4345 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
4347         * tmac/tmac.s (@IP): Switch to a new environment when diverting
4348         tag.
4349         (par*push-tag-env, par*pop-tag-env): New macros.
4351 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
4353         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
4354         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
4356         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
4357         comment.  Include <time.h>.
4359 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
4361         * grops/ps.cc (is_small_h, is_small_v): Deleted.
4362         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
4363         lines.
4365 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
4367         * troff/input.cc (read_request): Only print a prompt if reading
4368         from the terminal.  Also clearerr on EOF if reading from the
4369         terminal.  Declare isatty.
4371 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
4373         * refer/label.y: Rename map_t to map_func and extractor_t to
4374         extractor_func.
4376 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
4378         * include/assert.h: Don't use volatile.
4379         * libgroff/assert.cc: Likewise.
4381 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
4383         * troff/input.cc (abort_request): Look at character in tok before
4384         calling get_copy().
4386 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
4388         * troff/troff.h (NO_RETURN): Deleted.
4389         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
4390         * troff/input.cc (exit_troff): Likewise
4392         * Makefile.in: Remove `Making ...' messages since GNU make now
4393         gives these. 
4395         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
4397 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
4399         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
4400         to constant 1 inch.
4402 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
4404         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
4406 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
4408         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
4409         MARK_REG if there was no left delimiter.
4411 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
4413         * pic/troff.cc (troff_output::text): Set line thickness to
4414         relative before outputting text.
4416         * tmac/tmac.e (@k): Don't zero ?T.
4417         ((z): Likewise.
4419 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
4421         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
4423 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
4425         * troff/input.cc (decode_args): Warn about unquoted tabs (from
4426         Paul Eggert).
4428 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
4430         * troff/input.cc (ignoring): New variable.
4431         (ignore): Set ignoring during call to do_define_macro.
4432         (do_define_macro): Clear ignoring before interpolating terminating
4433         macro.
4434         (copy_mode_error): New function.
4435         (get_char_for_escape_name, read_long_escape_name,
4436         interpolate_arg): Use copy_mode_error.
4437         (warning_table): Add WARN_IG.
4438         * troff/troff.h (WARN_IG): Declare.
4439         (WARN_TOTAL): Change accordingly.
4441         * groff/pipeline.c (strsignal): Rename to xstrsignal.
4442         * groff/groff.cc (strsignal): Delete declaration.
4444 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
4446         * troff/div.cc (page_offset): Use 'm' as default scaling.
4448 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
4450         * nroff/nroff.sh: Ignore -u.
4452 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
4454         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
4456 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
4458         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
4459         drawing box.
4460         (B2): With -Tascii, leave additional vertical space before
4461         and after. Ensure that the left and right indent is restored to
4462         what it was even if the point size changes.  Don't call
4463         par@finish. Change the indent, line length and title length
4464         directly.  With -Tascii, make the width of the box 1n less.
4465         (B1): Remember 1n at the current point size.  Don't call
4466         par@reset.  Change the indent, line length and title length
4467         directly.  Ensure that the temporary indent is preserved.
4468         (par*box-mark-top): Turn off no spacing mode.
4470 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
4472         * Makefile.in (dist): Use .gz suffix.
4474 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
4476         * troff/input.cc (main): Add return 0.
4477         * pic/main.cc (main): Use return instead of exit.
4478         * tbl/main.cc (main): Likewise.
4479         * eqn/main.cc (main): Likewise.
4480         * grops/ps.cc (main): Likewise.
4481         * grotty/tty.cc (main): Likewise.
4482         * groff/groff.cc (main): Likewise.
4483         * grodvi/dvi.cc (main): Likewise.
4484         * refer/refer.cc (main): Likewise.
4485         * indxbib/indxbib.cc (main): Likewise.
4486         * lkbib/lkbib.cc (main): Likewise.
4487         * soelim/soelim.cc (main): Likewise.
4488         * addftinfo/addftinfo.cc (main): Likewise.
4489         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
4490         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
4492         * troff/token.h (process_input_stack): Don't declare as static.
4493         * troff/input.cc: Likewise.
4495         * troff/node.c (invalidate_fontno): Make it a static member of
4496         class font_family.  Change callers.
4497         * troff/node.c: Change declaration.
4499         * tbl/main.cc (struct input_entry_format): Add explicit public
4500         specifier.
4501         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
4502         struct double_hline_stuff): Likewise.
4503         * tbl/table.h (struct entry_format): Likewise.
4504         * pic/object.h (struct saved_state): Likewise.
4506         * include/stringclass.h: Add forward declarations of friend
4507         functions that are later declared as inline.  Don't include inline
4508         specifier in friend declaration.
4510         * libgroff/lib.h: Declare popen and pclose.
4511         * acgroff.m4 (GROFF_POPEN): New macro.
4512         * configure.in: Call it.
4514         * include/lib.h (PI): New constant. Undef first if necessary.
4515         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
4516         * grops/ps.cc (degrees, radians): Likewise.
4517         * libgroff/font.cc (font::get_skew): Likewise.
4519         * grops/ps.cc (is_ascii): New function.
4520         (ps_output::put_string): Use is_ascii.  Use csprint rather than
4521         isprint.
4522         (ps_printer::define_encoding): Use csspace.
4523         * libgroff/strtol.c (ISASCII): New macro.
4524         (strtol): Cast arguments to is*() and tolower() to unsigned char.
4525         Use ISASCII rather than isascii.
4526         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
4527         * libgroff/cset.cc: Likewise.
4528         * libdriver/input.cc: Include cset.h.
4529         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
4530         than isdigit().
4532         * refer/refer.cc (main): Use %ld rather than %d for longs.
4534         * libbib/index.cc (index_search_item_iterator::get_tag): Use
4535         S_ISREG macro.
4537         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
4539 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
4541         * troff/input.cc (hyphenation_code): Skip white space between
4542         char/code pairs.
4544 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
4546         * tbl/table.h (table::entry_list_tailp): New member.
4547         (table::table): Initialize it.
4548         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
4549         behaviour.
4551 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
4553         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
4554         with negative horizontal positions. Remove casts of glyph::hpos to
4555         int.
4556         (USHRT_MAX): Delete definition.
4557         (SHRT_MAX, SHRT_MIN): New definitions.
4558         (glyph::hpos): Change type to short.
4559         (tty_printer::end_page): Output multiple backspaces if necessary.
4560          Remove casts of glyph::hpos to int.
4561         
4562 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
4564         * tmac/tmac.s (@RT): New definition.
4566 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
4568         * refer/refer.cc (do_file): Make sure current_filename is set when
4569         filename is "-".
4571         * pic/common.cc (common_output::dot_line): Handle zero length
4572         lines.
4574 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
4576         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
4577         (par@init): Initialize \n[HY].
4579 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
4581         * troff/dictionary.cc (dictionary::remove): Continue when
4582         r < j < i.
4584 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
4586         * Makefile.com (.y.cc): Avoid ending up with two versions of
4587         $(YTABH).
4589 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
4591         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
4592         (\(,C): Likewise.  Also fix typo.
4594 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
4596         * lib.h: Delete extraneous semi-colon.
4598         * Add pso request: `so' from a pipe.
4599         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
4600         (file_iterator::close): New function.
4601         (file_iterator::~file_iterator, file_iterator::next_file): Use
4602         file_iterator::close.
4603         (file_iterator::backtrace): Say `process' rather than `file' when
4604         the stream is popened.
4605         (pipe_source): New function.
4606         (init_input_requests): Bind ".pso" to pipe_source.
4608 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
4610         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
4612         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
4613         digits in lower case.
4615 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
4617         * Version 1.08 released.
4619         * Makefile.in (dist): Insert || true after ln -s commands that
4620         might fail.
4622         * mm: Update to mm 1.16.
4624         * acgroff.m4 (GROFF_CSH_HACK): New macro.
4625         * configure.in: Call GROFF_CSH_HACK.  Substitute for
4626         SH_SCRIPT_SED_CMD.
4627         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
4628         MDEFINES.
4629         * nroff/Makefile.sub (nroff): New target.
4630         (install_data): Install nroff.
4631         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
4632         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
4634 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
4636         * eqn/Makefile.sub (neqn): Add chmod +x.
4638         * grog/Makefile.sub (grog): Remove spurious semi-colon.
4640 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
4642         * troff/input.cc (string_iterator::string_iterator()): Initialize
4643         lineno and count.
4645 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
4647         * troff/div.cc (macro_diversion::space,
4648         top_level_diversion::space): Don't set high_water_mark.
4649         (macro_diversion::output, top_level_diversion::output): Don't
4650         include post line space in high water mark.
4652 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
4654         * eqn/eqn.y: Don't define YYDEBUG.
4655         * pic/pic.y: Likewise.
4657 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
4659         * tmac/tmac.e ([3): Add space after comma following editors.
4660         Change double spaces to single spaces.
4661         ([4): Change double spaces to single spaces.
4663         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
4664         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
4665         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
4666         after %!PS-Adobe- (for Newsprint).
4668         * troff/div.cc (top_level_diversion::begin_page): When
4669         before_first_page is 1, set page_number to 1.
4671 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
4673         * eqn/box.cc (box::top_level): Protect equation with \&.
4675 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
4677         * groff/groff.cc (possible_command::set_name): Delete old name.
4679         * groff/groff.cc (possible_command::~possible_command): Use
4680         a_delete.
4682         * troff/node.cc (troff_output_file::begun_page): New member.
4683         (troff_output_file::troff_output_file): Initialize it.
4684         (troff_output_file::really_begin_page): Only output V command if a
4685         page has been begun.
4687         * pic/pic.y (placeless_element): Delete argument to PRINT after
4688         use.
4690 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
4692         * Make wrapman work.
4693         * troff/div.h (class top_level_diversion): Replace
4694         first_page_begun by before_first_page (with opposite sense).
4695         * Change first_page_begun to before_first_page inverting sense.
4696         * troff/div.cc (class nl_reg): New class.
4697         (init_div_requests): Use class nl_reg for \n(nl.
4698         (top_level_diversion::begin_page): Don't call
4699         output_file::begin_page if before_first_page is 2;
4700         reset before_first_page afterwards.  If have_next_page_number is
4701         false, then always increment page_number.
4702         * tmac/tmac.an: Set traps within TH rather than at the top-level.
4703         Restore compatibility mode after loading, and then disable
4704         compatibility mode in TH.
4706 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
4708         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
4709         past last line.
4710         * troff/node.h (output_file::trailer): Declare.
4711         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
4712         * troff/node.cc (output_file::trailer): New function.
4713         (troff_output_file::~troff_output_file): Move most code into...
4714         (troff_output_file::trailer): New function.
4715         (class troff_output_file): Delete page_length member. Declare
4716         trailer().
4717         (troff_output_file::really_begin_page): Use current page length
4718         for final V command.
4720         * tbl/main.cc (struct options): New decimal_point_char member.
4721         (options::options): Initialize this.
4722         (process_options): Implement decimalpoint option.
4723         (process_data): Pass decimal_point_char option to table::table.
4724         * tbl/table.h (class table): New decimal_point_char member.
4725         (table::table): Add additional argument.
4726         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
4727         second argument specifying decimal point character.  Use this
4728         instead of '.'.
4729         (table::table): Initialize decimal_point_char.
4730         (table::add_entry): Change call to find_dot.
4732         * troff/input.cc (get_copy, token::next): Implement \V.
4733         (interpolate_environment_variable): New function.
4735 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
4737         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
4738         * pic/pic.y: Likewise.
4740         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
4741         Add casts to int.
4742         * refer/ref.cc (reference::insert_field, reference::delete_field):
4743         Likewise.
4744         * troff/number.cc (parse_term): Likewise.
4746         * acgroff.m4 (GROFF_PROG_YACC): New macro.
4747         * configure.in: Use GROFF_PROG_YACC.
4749         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
4750         and g++.
4751         * Makefile.in (OPTIMIZE): New define.
4752         (DEBUG): Empty by default.
4753         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
4755         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
4756         (GROFF_ARRAY_DELETE): Likewise.
4757         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
4759         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
4761         * devps/psstrip.sed: Use different delimiter on last line (so that
4762         it works with BSD 4.4 sed.)
4764 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
4766         * devps/psstrip.sed: Delete comments.
4768         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
4769         optind, opterr, optarg.
4770         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
4771         opterr, optarg.
4773 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
4775         * Makefile.in (check): Dummy target.
4777 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
4779         * Version 1.07 released.
4781         * Integrate mm 1.11.
4783         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
4784         where start_col was meant.
4786 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
4788         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
4790 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
4792         * troff/input.cc (token::next): Make \z\o'...' and similar things
4793         work.
4795         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
4796         constants.
4797         (environment): Add margin_character_flags member.
4798         * env.cc (environment::environment(symbol),
4799         environment::environment(const environment *): Initialize
4800         margin_character_flags.
4801         (margin_character): Rewrite.
4802         (environment::output_line): Add a margin character if
4803         margin_character_flags is non-zero.  Turn off the
4804         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
4805         zero, use margin_character_node without copying and then set
4806         margin_character_node to 0.
4808         * devps/DESC.in: Change minimum size to 1000.
4810 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
4812         * troff/symbol.h (symbol::hash): Change return type to unsigned
4813         long.
4814         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
4815         Add casts to int.
4817         * test-groff: Use -r rather than -x.
4819         * grops/psfig.diff: Include in distribution again.
4821 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
4823         * Makefile.in (dist): Use gzip.
4825 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
4827         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
4828         unistd.h as well as in stdlib.h.
4829         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
4830         defined; otherwise include <sys/types.h> and <unistd.h> if
4831         UNISTD_H_DECLARES_GETOPT is defined.
4833         * configure.in: use builtin(include, ... rather than include(...
4834         * configure: Regenerate with autoconf 1.3.
4836         * libdriver/print.cc (printer::adjust_arc_center): Use new
4837         algorithm suggested by Andy Fyfe.
4839         * libdriver/printer.cc (printer::adjust_arc_center): New function.
4840         * include/printer.h: Declare this.
4841         * grops/ps.cc (ps_printer::draw): Use it.
4842         * grodvi/dvi.cc (dvi_printer::draw): Use it.
4844 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
4846         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
4848 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
4850         * eqn/main.cc (main): Handle "eqn -".
4852 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
4854         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
4856         * mm: Integrate version 1.08.
4858         * pic/troff.cc (troff_output::finish_picture): Set
4859         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
4860         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
4861         if it's not defined. Check whether the register is non-zero rather
4862         than whether it's not defined.
4863         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
4865         * indxbib/indxbib.cc: Move all signal handling into...
4866         * indxbib/signal.c: New file.
4867         * configure.in: Call AC_RETSIGTYPE.
4869         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
4870         * configure.in: Call GROFF_STRUCT_EXCEPTION.
4871         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
4873         * troff/input.cc (token::token, token::operator=): Work round SGI
4874         C++ bug.
4875         * pic/object.cc (position::position): Likewise.
4877 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
4879         * pic/pic.h: Move declaration of hypot().
4881 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
4883         * pic/pic.h: Declare hypot().
4885         * pic/pic.h: Define M_PI if necessary.
4887 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
4889         * tmac/tmac.e (re): Add alternative version that doesn't use groff
4890         `.ta T' feature.
4892         * devps/prologue.ps (RE): Handle the possibility that the old font
4893         doesn't have a FontName entry.
4895 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
4897         * tmac/tmac.e (fam): Redefine to set family in environment 2.
4898         (@C): Use @fam not fam.
4900 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
4902         * lookbib/lookbib.cc (main): Change type of start to const char *.
4903         * lkbib/lkbib.cc (main): Likewise.
4905         * eqn/lex.cc (definition::definition): Don't use member
4906         initializer syntax for members of anonymous unions.
4908         * troff/input.cc (input_stack::backtrace): Change type of to const
4909         char *.
4911 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
4913         * include/stringclass.h (class string): Declare inline friend
4914         functions as inline in class declaration.
4915         * troff/hvunits.h (class hunits, class vunits): Likewise.
4916         * include/refid.h (class reference_id): Likewise
4917         * troff/troff.h (points_to_units(units), scale(units, double)):
4918         Delete declarations.
4919         * libdriver/input.cc (get_char): Delete declaration.
4920         * include/lib.h: Change 2nd argument of getopt from const char **
4921         to char **.
4922         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
4923         char **' before assigning to a `const char **'.
4924         * tbl/table.cc: Delete extra declarations of prints().
4926 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
4928         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
4929         char **' before assigning to a `const char **'.
4931         * libgroff/errarg.cc (errarg::errarg): Don't use member
4932         initializer syntax for members of anonymous unions.
4934 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
4936         * mm: Integrate version 1.07.
4938 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
4940         * troff/input.c (translate2): Rename to
4941         (translate_no_transparent).
4942         (init_input_requests): Rename tr2 to trnt.
4944 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
4946         * troff/charinfo.h (class charinfo): Add transparent_translate field.
4947         (charinfo::set_translation, charinfo::set_special_translation):
4948         Add second argument that specifies value for
4949         transparent_translate.
4950         (charinfo::get_translation, charinfo::get_special_translation):
4951         Add optional second argument that specifies whether translation is
4952         being used for transparent throughput.
4953         * troff/input.cc (charinfo::set_translation,
4954         charinfo::set_special_translation): Handle second argument.
4955         (charinfo::charinfo): Initialize transparent_translate.
4956         (translate): Split main part off into
4957         (do_translate): New function.  Pass argument saying whether
4958         translation applies to transparent throughput.
4959         (translate2): New request.
4960         (init_input_requests): Bind translate2 to `tr2'.
4962 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
4964         * tbl/table.h (class table): Add `nokeep' flag.
4965         * tbl/main.cc (process_options): Handle `nokeep' option.
4966         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
4967         table::do_bottom): Don't output keep/release macro definitions or
4968         calls when `nokeep' option has been specified.
4970 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
4972         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
4974 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
4976         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
4977         block_entry::divert, alphabetic_block_entry::divert): Add extra
4978         argument giving column separation.
4979         (table::compute_widths): Pass column separation to
4980         table_entry::divert().
4981         (block_entry::do_divert): If an entry spans multiple columns and a
4982         minimumum width has been specified for each column, then set the
4983         line length to the sum of the widths (plus possibly the column
4984         separations).
4986         * troff/input.cc (set_escape_char): Don't set the escape_char
4987         until after calling has_arg().
4989 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
4991         * tbl/table.cc (table::do_top): Add missing \s0 for double box
4992         case.
4994         * tbl/table.cc (table::print_double_hline): Avoid extra new line
4995         in case where r > nrows - 1.
4997         * tbl/table.cc (BODY_HEIGHT): Deleted.
4998         (LINE_SEP): New definition.
4999         (table::print_single_hline, table::print_double_hline,
5000         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
5001         table::do_row, table::do_top): Use LINE_SEP space before a line
5002         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
5004         * tbl/table.cc (text_entry::print_contents): New function.
5005         (text_string_name, right_text_string_name): Deleted.
5006         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
5007         (simple_text_entry::do_width, numeric_text_entry::do_width,
5008         alphabetic_text_entry::do_width): Don't store the contents of the
5009         entry in a string.
5010         (left_text_entry::simple_print, right_text_entry::simple_print,
5011         center_text_entry::simple_print,
5012         alphabetic_text_entry::simple_print,
5013         numeric_text_entry::simple_print): Print the entry directly
5014         instead of using the stored string.
5016 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
5018         * devps/Makefile: Strip PostScript files.
5019         * devps/prologue: Rename to...
5020         * devps/prologue.ps.
5021         * devps/psstrip.sed: New file.
5022         * devps/download: Use .pfa rather than .ps for installed versions
5023         of fonts.
5025 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
5027         * troff/env.cc (input_trap): Give a warning if the argument is out
5028         of range.
5030         * troff/env.cc (adjust): Treat negative argument as missing. Round
5031         argument > 5 down to 5.
5033         * troff/env.cc (center, right_justify): Make negative argument zero.
5035         * troff/div.cc (page_offset, vertical_position_traps): Treat
5036         invalid argument as missing.
5037         * troff/env.cc (line_spacing, line_length, title_length, indent,
5038         underline, hyphen_line_max_request, control_char,
5039         no_break_control_char, widow_control_request, adjust, input_trap,
5040         point_size): Likewise.
5041         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
5042         constant_space): Likewise.
5043         * troff/input.cc (compatible, shift, warn_request,
5044         set_escape_char): Likewise.
5046         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
5047         * tbl/table.cc (table::table): Likewise.
5049         * Makefile.dev (install_dev): depends on $(DEVFILES).
5051 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
5053         * devX75, devX75-12, devX100, devX100-12: New directories.
5054         * Makefile.in: Add these to DEVDIRS.
5056         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
5057         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
5058         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
5059         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
5060         targets.
5061         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
5062         (uninstall): New target.
5063         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
5064         uninstall_prog, uninstall_dev): New targets.
5066         * troff/div.cc (return_request): Treat an invalid argument as
5067         missing.
5069 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
5071         * tmac/tmac.e ((f): Set up the environment even when there's a
5072         current diversion.  Transperently throughput a call to @N.
5073         (@N): New macro.
5075 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
5077         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
5078         up to vertical resolution.
5080         * tbl/table.cc (table::do_row): Change row number after printing
5081         stuff list.
5083         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
5085 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
5087         * Rename CHANGES to NEWS.
5089 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
5091         * libgroff/new.cc (operator new): Avoid calling malloc(0).
5093 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
5095         * man.ultrix: Removed.
5097 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
5099         * Makefile.comm (extraclean): Delete files whose names begin with
5100         `='.
5102         * pic/troff.cc (troff_output::text): Fix typo in implementation of
5103         aligned text.
5105 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
5107         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
5108         * troff/div.cc (page_length, need_space, space_request): Treat
5109         invalid optional argument as missing.
5110         * troff/env.cc (number_lines): If the first argument is present
5111         but not a number, turn on line numbering, don't change the next
5112         line number and parse the remaining arguments.
5114         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
5116 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
5118         * eqn/box.h: Change declaration accordingly.
5119         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
5120         the specified size was bad but don't give an error.  Check for
5121         overflow.
5122         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
5123         * eqn/lex (do_size): Likewise.
5125 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
5127         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
5128         compatible headers.
5130 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
5132         * tbl/table.cc (table::init_output): Improve error message when
5133         table won't fit on one page.
5135 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
5137         * pic/troff.cc (troff_output::start_picture): Generate line
5138         containing a horizontal motion equal to the width of the picture.
5140         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
5141         using GROFF_COMMAND_PREFIX environment variable.
5143 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
5145         * mdate.sh: Use $NF rather than $(NF).
5147 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
5149         * pic/main.cc (main):  Use %1 not %c in argument to warning.
5151         * eqn/main.cc (main): Output code to check that geqn was given the
5152         correct -T option.
5154 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
5156         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
5157         `ln -s ../Makefile .; make; rm -f Makefile'.
5159         * troff/hyphen: Rename to...
5160         * troff/hyphen.us:
5161         * troff/input.cc (main): Delete -H option. Don't call
5162         read_hyphen_file().
5163         * troff/env.cc: Include searchpath.h and macropath.h.
5164         (exception_dictionary): Deleted.
5165         (ht): Deleted.
5166         (read_hyphen_file): Deleted.
5167         (hyphenation_language): New struct.
5168         (class trie, class hyphen_trie): Move declarations up.
5169         (trie_node::~trie_node): Deleted.
5170         (trie::delete_trie_node): New function.
5171         (trie::do_delete): New pure virtual function.
5172         (hyphen_trie::do_delete): New function.
5173         (trie::~trie): New function.
5174         (hyphen_trie::~hyphen_trie): New function.
5175         (trie::clear): No need to chcek that tp is not 0.
5176         (current_language, language_dictionary): New variables.
5177         (hyphen_word): Give an error if no current language.  Use
5178         exceptions dictionary in current language.
5179         (hyphen_trie::read_patterns_file): Find file using macro_path.
5180         Allow comments (starting with %) in patterns file.  Don't make it
5181         a fatal error if the file can't be found.
5182         (hyphenate): Return if no current language.  Get the exceptions
5183         dictionary and the hyphenation patterns from the current language.
5184         (set_hyphenation_language): New variable.
5185         (hyphenation_patterns_file): New function.
5186         (hyphenation_language_reg): New class.
5187         (hyphenation_language_reg::get_string): New function.
5188         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
5189         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
5190         register.
5191         * groff/groff.cc (main, help, synopsis): Delete -H option.
5192         * include/Makefile.sub: Don't define HYPHENFILE.
5193         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
5194         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
5195         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
5196         hyphenation patterns.
5198 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
5200         * eqn/neqn.sh: New file.
5201         * eqn/Makefile.sub: Handle neqn.sh.
5203         * eqn/eqn.h: Declare `nroff' variable.
5204         * eqn/box.cc (param_table): Add `nroff' param.
5205         (nroff): Define it.
5206         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
5207         variable.
5208         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
5210         * troff/troff.h (WARN_FONT): New warning.
5211         (WARN_TOTAL): Change accordingly.
5212         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
5213         (warning_table): Add WARN_FONT.
5214         * troff/node.cc (mount_font_no_translate): Pass argument to
5215         font::load_font.  If this is non-zero, give a warning.
5216         Don't give an error message when accessing a font that has already
5217         been found to be invalid.
5218         * include/font.h (font::load, font::load_font): Add additional
5219         optional argument which suppresses error message if the font is
5220         not found.
5221         * libgroff/font.cc (font::load_font): Handle additional argument.
5222         (font::load): Add additional argument. If this is non-null, set it
5223         to 1 and don't give error message.
5225         * include/printer.h (printer::end_page): Add argument giving
5226         length of page.
5227         * libdriver/input.cc (do_file): Pass this.
5228         * grops/ps.cc (ps_printer::end_page): Add argument.
5229         * grodvi/dvi.cc (dvi_printer::end_page,
5230         draw_dvi_printer::end_page): Add argument.
5231         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
5232         columns_per_page members. New member nlines.
5233         (DEFAULT_LINES_PER_PAGE): Deleted.
5234         (tty_printer::tty_printer): Don't compute lines_per_page from
5235         font::paperlength. Don't compute columns_per_page from
5236         font::paperwidth.
5237         (tty_printer::add_char): Don't check horizontal position against
5238         columns_per_page. Grow glyphs vector if neccessary.
5239         (tty_printer::end_page): Add argument giving page_length in units.
5240         Discard lines past end of page.
5242 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
5244         * tmac/tmac.tty-char: Fix definition of \(/l.
5246         * tmac/tmac.X: Define \(en.
5248 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
5250         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
5251         lpq, then use lp rather than lpr.
5253         * tmac/tmac.s (par@reset): Don't call `ad'.
5254         (par*env-init): Call `ad'.
5256 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
5258         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
5259         date.
5261         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
5262         * indxbib/indxbib.cc: Likewise.
5264 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
5266         * libgroff/putenv.c: New file.
5267         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
5268         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
5269         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
5270         stdlib.h with AC_HAVE_HEADERS.
5272 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
5274         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
5275         does not exist.
5277 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
5279         * eqn/box.cc (gsize): Make it an int.
5280         (set_gsize): Parse argument handling increment or decrement.
5281         (box::top_level): Convert gsize to a string.
5283         * troff/input.cc (exit_troff): Make buf unsigned char [].
5284         Call to make_temp_iterator casts buf to char*.
5286         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
5288         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
5289         * Makefile.cpg (depend.temp): Likewise.
5291         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
5293         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
5295 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
5297         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
5299 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
5301         * Version 1.06 released.
5303         * Integrate mm 1.04.
5305 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
5307         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
5309 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
5311         * afmtodit/afmtodit.pl: Add -n option that disables generation of
5312         ligatures command.
5313         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
5314         afmtodit. Regenerate.
5316         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
5317         @f back past the current position.
5319         * tmac/tmac.e: Change calls to @R so that comments are not part of
5320         arguments.
5322 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
5324         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
5326         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
5327         check that we can link a call to a function declared in <stdio.h>.
5328         (GROFF_UNISTD_H): New macro.
5329         * configure.in: Call it.
5330         * Makefile.in: Document it.
5331         * include/posix.h: New file.
5332         * troff/troff.h: Don't include <osfcn.h>
5333         * troff/input.cc: Include posix.h.
5334         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
5335         osfcn.h.
5336         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
5337         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
5338         <fcntl.h>.
5339         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
5340         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
5341         * libbib/search.cc (O_RDONLY): Delete definition.
5342         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
5343         Don't include <osfcn.h>.
5345         * acgroff.m4 (GROFF_TIME_T): New macro.
5346         * configure.in: Call it.
5347         * Makefile.in: Document it.
5349         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
5350         * configure.in: Call it.
5351         * Makefile.in: Document -DTRADITIONAL_CPP.
5352         * include/ptable.h: Don't include generic.h.
5353         (name2): Define it.
5355         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
5356         Afterwards remove [T1 and [T2.
5357         (ref*spec!0, ref*spec!2): Use T1 rather than T.
5358         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
5359         (ref*add-T2): Renamed from ref*add-T.
5360         (ref*add-T1): New macro.
5362 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
5364         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
5366         * libbib/index.cc: Include <fcntl.h>.
5367         (O_RDONLY): Define if necessary.
5368         (make_index_search_item, index_search_item_iterator::get_tag,
5369         index_search_item::check_files): Use O_RDONLY.
5370         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
5371         (O_RDONLY): Define if necessary.
5372         (search_list::add_file): Use O_RDONLY.
5373         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
5374         <sys/stat.h>.
5375         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
5376         (main): Use these.
5378         * libbib/index.cc (S_ISREG): Define it if necessary.
5379         (index_search_item::load): Use S_ISREG.
5381         * include/driver.h: Include <errno.h>.
5383 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
5385         * eqn/box.cc (body_height): Increase default value to 85.
5386         (body_depth): Increase default value to 35.
5388 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
5390         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
5391         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
5392         protected from expansion with \E.
5394         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
5396         * Makefile (Makefile): New target.
5398         * Makefile.sub (configure, distfiles): New targets.
5400         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
5401         construct.
5403 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
5405         * eqn/box.cc (param_table): Add body_height and body_depth.
5407         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
5409 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
5411         * psbb/Makefile.sub: Don't link with libgroff.a.
5413         * acgroff.m4 (GROFF_PUTENV): New macro.
5414         * configure.in: Call GROFF_PUTENV.
5415         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
5416         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
5417         is defined.
5419         * troff/env.cc (distribute_space): Rename force_forward argument
5420         to force_reverse.  Reverse the list if force_reverse is true.
5422 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
5424         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
5426         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
5427         height or depth to be negative.  Guard against SUP_RAISE quantity
5428         being negative.
5430 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
5432         * devps/generate/textmap: Add `an' (arrowhorizex).
5433         * tmac/tmac.ps: \(an overlaps horizontally.
5434         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
5436         * devps/symbolchars: Add arrowverttp, arrowvertbt.
5437         * devps/textmap: Add arrowvertex.
5438         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
5439         updownarrow delimiters.
5440         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
5442         * tbl/table.cc (simple_entry::position_vertically,
5443         block_entry::position_vertically):  For a centered entry, perform
5444         the motion in two stages.
5446         * refer/refer.cc (split_punct): Don't call lookup_token if there
5447         is no token.
5449 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
5451         * troff/input.cc (token::next): Delete token_node after copying
5452         token.
5454         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
5455         cur_point_size.
5457         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
5459         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
5461 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
5463         * grops/ps.cc (usage): -b option takes an argument.
5465         * devps/prologue (PLG): New procedure.
5466         * grops/ps.cc (main, usage): New -g option.
5467         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
5468         length using PLG.
5470 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
5472         * include/cset.h: Include <limits.h> if we have it.
5474         * libgroff/illegal.cc: New file.
5475         * include/lib.h (illegal_input_char): Use table.
5476         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
5477         * pic/lex.cc (ARG1): Renumber to 14.
5478         * eqn/lex.cc (ARG1: Likewise.
5480         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
5481         (eg 1.05.90) correctly.
5483 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
5485         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
5486         Rename $r and $R registers to $v and $V.
5487         ($r, $R): Initialize to 0.
5488         (@v, @V): New macros.
5489         (sz): Call @v.
5490         (@M): Call @V.
5492         * troff/input.cc (main, usage): Add -R option that says not to
5493         load troffrc.
5494         * eqn/main.cc (main, usage): Rename -n to -R.
5496 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
5498         * devps/DESC.in: Leave font positions 5-9 blank.
5499         * devdvi/DESC.in: Likewise.
5501         * grog/grog.pl: Handle `.PS <file' correctly.
5503         * troff/input.cc (input_stack::push): Improve error message when
5504         input stack limit exceeded.
5506 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
5508         * refer/refer.cc (main): Fix typo in handling of `a' option.
5510         * refer/refer.cc (do_bib): In state START after a newline remain
5511         in state START.
5513         * groff/groff.sh: Deleted.
5514         * groff/Makefile.sub: Delete handling of groff.sh.
5516         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
5517         to determine whether to use \X'ps:...'.
5518         * tmac/troffrc: Set 0p register to 0.
5519         * tmac/tmac.ps: Set 0p register to 1.
5521         * groff/groff.cc: Support -X option. Give warning for -TXps and
5522         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
5523         * tmac/troffrc: Support -r.X=1.
5525         * pic/troff.cc (troff_output::dot): Don't test
5526         zero_length_line_flag.
5528 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
5530         * include/lib.h: Declare getopt() and friends unless
5531         STDLIB_H_DECLARES_GETOPT is defined.
5533         * doc/chars.tr: Delete.
5534         * man/groff_char.man: New file.
5536 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
5538         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
5539         user has changed register format.
5541 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
5543         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
5544         `postpro' command in DESC file.  Get spooler command from `print'
5545         command in DESC file.  Execute spooler command with /bin/sh.
5547         * groff/groff.cc: Split Unix-specific parts into...
5548         * groff/pipeline.c: New file.
5550         * LICENSE: Delete.
5551         * COPYING: New file.
5552         * all files: Update copyright notices.
5554         * Rearrange files.  Redo Makefiles.  Use autoconf.
5556 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
5558         * troff/input.c (charinfo_to_node_list): Interpret character
5559         definition with escape_char of `\'.
5561 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
5563         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
5564         Define INT_DIGITS as big enough for 64-bit integer.
5565         * lib/strtol.c: Don't include lib.h.
5566         * lib/lib.h: Delete ifdef __cplusplus stuff.
5568 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
5570         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
5571         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
5572         get DESC from current directory.
5574 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
5576         * tbl/main.c (main): Always reset the line number when reading
5577         from stdin.
5579         * tbl/table.c (table::print_single_hline, table::print_double_hline,
5580         table::define_bottom_macro, table::do_row, table::do_top): Round
5581         vertical spacing up to vertical resolution.
5583 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
5585         * ps/ps.h (enum resource_type): Avoid comma at end of
5586         enumerator-list.
5587         * dvi/dvi.c (class dvi_printer): Likewise.
5588         * dvi/tfmtodit.c (gf::load): Likewise.
5589         * refer/label.y (struct expression): Likewise.
5590         * refer/refer.c (class label_processing_state): Likewise.
5591         * refer/indxbib.c (do_file): Likewise.
5592         * troff/troff.c (enum warning_type): Likewise.
5593         * tbl/main.c (process_data): Likewise.
5594         * troff/charinfo.h (class charinfo):
5596 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
5598         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
5600 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
5602         * groff.c: Move to new groff subdirectory.
5603         * groff/Makefile: New file.
5604         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
5606         * man/mdate.sh: Use ls -L if supported.
5608         * Consolidate all header files produced by gendef into lib/defs.h.
5609         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
5610         Don't include path.h.
5611         * lib/Makefile (path.h): Don't generate.
5612         * troff/input.c: Include defs.h. Don't include config.h.
5613         * troff/Makefile (config.h): Don't generate.
5614         * refer/index.h: Don't include suffix.h.
5615         * refer/index.c: Include defs.h.
5616         * refer/indxbib.c: Include defs.h.
5617         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
5618         defs.h.
5619         * refer/Makefile (suffix.h, path.h): Don't generate.
5620         * groff.c: Don't include config.h. Include defs.h.
5621         * Makefile (config.h): Don't generate.
5622         (lib/defs.h): Generate.
5623         (topclean): Remove lib/defs.h.
5625 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
5627         * lib/malloc.c, lib/getpagesize.h: Deleted.
5628         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
5629         related stuff.
5630         * lib/Makefile: Delete malloc-related stuff.
5631         * lib/new.c: Workaround COOKIE_BUG if necessary.
5633         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
5634         needed header files directly.
5635         * refer/refer.h: Omit definition of DEFAULT_INDEX.
5636         * Makefile: Include definition of DEFAULT_INDEX in path.h.
5638 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
5640         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
5641         argument.
5642         * lib/font (font::load_desc, font::load): Don't split argument of
5643         unknown command.
5644         (font::handle_unknown_font_command): Change type.
5645         * ps/ps.c (ps_font::handle_unknown_font_command,
5646         handle_unknown_desc_command): Change type.
5647         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
5649 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
5651         * lib/font.h (font::handle_unknown_font_command): Add file and
5652         line arguments.
5653         * lib/font.c (font::handle_unknown_font_command):
5654         * ps/ps.c (ps_font::handle_unknown_font_command):
5655         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
5656         lineno arguments.  Use _with_file_and_line functions for error
5657         reporting.
5659         * lib/fontfile.c (font::unknown_desc_command_handler): New static
5660         data member.
5661         * lib/font.c (font::set_unknown_desc_command_handler): New
5662         function.
5663         (font::load_desc): For unknown commands, call
5664         unknown_desc_command_handler if not null.
5665         * lib/font.h (class font): Declare them.
5666         (FONT_COMMAND_HANDLER): New typedef.
5667         * ps/ps.c (handle_unknown_desc_command): New function.
5668         (main): Set bflag if we had a -b option. Call
5669         font::set_unknown_desc_command_handler.
5670         (broken.h): Don't include.
5671         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
5672         submake 
5673         * ps/devps/Makefile: Add `broken' command to DESC file using
5674         BROKEN_SPOOLER_FLAGS.
5676         * macros/tmac.e ([, ]): Add as synonyms for { and }.
5678         * macros/tmac.e ($p): Only exdent if \$3 > 0.
5680         * macros/tmac.e (@R, @S): New macros.
5681         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
5682         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
5683         Declare $H, $[0-9], .. macros with @S.
5684         Declare |0, |1, |2, |3 strings with @S.
5686         * macros/tmac.e (@S): Rename to @U.
5688         * macros/tmac.e (@z): Define @b and bp as empty instead of
5689         deleting them,
5691         * macros/tmac.e (@m): Deleted.
5692         (@h): Don't call @m.
5693         (@z): Don't set @m trap.
5695         * macros/tmac.e ($h, $f): Define |z as empty string.
5697         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
5698         (@q): Likewise.
5700         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
5701         removing them.
5702         ()f): Likewise for * register.
5704         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
5705         argument is missing, don't change $R.  Call sr with three
5706         arguments when initializing.
5708 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
5710         * macros/tmac.e (sr): New macro.
5711         Initialize $r and $R using sr.
5713         * macros/tmac.e (,): Delete \*(#[.
5715         * troff/env.c (set_tabs): Read the tab type even if the position
5716         is bad.  Allow the position of the first tab stop to be negative.
5718 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
5720         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
5721         _POSIX_VERSION.
5722         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
5723         rather than -DPATHCONF_MISSING.
5724         * Makefile: Get rid of PATHCONF_MISSING.
5726         * refer/map.c: New file.
5727         * refer/index.c: Interface to mmap through map.c.  Rename map_size
5728         to map_len.
5729         * refer/Makefile: Handle map.c.
5730         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
5732 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
5734         * Makefile: RANLIB should be `true' if there is no ranlib.
5735         * lib/Makefile (libgroff.a): Simplify.
5736         * driver/Makefile (libdriver.a): Simplify.
5738         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
5739         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
5740         defined.
5742 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
5744         * troff/env.c (compare_ranges): Declare as extern "C".
5746         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
5748         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
5750 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
5752         * pic/troff.c (troff_output::text): Merge in grops_output::text,
5753         but conditionalize use of \X based on \*(.T.
5754         (grops_output::*): Deleted.
5755         * pic/output.h: Delete declaration of make_grops_output.
5756         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
5757         by default. -n sets it to 0.
5758         (usage): Corresponding changes.
5759         * groff.c (main): Don't pass -x or -p to pic.
5760         * groff.sh: Likewise.
5762         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
5763         to be non-zero.
5765         * ps/devps/afmtodit: Change calculation of asc_boundary and
5766         desc_boundary.  Make these bounds inclusive.
5767         * ps/devps: Regenerate font files.
5769 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
5771         * macros/tmac.latin1: New file.
5772         * macros/tmac.tty-char: Use tmac.latin1.
5773         (tmac.tty-tr): Deleted.
5774         * macros/Makefile: Install tmac.latin1.
5775         * macros/tmac.dvi: Use tmac.latin1.
5776         * macros/troffrc: Translate \[char160] onto no-break space here.
5777         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
5779 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
5781         * macros/tmac.Xps: Use `do' request.
5783         * macros/tmac.ps: Use `do' request.
5785         * macros/tmac.e (@C): Use `do' request.
5787         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
5788         * macros/Makefile: Install tmac.X*.
5790         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
5791         * tty/Makefile: Don't install tmac.tty*.
5792         * macros/Makefile: Install tmac.tty*.
5794         * dvi/tmac.dvi: Move to macros.
5795         * dvi/Makefile: Don't install tmac.dvi.
5796         * macros/Makefile: Install tmac.dvi.
5798         * ps/tmac.ps*: Move to macros.
5799         * ps/Makefile: Don't install tmac.ps*.
5800         * macros/Makefile: Install tmac.ps*.
5802         * eqn/box.c: Provide draw_lines parameter corresponding to -D
5803         option.
5804         * macros/eqnrc: Set draw_lines parameter based on device.
5805         * groff.c: Don't pass -D flag to eqn.
5806         * groff.sh: Likewise.
5807         * eqn/main.c: Warn about use of -D.
5809         * troff/input.c (process_startup_file): New function.
5810         (main): Call process_startup_file().
5811         * macros/troffrc: New file.
5812         * macros/Makefile: Install troffrc.
5813         * groff.c (main): Don't pass extra -m option to troff. For a 
5814         pseudo device pass the name of the pseudo device to troff using
5815         -d.
5816         * groff.sh: Likewise.
5817         * groff.c (possible_command::prepend_arg): Deleted.
5819         * troff/input.c (do_request): New function.
5820         (init_input_requests): Bind "do" to do_request.
5822         * eqn/main.c (main): Instead of loading eqnchar from device directory,
5823         load eqnrc from macro directory.
5824         * macros/eqnrc: New file.
5825         * macros/Makefile: Install eqnrc.
5826         * ps/devps/eqnchar: Deleted.
5827         * ps/devps/Makefile: Don't install eqnchar.
5828         * dvi/devdvi/eqnchar: Deleted.
5829         * dvi/devdvi/Makefile: Don't install eqnchar.
5830         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
5831         variable optM.
5833         * lib/device.[ch]: New files.
5834         * lib/font.h (font::set_device_name, font::get_device_name):
5835         Deleted.
5836         * lib/fontfile.c: Use device.h.
5837         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
5838         * troff/input.c: Delete definition of `device'.
5839         (main): Don't initialize device.
5840         * troff/troff.h: Include device.h rather than declaring device.
5841         * troff/Makefile: No need to handle DEVICE.
5842         * driver/input.c: Include device.h. Don't use
5843         font::{set,get}_device_name.
5844         * groff.c, Makefile: Rename device.h to config.h.
5845         * groff.c: Use library device variable.
5846         * eqn/main.c: Use library device variable.
5847         * eqn/Makefile: No need to handle DEVICE.
5849         * lib/searchpath.[ch]: New files.
5850         * lib/Makefile: Handle searchpath.[ch].
5851         * troff/input.c (open_file, init_dirs): Deleted.
5852         (macro_dirs): Deleted.
5853         (open_mac_file, macro_source): Use class search_path.
5854         (add_string, struct string_list): Move definition.
5855         (main): Change -M option to use macro_path. Delete call to
5856         init_dirs().
5857         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
5858         Rewrite to use class search_path.
5859         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
5860         * lib/Makefile: fontfile.c depends on searchpath.h.
5861         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
5862         MACROPATH.
5863         * lib/macropath.[ch]: New files.
5864         * troff/Makefile: No need to handle MACROPATH.
5866         * troff/input.c: Delete DUMP code.
5867         * lib/fontfile.c, lib/font.h: Delete
5868         font::forget_command_line_font_dirs.
5870         * troff/input.c (push_token): New function.
5871         (handle_first_page_transition): Use push_token().
5872         (process_input_stack): Change handling of a space at the beginning
5873         of the line.
5875 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
5877         * troff/input.c (font_dirs): Delete unused variable.
5879         * eqn/lex.c (do_set): Correct error messages.
5881 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
5883         * troff/input.c (do_define_string): Allow the string name to be
5884         followed immediately by a tab.
5885         (define_character): Likewise.
5887 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
5889         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
5890         be negative.
5892         * troff/input.c (input_iterator::is_file): New virtual function.
5893         (file_iterator::is_file): New function.
5894         (input_stack::end_file): New function.
5895         (input_stack::next_file): Handle the situation where there is no
5896         file on the input stack correctly.  Avoid making two passes over
5897         the input stack.
5898         (next_file): Make the filename optional; in this case call
5899         input_stack::end_file().
5901 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
5903         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
5904         produce a real _ charater when the current font is CW and _
5905         otherwise.
5907         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
5908         expression to work around gcc 2.2 bug.
5910 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
5912         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
5914         * troff/env.c (environment::add_padding): New function.
5915         (environment::add_char): Use add_padding().
5916         (environment::space): Likewise.
5917         (environment::wrap_up_field): Add some padding if there is none
5918         and there's no current tab.
5919         * troff/env.h: Declare environment::add_padding.
5921 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
5923         * pic/pic.y: undef fmod and rand before declaring them.
5925 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
5927         * troff/input.c (main): If the DESC file specifies a font name of
5928         0, then leave the corresponding font position empty.
5930         * nroff.sh: New file.
5931         * Makefile (install.nobin): Install nroff.sh.
5933         * tty/devlatin1/R.proto: Add ao as synonym for de.
5934         * tty/tmac.tty-char: Define ao as o.
5936         * tty/dev{ascii,latin1}/R.proto: Add aq.
5937         * tty/tmac.tty-char: Delete definition of aq.
5939 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
5941         * troff/input.c (init_charset_table): Don't translate 0240.
5942         * ps/tmac.ps: Translate char160 to space.
5943         * dvi/tmac.dvi: Likewise.
5944         * tty/tmac.tty: Likewise.
5946 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
5948         * dvi/tmac.dvi: Add support for all Latin-1 characters.
5950         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
5951         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
5952         \(oe, \(r?, \(r!.
5954         * tty/tmac.tty-char: Add \(ah.
5956         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
5957         No need to define \(FM and \(!/. Conditionalize all character
5958         definitions.
5960         * ps/devps/lgreekmap: Add +h, +f, +p.
5962         * ps/tmac.psnew: New file.
5963         * ps/Makefile: Install tmac.psnew.
5965         * troff/input.c (charinfo_to_node_list): Don't ever interpret
5966         character definitions in compatible mode.
5968         * troff/input.c (remove_character): New function.
5969         (init_input_requests): Bind remove_character to "rchar".
5971         * ps/tmac.psold: New file.
5972         * ps/Makefile: Install tmac.psold.
5973         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
5974         characters into tmac.psold.  Make these definitions unconditional.
5976         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
5978         * ps/tmac.ps: Don't define \('c and \('C.
5980         * ps/devps/textmap: Move Greek characters to...
5981         * ps/devps/symbolchars:
5983 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
5985         * ps/devps/text.enc: Add quotesingle.
5986         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
5987         * tty/tmac.tty-char: Likewise.
5988         * dvi/devdvi/texmi.map: Add +h, +f, +p.
5989         * dvi/devdvi/texi.map: Add Fn.
5990         * dvi/devdvi/msam.map: Add lz.
5991         * dvi/tmac.dvi: Handle Bq, bq, aq.
5993         * pic/lex.c (get_token): Recognize 'th.
5994         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
5996 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
5998         * ps/devps/textmap: Move di, mu, +- to...
5999         * ps/devps/symbolchars:
6001         * macros/tmac.s (@XS): Don't call par@reset or fi.
6002         (XA): Call LP. Turn off adjustment. Reduce line length.
6004         * macros/tmac.s: Initially alias XS to LP.
6005         (XS): Rename to @XS.
6006         (cov*ab-init): Alias XS to @XS.
6008 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
6010         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
6011         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
6012         (token::is_size, token::changes_env): Deleted.
6013         * troff/number.c (parse_term): No need to process \s explicitly.
6014         Call tok.next() only after scale indicator has been processed.
6015         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
6016         \f etc explicitly.
6017         (token::next): Handle \s, \f, \S, \H immediately rather than
6018         returning them as tokens.
6019         (token::operator==, token::description, token::add_to_node_list,
6020         token::process): Remove handling of deleted tokens.
6022         * troff/env.c (environment::add_char): When adding padding
6023         indicator character, call start_line() if necessary.
6025 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
6027         * ps/devps/afmtodit: Don't output 0 kerns.
6029         * ps/devps/afmtodit: Remove directory from name of encoding in
6030         font description file.
6032         * ps/devps/afmtodit: Improve error messages.
6034         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
6036         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
6037         * ps/devps/FontMakefile: Deleted.
6038         * ps/devps/afmname: New file.
6040         * ps/devps/symbol.sed: New file.
6041         * ps/devps/symbol.diff: Deleted.
6042         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
6043         Generate zapfdr.afm from zapfd.afm.
6045         * tty/tmac.tty (tty-char): Prefix definition with ".
6047         * macros/tmac.an (TP): Don't start a diversion if one has already
6048         been started.
6050         * tty/tmac.tty-char: Add Latin-1 characters.
6052         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
6054 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
6056         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
6057         Move declaration of struct horizontal_span.
6059         * tbl/table.c (table::table): Initialize span_list.
6060         (table::~table): Delete span_list.
6062         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
6064         * ps/devps/Makefile: Avoid dependency on GNU make.
6066         * ps/tmac.ps: Check that character does not already exist before
6067         defining it.
6069         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
6070         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
6071         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
6072         files.
6074         * tty/tmac.tty-char: New file.
6075         * tty/Makefile: Install tmac.tty-char.
6076         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
6077         tmac.tty-char.
6079         * tty/tmac.tty: Fix definition of \(34.
6081         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
6082         bracket-drawing characters onto |. Add *o.
6084         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
6085         only if current_field.
6087         * troff/dictionary.c (dictionary::lookup): Free old_table after
6088         rehashing. 
6090 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
6092         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
6093         whose glyphs are identical to glyphs of some Roman character.
6095         * tty/devlatin1/R.proto (bu): Deleted.
6096         * tty/devascii/R.proto (bu): Deleted.
6097         * tty/tmac.tty: Add definition of \(bu.
6099         * eqn/main.c (do_file): Pass FILE as argument.
6100         (main): Automatically load eqnchar.  New options -F and -n.
6101         Pass do_file an opened FILE.
6102         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
6103         No need to include font.h.
6104         * groff.sh: Likewise.  Don't need to use - for standard input.
6105         Prefix files with -- if first file starts with -.
6107         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
6109         * troff/env.c (environment::possibly_break_line): Don't set line
6110         to 0 across call to output_line().  Don't call output_line() until
6111         after discarding nodes after break.
6113 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
6115         * request.h (macro::empty): Declare it.
6116         * input.c (macro::empty): New method.
6117         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
6118         macro is empty.
6120 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
6122         * troff/env.c (environment::start_field): Decrement space_total
6123         when a space is frozen.
6125 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
6127         * macros/tmac.an (R): Delete macro.
6129         * troff/input.c (get_copy, token::next): Support \# (like \" but
6130         newline is ignored).
6132         * troff/input.c (token::next): Fix error message in 'Y' case.
6134 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
6136         * eqn/delim.c (define_extensible_string): Recognize any prefix of
6137         a delimiter name.
6139 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
6141         * c++test.c: Include <osfcn.h>.
6143         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
6144         <errno.h> doesn't.
6146 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
6148         * tbl/table.c (table::divide_span): Don't count column separation
6149         if expand was specified.
6151         * tbl/main.c (process_format): Don't ignore width specs in
6152         continued format.  Give warning for changing equal widths or
6153         column separation in continued format.
6154         (process_data): Set column separation, minimum width, equal
6155         columns at end of table.
6157 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
6159         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
6160         node::add_discretionary_hyphen): Use soft_hyphen_char.
6161         (set_soft_hyphen_char): New function.
6162         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
6164         * Makefile (c++tested): Give more helpful message if test fails.
6166 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
6168         * troff/input.c (init_charset_table): Translate 0240 to
6169         an unbreakable space.
6171         * troff/token.h (token::hyphen_indicator): New function.
6172         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
6173         translation.
6174         * troff/input.c (translate): Allow translation to \%.
6175         * troff/node.c (node::add_char): Handle
6176         TRANSLATE_HYPHEN_INDICATOR.     
6177         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
6179         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
6180         for \(hy.
6182         * tty/devlatin1/R.proto: \(hy and - should print as 055.
6184 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
6186         * groff.c (run_commands): If the last command gets a SIGPIPE send
6187         a SIGPIPE to all children than haven't yet terminated.  When
6188         command terminates, set pid field to -1.
6190 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
6192         * groff.c (main): Pass an appropriate -filename option to gxditview.
6194 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
6196         * Makefile.bd (install): Remove existing program before copying.
6198         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
6199         programs which have Unix counterparts to be installed with
6200         user-specified prefix.
6202         * troff/input.c (exit_troff): Don't check if exit_started.
6203         (exit_request): Don't call exit_troff if exit_started.
6205         * Makefile.bd (install.mm): Rename to install.dwbmm.
6207 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
6209         * driver/input.c (do_file): Add missing break for '#' case.
6211 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
6213         * troff/input.c (input_stack::clear):  Clear past any boundaries and
6214         then add the boundaries back.
6216         * troff/input.c (exit_troff): Return immediately if already
6217         exiting.
6219         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
6220         end macro.
6221         (pg*end-page): If the text has ended and there are no more
6222         footnotes or keeps, exit.
6224         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
6226         * troff/input.c (init_charset_table): Make \(rq transparent by
6227         default.
6229         * macros/tmac.an: Define lq and rq strings.
6231         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
6233 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
6235         * troff/env.c (environment::final_break): New function.
6236         (environment::newline): Set prev_line_interrupted to 2 if
6237         exit_started.
6238         * troff/env.h: Declare environment::final_break.
6239         * troff/input.c (exit_troff): Call environment::final_break()
6240         instead of environment::do_break().
6242         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
6243         doesn't already exist.
6244         * macros/man.local: New file.
6245         * macros/tmac.an: Load man.local.
6246         * macros/man.ultrix: New file.
6248 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
6250         * troff/input.c (exit_groff): Rename to...
6251         (exit_troff): New function.
6253         * troff/div.c (exit_started, done_end_macro,
6254         seen_last_page_ejector): New global variables.
6255         (began_page_in_end_macro): New static variable.
6256         (exit_flag): Deleted.
6257         (top_level_diversion::top_level_diversion): Initialize
6258         last_page_count.
6259         (top_level_diversion): More elaborate test for whether
6260         cleanup_and_exit() should be called.
6261         Set began_page_in_end_macro if the end macro isn't yet finished.
6262         * troff/div.h (top_level_diversion::last_page_count): New data
6263         member.
6264         (top_level_diversion::set_last_page): New function.
6265         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
6266         * troff/env.c (do_break): Zero prev_line_interrupted.
6267         * troff/input.c (exit_flag): Delete declaration.
6268         (LAST_PAGE_EJECTOR): New magic cookie.
6269         (token::next): Handle LAST_PAGE_EJECTOR.
6270         (exit_groff): Set exit_started and done_end_macro instead of
6271         exit_flag.  Call top_level_diversion::set_last_page.  Push a
6272         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
6273         another ejection after setting seen_last_page_ejector.
6275 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
6277         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
6279         * macros/tmac.e (TH): Make sure there's room for the initial
6280         header.
6282         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
6283         Set FVS in points rather than units.
6285 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
6287         * troff/div.c (top_level_diversion::add_trap): Don't consider the
6288         position of empty slots.
6290 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
6292         * ps/devps/S: Fix height and depth of parenrightex.
6293         * ps/devps/symbol.diff: Regenerate.
6295 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
6297         * tmac.e (u): Do underlining as in -mgs.
6299 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
6301         * tty/tty.c (tty_printer::end_page): If overstriking is
6302         suppressed, still turn overstruck horizontal and vertical lines
6303         into +.
6305         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
6306         2.1.
6308         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
6310 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
6312         * Version 1.05 released.
6314 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
6316         * tty/tty.c: Instead of keeping an array of glyphs and then
6317         sorting it, keep a ordered linked list of glyphs for each line.
6319         * driver/driver.h: Include stddef.h.
6321         * tty/tty.c (compare_glyph):
6322         * refer/refer.c (rcompare):
6323         * troff/env.c (compare_ranges): Arguments of qsort comparison
6324         function should be const void *.
6326         * troff/number.c (parse_term):
6327         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
6328         switch statement.
6330         * refer/label.y (consider_authors): Don't access variables
6331         constructed under a condition outside that condition: put braces
6332         round for statement containing declaration; redeclare use of same
6333         variable later.
6335         * pic/pic.y (text_expr): Delete production that allows
6336         parenthesised text_expr.
6337         (expr): Allow a conditional_expr to appear in parentheses.
6338         (conditional_expr): Rename to any_expr.
6340         * mm: Install new version 1.01 from jh.
6342         * lib/font.c (font::get_width): Cache scaled widths.
6343         (font::font): Initialize widths_cache.
6344         (font::~font): Destroy widths_cache.
6345         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
6347 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
6349         * c++test.c, c++test.ref: New files.
6350         * Makefile: Check that the C++ compiler works.
6352         * ps/tmac.pspic (PSPIC): Do a break.
6354         * ps/tmac.ps: Move definition of PSPIC into...
6355         * ps/tmac.pspic: New file.
6356         (PSPIC): Draw box around picture, but make it invisible to grops.
6357         * ps/tmac.ps: Load tmac.pspic.
6358         * ps/Makefile: Install tmac.pspic.
6360 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
6362         * lib/font.c (scale_round): If n is negative,
6363         subtract .5 before truncating floating point result.
6365         * lib/fontfile.c: Include <errno.h>.
6367 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
6369         * driver/input.c (get_char): Inline. Don't update current_lineno.
6370         Change callers to up date current_lineno if necessary.
6371         Use get_char() instead of getc(current_file).
6373 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
6375         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
6377 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
6379         * tty/tty.c (tmac.tty): Define \(rg as (R).
6381 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
6383         * lib/lib.h: New define a_delete.
6384         * Use a_delete instead of delete when deleting an array of objects
6385         without destructors.
6387         * lib/lib.h: Rename adelete to ad_delete.
6388         * Change uses of adelete.
6390 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
6392         * eqn/eqn.y: Include lib.h.
6394         * troff/node.c (grow_font_table): Delete old_font_table.
6396         * mm: Install new version from jh.
6398 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
6400         * tbl/table.h (format_type): Make global instead of local to class
6401         entry_format.  Prefix enumerators with FORMAT_.
6402         * tbl/table.c, tbl/main.c: Corresponding changes.
6403         * refer/token.h (token_type): Make global.  Prefix enumerators
6404         with TOKEN_.
6405         * refer/token.[ch]: Corresponding changes.
6406         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
6408         * troff/div.c (node::set_vertical_size): Don't name argument.
6410 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
6412         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
6413         * lib/lib.h: Define adelete accordingly.
6414         * pic/object.c (graphic_object::graphic_object):
6415         * tbl/main.c (format::~format):
6416         * tbl/table.c (table::~table):
6417         * refer/ref.c (reference::~reference, reference::merge,
6418         reference::insert_field, reference::delete_field): Use adelete.
6420         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
6421         * refer/token.h:
6422         * tbl/table.h: Corresponding changes.
6424         * common.c (common_output::dashed_arc, common_output::dotted_arc):
6425         Ensure total_angle is positive.
6427 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
6429         * refer/ref.c (reference::merge, reference::insert_field,
6430         reference::delete_field): Avoid delete[0].
6432         * refer/token.c (init_special_chars): Move calls to cmupper
6433         outside calls to init_two_char_letter to work around bug in gcc
6434         2.0.
6436 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
6438         * lib/new.c (operator new): Use __builtin_new for g++.
6440         * pic/object.c (graphic_object::~graphic_object):  Don't use
6441         delete [] on 0.
6443         * pic/object.c (output::compute_scale): Initialize max_width and
6444         max_height.
6446 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
6448         * troff/input.c (write_request): Call fflush.
6450         * troff/node.h (class composite_node): Move declaration to node.c
6451         * troff/input.c (charinfo_to_node): Rename to ...
6452         (charinfo_to_node_list): Return node list rather than composite
6453         node.
6454         * troff/node.c (make_composite_node): New function.
6455         (make_node, add_char): Call make_composite_node instead of
6456         charinfo_to_node.
6457         (class composite_node): Add a tfont * member.  Delete font_size
6458         member.
6459         (composite_node::composite_node, composite_node::copy,
6460         composite_node::size): Corresponding changes.
6461         (composite_node::tprint): Provide constant spacing, emboldening
6462         and track kerning as specified in tfont.
6463         (composite_node::width): Change width calculation accordingly.
6464         * troff/env.h (environment::composite): New member.
6465         (environment::is_composite, environment::set_composite): New
6466         functions.
6467         * troff/env.c (environment::environment): Initialize composite.
6468         * troff/input.c (charinfo_to_node): Call
6469         environment::set_composite.
6470         * troff/node.c (make_composite_node, make_glyph_node): Use the
6471         plain version of the tfont if the environment is composite.
6473         * troff/node.c (font_info::get_space_width): Additional argument
6474         giving space_size.  Handle constant space correctly. Scale by
6475         space_size unless constant spaced.
6476         (env_sentence_space_width): New function.
6477         * troff/node.h: Declare it.
6478         * troff/env.h (environment::get_space_size,
6479         environment::get_sentence_space_size,
6480         environment::get_narrow_space_width,
6481         environment::get_half_narrow_space_width): Make inline.
6482         (environment::get_space_width): Make inline.  Just call
6483         env_space_width.
6484         * troff/env.c: Delete definitions for funtions made inline.
6485         (environment::space_newline, environment::space): Use
6486         env_sentence_space_width(). Don't scale by space_size.
6487         * troff/node.h: Move declarations of env*space_width() functions
6488         into env.h.
6490 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
6492         * macros/tmac.s (PS): Don't try to set negative indent.
6494 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
6496         * pic/pic.y: Fix min function.
6498 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
6500         * man/mdate.sh: Clear LANGUAGE.
6502 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
6504         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
6505         * pic/lex.c: New COMMAND keyword.
6506         * pic/pic.y (print_args, print_arg): New rules.
6507         (placeless_element): Use print_args for PRINT.
6508         New COMMAND element.
6510 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
6512         * troff/input.c (terminal): Handle missing argument correctly.
6514         * pic/pic.y (text_expr): New rule.
6516         * pic/pic.y: Implement := operator.
6518 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
6520         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
6521         mdoc.
6523 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
6525         * ps/devps/dingbatsrmap: Include this in the distribution.
6527         * macros/tmac.doc: Replace with new version from 2nd Networking
6528         Release. Fix loading of doc-* files.
6529         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
6530         * macros/tmac.doc.old: New file.  Apply fixes that had been
6531         applied to old tmac.doc.
6532         * macros/tmac.andoc: Check that we're running under groff.
6533         * macros/Makefile: Rework.
6535 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
6537         * tbl/table.h (format_type): 
6538         * refer/token.h (token_type): If NESTED_TYPES is defined, use
6539         typedef to make these types visible at file scope.
6540         * Makefile: Add NESTED_TYPES configuration option.
6542         * troff/div.c (mark): At the top level use the value of
6543         nl_reg_contents rather than the current vertical position.
6545 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
6547         * tty/tty.c: Implement \D for horizontal or vertical lines.
6548         (tty_printer::set_char): Use vec_used+2 as serial number.
6549         Don't allow size of vector to exceed USHRT_MAX-2.
6550         Split off part into...
6551         (tty_printer::add_char): New function.
6552         (tty_printer::draw): New function.
6553         (compare_glyph): Handle equal serial numbers.
6554         (tty_printer::end_page): Handle overstruck characters from \D.
6555         (main, usage): Implement -d option.
6557 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
6559         * tbl/main.c (process_format):
6560         * eqn/text.c (split_text):
6561         * troff/input.c (token::next): Use inner block for declarations
6562         with initializers in switch statement.
6564 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
6566         * pic/common.c (common_output::dash_line): Cope with zero-length
6567         lines.
6569 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
6571         * Version 1.04 released.
6573 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
6575         * macros/tmac.an (TH): Define a macro an-init to define variables
6576         based on command line arguments.
6577         (an-header): Call it.
6579 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
6581         * Makefile (install.mm): Rename to install.dwbmm.
6583         * Makefile: Integrate mm.
6584         * mm: New directory.
6586 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
6588         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
6589         <sys/types.h>.
6591         * pic/troff.c (troff_output::simple_spline,
6592         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
6593         shadowing parameter.
6595         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
6597         * lib/ptable.h: Add explicit casts when converting from unsigned
6598         long to unsigned.
6600         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
6601         * dvi/devdvi/Makefile: Install SA, SB.
6603         * refer/indxbib.c: Add declaration of mktemp.
6605         * refer/lookbib.c: Add declaration of isatty.
6607 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
6609         * pic/lex.c (interpolate_macro_with_args):  While collecting
6610         arguments, keep track of whether we're in a string.
6612 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
6614         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
6615         down with \v, so as to avoid problems with top of page trap
6616         setting no space mode.
6618 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
6620         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
6622 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
6624         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
6625         Improve error message.
6627 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
6629         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
6630         printf("%03o");
6632 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
6634         * groff.c (possible_command::execp): Always use _exit() after a
6635         failed exec.
6637         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
6638         NO_SYS_WAIT_H   configuration options.
6639         * groff.c: Use these options.  Use POSIX-style macros to extract
6640         fields from the status returned by wait().
6642 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
6644         * tbl/table.c (table::compute_separation_factor): Allow the
6645         separation factor to drop to 0.
6647 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
6649         * refer/search.c: Include <errno.h>.
6651 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
6653         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
6655         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
6656         C++. 
6658         * pic/lex.c (input_stack::bol): Move definition out of class body.
6660         * pic/main.c: On MSDOS munge argv[0].
6662         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
6664         * lib/ptable.c (hash_string): Use unsigned long rather than
6665         unsigned.
6666         (next_ptable_size): Use unsigned rather than int.  Give an error
6667         message if we've hit the largest table size.
6668         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
6669         table size.
6671         * pic/object.h (object_spec): Make flags unsigned long.  Declare
6672         flags as const unisgned long rather than as enums.
6674         * pic/output.c: Deleted.
6676         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
6678         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
6679         Add additional argument.
6680         (line_entry::note_double_vrule_on_{left,right}): Set value of
6681         douvle_vrule_on_{right,left} flag according to argument.
6682         (simple_line_entry::simple_print,
6683         simple_line_entry::double_line_print): If adjacent to double vrule
6684         on a corner extend rather than shorten the rule by half the double
6685         vrule sep.
6687         * troff/number.c (parse_term): In checking for overflow, handle the
6688         case where the current horizontal position is negative.
6690 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
6692         * pic/object.c (draw_arrow): Check for object having zero length.
6694 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
6696         * eqn/main.c (do_file): Split off inline equation handling into...
6697         (inline_equation): New function.  Search for starting delimiter
6698         using...
6699         (delim_search): New function. Don't recognize a delimiter that
6700         occurs in the name of an escape sequence, number register, string
6701         etc.
6703 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
6705         * eqn/delim.c (delim_box::compute_metrics): Don't call
6706         define_extensible_string if left is 0.
6707         (delim_box::output):  Don't print the left delimiter if left is 0.
6708         (delim_box::debug_print): Check for left == 0 before calling printf.
6710 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
6712         * troff/Makefile (majorminor.c): Include only digits in
6713         minor_version.
6715 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
6717         * refer/dirnamemax.c: new file.
6718         * refer/genlimits.c: Deleted.
6719         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
6720         Don't check path length.
6721         * refer/Makefile: Add dir_name_max.o; delete genlimits.
6722         * Makefile: Add PATHCONF_MISSING option.
6724         * refer/indxbib.c (get_cwd): New function.
6725         (main): Use get_cwd().
6726         * lib/getcwd.c: New file.
6727         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
6728         GETCWD in SUBFLAGS.
6729         * lib/Makefile: Compile getcwd.o.
6731         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
6732         userdict.
6734         * refer/indxbib.c (main): Check success of mktemp.
6736         * lib/tmpfile.c: New file.
6737         * lib/Makefile: Add tmpfile.c.
6738         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
6739         * ps/ps.h: Delete declaration of mktemp().
6740         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
6741         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
6742         * driver/driver.h: No need now to include errno.h.
6744         * everywhere: Set errno to 0 before calling fopen().
6746         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
6747         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
6748         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
6750 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
6752         * troff/env.h (translate_space_to_dummy): Declare it.
6753         * troff/env.c (environment::space_newline, environment::space):
6754         If translate_space_to_dummy is set then make the width of spaces 0.
6755         * troff/input.c (translate): If the second character of a
6756         translation is a space, translate to unbreakable space.  If the
6757         first character is a space, set or clear translate_space_to_dummy
6758         according to whether the second character is \&.  Weird!
6760 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
6762         * groff.c (run_commands): Don't use non-zero exit code because a
6763         command gets SIGPIPE.
6765         * groff.c, groff.sh: Use -mXps with -TXps.
6767         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
6768         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
6769         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
6770         (ps_printer::special): New specials invis and endinvis.
6771         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
6772         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
6773         (ps_printer::end_page): Check that invis_count == 0.
6774         (ps_printer::invis_count): New member.
6775         (ps_printer::ps_printer): Initialize invis_count to 0.
6777         * troff/env.c (environment::hyphenate_line): Hyphenation
6778         indicator at beginning of word inhibits splitting after -, \(em
6779         etc.
6781         * pic/pic.y (element): Allow another element to follow } without
6782         any intervening separator.
6784 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
6786         * pic/lex.c (get_delimited): Allow tabs before delimiter.
6788 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
6790         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
6791         declaration of wait() in header files.
6792         * Makefile: Get rid of -DHAVE_UNION_WAIT.
6794         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
6796         * lib/lib.h: Declare return type of strerror as char *.
6798         * man/Makefile: Add g flag to sed substitutions.
6799         * Makefile (shgroff, bindist): Likewise.
6801 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
6803         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
6804         * ps/devps/prologue (PBEGIN): Define showpage after pushing
6805         userdict.
6807 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
6809         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
6810         userdict.
6812 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
6814         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
6815         group.
6817 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
6819         * troff/input.c (define_number_reg):  If currently undefined,
6820         don't define it if the argument is an invalid expression.
6822         * Makefile: Ignore return value of `if' commands without `else'
6823         parts.
6825         * Makefile: Split up CPPDEFINES into a series of separate
6826         configuration options.
6828         * troff/input.c (init_registers): Use time_t instead of long
6829         unless LONG_FOR_TIME_T is defined.  Use returned result rather
6830         than passing pointer.
6831         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
6833         * lib/Makefile (fontpath.h): Use gendef.
6835 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
6837         * troff/input.c (input_iterator::shift): Delete argument name.
6838         * troff/node.c (suppress_output_file::really_begin_page,
6839         suppress_output_file::really_transparent_char, node::ascii_print,
6840         node::tprint): Delete names of unused arguments.
6842 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
6844         * refer/label.y (string):  Pass $4 to command_error.
6846 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
6848         * Version 1.03 released.
6850 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
6852         * Makefile: Pass definition of SHELL in SUBFLAGS.
6854         * gendef: New file.
6855         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
6856         ps/Makefile: Use gendef to construct header files that are
6857         constructed from the Makefile.
6859         * macros/Makefile: make all should build stripped version of tmac.e.
6861         * refer/Makefile (clean): Remove y.output.
6863 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
6865         * ps/pfbtops.c (main): Add -v option which prints out a version
6866         number.
6867         * ps/Makefile (pfbtops): Link with libgroff.a.
6869 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
6871         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
6872         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
6874         * refer/lkbib.c (main): Always terminate reference with blank
6875         line.
6876         * refer/lookbib.c (main): Likewise.
6878         * refer/linear.c (file_buffer::load): Check that the file is not a
6879         binary file.
6881         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
6882         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
6883         Delete second inclusion of <sys/param.h>.
6885 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
6887         * troff/token.h (token::special): Deleted.
6889         * tbl/main.c (process_format): Rework so that opt->tab_char is
6890         recognized only when appropriate.
6892         * ps/Makefile (clean): Remove pfbtops.
6894 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
6896         * lib/font.c (text_file::next): Don't return if we have got a
6897         blank line.
6899 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
6901         * refer/refer.c (store_reference): Get hash code from old_table[i]
6902         when rehashing the table.
6904 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
6906         * eqn/box.c (box::top_level): Save size and prev size using \R and
6907         restore it afterwards. Set the size to the size at the beginning
6908         of the line.
6909         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
6910         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
6912         * refer/Makefile (limits.h): Use ./genlimits.
6914 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
6916         * refer/index.c: Delete declarations of stat() and fstat().
6918 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
6920         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
6922 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
6924         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
6926 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
6928         * troff/input.c (token::get_char): Handle \e.
6930         * refer/linear.c: Delete declarations of fstat() and stat().
6932 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
6934         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
6935         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
6937 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
6939         * troff/input.c (do_define_macro): Improve error handling for end
6940         of file while defining macro.
6942 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
6944         * eqn/box.h: Fix declaration of set_gsize.
6945         * eqn/box.c (set_gsize): Make argument const char *.
6946         (gsize): Declare as char *.
6947         * eqn/main.c (main): Don't convert gsize to int.
6948         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
6950         * Version 1.02 released.
6952 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
6954         * macros/tmac.andoc: New file.
6955         * macros/Makefile: Install tmac.andoc.
6957         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
6958         operator new and delete on OP_DELETE_BROKEN not being defined.
6959         * Makefile: Mention OP_DELETE_BROKEN.
6961 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
6963         * Makefile (bindist): Pass SUBFLAGS.
6965 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
6967         * Makefile, groff.c: Pass definitions to groff.c via device.h.
6969         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
6970         parameter.
6972         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
6974         * ps/ps.h, ps/psrm.c: Make comment_table and
6975         header_comment_table local to resource_manager::process_file.
6977         * groff.sh: With -TXps pass -printCommand option to gxditview.
6979         * groff.c (possible_command::print): Implement using
6980         append_arg_to_string.
6982         * xditview: Merge in new implementation with own ChangeLog.
6984 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
6986         * groff.c (main): Implement PRINT_OPTION.
6987         (append_arg_to_string): New command.
6988         (device_table): Set PRINT_OPTION flag for Xps.
6990 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
6992         * troff/groff.h: Rename to troff.h.
6994         * pic/lex.c (lookup_keyword, docmp): New functions.
6995         (get_token): Use new lookup_keyword.
6996         Don't include key.h.
6997         * pic/key.[ch], pic/pic.gperf: Deleted.
6998         * pic/Makefile: Remove gperf stuff.
7000         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
7001         into output.h.
7002         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
7004         * troff/Makefile, troff/node.c: Move definition of
7005         STORE_WIDTH into node.c.
7007         * etc/grog.pl, etc/grog.sh: Support -mdoc.
7009 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
7011         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
7012         dvi/devdvi/texb.map: Add lq and rq.
7013         dvi/devdvi: Regenerate fonts.
7014         * ps/devps/textmap: Add lq and rq.
7015         * ps/devps: Regenerate fonts.
7016         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
7017         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
7019         * pic/object.c (position_rectangle): When checking radius
7020         cope with possiblity that width or height is negative.
7021         (box_object::box_object): Have separate xrad and yrad with
7022         signs matching signs of dim components.
7023         (box_object::{north,south}_{east,west}): Use xrad and yrad.
7024         (box_object::print): With rounded boxes use absolute values
7025         for dim and rad arguments.
7027         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
7028         in fontpath.h.
7030         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
7032         * various files: Add explicit destructors to keep Saber CC +d
7033         happy.
7035 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
7037         * eqn/box.c (box::top_level): Restore fonts correctly after
7038         font changes in line containing inline equation.  Also
7039         restore previous font as well as current font.
7040         * eqn/pbox.h: Define necessary string and register names.
7042         * troff/input.c (token::next): Case 'R' calls do_register.
7043         (do_register): New function.
7045 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
7047         * groff.c, groff.sh: Support Xps device.  Allow each device
7048         to have a pseudo_name and a real_name.
7050         * groff.c (run_commands): Don't print `Broken pipe' messages.
7052         * ps/pfbtops.c: New file.
7053         * ps/Makefile: Add pfbtops.
7055         * troff/number.c (parse_term): Improved error message.
7057 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
7059         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
7061         * Makefile: Integrate refer.
7062         * refer: New directory.
7063         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
7064         man/lkbib.man: New files.
7065         * man/Makefile: Support refer man pages.
7067         * lib/lib.h: Declare is_prime.
7068         * lib/prime.c: New file.
7070         * troff/input.c (macro_source): New function.
7071         (init_input_requests): Bind "mso" to macro_source.
7073         * troff/env.c (environment::possibly_break_line): Maintain
7074         pointer to pointer to node to be split in ndp so as to avoid
7075         using address of freed node.
7077         * troff/env.c (environment::hyphenate_line): Maintain pointer to
7078         pointer to first node to be hyphenated in startp so as to
7079         avoid using address of freed node.
7081         * troff/env.c (class trie, class hyphen_trie): Make the
7082         elements of the trie be of type char not unsigned char.
7083         Declare arguments to be const char* instead of unsigned char *.
7084         
7085         * troff/env.c (hyphenate): Initialize hbuf[0].
7087         * troff/input.c (set_string): Declare p to be char * and cast
7088         *p to unsigned char when necessary.
7090         * troff/input.c (do_define_macro): Declare s to be const
7091         char*. Cast element to unisgned char when necessary, Declare
7092         d to be an int.  Handle EOF better.
7094         * troff/Makefile, troff/input.c: Different scheme for passing
7095         definitions of MACROPATH, HYPHENFILE and DEVICE.
7097 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
7099         * tty/devascii/R.proto: Delete entry for em.
7100         * tty/devlatin1/R.proto: Likewise.
7102 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
7104         * troff/input.c (translate): Stop when we get a space. Treat eof
7105         like newline.
7107         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
7109 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
7111         * tbl/main.c (process_format): A font name following a `f'
7112         modifier that starts with a digit can be only one character long.
7113         Also deal with EOF on the second character of the font name.
7115 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
7117         * troff/input.c (token::next): Turn \~ into an
7118         unbreakable_space_node.
7119         * troff/node.c (unbreakable_space_node): New class.
7120         * troff/node.h: Declare it.
7122 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
7124         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
7125         it's >= 0, before outputting it as a single byte.
7127 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
7129         * lib/font.c: Make font_char_metric::code an int.
7130         (font::get_code): Change return type to int.
7131         (font::load): Allow code to be arbitrary integer.
7132         * lib/font.h (font::get_code): Change return type to int.
7133         (font::number_to_index): Change argument type to int.
7134         * troff/input.c (token::next):  In case 'N', allow any value.
7135         Store value in token::val.
7136         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
7137         (token::get_char, token::add_to_node_list, token::process): Get
7138         number from val.
7139         (charinfo::set_number): Change argument to int.
7140         (charinfo::get_number):  Require that NUMBERED flag be set.
7141         (get_charinfo_by_number): Store numbered characters not between 0
7142         and 255 in a dictionary.
7143         * troff/charinfo.h (get_charinfo_by_number): Change argument type
7144         to int.
7145         (charinfo::number): Change type to int.
7146         (charinfo::set_number): Change type of set_number to int.
7147         * troff/node.c (troff_output_file::put_char_width,
7148         troff_output_file::put_char): Test whether character is numbered
7149         using charinfo::numbered().
7150         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
7151         values of num.
7152         * lib/nametoindex.c: New implementation to cope with arbitrary
7153         number characters.
7155         * troff/input.c (token::operator==): Test val for
7156         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
7157         TOKEN_SIZE.
7159         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
7160         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
7162 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
7164         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
7165         variable.
7167         * all Makefiles: rm targets of cp and >.
7169         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
7170         it.
7172         * eqn/lex.c (def_table): Add dollar.
7174 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
7176         * troff/input.c (do_width): Push back newline before closing delim
7177         like do_bracket.
7179 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
7181         * groff.c (possible_command::prepend_arg): New function.
7182         (main): Prepend device -m option.
7183         * groff.sh: Put device -m options before command-line options.
7185 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
7187         * macros/tmac.an (IP): Quote argument to TP.
7189         * ps/ps.c (main): New option -b, which sets...
7190         (broken_flags): New variable.
7191         (ps_printer::~ps_printer): Incorporate the setup section in the
7192         prolog if (broken_flags & NO_SETUP_SECTION).
7193         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
7194         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
7195         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
7196         ps_printer::print_needed_font_comment,
7197         ps_printer::print_supplied_font_comment,
7198         ps_printer::print_include_font_comments,
7199         ps_printer::lookup_doc_font, ps_printer::download_fonts,
7200         ps_printer::read_download_file, read_document_fonts, add_font,
7201         skip_line, parse_fonts_arg, document_font::document_font,
7202         document_font::~document_font, document_font::download,
7203         ps_output::include_file):  Deleted.
7204         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
7205         rather than %!PS-Adobe-2.0.  Make calls to
7206         resource_manager::need_font for each font that we used. Replace
7207         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
7208         print_supplied_font_comment, print_needed_font_comment by call to
7209         resource_manager::print_header_comments. Output %%Orientation
7210         comment. Output %%Requirements: numcopies comment if ncopies > 1.
7211         Don't output the prolog directly.  Instead call
7212         resource_manager::output_prolog.  Only define #copies when ncopies
7213         > 1.  Delete calls to print_include_font_comments  and
7214         download_fonts.  Add call to resource_manager::document_setup.
7215         (ps_printer::do_file): Call resource_manager::import_file instead
7216         of including it ourselves.
7217         (ps_printer::do_import): Likewise.  Also don't call
7218         merge_import_fonts. Push userdict on the dictionary stack before
7219         and pop it afterwards.
7220         Move declaration of ps_output into ps.h.
7221         * ps/psrm.c: New file implementing resource_manager class.
7222         * ps/ps.h: New file declaring ps_output and resource_manager
7223         classes.
7224         * ps/devps/zapfdr.ps:
7225         * ps/devps/symbolsl.ps:
7226         * ps/devps/prologue:  Use 3.0 conventions.
7227         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
7228         Add default definition of BROKEN_SPOOLER_FLAGS.
7229         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
7230         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
7232 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
7234         * etc/grog.pl: New file.
7235         * Makefile (GROG): New variable.
7236         Add GROG to SUBFLAGS.
7237         * etc/Makefile (GROG): New variable.
7238         (install.nobin): Install $(GROG) rather than grog.sh.
7240 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
7242         * eqn/special.c (special_box::compute_metrics): Make the input and
7243         output strings the same.  Get the new height and depth from the
7244         predefined height and depth registers.  Also make subscript kern
7245         and skew available.
7246         (special_box::compute_subscript_kern, special_box::compute_skew):
7247         New functions.
7249         * eqn/box.c (pointer_box::compute_skew,
7250         simple_box::compute_metrics, box::top_level)
7251         * eqn/text.c (prime_box::compute_metrics,
7252         prime_box::comput_subscript_kern)
7253         * eqn/limit.c (limit_box::compute_metrics):
7254         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
7255         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
7256         negative numbers in `nr' requests with a leading 0.
7258 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
7260         * eqn/special.c: New file.
7261         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
7262         Add new rule for simple.
7263         * eqn/lex.c (token_table): Add SPECIAL.
7264         * eqn/box.h: Declare make_special_box.
7265         * eqn/Makefile: Add special.[co].
7267 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
7269         * ps/devps/prologue: Possibly set packing to true while defining.
7270         Create grops dictionary here.  Initialize local variables before
7271         defining procedures.
7272         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
7273         the dictionary stack. Set strokeadjust and overprint to false if
7274         the relevant operators are defined.
7275         (PEND): New procedure.
7276         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
7277         prologue.  Do everything else in the setup section.
7278         (ps_printer::do_import): Just call PBEGIN and PEND around the
7279         picture. Also push userdict before, and pop it afterwards.
7281 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
7283         * troff/node.c (bracket_node::tprint): Brackets were being printed
7284         1m too low.
7286         * macros/tmac.an (SH, SS): Set fill mode.
7288 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
7290         * troff/div.c (top_level_diversion::begin_page): Set
7291         high_water_mark to 0.
7293 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
7295         * man/mdate.sh: New file.
7296         * man/mdate.c: Deleted.
7297         * man/Makefile: Use mdate.sh instead of mdate.
7298         (mdate): Deleted.
7300         * eqn/lex.c (do_gsize): Supply missing argument to error message.
7302 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
7304         * man/mdate.c: New file.
7305         * man/*.man: Replace modification date by @MDATE@.
7306         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
7307         (mdate): New target.
7309         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
7310         Remove illegal input characters.
7312 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
7314         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
7316 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
7318         * troff/div.c (begin_page): Change behaviour when
7319         !first_page_begun and !break_flag.
7321         * troff/input.c (do_name_test): Return 0 if argument is empty.
7323         * troff/input.c (read_long_escape_name): Require closing ] to be
7324         at same input level as opening [.
7326         * troff/input.c (read_increment_and_escape_name): New function.
7327         (get_copy, process_input_stack): Use this for \n.
7329 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
7331         * troff/div.c (top_level_diversion::begin_page): Ignore the
7332         current value of page_number if !first_page_begun.
7334         * groff.c (main): Fix declaration of buf.
7336         * troff/input.c (do_name_test): New function.
7337         (token::next): Implement \A.
7338         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
7339         (token::description, token::add_to_node_list, token::process):
7340         Handle TOKEN_ESCAPE.
7341         * troff/token.h: New token TOKEN_ESCAPE.
7343 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
7345         * pic/main.c (do_picture): Allow space before and after filename
7346         following `<'.  Check that the filename is not empty.
7348 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
7350         * Version 1.01 released. 
7352         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
7354         * dvi/tmac.dvi: ftr HR to H.
7356         * macros/tmac.e: Round up computation of $r.
7358         * xditview/tmac.X:  Don't give up completely in compatibility mode.
7359         Use \n(.s instead of \n[.s].
7361         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
7362         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
7363         Add u to factors inside \s[...]. Rename frac to dvi-frac.
7364         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
7365         short names in the char definitions.
7367         * ps/tmac.ps: Don't give up completely in compatibility mode.
7368         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
7369         quote in front of \n(.s. Add u to factors inside \s[...].
7371 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
7373         * tty/tmac.tty: Call the nroff request.
7375         * macros/tmac.e ((x, )x):  Better definitions that work properly
7376         in a diversion.
7377         (@0, @1): Helper macros for (x.
7379         * macros/tmac.e ($s, hl): Use \l rather than \D.
7381         * tty/tmac.tty: Make it work better in compatibility mode.
7382         (pchar): Rename to tty-char.
7384         * macros/tmac.e (@E): New macro.
7385         (r, i, b, rb, bi): Use @E.
7387         * macros/tmac.e (@F): Don't use (;...) syntax.
7389         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
7390         it was modified for groff.
7392         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
7394         * macros/tmac.e (<., .>): Removed.
7395         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
7397         * macros/tmac.e: Remove check that groff is being used.
7399         * macros/tmac.e (@C): Change families only if using groff; turn
7400         compatibility mode off while changing familes. Save compatibility
7401         mode before changing families and restore it afterwards.
7403         * macros/tmac.e (@h): Remove test for offset + line length.
7405         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
7406         (lo, th, ac): Define to call @S instead of using als.
7408         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
7409         the ratio of the vertical spacing to the point size in units
7410         expressed as a percentage.  Use these instead of $10r and $10R,
7411         Delete $10r and $10R.
7413         * lib/font.c (font::load): In default computation of space_width,
7414         divide by sizescale.  Use scale_round.
7416         * macros/tmac.an (TP): Don't call `nf'.
7417         (an-do-tag): Don't call `fi'.
7419 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
7421         * troff/input.c (process_input_stack): Handle the case where
7422         spaces at the beginning of an input line are followed by a
7423         newline.
7425 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
7427         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
7428         * groff.sh: Use pic -x with the dvi device.
7430         * dvi/devdvi/FontMakefile (H): Don't use -s.
7432         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
7433         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
7434         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
7435         in FONTS.
7437 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
7439         * ps/psfig.diff: New file.
7440         * ps/tmac.psfig: New file.
7442 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
7444         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
7445         (]-): Don't call ref*do-tl.
7447         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
7449         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
7450         (fn@do-FS): Rename to fn*do-FS.
7452         * troff/input.c (transparent_translate): New function.
7453         (process_input_stack): Apply transparent_translate before calling
7454         diversion::transparent_output(unsigned char).
7456 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
7458         * troff/input.c (do_define_macro): Define the macro before calling
7459         skip_line.
7461         * xditview/Makefile: Add DEVICES variable.  Change install target
7462         to use this.
7464 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
7466         * groff.c (run_commands): Handle the possibility that there are
7467         child processes other than those forked by us.
7469 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
7471         * lib/string.c (string::append): New function.
7472         * lib/stringclass.h: Declare it.
7474 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
7476         * eqn/main.c (main): New option -N which sets
7477         no_newline_in_delim_flag. 
7478         (do_file): If no_newline_in_delim_flag is set don't allow newlines
7479         in delimiters.
7480         * groff.c (main): Pass -N on to eqn.
7481         (help, synopsis): Mention -N.
7482         * groff.sh: Implement -N.
7484 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
7486         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
7487         (]-): Call ref*do-tl if ref*need-tl is non-zero.
7488         (XP): Allow as initializer.
7490 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
7492         * troff/env.c (environment::wrap_up_field): If field_spaces are
7493         non-zero and we have a current_tab, subtract padding from
7494         tab_distance.  If this makes tab_distance <= 0, use the next tab
7495         stop instead.  If there isn't any next tab or it's a left tab,
7496         wrap up the current tab.
7497         (environment::start_field): Initialize tab_precedes_field.
7498         (environment::wrap_up_tab): If there's a current field, update
7499         pre_field_width, field_distance and tab_precedes_field.
7500         * troff/env.h (environment::tab_precedes_field): New member.
7502 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
7504         * ps/ps.c (ps_printer::do_file): New function.
7505         (ps_printer::special): Bind to `file' special.
7506         (ps_printer::do_exec): Set ndefined_styles to 0.
7508 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
7510         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
7511         Avoid stripping first character from the start of unrecognized
7512         escapes.  Use lex_error instead of error to report errors.
7513         * eqn/lex.c (get_token): Rework handling of escapes.
7514         (lex_error): Move declaration into...
7515         * eqn/eqn.h.
7517         * xditview/xditview.c (main): Make -page option work.
7519         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
7521 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
7523         * macros/tmac.s (B2): Correct size of box.
7525 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
7527         * macros/tmac.s (B2): Postpone drawing the box until in the
7528         top-level diversion.
7530         * tty/tmac.tty: Add font translations for C, CR, CW.
7532         * groff.c (synopsis, help): Document -i.
7533         * groff.sh: Implement -i.
7535         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
7536         Simplify the construction of SN.
7538         * troff/number.c (parse_term): Give `|' a higher precedence.
7539         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
7540         accordingly.
7542         * macros/tmac.s (B2): Use par@finish instead of par@reset.
7544 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
7546         * lib/string.c (string::move): New function.
7547         * lib/stringclass.h: Declare it.
7549 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
7551         * troff/env.c (distribute_space): Add optional argument
7552         `force_forward'.
7553         (environment::wrap_up_field): Call distribute_space with
7554         `force_forward' argument of 1.
7556 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
7558         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
7559         Inline it.  Move reallocation into...
7560         (string::grow1): New function.
7561         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
7562         dependencies to include library header files.
7563         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
7565 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
7567         * macros/tmac.s (@NH): Use the same number registers than -ms does
7568         for the heading level counters.  Use the same string that -ms does
7569         for the number for this heading.
7571 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
7573         * lib/new.c (operator new): Cast result of malloc to char *.
7575         * troff/input.c (spring_trap, lookup_request): Add assert that nm
7576         is not null.
7578 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
7580         * groff.c (main): Support -i.
7582 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
7584         * pic/pic.h: Include <osfcn.h>.
7586         * ps/ps.c: Add declaration of mktemp.
7588         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
7589         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
7590         argument as union wait *.
7591         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
7592         argument to union wait *.
7594 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
7596         * tty/tmac.tty: Add definition of \(co.
7598         * pic/object.c (make_arc): Only increase radius when radius
7599         strictly less than d.
7600         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
7601         more than once.
7603         * troff/env.c (environment::environment(symbol),
7604         environment::environment(const environment *)):  Initialize
7605         input_trap_count.
7607 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
7609         * tbl/main.c (main): Add exit(0).
7611         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
7613         * pic/main.c (main):
7614         * eqn/main.c (main):
7615         * tbl/main.c (main):
7616         * etc/soelim.c (main):
7617         * driver/printer.c (printer::~printer):
7618         * troff/node.c (real_output_file::~real_output_file,
7619         real_output_file::flush):  Check for errors on stdout.
7621         * most files: Add 1991 to copyright notice.
7623         * macros/tmac.s: Don't test \n(.x and \n(.y.
7625         * troff/input.c (token::next): Rename `escape_char' label to
7626         `handle_escape_char' and `normal_char' label to
7627         `handle_normal_char'.
7629 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
7631         * groff.c (main, synopsis, help): Support -a option.
7632         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
7633         to trflags while parsing options.
7635 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
7637         * troff/number.c (parse_term): With `m', `M' and `n' scale
7638         indicators, convert scale factor to hunits before scaling.
7640 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
7642         * lib/font.c (scale_round): Better test for overflow when n is
7643         negative.
7645 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
7647         * tbl/main.c (process_format): Add second argument of type
7648         options*. Change callers.  Allow opt->tab_char as well as '\t'
7649         between format items.
7651 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
7653         * macros/tmac.an (PD): With no arguments, make sure register PD is
7654         at least \n[.V].
7655         (TH): Call PD with no argument, instead of setting register PD
7656         directly.
7658 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
7660         * Version 1.00 released.
7662 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
7664         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
7666         * dvi/devdvi/DESC: Mount CW instead of CR.
7668         * dvi/tmac.dvi: Add definition of \(tm.
7670         * dvi/devdvi/texsy.map: Add lh, and rh.
7671         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
7672         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
7674         * dvi/devdvi/FontMakefile: Generate H from cmss10.
7675         * dvi/devdvi/Makefile: Install H.
7676         * dvi/devdvi/H: New file.
7678 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
7680         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
7681         be 0.
7683 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
7685         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
7687         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
7689         * macros/tmac.s (@EN): Handle the case where the equation is empty
7690         but the label is not.
7692 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
7694         * troff/groff.h: New warning category WARN_SPACE.
7695         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
7696         WARN_SPACE to warning_table.
7697         (interpolate_macro): Give a warning of type WARN_SPACE if the name
7698         is longer than two characters and is not defined, but the first
7699         two characters do make a defined name.
7701         * PROBLEMS: New file.
7703         * CHANGES: New file.
7704         * README-0.6, README-1.00: Deleted.
7706         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
7707         * xditview/devX75/Makefile: Make devX75-12.
7708         * xditview/devX100/Makefile: Make devX100-12.
7710         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
7711         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
7713 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
7715         * README-0.7: Rename to README-1.00.
7717         * macros/tmac.pic: New file.
7718         * macros/Makefile (install.nobin): Install tmac.pic.
7720 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
7722         * troff/env.c (hyphen_word): Correct the test for whether the
7723         token is a hyphen.  Reset npos to 0.
7725         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
7727 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
7729         * macros/tmac.s (ds*common-end): Call par*reset.
7730         (PE): Likewise.
7731         (par@reset-indent): Deleted.
7733         * macros/tmac.s (@IP): Divert the label.
7735 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
7737         * xditview/draw.c (setGC): Use a line width of .1m rather than
7738         .04m by default; round rather than truncate value.
7740         * tbl/table.c (class empty_entry): New class.
7741         (empty_entry::empty_entry, empty_entry::line_type): New functions.
7742         (table::add_entry): Represent empty entries by objects of type
7743         empty_entry.
7744         (table_entry::line_type): Return -1.
7745         (table::determine_row_type): Ignore entries with line_type 0.
7746         Treat type -1 as non-lines.
7748 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
7750         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
7751         macros/tmac.s: Rename \(-d to \(Sd.
7753 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
7755         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
7756         * xditview/libXdvi/DviChar.c: Likewise.
7757         * dvi/devdvi/texsy.map: Add `<<', `>>'.
7759 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
7761         * troff/div.c (top_level_diversion::begin_page): Call
7762         init_output() if the_output is 0.
7764 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
7766         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
7767         ESCAPE_c.
7768         (get_copy): Turn \E into ESCAPE_E.
7769         (token::process, asciify): Handle ESCAPE_E.
7771         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
7772         (RD): New macro.
7773         (DS): Implement `.DS R'.
7775 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
7777         * macros/tmac.s (FS): New macro.
7779         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
7781         * macros/tmac.s (cov*tl-init): Remove after first execution
7782         instead of aliasing to @nop.  Call top of page macro explicitly
7783         instead of setting trap; call @init first.  Set pg@top as top of
7784         page macro.
7785         (cov*auto-init): Deleted.  Set cov*tl-init instead of
7786         cov*auto-init as top of page trap. 
7787         (TL, LP): Do a break instead of calling cov*tl-init.
7788         (cov*print): With RP format but no TL, alias FS and FE to @FS and
7789         @FE; in this case also give a warning and always start another
7790         page. No need to set pg@top here.
7791         (cov*tl-init): Rename to cov*first-page-init.
7793         * macros/tmac.s (RP): Do `.pn 0'.
7794         (cov*tl-init): With RP format don't do `.pn 0'.
7796         * macros/tmac.s (pg@cs-top): Set no space mode.
7798         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
7799         (cov*ab-init): Alias TL, AU and AI to these.
7801 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
7803         * macros/tmac.s (@EQ): Move the space before the equation into @EN
7804         (@EN): Do nothing unless \n[dl] is > 0.
7806 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
7808         * pic/object.c (ellipse_object::radius): New function.
7810         * VERSION: Change version to 0.7.
7812         * tbl/table.c (block_entry::do_divert): Declare return type as
7813         void.
7814         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
7816 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
7818         * troff/column.c: New file.
7819         * troff/Makefile: Corresponding changes.
7821         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
7822         Friend of vunits.
7824         * troff/div.c (top_level_diversion::space): If the space causes
7825         the first-page transition and springs a trap, truncate the space
7826         to 0.
7828 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
7830         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
7831         the document.
7833         * pic/troff.c (troff_output::line_thickness,
7834         troff_output::set_fill): Do a horizontal motion to compensate for
7835         the width of the \D escape sequence.
7837 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
7839         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
7840         (not X75).
7842         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
7843         to printf.
7845         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
7846         Supply empty definition.
7847         (text_entry::simple_print, simple_text_entry::simple_print):
7848         Delete declarations.
7849         (table::add_entry): Represent empty entries by objects of type
7850         `simple_entry'.
7852 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
7854         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
7856         * tbl/table.c (left_text_entry::add_tab): New function.
7858         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
7859         initialize like LP.
7861 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
7863         * troff/env.c (environment::start_field): Give an error message if
7864         there is no next tab.
7866 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
7868         * troff/env.c (hyphenate): Skip initial elements with zero
7869         hyphenation code.
7871         * macros/tmac.s (par@init): Keep VS in points rather than units.
7873 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
7875         * pic/main.c (main): Implement `-c' option.
7876         * pic/output.h: Declare make_tpic_output().
7877         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
7878         protected.
7879         (tpic_output): New class.
7880         (tpic_output::tpic_output, tpic_output::set_pen_size,
7881         tpic_output::command, make_tpic_output): New functions.
7883 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
7885         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
7886         if they're not already defined.
7887         * tbl/table.c (init_output): Don't test \n(.g.
7889         * troff/input.c (do_if_request): Delete `g' condition. Recognize
7890         `d', `r' and `c' conditions even in compatibility mode.
7892 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
7894         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
7895         box.
7897 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
7899         * troff/env.h (environment::prev_line_interrupted): New member.
7900         (environment::get_prev_line_interrupted): New function.
7901         * troff/env.c (environment::newline): Set prev_line_interrupted.
7902         (environment::environment(const environment *),
7903         environment::environment(symbol)): Initialize
7904         prev_line_interrupted.
7905         * troff/input.c (process_input_stack): Don't give special
7906         treatment to space and newline at the beginning of the line if the
7907         previous line was interrupted.
7909 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
7911         * eqn/eqn.y: Disallow PRIME by itself.
7912         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
7913         PRIME.
7914         (def_table): Remove definition of '.  Define prime to be `.
7916         * eqn/eqn.y: Split off part of rule `script' into a new rule
7917         `nonsup'.
7919 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
7921         * macros/tmac.s ({, }): New string aliases.
7923 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
7925         * README-0.7: New file.
7927 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
7929         * macros/tmac.s: New file.
7930         * man/groff_ms.man: New file.
7931         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
7932         * Makefile.bd: Similarily.
7933         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
7934         definition of TMAC_S.
7935         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
7936         * macros/TODO: New file.
7938 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
7940         * troff/env.c (right_justify): New function.
7941         (init_env_requests): Bind this to request "rj".
7942         (center_lines): Set right_justify_lines to 0. If we get a bad
7943         integer, center 1 line.
7944         (environment::environment(symbol), environment::environment(const
7945         environment *)): Initialize right_justify_lines.
7946         (environment::get_right_justify_lines): New function.
7947         (init_env_requests): Bind this to number_register ".rj".
7949         * troff/env.c (environment::choose_breakpoint): Implement
7950         hyphenation_margin and hyphenation_space.
7951         (environment::get_hyphenation_space,
7952         environment::get_hyphenation_margin): New functions.
7953         (init_env_requests): Bind these to .hys and .hym.
7954         (hyphenation_space_request, hyphenation_margin_request): New
7955         functions
7956         (init_env_requests): Bind these to hys and hym.
7957         (environment::environment(symbol), environment::environment(const
7958         environment *)): Initialize hyphenation_margin and
7959         hyphenation_space.
7960         * troff/env.h: Corresponding changes to class environment.
7962 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
7964         * troff/div.c (blank_line): Always do a break.
7966         * eqn/box.c (do_text): Turn off escapes while appending text to
7967         string.
7969 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
7971         * troff/input.c (while_break_request, while_continue_request): New
7972         functions.
7973         (init_input_requests): Bind these to "break" and "continue".
7974         (while_depth, while_break_flag): New variables.
7975         (while_request): Update while_depth.  Break out of loop if
7976         while_break_flag is set.
7978 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
7980         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
7981         rather than 0.
7983 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
7985         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
7987         * stringify: New file.
7988         * Makefile (groff.o): Use stringify.
7990         * xditview/tmac.X: Remove definition of \(rn.
7991         * xditview/libXdvi/DviChar.c: Remove radicalex from
7992         Adobe_symbol_map.
7994 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
7996         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
7997         (alphabetic_block_entry::alphabetic_block_entry,
7998         alphabetic_block_entry::divert, alphabetic_block_entry::print):
7999         New functions.
8000         (block_entry::divert): Split off body into ...
8001         (block_entry::do_divert): If the block is alphabetic, subtract 2n
8002         from the line length; also update the span width to dl+2n, and the
8003         alphabetic span width to dl.
8005         * driver/input.c (do_file):  While reading argument to D command,
8006         when expanding buffer, multiply szp by sizeof(int) rather than 2
8007         in the argument to memcpy.
8009         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
8010         width of alphabetic columns.
8012 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
8014         * troff/node.c (lookup_family): Supply second argument to lookup.
8016         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
8017         search, return immediately if v is 0.
8019         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
8020         (troff_output::start_picture): Set this reg.
8021         (troff_output::end_picture): Remove this reg
8022         * eqn/box.c (box::extra_space): Don't produce `\x's if
8023         EQN_NO_EXTRA_SPACE_REG is defined.
8025         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
8026         * eqn/text.c (split_text): Map ' to \(fm when it's the first
8027         character.
8029 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
8031         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
8032         requests.
8034         * troff/div.c (top_level_diversion::top_level_diversion):
8035         Initialize page_number to 0.
8037 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
8039         * groff/troff (environment::environment(const environment *)):
8040         Initialize name to e->name, rather than "anonymous".
8042 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
8044         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
8045         requested_page.  Split middle part into ...
8046         (FindPage): New function.
8047         (SetValues): If we don't yet know the last page, and the requested
8048         page is greater than the current page, call FindPage.
8049         Update the font_map_string before doing this.
8051         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
8052         Translate \(lh and \(rh into left and right double arrows.
8054         * troff/node.c (class hyphen_inhibitor_node): New class.
8055         (hyphen_inhibitor_node::hyphen_inhibitor_node,
8056         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
8057         hyphen_inhibitor_node::type,
8058         hyphen_inhibitor_node::get_hyphenation_type): New functions.
8059         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
8060         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
8061         word.
8063 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
8065         * troff/node.h (dummy_node::get_hyphenation_type,
8066         transparent_dummy_node::get_hyphenation_type):  Declare them.
8067         * troff/node.c: (dummy_node::get_hyphenation_type,
8068         transparent_dummy_node::get_hyphenation_type): New functions.
8070 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
8072         * xditview/libXdvi/draw.c: If M_PI not defined after including
8073         math.h, then define it.
8075         * xditview/Makefile: Add definition of AR. Pass it to the submake
8076         in libXdvi.
8077         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
8079 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
8081         * troff/dictionary.h (object_dictionary::alias): Declare return
8082         value as int.
8083         * troff/dictionary.c (object_dictionary::alias): Return non-zero
8084         if the old name was defined.
8085         * troff/input.c (alias_macro): Give a warning if the old name was
8086         not defined.
8087         * troff/reg.c (alias_reg): Likewise.
8089 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
8091         * troff/input.c (token::next): Delete implementation of \R.
8093         * macros/Makefile: Strip comments from tmac.e while installing it.
8095         * troff/input.c: New variable `nroff_mode'.
8096         (troff_request, nroff_request): New functions.
8097         (init_input_requests): Bind `troff' and `nroff' to troff_request
8098         and nroff_request.
8099         (do_if_request): Compute results of t and n conditions from
8100         nroff_mode.
8102         * text/text.c (split_text): Fix typo in >=.
8104         * eqn/lex.c: Add definition of `==' to def_table.
8106 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
8108         * pic/tex.c (tex_output::start_picture): Change the definitions of
8109         \graph and \graphtemp so that they work properly with Plain TeX.
8111         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
8112         argument to `ar' is not less than the first.
8114         * pic/pic.y: Allow a comma between elements of the variable list
8115         in the argument to `reset'.
8117         * pic/object.c (arc_object::arc_object): Fix computation of
8118         radius.
8120         * eqn/main.c (main): Add exit(0).
8122 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
8124         * troff/div.c (begin_page): Test no_space_mode after doing the
8125         break, but still push the page ejector cookie before doing the
8126         break.  Also set the next page number after doing the break.
8127         
8128         * xditview/xditview.c (NewFile): Don't set the title and icon name
8129         if this is the first file and its name is `-'.
8130         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
8131         the X75 and X100 devices.
8132         (main): If a device has the XT_OPTION flag set and there's exactly
8133         one file argument, pass the driver -xrm and -title options to set
8134         the icon name and window title to the name of the file.
8136         * troff/env.c (environment_switch): If there was an argument but
8137         it wasn't a valid number or name, then pop an environment but
8138         don't give an error message on underflow.
8140         * troff/number.c (start_number): Correct spelling in error message.
8142         * troff/input.c (token::delimiter): Don't print an error message
8143         if err is false.
8145         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
8146         ParseDrawFunction if dw->display_enable is true.
8148 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
8150         * pic/pic.y: Parse text positioning like normal attributes, so as
8151         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
8152         positioning attribute.
8154 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
8156         * tbl/main.c (process_data): When in state START while reading a
8157         text block, don't change to state MIDDLE if c is a newline.
8159 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
8161         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
8162         so as to avoid shadowing parameter.
8164 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
8166         * tbl/table.c (trim_space): Deleted.
8167         (table::add_entry): Don't call trim_space.
8169 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
8171         * VERSION: Change version to 0.6.
8173         * troff/number.c (parse_expr): Make == work.
8175 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
8177         * man/grog.man: New file.
8178         * man/Makefile: Add grog.n to MAN1PAGES.
8179         * etc/grog.sh: New file.
8180         * etc/Makefile: Install grog.sh as grog.
8182 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
8184         * troff/input.c (token::next): Implement \E.
8186 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
8188         * xditview/tmac.X: Change font translations to match tmac.ps.
8190         * troff/input.c (non_empty_name_warning): Don't give a warning if
8191         `\{' terminates the name.
8193 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
8195         * ps/devps/symbol.diff: New file.
8196         * ps/devps/FontMakefile: Mention symbol.diff.
8198 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
8200         * troff/node.c (font_position): Use get_long_name to read the
8201         external_name.
8203         * troff/env.c (environment_switch): If we get a number that's < 0
8204         or >= NENVIRONMENTS, treat it like a name.
8205         Change NENVIRONMENTS to 10.
8207         * troff/groff.h: Remove definition of FONTS_MAX.
8208         * troff/node.h (class font_family): Make map a pointer instead of
8209         an array. Add a map_size member. Make it a class. Make nm const
8210         and public. Make invalidate_fontno a friend.
8211         * troff/node.c: Define font_table_size. Make font_info a pointer
8212         rather than an array.
8213         (class troff_output_file): Allocate font_position dynamically. Add
8214         nfont_positions member.
8215         (troff_output_file::set_font): Grow font_position if necessary.
8216         (troff_output_file::~troff_output_file): Delete font_position.
8217         (troff_output_file::troff_output_file): Allocate font_position.
8218         (grow_font_table): New function.
8219         (troff_output_file::really_begin_page,
8220         troff_output_file:really_copy_page): Use nfont_positions rather
8221         than FONTS_MAX.
8222         (mount_font_no_translate, mount_style): Call grow_font_table if
8223         necessary.
8224         (font_family::font_family): Allocate map.
8225         (font_family::make_definite): Grow map if necessary. Use
8226         font_table_size instead of FONTS_MAX.
8227         (font_family::~font_family): New function.
8228         (invalidate_fontno): Use font_family::map_size.
8229         (get_fontno, env_space_width, env_half_narrow_space_width,
8230         env_narrow_space_width, symbol_fotno, is_good_fontno,
8231         get_bold_fontno, make_glyph_node): Use font_table_size rather than
8232         FONTS_MAX.
8233         (next_available_font_position): Never return 0.
8235 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
8237         * ps/tmac.ps: Add font translations for compatibility with dpost.
8239 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
8241         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
8242         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
8243         Move definitions baseline_sep, shift_down, column_sep,
8244         matrix_side_sep into...
8245         * eqn/box.c: Add them to param_table.
8246         * eqn/pbox.h: Add declarations to pbox.h.
8248         * troff/input.c (set_string): Cast value to unsigned char *.
8250         * troff/token.h (process_input_stack): Declare it static before
8251         declaring it a friend.
8253 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
8255         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
8256         and bottom.
8257         * dvi/devdvi/EX: Regenerate.
8259         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
8260         transparent.
8262 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
8264         * eqn/lex.c: In defaults_table, make definition of `dot' call
8265         `dot_def'.  Don't explicitly make it roman.  Similarily for other
8266         accents.
8268         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
8269         argument.
8270         (for_input::get, for_input::peek): Use this.
8271         (do_for): Add by_is_multiplicative argument.
8272         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
8273         Change semantic value of optional_by to be a double plus a flag
8274         saying whethet the by clause is multiplicative.
8276         * eqn/lex.c (get_delimited_text): Remember location of start of
8277         definition.  Improve error handling when EOF is encountered.
8279         * lib/font.h: Rename handle_x_command to
8280         handle_unknown_font_command.
8281         * lib/font.c (font::load): Call handle_unknown_font_command for
8282         any unknown command in the font description file.  Don't call
8283         handle_x_command. Include the name of the command in the argv.
8284         Improve message for unknown command after kernpairs or charset
8285         command.
8286         * ps/ps.c (ps_font::handle_x_command): Rename to
8287         handle_unknown_font_command.  Remove message about `x download'
8288         command.  Give error message for wrong number of arguments.
8289         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
8290         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
8291         handle_unknown_font_command. Give an error message for wrong
8292         number of arguments.  Rename design_size to designsize.
8293         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
8294         checksum', `designsize' instead of `design_size'.
8296 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
8298         * eqn/*.[chy]: Change underaccent to uaccent.
8300         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
8301         give it the same precedence as ACCENT.
8302         * eqn/other.c (make_underaccent_box): New function.
8303         * eqn/box.h: Declare it.
8304         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
8305         def_table.
8307 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
8309         * pic/pic.y (reset_all): New function. Called in rule for RESET.
8310         (parse_init): Call reset_all.
8311         (define_variable): When defining scale reset only those
8312         pre-defined variables that are scaled.
8313         (defaults_table): Add `scale' as non-scaled value.
8315         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
8316         together with the text; allow any number of positioning words;
8317         allow center as a positioning word.
8319         * pic/object.c (output::compute_scale): Get picture maximum height
8320         and width from variables called maxpswid and maxpsht.
8321         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
8323 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
8325         * pic/object.c (object_spec::make_text): Multiply textht by number
8326         of text items.
8328         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
8329         occur.
8330         (do_sprintf): New function.
8331         (pic.gperf): Add sprintf token.
8332         (text, sprintf): New rules.
8334         * pic/pic.y: `rand()' with no arguments returns a random number
8335         in the range [0,1).
8337         * pic/pic.y: Allow a bare expression to be an attribute: change
8338         precedences to support this.  Change optional_ordinal rule to
8339         optional_ordinal_last to avoid reduce/reduce conflict.
8340         * pic/object.c (object_spec::object_spec): Initialize direction.
8342         * pic/pic.y: Implement ^ operator meaning exponentiation.
8344         * troff/node.h: Add default argument to mount_font.
8345         * troff/node.c (font_position): Read an optional third argument
8346         giving the external_name.
8347         (mount_font): Add optional argument giving the external_name.
8348         (mount_font_not_translate): Have additional argument giving
8349         external name.  Use this name to load the font.  Pass both names
8350         to font_info::font_info.
8351         (font_info::font_info): Have additional argument giving
8352         external_name.
8353         (class tfont): New member external_name.
8354         (font_info::get_tfont): Use external name to construct tfont_spec.
8356 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
8358         * eqn/lex.c (init_table): Add argument giving device.  Define
8359         name of device to be "1".
8360         (do_ifdef): Counts as true if the argument has been defined with
8361         `define'.
8362         * eqn/main.c (main): Call init_table with device argument. Make
8363         device local to main.
8364         * eqn/eqn.h: Change declaration of init_table. Remove declaration
8365         of device.
8367         * pic/lex.c (get_delimited): Allow text to be delimited by
8368         matching {}s.  Don't recognize ending delimiter within a string.
8370         * troff/input.c (get_delim_name): New function.
8371         (token::next): Implement \C.
8373         * lib/font.c (font::load): Grok ---.  Add an alias for each
8374         character based on its code.
8375         (font::get_code_width): Deleted.
8376         * lib/font.h (class font): Declare font::number_to_index().
8377         Remove declaration of font::get_code_width.
8378         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
8379         to indices of named characters.
8380         (font::number_to_index): New function.
8381         * troff/input.c (font::number_to_index): New function.
8382         (get_charinfo_by_number, charinfo::get_number,
8383         charinfo::set_number): New functions.
8384         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
8385         (token::process, token::description, token::get_char,
8386         token::add_to_node_list, token::operator==): Handle
8387         TOKEN_NUMBERED_CHAR.
8388         * troff/charinfo.h: Declare get_charinfo_by_number,
8389         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
8390         charinfo class.
8391         (charinfo::numbered): New function.
8392         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
8393         * troff/env.h (class environment): Remove declaration of ...
8394         * troff/env.c (environment::make_numbered_char_node): Deleted.
8395         * troff/node.c (make_numbered_node): Deleted.
8396         (class numbered_glyph_node): Remove.
8397         (troff_output_file::put_char_width, troff_output_file::put_char):
8398         Handle numbered chars.
8399         (troff_output_file::numbered_char): Removed.
8400         (tfont::get_code_width): Removed.
8401         (make_glyph_node): Don't search special fonts for numbered
8402         characters.
8403         * troff/node.h: Remove declaration of make_numbered_node.
8404         * driver/input.c (do_file): Handle N command.
8405         * driver/printer.h: Add declaration of ...
8406         * driver/printer.c (printer::set_numbered_char): New function.
8407         * dvi/tfmtodit.c (main): Generate unnamed entries.
8408         * ps/devps/afmtodit: Likewise.
8409         * xditview/xtotroff.c (MapFont): Likewise.
8410         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
8412         * tbl/main.c (process_format): If multiple widths are specified
8413         for a column but all the widths are the same, don't give an error
8414         message.
8416         * tbl/table.c (table::do_row): If the current row is all lines and
8417         the stuff doesn't contains a line, mark the top of the row after
8418         printing stuff before the row.  If the current row is not all
8419         lines and the stuff doesn't contain a line, don't unnecessarily
8420         mark the top of the row before printing the stuff.
8421         
8422 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
8424         * troff/groff.h: Remove MAX_PATH.
8425         * troff/input.c (open_file): Dynamically allocate space for the
8426         path.
8427         (open_mac_file, process_macro_file): Corresponding changes.
8429 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
8431         * troff/node.h (class output_file): Make copy_file pure.  Add
8432         vspace method ifdef COLUMN. Add is_printing method.
8433         * troff/node.c: Add class printing_reg. Add class
8434         real_output_file. Derive other output_file classes from
8435         real_output_file; in these classes rename begin_page to
8436         really_begin_page, print_line to really_print_line, copy_file to
8437         really_copy_file, transparent_char to really_transparent_char.
8438         Move output_file::flush to real_output_file. Add printing member
8439         to class output_file.
8440         * troff/div.h: Remove printing member from top_level_diversion.
8441         Add vspace member function to class diversion ifdef COLUMN. Add
8442         some declarations ifdef COLUMN.
8443         * troff/div.c (top_level_diversion::copy_file,
8444         top_level_diversion::transparent_output,
8445         top_level_diversion::output): Don't test printing member before
8446         output.
8447         * troff/input.c: Handle initial variable_space_request ifdef
8448         COLUMN.
8449         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
8450         but comment it out.
8452 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
8454         * troff/div.c (diversion::need): Make any space forced.  If we
8455         sprung a trap, set truncated_space to minus the distance to the
8456         trap and set needed_space to the amount that was needed.
8457         (top_level_diversion::space): A forced space turns no_space_mode
8458         off.
8459         (class constant_vunits_reg): New class.
8460         (init_div_requests): Implement number registers .trunc and .ne
8461         using constant_vunits_reg.
8462         (class truncated_space_reg): Deleted.   
8464         * troff/div.h: Don't have a no_space_mode member in diversion.
8465         Instead have it in top_level_diversion.
8466         * troff/div.c (diversion::diversion): Don't initialize
8467         no_space_mode.
8468         (top_level_diversion::top_level_diversion): Initialize
8469         no_space_mode.
8470         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
8471         (macro_diversion::output): Don't clear no_space_mode.
8473         * troff/input.c (diverted_space_node::reread): Don't call
8474         environment::do_break.  In fill mode, act like a blank line.
8475         (diverted_copy_file_node::reread): Don't call
8476         environment::do_break.
8478         * troff/div.c (blank_line): New function.
8479         * troff/div.h: Declare it.
8480         * troff/input.c (process_input_stack): Call it.
8482         * troff/div.c (truncated_space_reg::get_string): New function.
8483         (init_div_requests): Bind to .trunc.
8484         (space_request, top_level_diversion::space,
8485         top_level_diversion::output, macro_diversion::space,
8486         macro_diversion::output): Update truncated_space.
8487         (macro_diversion::output): Redo calculations when trap sprung.
8488         (macro_diversion::output, macro_diversion::space): No need for
8489         trap_flag.
8491         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
8492         after truncating post line spacing.
8494 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
8496         * ps/devps/prologue (MF, SF): Make them work even if setfont is
8497         defined as a procedure rather than as an operator.
8499 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
8501         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
8503 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
8505         * troff/div.c (top_level_diversion::output): Merge
8506         output_file::print_line and output_file::end_of_line member
8507         functions.
8508         * troff/div.h (class output_file):
8509         * troff/node.c (troff_output_file::print_line,
8510         troff_output_file::end_of_line, output_file::end_of_line,
8511         ascii_output_file::print_line, suppress_output_file::print_line):
8512         Corresponding changes.  
8514 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
8516         * troff/input.c (token::next): Don't give a warning for `\.'.
8518         * troff/env.c (environment::get_center_lines): New function.
8519         (init_env_requests): Bind number register .ce to it.
8520         * troff/env.h: Declare it.
8521         * tbl/table.c (table::init_output): Define reset macro to restore
8522         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
8523         Then do .ce 0.
8524         (table::print): If center option not given, then imply center
8525         option if SAVED_CENTER_REG > 0.
8527 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
8529         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
8530         Troff.ps from DOWNLOAD.
8531         
8532         * troff/Makefile: Change comment in DEFINES to avoid confusing
8533         System V make.
8535         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
8536         code.  Don't try to catch errors with stopped.
8537         (check_line_lengths): New function.
8538         * ps/devps/prologue (EXEC): Deleted.
8539         (EBEGIN, EEND): New procedures.
8541 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
8543         * troff/input.c: Include request.h before node.h.
8544         * troff/node.c: Likewise.
8545         * troff/env.c: Likewise.
8546         * troff/div.c: Likewise.
8547         * troff/node.h (class special_node): Store argument as a macro
8548         rather than a char *.
8549         * troff/node.c (special_node::special_node, special_node::copy):
8550         Grok this.
8551         (special_node::~special_node): Deleted.
8552         (special_node::tprint): Deleted.
8553         (special_node::tprint_start, special_node::tprint_end,
8554         special_node::tprint_char): New functions.
8555         (troff_output_file::special): Deleted.
8556         (troff_output_file::start_special, troff_output_file::end_special,
8557         troff_output_file::special_char): New functions.
8558         * troff/input.c (special_node::tprint): New function.
8559         (do_special): Use macro not char *.
8560         (do_transparent_macro): Deleted.
8561         (token::next): Don't call do_transparent_macro.
8563         * troff/input.c (token::next): Add 'Y' case.
8564         (do_transparent_macro): New function.
8565         * troff/node.c (troff_output_file::special): Handle newlines with
8566         argument using new continuation convention.
8567         * driver/input.c (get_string): Cope with continuation convention.
8568         (do_file): Don't call skip_line after calling get_string(1).
8569         * ps/ps.c (ps_printer::special, ps_printer::do_import,
8570         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
8571         arg.
8572         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
8573         with +.
8575 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
8577         * troff/input.c (asciify): By default, illegal input characters
8578         should return empty string.
8580         * troff/input.c (copy_file): Handle first page transition like title.
8581         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
8583         * troff/input.c (token::next): Improve error message for EOF after
8584         escape character.
8585         (input_char_description): New function.
8586         (get_char_for_escape_name): Use input_char_description.
8587         (token::next): Warn about unrecognized escape sequences.
8588         (warning_table): Add WARN_ESCAPE.
8589         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
8590         accordingly.
8592         * troff/token.h: Remove declaration of process_input_stack.
8594         * troff/input.c: Remove declaration of init_hyphen_requests.
8595         * troff/request.h: Correct spelling in declaration of same.
8597         * troff/input.c (token::next): Check whether escape_char is 0.
8599 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
8601         * groff.c (main, usage, help): Implement -P and -L options.
8602         * groff.sh: Likewise.
8604         * troff/input.c (token::next): Use some gotos to avoid code
8605         duplication.
8607         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
8608         Avoid calling symbol::symbol if name empty.
8610 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
8612         * troff/input.c (init_input_requests): Make \n(.x return the major
8613         version number and \n(.y return the minor version number.
8614         * troff/Makefile: Construct file majorminor.c defining
8615         major_version and minor_version automatically from ../VERSION.
8617         * troff/node.c (class glyph_node): Make operator new and operator
8618         delete public.
8619         (class ligature_node): Similarily.
8621         * troff/input.c (operator==(const macro &, const macro &)): New
8622         function.
8623         (non_interpreted_node::same): Use this.
8624         (string_iterator::string_iterator): Make macro& argument const.
8626         * troff/input.c (input_iterator::get): New function. Don't make
8627         asciify_macro or class non_interpreted_node friends of class
8628         input_iterator.
8629         (non_interpreted_node::interpret): Use input_iterator::get.
8630         (asciify_macro): Likewise.
8632         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
8633         ~non_interpreted_node): Deleted.
8634         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
8635         Deleted.
8637         * troff/symbol.h: Make all symbol member functions const.
8639         * lib/strtol.c: New file.
8640         * lib/Makefile: Add strtol.c.
8641         * Makefile: Define STRTOL as strtol.o to include strtol in
8642         libgroff.a.
8644 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
8646         * pic/troff.c (troff_output::simple_circle): Divide by scale.
8648 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
8650         * troff/input.c (do_special): Use input_level.
8652         * troff/token.h (TOKEN_BACKSPACE): New token.
8653         (token::backspace): New function.
8654         * troff/input.c (token::description, token::next, token::process):
8655         Grok TOKEN_BACKSPACE.
8656         (do_special): Turn TOKEN_BACKSPACE back into \b.
8658         * troff/token.h (token::leader): New function.
8659         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
8661         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
8663         * troff/input.c (do_special): Use token::description in error
8664         message.
8666 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
8668         * troff/input.c (decode_args): Combine quoted and
8669         quote_input_level variables. Make it a for (;;) loop.
8671         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
8673         * troff/input.c (read_long_escape_name): The test for whether to
8674         expand buffer was off by 1.
8675         (read_string): Similarily.
8677 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
8679         * troff/input.c: Use `const int' rather than `static const int'.
8681         * troff/div.h (diversion::copy_file): Declare as pure virtual.
8682         (macro_diversion::copy_file): New function.
8683         * troff/node.h: New class diverted_copy_file_node.
8684         * troff/node.c: Implement it.
8685         * troff/input.c (copy_file): Use diversion::copy_file. Handle
8686         first page transition by pushing a diverted_copy_file_node.
8687         * troff/input.c (token::next, process_input_stack): Don't handle
8688         COPY_FILE_REQUEST.
8690 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
8692         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
8693         whether space widths need adjusting.
8695         * troff/charinfo.h: Generalize translated_to_space to
8696         special_translation so as to allow translation to \&.
8697         * troff/input.c (translate): Allow translation to \&.
8698         (charinfo::*): Corresponding changes.
8699         * troff/node.c (make_node, node::add_char): Corresponding changes.
8700         * troff/node.h (dummy_node::dummy_node): Allow optional first
8701         argument.
8703         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
8704         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
8705         TOKEN_REQUEST.
8706         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
8707         TOKEN_REQUEST with an argument of TITLE_REQUEST.
8708         (token::process): Grok that.
8709         * troff/input.c (copy_file): Handle first page transition like
8710         title by pushing a COPY_FILE_REQUEST cookie.
8711         (token::next, process_input_stack): Grok that.
8712         * troff/node.h (output_file::copy_file): Add x and y arguments.
8713         Make it non-pure.
8714         * troff/div.c (top_level_diversion::copy_file): Supply them.
8715         * troff/node.c (troff_output_file::copy_file): Add x and y
8716         arguments; moveto specified position.  Invalidate font_position
8717         array after copying file.
8718         (output_file::copy_file): New function.
8719         (suppressed_output_file::copy_file, ascii_output::copy_file):
8720         Removed.
8721         * troff/input.c (transparent_file): New function.
8722         (init_input_requests): Bind to "trf".
8723         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
8724         (process_input_stack): Likewise.
8726         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
8728         * troff/node.c (init_node_requests): New number registers .kern
8729         pointing to global_kern_mode, and .lg pointing to
8730         global_ligature_mode.
8732         * troff/node.c (ligature): Don't change it if we get a bad
8733         integer.
8735         * troff/input.c (do_define_string): Don't strip tabs.
8737         * troff/input.c (asciify_macro): Make the string_iterator auto.
8739         * troff/node.c (init_font_requests): Rename to...
8740         (init_node_requests):
8741         * troff/node.h: Change declaration.
8742         * troff/input.c (main): Change call.
8744         * troff/input.c (node::reread, diverted_space_node::reread): New
8745         methods.
8746         (process_input_stack): Call reread rather than
8747         get_diverted_space_node.
8748         * troff/node.c (node::get_diverted_space_node,
8749         diverted_space_node::get_diverted_space_node): Removed.
8750         * troff/node.h: Declare reread methods instead of
8751         get_diverted_space_node methods. Make `n' member private.
8752         * troff/input.c: (token::diverted_space): Removed.
8753         * troff/token.h: Removed declaration.
8754         
8756 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
8758         * eqn/script.c (script_box::compute_metrics): Don't let
8759         SUP_RAISE_FORMAT become negative.
8761         * tbl/table.c (table::do_row): Entries that don't end in the
8762         this row shouldn't make the row non-blank.
8763         
8764         * tbl/table.c (table::make_columns_equal): Only set the width of
8765         columns which are marked as equal.
8766         
8767         * tbl/main.c (process_data): Before issuing excess data error,
8768         if last character was a newline unget it; then get it again after
8769         the error.  Also include the contents of the entry in the message.
8771         * groff.c: New file.
8772         * Makefile: Build groff from groff.c.  Make it possible to use
8773         either groff.sh or groff.c as groff.
8774         * Makefile.bd: Similarily.
8776 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
8778         * groff.sh: Don't delay expansion of $@ in assignment to files.
8779         Remove occurrences of \".
8781 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
8783         * all Makefiles: Simplify and rearrange.
8785         * Makefile: Handle fmod like malloc.
8786         * lib/Makefile: Similarily.
8787         * lib/fmod.c: Remove #ifdef NEED_FMOD.
8789         * Makefile: Rename OPTIMISE to OPTIMIZE.
8791         * groff.sh: Remove assignment to PATH.
8792         * Makefile: Remove SHPATH variable.
8793         * Makefile.bd: Similarily.
8795         * groff.sh: Add -V option to print the pipeline instead of
8796         executing it.
8798 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
8800         * lib/font.c: Split off file searching into ...
8801         * lib/fontfile.c: New file.
8803         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
8805 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
8807         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
8808         Also change misleading comment.
8809         (table::do_vspan): Change similarily misleading comment.
8810         * tbl/main.c (process_data): A format row with an explicit `s'
8811         uses up a data line, even if all the other columns are `_' or `='.
8813         * troff/input.c (token::description): Fix description of
8814         TOKEN_DUMMY and TOKEN_EMPTY.
8816 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
8818         * groff.sh: Fix description of -Z in help message.
8820 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
8822         * pic/object.c (object_spec::make_object): Allow negative and zero
8823         line thicknesses.
8824         * pic/pic.y: Give linethick default value of -1.0.
8825         * pic/troff.c (troff_output::troff_output): Initialize
8826         last_line_thickness to BAD_THICKNESS.
8827         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
8828         (troff_output::line_thickness): Canonicalize negative thicknesses
8829         to RELATIVE_THICKNESS.
8830         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
8831         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
8832         to -1.0.
8833         (tex_output::start_picture): Set pen_size to -2.0.
8835         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
8836         0, then use 0 linewidth.
8837         (ps_printer::ps_printer): Initialize line_thickness to -1.
8839         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
8841         * ps/devps/symbolchars: Remove `or'.
8842         * ps/tmac.ps: Implement \(or with .char.
8844         * ps/devps/symbolchars: Move most characters into textmap.
8845         * ps/devps/textmap: Add names for troff bracket characters. Remove
8846         ul, ru, br, bv.
8848         * ps/devps/TSymbol.ps: Removed.
8849         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
8850         * ps/tmac.ps: Do with .char what TSymbol did.
8851         * ps/devps/download: Remove TSymbol.
8853         * ps/devps/T: Removed.
8854         * ps/devps/Troff.ps: Removed.
8855         * ps/devps/Troff.afm: Removed.
8856         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
8857         * ps/devps/download: Remove Troff.
8858         * ps/devps/FontMakefile: Remove T target.
8859         * ps/devps/DESC-A4: Remove T from font list.
8860         * ps/devps/DESC-letter: Likewise.
8862         * troff/input.c (macro_to_node): Rename to ...
8863         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
8864         character's definition while processing it.
8865         * troff/node.c (node::add_char, make_node): Change calls to
8866         macro_to_node accordingly.
8868         * troff/input.c (token::next): Translate \_ to \(ul.
8870         * tty/devascii/R.proto: Add `|'.
8871         * tty/devlatin1/R.proto: Likewise.
8873 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
8875         * man: Put the version number in all the man pages.
8877 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
8879         * Makefile.bd: New file.
8880         * README.bd: New file.
8882         * VERSION: New file.
8883         * lib/version.c: Removed.
8884         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
8885         in clean target.
8887         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
8888         environment variable.
8890         * all Makefiles: Split install target into install.bin for
8891         binaries, and install.nobin for everything else.
8892         * Makefile: Add bindist target.
8894         * man/afmtodit.man: New file.
8895         * man/Makefile: Add afmtodit.n to MAN1PAGES.
8896         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
8897         in BINDIR.
8898         * ps/Makefile: Pass BINDIR to make install in devps.
8900         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
8901         the space character.
8903         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
8905 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
8907         * ps/ps.c: Redo font downloading.
8908         * ps/devps/download: New file.
8909         * ps/devps/Makefile: Add download to DEVICEFILES.
8910         * ps/devps/afmtodit: Remove -d option.
8911         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
8912         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
8913         * ps/devps/zapfdr.ps: Likewise.
8914         * ps/devps/TSymbol.ps: Likewise.
8916 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
8918         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
8920 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
8922         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
8923         then strip the first line if it starts with %.
8924         * Makefile: Add a comment about this.
8926         * man/tfmtodit.man: New file.
8927         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
8928         * dvi/Makefile: Install tfmtodit in BINDIR.
8930         * dvi/tfmtodit.c (usage): Mention -v option.
8932 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
8934         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
8935         * troff/node.c (troff_output_file::transparent_char): Don't call
8936         flush_tbuf.
8938         * eqn: Add check_tabs method to most box classes.
8939         * eqn/box.c (box::top_level): Call check_tabs.
8941         * eqn/script.c (script_box::output): Use \Z.
8942         * eqn/limit.c (limit_box::output): Use \Z.
8944         * eqn/box.c (box::top_level): Use itoa.
8946 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
8948         * dvi/tmac.dvi: Add font translations for CR, C, TT.
8949         * dvi/devdvi/Makefile: Don't make links to CW.
8951         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
8952         HX, HD.
8953         * xditview/tmac.X: Likewise.
8955         * troff/node.c: Add font translation feature.
8956         (get_font_translation): New function.
8957         (symbol_fontno): Translate the font name.
8958         (mount_font_no_translate): Rename to mount_font to this.
8959         (mount_font): New function.
8960         (font_family::make_definite): Call mount_font_no_translate instead
8961         of mount_font.
8962         (mount_style): Translate the font name.
8963         (font_translate): New function.
8964         (init_font_requests): Bind "ftr" to font_translate.
8966         * ps/devps/prologue (SN): New procedure that rounds a position to
8967         the nearest (pixel + (.25,.25)).
8968         (DL): Use SN to round endpoints.
8970         * lib/version.c: Changed version to 0.5.
8972 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
8974         * Makefile: Move definition of PAGE to the very beginning, so that
8975         people are less likely to miss it.
8977 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
8979         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
8981         * troff/env.c (environment::choose_breakpoint): Make `can't find
8982         breakpoint' error a warning of type WARN_BREAK.  Change message to
8983         `can't break line'.
8984         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
8985         code 040000.
8986         * troff/input.c: Add WARN_BREAK to warning_table.  Include
8987         WARN_BREAK in DEFAULT_WARNING_MASK.
8989         * tty/tmac.tty: Add definition of \(+-.
8991         * groff.sh: Remove `--' option to set command.
8993         * dvi/devdvi/texsy.map: Remove duplicate md entry.
8995         * ps/devps/eqnchar: Better definition of cdot using md.
8996         * dvi/devdvi/eqnchar:  Likewise.
8997         * xditview/devX100/eqnchar:  Likewise.
8998         * xditview/devX75/eqnchar: Likewise.
8999         * eqn/lex.c: Add definition of cdot.
9001 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
9003         * troff/input.c (get_optional_char): New function.
9004         * troff/input.c (set_page_character): Use get_optional_char(),
9005         rather than has_arg() and tok.get_char(1).
9006         * troff/env.c (tab_character, leader_character, hyphen_char,
9007         field_characters): Likewise.
9008         (margin_character): Likewise.  Also always delete the
9009         margin_character_node.
9011         * troff/input.c (token::get_char): Use token::description.
9013         * troff/input.c (has_arg): Don't skip over tab and \}.
9014         * troff/number.c (start_number): Give a warning if the number
9015         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
9017 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
9019         * troff/input.c (empty_name_warning, non_empty_name_warning): New
9020         functions.
9021         (get_name, get_long_name): Use these.  Rename `warn' argument to
9022         `required'.
9024         * troff/node.c (get_fontno): Test that the symbol is not null.
9026         * troff/input.c (token::description): New function.
9027         * troff/number.c (parse_term): Use token::description in `numeric
9028         expression expected' message.
9029         * troff/groff.h: Add WARN_MISSING.
9030         * troff/number.c (start_number): New function.
9031         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
9032         get_incr_number): Use start_number().
9033         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
9034         default.
9035         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
9036         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
9037         token::descripion.
9038         * troff/input.c (token::get_char): Use WARN_MISSING.
9039         * troff/input.c (token::delimiter): Use token::description.
9040         * troff/env.c (environment_switch): Back out Aug 3 change.
9041         * troff/input.c (has_arg): Skip over \}s and tabs but give a
9042         warning.
9043         * troff/token.h (token::tab): New function.
9044         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
9045         * troff/reg.c (alter_format): Likewise.
9046         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
9048 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
9050         * troff (most files): Redo warnings. Divide warnings into various
9051         categories; warning() has an additional first argument indicating
9052         the category it falls into.
9053         * troff/input.c (main): -w now takes an argument. New option -W.
9054         (enable_warning, disable_warning): New functions.
9056         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
9057         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
9059 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
9061         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
9062         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
9063         * xditview/devX75/eqnchar: Likewise.
9064         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
9066         * eqn/other.c: When bar or over applies to a single character
9067         don't produce an overline_box or an underline_box. Instead produce
9068         an accent_box or an underaccent_box, with the accent a line
9069         whose width is accent_width.  New classes underaccent_box,
9070         overline_char_box and underline_char_box.
9071         * eqn/box.h: Move overline_box, underline_box, accent_box class
9072         declarations into eqn/other.c. Add declarations of
9073         make_underline_box, make_overline_box, make_accent_box.
9074         * eqn/eqn.y: Call make_overline_box, make_underline_box
9075         make_accent_box instead of constructors.
9076         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
9078         * eqn/other.c: Add accent_box::~accent_box.
9079         * eqn/box.h: Declare it.
9081         * groff.sh: With -Tps, use eqn -D.
9083         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
9084         rather than \l.
9085         (underline_box::output): Similarily.
9086         (accent_box::output): Use \Z.
9088         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
9089         bit smaller.)
9091 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
9093         * troff/div.c (top_level_diversion::transparent_output(unsigned
9094         char)): Use asciify.
9095         * troff/input.c (asciify): Don't make it static.
9096         * troff/token.h (asciify): Declare it.
9097         
9098         * troff/input.c (get_name, get_long_name, token::get_char,
9099         token::delimiter): Add an extra default argument which says
9100         whether a warning should be printed.
9101         * troff: Pass a non-zero argument to one of these rather than
9102         printing a warning directly.
9104 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
9106         * troff: Consistently use symbol::is_null.
9108         * troff/dictionary.h: Move some inline functions into
9109         dictionary.c.
9111         * troff/request.h: Move inline functions into input.c.
9112         (request_or_macro::invoke): Make it pure.
9114         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
9115         * troff/input.c (init_input_requests): Use class constant_int_reg.
9116         (class compatible_reg): Deleted.
9117         * troff/div.c (init_div_requests): Use class constant_int_reg.
9118         (class last_post_line_extra_space_reg): Deleted.
9120         * troff/env.c (tab_character): Don't change the tab character if
9121         we get an invalid argument.
9122         (hyphen_char): Similarily.
9124         * troff/reg.c (alter_format): Check that nm is not null.
9126         * Makefile, groff.sh: Make it possible to customize the commands
9127         used for printing PostScript and dvi files. Also make it possible
9128         to customize the path used by groff.sh.
9130         * eqn/eqn.y: Make `left' right associative.
9132 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
9134         * pic/pic.h: Added definition of M_SQRT2 for those systems that
9135         don't have it.
9137         * pic/pic.h: Removed definition of INT_MAX.
9139         * troff/node.c (italic_corrected_node::vertical_extent): Omit
9140         `return'.
9142         * troff/input.c (token::next):  Handle \R like \n.
9144 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
9146         * ps/tmac.pc (PSPIC): Simplify.
9148         * troff/env.c (tab_stops::to_string):
9149         * pic/pic.y (object_type_name):
9150         * pic/troff.c (simple_output::line):
9151         * pic/tex.c (tex_output::spline):
9152         * pic/object.c (object_spec::make_object):
9153         * tbl/main.c (process_data):  Add cases to switch statements to
9154         avoid cfront warnings. (Some of these are spurious, since the
9155         switch already has a default case.)
9157         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
9158         `ps-'.  Don't test systat; instead check number of arguments to
9159         ps-bb.
9161 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
9163         * macros/tmac.e: Do not decrease the page offset by 0.5i.
9165         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
9166         Unlink the file as soon as we have opened it, so that we don't
9167         have to bother with signal handlers.
9168         (handler): Deleted.
9169         (fatal_error_exit): Deleted.
9170         (main): Don't call signal.
9172         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
9173         can be ignored.
9174         * dvi/devdvi/Makefile: Use the -k option with S and MI.
9176         * pic/pic.y:  If there is a label, or an nth construction before
9177         the first `.' in the argument to `with', ignore it and generate a
9178         warning.
9179         * pic/lex.c (lex_warning): New function.
9181         * tbl/table.c (table::init_output): In section keep and release
9182         macro, use 0 indent when diverting and the correct indent when
9183         rereading.
9185         * troff/input.c (interpolate_number_format): Do not interpolate
9186         anything if the number register is not defined.
9188         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
9190 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
9192         * ps/devps/prologue (PICTURE): Set components of graphics state to
9193         their default values.
9195         * ps/devps/text.enc: Add trademark
9196         * ps/devps/textmap: Add names for club, spade, heart, diamond,
9197         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
9198         * ps/devps/symbolchars: Add names for summation and product.
9200         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
9201         suchthat. Add pp. Add upper-case letters.
9203         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
9204         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
9205         Upsilon.
9207         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
9208         rA (right angle bracket) to ra.  Introduce names for double-headed
9209         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
9210         * ps/devps/textmap: Likewise for ps device.
9211         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
9212         * tty/devascii/R.proto: Rename lA to la and rA to ra.
9213         * tty/devascii/R.proto: Likewise.
9214         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
9215         \(uA, \(dA.
9216         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
9218         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
9220         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
9221         def_table.
9223 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
9225         * troff/div.c (when_request): Use symbol::is_null rather than
9226         has_arg to determine whether we have an argument.
9227         (change_trap): Remove the trap if we get an invalid number. Give
9228         an error if we don't get at least the macro name.
9229         (diversion_trap): Remove trap if we get an invalid name or number.
9231         * troff/env.c (environment_switch): Pop if we get an invalid
9232         symbol or numeric expression.
9234         * troff/input.c (do_define_macro):  If EOF is encoutered while
9235         defining the macro, do tok.next() before returning.
9237         * troff/token.h (has_arg): Move definition from here, to ...
9238         * troff/input.c (has_arg): ... here
9240         * troff/env.c (space_size): Do nothing if we get an invalid argument.
9241         * troff/input.c (shift): Likewise.
9243         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
9244         for `.c'.
9246         * pic/troff.c (troff_output::start_picture):  Comment out calls to
9247         `..'.
9249         * eqn/main.c (do_file): Subtract 1 from current_lineno if
9250         interpret_lf_args succeeds.
9252         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
9253         \\.  This avoids problems with \$N.
9255         * groff.sh: Pass -C to preprocessors.
9257         * lib/lf.c (interpret_lf_args):  Be more flexible.
9259         * tbl/main.c (main): Add -C option.
9260         (table_input::get): Do not recognize TE if followed by character
9261         other than a space or newline unless -C option given.
9262         (process_input_file): Likewise for lf, TS.
9263         (process_data): Likewise for lf in text blocks.
9265         * eqn/main.c (main): Add -C option.
9266         (do_file): Don't recognize EQ, EN or lf if followed by character
9267         other than space or newline unless -C option given.
9268         * eqn/lex.c (file_input::read_line): Similarily.
9269         * eqn/eqn.h: Declare compatible_flag.
9271         * etc/soelim.c (main): Add -C option.
9272         (interpret_lf_args): Use version in libgroff.
9273         (do_file):
9275         * pic/main.c (main): Add -C option, which sets compatible_flag.
9276         (top_input::get), (top_input::peek):  If -C option not given,
9277         do not recognize .PS/.PE/.PF/.lf if followed by a character
9278         other than space or newline.
9279         * pic/lex.c (file_input::read_line): Similarily.
9280         * pic/pic.h: Add declaration of compatible_flag.
9282 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
9284         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
9286         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
9287         derived from node.  New class space_char_hmotion_node.
9288         * troff/input.c (asciify_macro): New function.
9289         * troff/input.c (init_input_requests): New request `asciify' bound
9290         to asciify_macro.
9291         * macros/mm.diff: New file.
9292         * Makefile:  In install.mm target use `patch' to apply
9293         macros/mm.diff.
9295         * troff/input.c (macro::print_size): Just print the size in bytes.
9297         * troff/div.c (return_request): Correct the argument
9298         interpretation.
9300 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
9302         * troff/node.h (class composite_node): Add sz member.
9303         * troff/node.c (composite_node::size): Return sz.
9304         * troff/input.c (macro_to_node):  Use the initial size in the
9305         environment as the size of the composite_node.
9307         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
9308         default.
9310 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
9312         * troff/div.c (change_trap): If we get a bad number expression,
9313         do nothing.
9315 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
9317         * lib/matherr.c (matherr): Define this only if math.h defines
9318         TLOSS.
9320 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
9322         * troff/div.c (macro_diversion::distance_to_next_trap): If there
9323         no diversion trap return vunits(INT_MAX - vresolution).
9325 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
9327         * troff/input.c (do_zero_width): New implementation that doesn't
9328         use a temporary environment. Use instead:
9329         (token::add_to_node_list): New function.
9330         * troff/env.c (environment::get_prev_char_height),
9331         (environment::get_prev_char_height),
9332         (environment::get_prev_char_skew): New functions.
9333         (environment::get_prev_char): New function.
9334         (environment::get_prev_char_width): Change to use get_prev_char.
9335         (init_env_request): Implement new registers .cht, .cdp, .csk.
9336         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
9337         \Z being processed in a separate environment.
9339 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
9341         * tbl/table.c: Removed TABLE_BOTTOM_REG.
9343         * tbl/table.c (table::init_output): In the section release macro,
9344         give a warning message if the section won't fit on one page.
9346         * tbl/table.c (table::do_top): Emit table keep only if table is
9347         boxed.
9348         (table::do_bottom): Likewise for table release.
9349         (table::table), (table::add_vertical_rule):  Remove reference to
9350         keep member.
9351         * tbl/table.h: Remove keep member.
9353         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
9354         SECTION_RELEASE_MACRO, if there's not enough space before the next
9355         trap to output the diversion, call T# ourselves, set
9356         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
9357         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
9358         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
9359         vertical position and return to it before turning traps on again.
9360         
9361 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
9363         * troff/node.c, troff/node.h: In classes derived from node,
9364         replace prev_char_width method by last_char_node method.
9365         * troff/env.c (environment::get_prev_char_width): Use
9366         node::last_char_node rather than node::get_prev_char_width.
9368         * Makefile: Added comment about -fno-inline on 68030-based
9369         Apollos.
9371         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
9372         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
9373         expressions using sizeof to int.
9374         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
9376         * macros/tmac.e (TS):  Don't move @f back past the current
9377         position.
9379 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
9381         * ps/ps.c (main): Buffer stderr.
9382         * dvi/dvi.c (main): Likewise.
9383         * tty/tty.c (main): Likewise.
9385         * ps/ps.c (ps_printer::do_import): Improve error handling.
9387         * troff/input.c (abort_request): Use asciify.
9389         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
9390         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
9391         type of first argument int rather than char.  This works around a
9392         bug on the 68030 based Apollo using g++ 1.37.1.
9394         * tbl/table.h (class table): Add `keep' member.
9395         * tbl/table.c (table::table): Initialize `keep'.
9396         (table::add_vertical_rule): Set `keep' to 1.
9397         (table::do_top): Only emit table keep macro is `keep' is non-zero.
9398         (table::do_bottom): Likewise for table release macro.
9399         (table::do_row): Emit section keep macro even if the row is 0.
9401 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
9403         * macros/tmac.e (@C): Preserve the font family across the change
9404         in environments.
9406 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
9408         * lib/font.c: Initialize font::hor and font::vert to 1.
9409         (font::load_desc): Check the values of font::hor and font::vert.
9411         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
9412         be included in a C compilation.
9413         (iftoa): Use INT_DIGITS. Include lib.h.
9414         (itoa): Likewise.
9415         (as_string): Likewise.
9416         * tbl/table.c: Removed definition of INT_DIGITS.
9417         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
9418         * troff/input.c (input_input_requests): Likewise.
9419         * ps/ps.c (make_encoding_name): Likewise.
9420         (ps_printer::set_style): Likewise.
9421         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
9423         * tty/devascii/R.proto: Map fm onto '.
9424         * tty/devlatin1/R.proto: Likewise.
9426 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
9428         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
9429         argument to \w is at a different input level.
9431         * tbl/table.c (table::init_output): Define a new macro
9432         REPEATED_VPT_MACRO, like vpt but if in a diversion also
9433         transparently outputs itself.
9434         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
9435         vpt.
9436         (table::do_row): Likewise.
9438         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
9439         TRANSPARENT_STRING_NAME.
9441         * tbl/table.c (table::init_output): In the table release macro
9442         print an error message and don't produce any output if after
9443         issuing the need request the table still will not fit.  Also
9444         remove the diversion after bringing it back.
9446         * tbl/table.c (table::init_output): Define a new macro
9447         REPEATED_MARK_MACRO, like mk but if in a diversion also
9448         transparently outputs itself.
9449         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
9450         is necessary because .TH might not call .T#.
9451         (table::do_top): Likewise TOP_REG.
9452         (table::define_bottom_macro): If TOP_REG is no longer valid, use
9453         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
9454         table header might contain just the two top rules.
9456 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
9458         * troff/div.c: Implement new request `ptr' to print all traps.
9460         * troff/env.c (init_env_requests): Implement `.tabs' reg with
9461         init_string_env_reg.
9462         * troff/env.c (class tab_reg): Deleted.
9464 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
9466         * troff/div.c: New number register .pn returns the number of the
9467         next page as set by the pn request.
9469         * macros/tmac.an: Redid headers and footers.  Number each manual
9470         entry starting from 1 unless \nC is > 0, like Sun.  Added an
9471         optional 5th argument to .TH which specifies the manual name and
9472         appears in the center of the header.  Understand the X, P and D
9473         registers like Sun.
9475 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
9477         * troff/env.c (init_env_requests): New number register `.lt' to
9478         return the title length.
9480         * troff/node.h (class transparent_dummy_node): New class.
9481         * troff/node.c (class transparent_dummy_node): Provide member
9482         functions. 
9483         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
9484         than a dummy_node.
9486         * troff/input.c (token::next): New escape sequence \).
9487         * troff/input.c (get_copy): Recognize \) in copy mode.
9489         * troff/input.c (input_stack::clear): New function.
9490         * troff/input.c (exit_request): Use input_stack::clear.
9492         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
9493         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
9495         * troff/env.c: Move set_page_character to input.c.  Move
9496         page_character to input.c also.
9497         * troff/env.c (title): Split off the reading of the parts of the
9498         title into read_title_parts.
9499         * troff/input.c (read_title_parts): New function.  Check the
9500         input_level when testing whether a token matches the delimiter.
9502         * troff/input.c (exit_request): New function.
9503         * troff/input.c (init_input_requests): Bind ex request to
9504         exit_request rather than exit_groff.
9506         * troff/input.c (exit_groff): Call tok.next() before
9507         process_input_stack().
9509 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
9511         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
9512         * troff/env.h: ditto.
9513         * troff/input.c: ditto.
9515         * troff/env.c (environment::is_empty): Test pending_lines.
9517         * troff/env.c (environment::have_pending_lines): Removed.
9519         * troff/input.c: Add request to flush pending lines from the
9520         environment.
9522         * troff/env.c, troff/env.h: Add automatic widow control feature.
9524         * troff/input.c (exit_groff):  Do process_input_stack() after
9525         do_break() but before setting exit_flag to 2.
9527         * troff/input.c: Remove FLUSH_PENDING_LINES and
9528         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
9529         environment after END_TRAP token seen, but only if there aren't
9530         any more traps still unfinished.
9531         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
9533 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
9535         * troff/env.c: Rename the `retain_size' member of class
9536         pending_output_line to `no_fill'.
9538         * troff/env.c (title): When the line is output, make the
9539         retain_size argument !fill.
9541         * troff/node.h: Add `hyphenated' member to struct breakpoint.
9542         * troff/node.c (space_node::get_breakpoints),
9543         (dbreak_node::get_breakpoints):  Fill this in.
9544         * troff/env.c:  Allow specification of maximum number of
9545         consecutive hyphenated lines.
9547         * troff/env.c (environment::is_empty): Add test for !current_tab.
9549 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
9551         * troff/env.c (environment::hyphenate_line): Don't completely give
9552         up if the word is not to be hyphenated; continue so that breaks
9553         can be made at break_char_node's.
9555         * lib/lib.h: Only define INT_MAX if it's not already defined;
9556         undef INT_MIN if it's already defined.
9558         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
9560         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
9561         This works around a bug in AT&T C++ 2.0 used with an ANSI C
9562         compiler.
9563         
9564         * macros/tmac.an (an-header): Set no-space mode.
9566         * macros/tmac.an (TH): Start a new page if necessary.
9568         * Started using ChangeLog at version 0.4.
9570 Local Variables:
9571 version-control: never
9572 coding: latin-1
9573 End: