* src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
[s-roff.git] / ChangeLog
blob749a8b352cbdcddde2ec925dbfb5a5480e42c144
1 2003-11-24  Werner LEMBERG  <wl@gnu.org>
3         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
4         if processing hyphenation patterns in traditional mode.
5         Improve error messages.
7 2003-11-20  Werner LEMBERG  <wl@gnu.org>
9         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
10         troff_output_file::put_char): Fix type of local variable `c'.
12 2003-11-19  Werner LEMBERG  <wl@gnu.org>
14         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
15         declarations.
16         (i_to_a): Removed.  libgroff already provides this function.
17         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
19 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
21         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
22         HAVE_DECL_SYS_LIST.
24 2003-11-17  Werner LEMBERG  <wl@gnu.org>
26         * COPYING: Use correct version.
28 2003-11-11  Werner LEMBERG  <wl@gnu.org>
30         LynxOS 4.0.0 doesn't declare vfprintf.
32         * configure.ac: Check for vfprintf.
33         * configure: Regenerated.
34         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
35         * src/include/config.hin: Regenerated.
37 2003-11-10  Werner LEMBERG  <wl@gnu.org>
39         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
41         * configure.ac: Check for vsnprintf.
42         * configure: Regenerated.
43         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
44         `HAVE_VSNPRINTF'.
45         * src/include/config.hin: Regenerated.
47 2003-11-09  Werner LEMBERG  <wl@gnu.org>
49         * aclocal.m4: Updated syntax to autoconf 2.59.
50         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
51         Don't check for gsos2.
52         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
53         working abs_top_srcdir and abs_top_builddir.
55         * configure.ac: Updated syntax to autoconf 2.59.
56         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
57         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
58         * configure: Regenerated.
60         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
61         s/@groff_top_builddir@/@abs_top_builddir@/.
63         * src/roff/groff/pipeline.c (xstrsignal):
64         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
66 2003-11-07  Werner LEMBERG  <wl@gnu.org>
68         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
69         make start angle smaller than end angle to circumvent a bug in tpic
70         handling of some versions of dvipdfm (and dvipdfmx).
72 2003-10-30  Werner LEMBERG  <wl@gnu.org>
74         * src/devices/grops/grops.man: Improve section on creating EPS.
76 2003-10-29  Werner LEMBERG  <wl@gnu.org>
78         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
79         -P-pletter).
81 2003-10-28  Werner LEMBERG  <wl@gnu.org>
83         * doc/groff.texinfo: Fix documentation of `.if'.
85 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
87         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
88         the form `uniXXXX' also.
90 2003-10-27  Werner LEMBERG  <wl@gnu.org>
92         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
93         contrib/pic2graph/pic2graph.sh: Implement secure management of
94         temporary files.
95         Pass `-P-pletter' to groff to avoid data outside of the converted
96         area -- some versions of `convert' (for example 5.3.8) don't check
97         the bounding box of the image but always use a fixed image size
98         (letter paper format).
99         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
100         contrib/pic2graph/pic2graph.man: Updated.
102         * src/roff/groff/groff.man: Document $TMP and $TEMP.
104 2003-10-26  Werner LEMBERG  <wl@gnu.org>
106         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
107         troff_output::simple_ellipse, troff_output::simple_arc,
108         troff_output::simple_line, troff_output::simple_spline,
109         troff_output::simple_polygon): Insert a space before arguments.
110         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
111         latter doesn't produce a node, so the following `.sp -1' would do
112         the wrong thing.
113         Don't emit `.sp -1' after \M.  This also doesn't produce a token
114         (and we don't have to care about compatibility mode).
115         (troff_output::set_color, troff_output::reset_color): Don't emit
116         `.sp -1' after \M and \m.
118         * src/roff/troff/input.cpp (old_have_input): New global variable.
119         (input_stack::get): Handle `old_have_input'.
120         (process_input_stack) <token::TOKEN_NEWLINE>: Call
121         `trapping_blank_line' depending on `old_have_input', not
122         `have_input'.
124 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
126         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
127         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
128         default directory names for temporary files.
129         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
131         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
132         [__MSDOS__] (run_pipeline): Honour environment variables.
133         Don't use `tmpnam' but `tempnam' to work around messy
134         implementation.
136         * README.MinGW: New file.
138 2003-10-16  Werner LEMBERG  <wl@gnu.org>
140         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
141         `(*t)->next' without testing validity of `*t'.
142         (usage): Make it more readable.
144 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
146         Make html device run under both MS-DOS and Win32.
148         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
149         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
150         spawn or fork+exec has to be used, and whether parent must sleep
151         until the child process terminates.  Used in
152         `char_buffer::run_output_filter'.
153         (copyofstdoutfd): Removed.
154         (char_buffer): Replace `write_file_html' and `write_file_troff'
155         member functions with `emit_troff_output' and `run_output_filter'.
156         The latter 
157         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
158         macros.
159         (replaceFd): Replaced with...
160         (set_redirection): New auxiliary function.
161         (waitForChild): Replaced with...
162         (save_and_redirect): New auxiliary function for.
164         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
165         functions.
167 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
169         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
170         (GROFF_LIBC): New function.
171         * configure.ac: Call GROFF_LIBC.
172         Check for `kill'.
173         * configure: Regenerated.
175         * src/include/lib.h: Handle __MINGW32__.
176         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
177         Add macro for `pipe'.
178         Define P_tmpdir.
180         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
181         correctly.
183         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
184         Implement.
186 2003-10-13  Werner LEMBERG  <wl@gnu.org>
188         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
189         <chuq@chuq.com>.
191         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
192         directory.
194 2003-10-12  Werner LEMBERG  <wl@gnu.org>
196         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
197         src/roff/troff/input.cc (usage): Updated.
199         * NEWS, doc/groff.texinfo: Updated.
201 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
203         * src/libs/libgroff/searchpath.cpp
204         (search_path::open_file_cautious): New function which also handles
205         `-' as stdin and stdout depending on the access mode.
206         * src/include/searchpath.h (search_path): Updated.
208         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
209         * src/devices/grops/ps.h: Include `searchpath.h'.
210         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
211         Open resource file with `include_search_path.open_file_cautious'.
212         * src/devices/grops/grops.man: Document new `-I' switch.
214         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
215         (main), src/devices/grolj4/lj4.cpp (main),
216         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
218         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
219         Replaced with...
220         (include_search_path): New global variable.
221         (include_path_append): Removed.
222         (main): Use `include_search_path.command_line_dir' to handle `-I'.
223         (do_file): Simplify, using new
224         `include_search_path.open_file_cautious'.
226         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
227         parameter.
228         (main): Pass arguments to `-I' to both troff and devices.
229         Improve handling of `-V'.
230         * src/roff/groff/groff.man: Document changes to -I and -V.
232         * src/roff/troff/input.cpp (include_search_path): New global
233         variable.
234         (next_file, source, ps_bbox_request, transparent_file,
235         process_input_file): Use new
236         `include_search_path.open_file_cautious'.
237         (main) Handle `-I' switch.
238         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
239         Use new `include_search_path.open_file_cautious'.
240         * src/roff/troff/node.h: New extern symbol `include_search_path'.
241         * src/roff/troff/troff.man: Document new `-I' switch.
243 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
245         Support multiple calls of .Lb in LIBRARY section.
247         * tmac/doc-common (doc-in-library-section): New register.
248         (doc-section-library): New string.
249         (Sh): Set `doc-in-library-section'.
250         (Rd): Updated.
251         * tmac/doc-syms (Lb): Insert breaks before and after arguments
252         if in LIBRARY section.
253         * tmac/doc.tmac (doc-save-global-vars): Updated.
254         * NEWS, tmac/groff_mdoc.man: Updated.
256 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
258         * tmac/doc-common (doc-default-operating-system): New variable.
259         (Os): Use it.
261 2003-09-08  Werner LEMBERG  <wl@gnu.org>
263         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
265 2003-08-31  Werner LEMBERG  <wl@gnu.org>
267         * contrib/mom/Makefile.sub: Fix last change to make it really work.
268         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
269         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
270         $(DEVFILES) are not empty.
271         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
273 2003-08-26  Chuck Silvers  <chuq@chuq.com>
275         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
276         with parallel runs of `make'.
278 2003-08-23  Stephen Gildea  <gildea@stop.mail-abuse.org>
280         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
281         insert SORT_SEP.  With certain combinations of sort specifications,
282         refer sorted entries in the wrong order.  In particular, entries
283         with a missing field should be be sorted before all entries that
284         have that field, before refer looks to the next field.
286 2003-08-23  Werner LEMBERG  <wl@gnu.org>
288         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
289         g++ linker is used.  Reported by Mark J. Reed
290         <mark.reed@turner.com>.
292 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
294         Add key character `x' to tbl which makes tbl call a user-defined
295         macro on a table cell.
297         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
298         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
299         `set_modifier' after printing the compatibility request.
300         (set_modifier): Print call to `m->macro' if not empty.
301         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
302         `macro'.
303         (process_format): Implement cases `x' and `X'.
304         * src/preproc/tbl/tbl.man, NEWS: Updated.
306 2003-08-15  Werner LEMBERG  <wl@gnu.org>
308         * doc/groff.texinfo: Minor fixes.
310 2003-08-09  Werner LEMBERG  <wl@gnu.org>
312         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
314 2003-08-07  Werner LEMBERG  <wl@gnu.org>
316         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
317         argument list to nothing if there is no file to match.  Use `ls' as
318         a protection, similar to autoconf.
320         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
321         empty argument lists.
323         * doc/groff.texinfo: Improve documentation how vertical spacing
324         and line breaks interact.
325         Other minor fixes.
327         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
329 2003-08-03  Werner LEMBERG  <wl@gnu.org>
331         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
332         EPS (using eps2eps or similar programs to compute the bounding box).
334 2003-07-24  Werner LEMBERG  <wl@gnu.org>
336         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
337         * doc/texinfo.tex: Updated from texinfo 4.6.
338         * README.CVS: From now on we need texinfo 4.6.
340 2003-07-23  Werner LEMBERG  <wl@gnu.org>
342         Add requests `dei1' and `ami1' for completeness.
344         * src/roff/troff/input.cc (calling_mode): Remove
345         CALLING_DISABLE_COMP.
346         (comp_mode): New enumeration.
347         (do_define_string, define_string, define_nocomp_string,
348         append_string, append_nocomp_string): Updated.
349         (do_define_macro): Add third parameter.
350         (define_macro, define_nocomp_macro, define_indirect_macro,
351         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
352         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
353         functions.
354         (ignore): Updated.
355         (init_input_requests): Add `dei1' and `ami1'.
357         * tmac/trace.tmac: Handle de1 and am1.
358         (de): Improve tracing message.
359         (am): Add missing `do'.
360         (return): Use de1.
362         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
363         Document new requests.
365 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
367         Add option -G to .MPIMG to insert a gap between text and the image.
369         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
370         www-finish-left-ll): Updated.
371         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
372         (MPIMG): Make option -L and -R optional.
373         Implement option -G.
375 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
377         * src/devices/grohtml/post-html.cpp
378         (html_printer::do_file_components): Don't use `stdout' as lvalue
379         since it can be a macro.
381 2003-07-22  Werner LEMBERG  <wl@gnu.org>
383         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
384         the corresponding test in aclocal.m4.
386 2003-07-21  Werner LEMBERG  <wl@gnu.org>
388         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
389         names but RGB values directly.  Otherwise pnmtopng depends on
390         an external file `rgb.txt' which maps colour names to values.
392 2003-07-20  Werner LEMBERG  <wl@gnu.org>
394         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
395         * configure, src/include/config.hin: Regenerated.
397         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
399 2003-07-19  Werner LEMBERG  <wl@gnu.org>
401         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
403 2003-07-18  Werner LEMBERG  <wl@gnu.org>
405         * *.man: Switch to non-compatibility mode temporarily if GNU
406         syntax extensions are used in the particular man page.
408         * PROBLEMS: Add solutions for SGR problems.
410 2003-07-17  Werner LEMBERG  <wl@gnu.org>
412         Don't ignore grotty's command line options if \X'tty: sgr ...' is
413         used to change the drawing scheme.
415         * src/devives/grotty/tty.cpp (bold_flag_option,
416         underline_flag_option, italic_flag_option, reverse_flag_option,
417         bold_underline_mode_option): New global variables.
418         (update_options): New function.
419         (tty_printer::special): Call update_options.
420         (main): Don't set xxx_flag but xxx_flag_option, then call
421         update_options.
423 2003-07-14  Werner LEMBERG  <wl@gnu.org>
425         Make grotty emit proper Unicode box drawing characters for -Tutf8.
427         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
428         values.
429         (hline_char, vline_char): New global variables.
430         (tty_printer::tty_printer): Initialize them.
431         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
432         horizontal and vertical lines.
433         (crossings): New global array.
434         (tty_printer::end_page): Use it to determine the proper crossing
435         character for -Tutf8.
437 2003-07-12  Werner LEMBERG  <wl@gnu.org>
439         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
440         (HTMLDOCFILES): Revert to `pic.html'.
441         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
443 2003-07-11  Werner LEMBERG  <wl@gnu.org>
445         * doc/pic.ms: Improve documentation of absolute coordinates.
446         Document absolute positioning of pictures.
448         * NEWS: Add new pic capability.
450 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
452         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
453         Rewritten.
455 2003-07-07  Werner LEMBERG  <wl@gnu.org>
457         Implement support for dashed and dotted ellipses in pic.  Based on
458         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
460         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
461         common_output::dashed_ellipse, common_output::dotted_ellipse): New
462         functions.  Ellipse arcs are approximated with circle arcs.
463         * src/preproc/pic/common.h (common_output): Updated.
464         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
465         functions.
466         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
468         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
470 2003-07-06  Werner LEMBERG  <wl@gnu.org>
472         Make grotty work on platforms which have unsigned char as the
473         default for char.  Based on a patch by Thomas Klausner
474         <wiz@netbsd.org>.
476         * src/devices/grotty/tty.cpp (schar): New typedef.
477         Updated calls to declare_ptable and implement_ptable.
478         (glyph): Use schar for back_color_idx and fore_color_idx.
479         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
480         (tty_printer::tty_color, tty_printer::tty_printer,
481         tty_printer::color_to_idx, tty_printer::put_color): Updated.
483 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
485         * src/roff/nroff/nroff.sh: Add option -d for completeness.
486         * src/roff/nroff/nroff.man: Updated.
488 2003-07-05  Werner LEMBERG  <wl@gnu.org>
490         * NEWS, tmac/groff_www.man: Updated.
491         * doc/Makefile.sub: Updated.
493 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
495         Implement support for multiple HTML output files.
497         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
498         -j command line option.
500         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
501         global variables.
502         (file): New fields `new_output_file', `require_links',
503         `output_file_name'.
504         (file::file): Updated.
505         (files::set_file_name, files::set_links_required,
506         files::are_links_required, files::is_new_output_file,
507         files::file_name, files::next_file_name): New functions.
508         (header_desc): New fields `no_of_level_one_headings',
509         `header_filename'.
510         (header_desc::header_desc): Updated.
511         (header_desc::write_headings): Handle multiple files.
512         (html_printer::write_header): Save file name in which header occurs.
513         (html_printer::determine_header_level): Possibly split files on
514         level one headings.
515         (html_printer::do_links, html_printer::troff_tag): Updated.
516         (html_printer::insert_split_file, html_printer::do_job_name,
517         html_printer::emit_link, html_printer::write_navigation,
518         html_printer::do_file_components): New functions.
519         (html_printer::~html_printer): Handle multiple files.
520         (main): Handle command line option `-j'.
522         * src/devices/grohtml/grohtml.man: Updated.
524         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
525         which splits file.
527         * tmac/www.tmac (JOBNAME): New macro.
528         * tmac/s.tmac (SH-NO-TAG): New macro.
529         (@SH): Call SH-NO-TAG.
530         (@NH): Updated.
532 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
534         * tmac/groff_mdoc.man: Improve documentation of punctuation
535         characters.
537 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
539         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
541 2003-07-03  Werner LEMBERG  <wl@gnu.org>
543         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
545 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
547         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
548         after `/*' and `*/'.
549         Fix spacing.
550         (Fn, Fo): Reduce indentation in synopsis.
552         * tmac/doc-common (doc-check-depth): New macro.
553         (doc-end-macro, Sh, Ss): Use it.
554         (Cd): Fix behaviour in synopsis.
555         (In): Make it parsed and callable.
556         If not in the synopsis, represent the C header file enclosed in
557         angle brackets.
558         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
559         Use minus, not hyphen.
561         * tmc/groff_mdoc.man: Updated.
563 2003-07-01  Werner LEMBERG  <wl@gnu.org>
565         Integrated grap2graph, contributed by Eric S. Raymond.
567         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
568         New files.
569         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
570         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
572 2003-07-01  Colin Watson  <cjwatson@debian.org>
574         * src/xditview/*.c: Add prototypes, fix return types, add includes.
575         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
577 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
579         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
581 2003-06-31  Werner LEMBERG  <wl@gnu.org>
583         * doc/Makefile.sub (CLEANADD): Remove all files created by
584         running `make groff.{pdf,dvi}'.
586         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
587         src/xditview also.
589 2003-06-30  Werner LEMBERG  <wl@gnu.org>
591         * Makefile.in (SHELL): Define as @SHELL@.
592         (mkinstalldirs): Use $(SHELL).
593         (MDEFINES): Add $(SHELL).
594         * Makefile.comm (SHELL): Removed.
596 2003-06-29  Werner LEMBERG  <wl@gnu.org>
598         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
599         The X11 documentation files use them.
600         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
602 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
604         * tmac/e.tmac (@C): Handle .ad also.
606 2003-06-12  Werner LEMBERG  <wl@gnu.org>
608         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
610         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
611         Assign `n' even here.  It is possible to construct a node
612         immediately following an escape character:
614           .di xx
615           \?\\\?a
616           .br
617           .di
618           .xx
620 2003-06-10  Werner LEMBERG  <wl@gnu.org>
622         * README.WIN32: Removed.
623         * MANIFEST: Updated.
625 2003-06-07  Werner LEMBERG  <wl@gnu.org>
627         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
629 2003-06-05  Werner LEMBERG  <wl@gnu.org>
631         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
632         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
634 2003-06-03  Werner LEMBERG  <wl@gnu.org>
636         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
637         is done by the calling function.
639 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
641         * tmac/X.tmac: Fix definition of `em'.
643 2003-05-22  Werner LEMBERG  <wl@gnu.org>
645         * src/roff/troff/input.cc (return_macro_request): Fix detection of
646         argument.
648 2003-05-18  Werner LEMBERG  <wl@gnu.org>
650         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
651         to make items work which consist only of a tag.
653 2003-05-17  Werner LEMBERG  <wl@gnu.org>
655         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
656         aren't stretched in a tag (this can fail with unformatted boxes).
657         Instead, insert a break and go back one line.
659 2003-05-16  Werner LEMBERG  <wl@gnu.org>
661         * src/roff/troff/input.cc (return_macro_request): If called with
662         argument pop macro twice.  We need this to trace `return'.
664         * tmac/trace.tmac: Handle `return'.
665         Fix typos.
667         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
668         Document.
670 2003-05-15  Larry Kollar  <kollar@alltel.net>
672         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
673         registers `FPS', `FVS', and `FPD'.
675 2003-05-15  Werner LEMBERG  <wl@gnu.org>
677         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
678         correctly.
680 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
682         * tmac/groff_mdoc.man: Slight improvements.
684 2003-05-03  Werner LEMBERG  <wl@gnu.org>
686         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
687         `doc-header-space' after header line if register `cR' is set.
689 2003-05-02  Werner LEMBERG  <wl@gnu.org>
691         * TODO: Updated.
693 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
695         * tmac/doc-common (Nd): Use \[em].
697 2003-05-01  Werner LEMBERG  <wl@gnu.org>
699         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
700         doc-footer-space): Initialize to 0.5i.
701         (doc-setup-page-layout): Don't set doc-header-space and
702         doc-footer-space.
704 2003-04-30  Werner LEMBERG  <wl@gnu.org>
706         * REVISION: Set to 1.
708         * doc/pic.ms: Document possible problems with `figname'.
710 2003-04-29  Werner LEMBERG  <wl@gnu.org>
712 Version 1.19 released
713 =====================
715         * VERSION: Set to 1.19.
716         * REVISION: Set to 0.
717         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
719         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
720         Define charset as `US-ASCII' in html output.
722         * tmac/www.tmac (ULE): Add missing scaling indicator.
724         * win32-diffs: Removed.
726 2003-04-28  Werner LEMBERG  <wl@gnu.org>
728         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
729         `.da' and `.boxa'.
730         Document how to insert discardable whitespace with `.ss'.
732 2003-04-27  Werner LEMBERG  <wl@gnu.org>
734         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
735         work with plain TeX also.
737         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
739 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
741         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
742         Use a loose DTD.
744 2003-04-24  Werner LEMBERG  <wl@gnu.org>
746         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
747         vbox with positive height and zero depth if in TeX mode.
749         * NEWS: Document glyph name changes for grodvi and grolj4.
751 2003-04-23  Werner LEMBERG  <wl@gnu.org>
753         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
754         * doc/pic.ms: Fixed.
756 2003-04-21  Werner LEMBERG  <wl@gnu.org>
758         HP-UX 10.20 has `snprintf' but it isn't declared.
760         * configure.ac: Add declaration test for snprintf.
761         * configure: Regenerated.
762         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
763         * src/include/config.hin: Regenerated.
765 2003-04-19  Werner LEMBERG  <wl@gnu.org>
767         Add keyword `figname' to pic, specifying the name of the picture
768         box in TeX mode.  Based on a patch from William J Poser
769         <wjposer@unagi.cis.upenn.edu>.
771         * src/preproc/pic/pic.y: New token `FIGNAME'.
772         (macro_name): New rule of type <str>.
773         (placeless_element): Handle `FIGNAME'.
774         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
775         * src/preproc/pic/main.cpp (graphname): New global variable.
776         (do_picture): Initialize `graphname'.
777         * src/preproc/pic/pic.h: Updated.
778         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
779         `graphname'.
780         Simplify TeX code.
781         (tex_output::text): Beautify output.
782         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
783         `shaded' and `outlined' unconditionally.
784         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
785         Minor improvements.
787         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
788         greater is necessary.
790 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
792         Add option -r to soelim to avoid emission of `.lf' lines.
793         Add option -t to produces TeX comment lines instead of `.lf' lines.
795         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
796         and `tex_flag'.
797         (usage): Updated.
798         (main): Handle `-r' and `-t'.
799         (set_location): Handle `raw_flag' and `tex_flag'.
800         * src/preproc/soelim/soelim.man, NEWS: Updated.
802 2003-04-17  Werner LEMBERG  <wl@gnu.org>
804         * tmac/hyphenex.sh: Replaced with...
805         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
806         nightmares.
808         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
809         if --quiet is used for the configure script.
810         * configure: Regenerated.
812 2003-04-16  Werner LEMBERG  <wl@gnu.org>
814         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
815         Add `const' to second argument.
816         (html_printer::add_table_end): Add `const' to argument.
817         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
818         `const' to arguments.
819         * src/devices/grohtml/html-text.h: Updated.
821         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
822         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
823         argument.
825         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
826         cast for integer constant.
828         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
829         (writeNbytes): Add `const' to first argument.
830         (writeString): Add `const' to argument.
831         (char_buffer::can_see): Add `const' to third argument.
832         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
833         `const' to argument.
834         * src/preproc/html/pushback.h: Updated.
836         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
837         (include_path_append): Add `const' to argument.
838         (do_file): Updated.
840         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
841         for `value'.
842         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
843         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
844         for `value'.
845         (unicode_decompose_init::unicode_decompose_init): Updated.
846         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
847         for `value'.
848         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
849         * src/roff/troff/input.cc (process_startup_file): Add `const' to
850         argument.
852         * tmac/hyphenex.sh: Make script more portable by using a here
853         document.
855 2003-04-15  Werner LEMBERG  <wl@gnu.org>
857         Renamed all `*.cc' files to `*.cpp'.
858         Updated all configuration files, makefiles, and documentation.
860 2003-04-14  Werner LEMBERG  <wl@gnu.org>
862         * tmac/hyphenex.sh: Slight improvements.
864 2003-04-13  Werner LEMBERG  <wl@gnu.org>
866         * font/devascii/R.proto, font/devcp1037/R.proto,
867         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
868         character slots with unnamed glyphs.
870         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
871         (an-first): New global variable.
872         (an-header): Emit vertical space between multiple man pages.
874 2003-04-11  Werner LEMBERG  <wl@gnu.org>
876         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
877         values.
879 2003-04-10  Werner LEMBERG  <wl@gnu.org>
881         * PROBLEMS: Revised.
883 2003-04-10  Bernd Warken  <bwarken@mayn.de>
885         * doc/webpage.ms: Improved.
887 2003-04-09  Werner LEMBERG  <wl@gnu.org>
889         Add register \n[.height] which returns the value of \H.
890         Add register \n[.slant] which returns the value of \S.
892         * src/roff/troff/env.cc (init_env_requests): Implement.
893         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
894         Document.
896 2003-04-08  Werner LEMBERG  <wl@gnu.org>
898         * tmac/html.tmac: Move some of the data into html-end.tmac.
899         Remove most of the character translations for eqn since html fonts
900         now cover those characters.
901         Load www.tmac.
902         * tmac/html-end.tmac: New file.
903         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
904         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
905         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
907 2003-04-07  Werner LEMBERG  <wl@gnu.org>
909         * man/groff_out.man: Document negative values of `N' if -Thtml is
910         used.
912 2003-04-06  Werner LEMBERG  <wl@gnu.org>
914         * Makefile.comm (depend.temp): Check location of YTABC.
916 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
918         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
919         binary path.
920         (groff_bin_path): Rename to GROFF_BIN_PATH.
921         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
922         * doc/Makefile.in (TROFFBIN): New variable for troff
923         binary path.
924         (GROFFBIN): New variable for groff binary path.
925         (groff_bin_path): Rename to GROFF_BIN_PATH.
926         (TROFF): Use TROFFBIN.
927         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
928         * doc/Makefile.sub (GROFFBIN): New variable for groff
929         binary path.
930         (groff_bin_path): Rename to GROFF_BIN_PATH.
931         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
933         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
934         with INSTALL_SCRIPT.
935         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
936         * Makefile.dev (all): Depend on DEVSCRIPTS.
937         (install_dev): Likewise.
938         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
939         scripts.
940         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
941         (DEVGENSCRIPTS): New variable to hold generated scripts.
943 2003-04-05  Werner LEMBERG  <wl@gnu.org>
945         * src/libs/libdriver/input.cc (IntArray::operator[],
946         IntArray::get_data): Remove meaningless `const' in return value.
948         * README.CVS: New file.
950 2003-04-04  Werner LEMBERG  <wl@gnu.org>
952         Check for stdint.h in C++, not in C.
954         * aclocal.m4 (GROFF_STDINT_H): New function,
955         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
956         AC_CHECK_HEADERS.
957         * configure, src/include/config.hin: Regenerated.
958         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
961         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
962         with a negative value, representing the width of the unbreakable
963         space (only for -Thtml).  grohtml then converts this back to
964         &nbsp; and uses the value of N as its width.
966         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
967         unbreakable_space_node::tprint): Emit `N-<width>'.
968         * src/include/printer.h (printer::set_numbered_char): Make it
969         virtual.
970         Make members `font_table' and `nfonts' protected instead of private.
971         * src/devices/grohtml/post-html.cc
972         (html_printer::set_numbered_char): New member function.
975         * src/libs/libgroff/maxfilename.cc:
976         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
978         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
979         emit word marker.
981 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
983         * man/roff.man: Small fixes.
985 2003-04-03  Werner LEMBERG  <wl@gnu.org>
987         Make groff independent from locale's numeric settings.
989         * configure.ac: Check for `setlocale'.
990         * configure, src/include/config.hin: Regenerated.
992         * src/include/lib.h: Handle HAVE_SETLOCALE.
994         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
995         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
996         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
999         * doc/groff.texinfo: Change dir category to `Typesetting'.
1000         (Man font macros): Mention that there is no space between arguments
1001         of .BI and friends.
1003         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
1004         (*printer::change_color, *printer::change_fill_color): Add missing
1005         `const'.
1007 2003-04-02  Werner LEMBERG  <wl@gnu.org>
1009         * src/devices/grohtml/html-table.cc (html_table::emit_col,
1010         html_table::is_gap): Compute table widths after converting border
1011         positions to avoid rounding errors.
1013 2003-04-01  Werner LEMBERG  <wl@gnu.org>
1015         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
1016         `space_emitted' properly.
1018 2003-03-31  Werner LEMBERG  <wl@gnu.org>
1020         * src/devices/grohtml/html-table.cc: Fix column width calculation.
1021         (html_table::set_linelength): Don't add 1.
1022         (html_table::add_indent): Don't subtract 1.
1024         * tmac/html.tmac: Set default page offset to zero.
1026 2003-03-30  Werner LEMBERG  <wl@gnu.org>
1028         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
1030         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1031         unbreakable_space_node::tprint): New functions.
1032         (troff_output_file): Make space_char_hmotion_mode::tprint and
1033         unbreakable_space_node::tprint to friends.
1034         * src/roff/troff/node.h: Updated.
1036         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
1037         in the HTML standard).
1039 2003-03-29  Werner LEMBERG  <wl@gnu.org>
1041         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
1042         Otherwise, the following code
1044           .di xxx
1045           .ps 10
1046           a
1047           .br
1048           .di
1049           x\*[xxx]
1051         produces `x a' instead of `xa'.  This is a temporary fix, disabling
1052         font changes in diversions for -Thtml.
1054         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
1055         `HTML-TAG'.
1056         (an-do-tag-html): Merge with ...
1057         (an-do-tag): This macro.
1058         Change code slightly to circumvent grohtml bug.
1059         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
1061         * src/devices/grohtml/html-table.cc (html_table::emit_col,
1062         html_table::is_gap): Round `width' properly.
1064         * tmac/html.tmac: Provide some default layout parameters for
1065         grohtml.
1067         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
1068         command.
1070 2003-03-28  Werner LEMBERG  <wl@gnu.org>
1072         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
1074 2003-03-27  Werner LEMBERG  <wl@gnu.org>
1076         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
1077         defined.
1079 2003-03-20  Werner LEMBERG  <wl@gnu.org>
1081         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
1082         `.vs'.
1083         * doc/groff.texinfo: Updated.
1085 2003-03-19  Werner LEMBERG  <wl@gnu.org>
1087         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
1088         TOKEN_END_TRAP>: Reset `have_input'.
1090 2003-03-18  Werner LEMBERG  <wl@gnu.org>
1092         * src/roff/groff/groff.man: Mention groff_trace man page.
1094 2003-03-16  Werner LEMBERG  <wl@gnu.org>
1096         * Makefile.in (LIBEXT): New variable to indicate the file extension
1097         of library files.  Computed heuristically from $(OBJEXT).
1098         (MDEFINES): Add $(LIBEXT).
1099         * Makefile.lib, Makefile.comm: Use it.
1101         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
1102         overlong lines into smaller chunks.
1103         (get_binary): New function.
1104         (main): Use them.
1105         * src/utils/pfbtops/pfbtops.man: Updated.
1107 2003-03-15  Colin Watson  <cjwatson@debian.org>
1109         * src/roff/groff/groff.man: Minor syntax fix.
1111 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
1113         * src/devices/grops/ps.cc (ps_printer::media_set,
1114         ps_printer::~ps_printer): Handle zero paper width and length.
1116 2003-03-13  Werner LEMBERG  <wl@gnu.org>
1118         Add options -p and -l to grodvi.
1120         * src/devices/grodvi/dvi.cc: Include paper.h.
1121         (landscape_flag, user_paper_length, user_paper_width): New global
1122         variables.
1123         (dvi_printer::begin_page): Emit `papersize' special.
1124         Set color after initialization of `cur_h' and `cur_v'.
1125         (main): Add options `-l' and `-p'.
1126         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
1127         * src/devices/grodvi/grodvi.man, NEWS: Updated.
1129         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
1131 2003-03-12  Werner LEMBERG  <wl@gnu.org>
1133         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
1134         * man/groff_tmac.man: This man page.
1135         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
1136         deprecated.
1138         * tmac/X.tmac: Don't load pspic.tmac.
1140 2003-03-11  Werner LEMBERG  <wl@gnu.org>
1142         Make variable `pr' local to libdriver/input.cc.  Based on a patch
1143         by Bernd Warken <bwarken@mayn.de>.
1145         * src/include/driver.h (pr): Removed.
1147         * src/libs/libdriver/input.cc (pr): New global variable.
1148         (do_file): Deallocate `pr'.
1149         * src/libs/libdriver/printer.cc (pr): Removed.
1151         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
1152         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1153         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1154         (main): Don't delete `pr'.
1156 2003-03-10  Werner LEMBERG  <wl@gnu.org>
1158         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
1159         * tmac/papersize.tmac: New file.
1160         * tmac/troffrc: Include `papersize.tmac'.
1161         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
1162         * tmac/an-old.tmac: Set LT to LL by default.
1164         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
1165         doc/groff.texinfo: Updated.
1167         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
1168         bug which caused all odd iso papers to have wrong dimensions.
1170         * src/devices/grops/ps.cc (user_paper_width): New global variable.
1171         (main) <'p'>: Set `user_paper_width' also.
1172         (ps_printer::media_width, ps_printer::media_height): Use values
1173         given with option `-p'.
1175 2003-03-09  Werner LEMBERG  <wl@gnu.org>
1177         * src/include/nonposix.h: Provide default for SET_BINARY.
1179         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
1180         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
1181         unconditionally.
1183         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
1184         (main): Treat \r\n as \n.
1186 2003-03-08  Werner LEMBERG  <wl@gnu.org>
1188         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
1189         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
1191 2003-03-07  Werner LEMBERG  <wl@gnu.org>
1193         Added support to access more than 256 glyphs in Type 1 fonts.
1195         * src/devices/grops/ps.cc (subencoding): New structure.
1196         (style): Add `sub' field.
1197         Updated all users.
1198         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
1199         Add `set_subencoding', `get_subfont' and `encode_subfont' member
1200         functions.
1201         Updated all users.
1202         (ps_printer::set_char): Use `set_subencoding'.
1203         (make_subencoding_name): New function.
1204         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
1205         (ps_printer::~ps_printer): Emit subencoding definitions.
1207         * src/devices/grops/psrm.cc (valid_input_table): New array to
1208         properly support EBCDIC.
1209         (white_space): Add `\f'.
1210         (ps_get_line): Change first argument to be of type `string &'.
1211         Updated all callers.
1212         This allows to get lines of arbitrary length.
1213         Use `valid_input_table'.
1214         Remove warning about non-conforming PS line length.  This seems
1215         not to be of great importance -- for example, dvips don't emit
1216         a warning either.
1217         (PS_LINE_MAX): Removed.
1218         (matches_comment): Change first argument to be of type `string &'.
1220         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
1222         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
1223         %AGL_to_unicode, %default_ligatures): New hash tables.
1224         Read all map entries.
1225         Add unencoded characters.
1226         Check for default ligatures if there are no `L' entries.
1227         Print all kern entries.
1228         Print all characters in charset.
1229         * src/utils/afmtodit/afmtodit.man: Updated.
1231         * font/devps/*: Regerated all fonts.
1233         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
1234         of characters, just use `.trin'.  Otherwise the mapping depends
1235         on the font encoding.
1236         * tmac/ps.tmac: Add `fi' and `fl'.
1237         Improve `Fi' and `Fl'.
1238         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
1239         * tmac/Xps.tmac: Fix `em'.
1241         * NEWS: Updated.
1243 2003-03-04  Werner LEMBERG  <wl@gnu.org>
1245         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
1246         `have_input'.
1248 2003-03-03  Werner LEMBERG  <wl@gnu.org>
1250         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
1252         * font/devps/generate/textmap: Remove entry `similarequal'.
1253         * font/devps/symbolmap: Updated.
1255 2003-03-02  Werner LEMBERG  <wl@gnu.org>
1257         * src/libs/libgroff/font.cc (font::load): Fix error message for
1258         bad character type.
1260         * src/devices/grops/grops.man: Improve documentation of the -b
1261         flag.
1263         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
1264         `ascii' and `cp1047'.
1266 2003-03-01  Werner LEMBERG  <wl@gnu.org>
1268         Document composite glyphs and the `composite' request.
1270         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
1272 2003-02-28  Werner LEMBERG  <wl@gnu.org>
1274         * font/devdvi/generate/ec.map: Add some more Unicode entities.
1275         * font/devdvi/*EC: Updated.
1277         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
1278         * tmac/latin1 (latin1-tr): Undo any previous mapping.
1279         * tmac/troffrc: Load `composite.tmac'.
1280         * tmac/Makefile.sub (NORMALFILES): Updated.
1282         * doc/groff.texinfo (Input Encodings): New section.
1283         * NEWS: Updated.
1285 2003-02-27  Werner LEMBERG  <wl@gnu.org>
1287         * doc/texinfo.tex: New version 2003-02-11.06.
1289         * tmac/doc-common (Dt): Don't emit warning for unknown section.
1290         * tmac/groff_mdoc.man: Fix description of `Dt'.
1292 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
1294         * font/devps/prologue.ps: Fix for included Postscript that does
1295         a setpagedevice -- which is now safely ignored.
1297         * NEWS: Updated.
1299         * src/devices/grops/ps.cc: Now sets the page size in the generated
1300         document.  This is done in two ways: Via a %%-comment for gv and
1301         the like, and via a PageSize and setpagedevice for programs that
1302         understands Postscript proper, like ps2pdf.
1304         * src/devices/grops/ps.h: New broken-flag to avoid page size
1305         definition, if required.
1307         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
1309         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
1310         Not really necessary due to the fix in prologue.ps, but cleaner:
1311         Such information does not belong in an .eps file.
1313         * doc/Makefile.sub: See doc/Makefile.in.
1315 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
1317         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
1318         instead of P1 since the latter is broken in some versions of netpbm.
1319         * configure: Updated.
1321 2003-02-26  Larry Kollar  <kollar@alltel.net>
1323         Make man pages more customizable.
1325         * tmac/an-old.tmac (FT): New register holding footer distance from
1326         bottom.
1327         (HF): New string holding the default heading font.
1328         (TH): Handle registers `IN' and `SN' set on the command line.
1329         Use `FT'.
1330         (PT, BT): New strings to customize header and footer lines.
1331         (an-header, an-footer): Use them.
1332         (SH, SS): Use `HF'.
1333         * tmac/groff_man.man: Document changes.
1335         * doc/groff.texinfo: Document man changes.
1336         Document Ultrix extensions of man.
1338 2003-02-26  Werner LEMBERG  <wl@gnu.org>
1340         * src/roff/troff/input.cc (do_width, do_if_request): Reset
1341         `have_input' after changing back to old environment.
1343         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
1344         function up to be defined before first call.  This is necessary to
1345         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
1347         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
1348         the default font directory also.  Based on a patch from James
1349         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
1350         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
1351         * src/utils/afmtodit/afmtodit.man: Document it.
1353         * NEWS: Updated.
1355         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
1357 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
1359         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
1360         (GROFF_PNMTOPS_NOSETPAGE): New macro.
1361         * configure.ac: Use it.
1362         * configure: Regenerated.
1363         * Makefile.in: Updated.
1365         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
1366         (CLEANADD): Add www.tmac-sed.
1367         (pnmtops_nosetpage): Define default.
1368         (install_data): Handle www.tmac-sed and substitute
1369         @PNMTOPS_NOSETPAGE@.
1370         (stamp-sed): Add www.tmac.
1371         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
1372         It now breaks URLs at suitable places.
1373         (www:substring_ok): New register set by...
1374         (www:@test_substring): New macro.
1375         (www:error): New alias to www-error.
1376         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
1377         New macros.
1378         (URL): Use www:url_breaks.
1379         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
1380         (CDS, CDE): New macros.
1382 2003-02-25  Werner LEMBERG  <wl@gnu.org>
1384         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
1385         buffer overflow.
1387 2003-02-24  Werner LEMBERG  <wl@gnu.org>
1389         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
1390         can be negative also.
1392         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
1393         `int16'.
1394         (read_char_table): Avoid negative ascenders.
1395         (output_charset): Add cast.
1396         * font/devlj4/*: Regenerated.
1398         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
1399         possible.
1401         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
1402         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
1403         of `<>'.
1404         * font/devdvi/*: Regenerated.
1406         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
1407         normal width, while the previously used characters (U+2329 and
1408         U+232A) are classified as wide due to canonical equivalence with the
1409         CJK punctuation characters U+3008 and U+3009.
1411         * font/devutf8/R.proto: Updated.
1412         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
1414         * man/groff_char.man: Simplify handling of table traps by
1415         introducing `start block' and `end block' macros.
1416         (Ns, Ne, 2s, 2e, Ds, De): New macros.
1417         (DL): Make it work with Unix troff also.
1418         Fix code values of `la' and `ra'.
1420         * tmac/dvi.tmac: Define `<>' for CW and CWI.
1422 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
1424         * src/devices/grohtml/post-html.cc (element_list::~element_list):
1425         New destructor, fixing a major memory leak.
1427 2003-02-22  Werner LEMBERG  <wl@gnu.org>
1429         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
1430         to be in conformance with Unicode 3.0 and newer.
1432         * font/devlj4/generate/text.map: Add `Eu'.
1433         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
1434         * font/devlj4/S: Regenerated.
1436         * man/groff_char.man: Completely rewritten.
1438         * doc/groff.texinfo: Fix description of request and macro arguments.
1440 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
1442         Valgrind fixes.
1444         * src/devices/grohtml/html-table.cc (html_table::~html_table):
1445         Deallocate `columns' list.
1446         * src/devices/grohtml/post-html.cc (char_block::~char_block):
1447         New destructor.
1448         (text_glob::text_glob_html, text_glob::text_glob_special,
1449         text_glob::text_glob_line, text_glob::text_glob_auto_image,
1450         text_glob::text_glob_tag): Avoid memory leaks.
1451         (text_glob::remember_table): Free memory before reassigning.
1453 2003-02-19  Werner LEMBERG  <wl@gnu.org>
1455         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
1456         alias `hbar'), the Planck constant over two pi.
1458         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
1459         `+e' for position 34.
1460         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
1461         `u2662' and `u2661'.
1462         * font/devdvi/{MI,S}: Regenerated.
1463         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
1464         * font/devlbp/*: Add `hbar' alias.
1465         * font/devlj4/generate/special.map: Ditto.
1466         * font/devlj4/S: Regenerated.
1467         * font/devps/generate/symbolchars: Add `+e'.
1468         * font/devps/generate/textmap: Fix PS name for `-h'.
1469         Add `hbar' alias.
1470         * font/devps/symbolmap: Regenerated.
1472         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
1474         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
1475         `-h', `hbar'.
1476         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
1477         `-h'.
1479         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
1480         `hbar'.
1481         * tmac/tty-char.tmac: Add `+e'.
1483 2003-02-17  Werner LEMBERG  <wl@gnu.org>
1485         Another round trying to really fix problems with `have_input'.
1487         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
1488         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
1490         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
1491         handling if both foreground and background colors are default.
1493         * doc/groff.texinfo (Debugging): Document .lf differences to
1494         AT&T troff.
1496 2003-02-16  Werner LEMBERG  <wl@gnu.org>
1498         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
1499         null-bytes in created string.
1501         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
1502         alias_macro, lookup_request): Improve warning messages.
1504         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
1505         not `strdup'.
1506         Free `last_image_filename'.
1508         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
1509         `buffer'.
1510         (imageList::createPage, imageList::createImage): Use `free', not
1511         `a_delete'.
1512         (imageItem::~imageItem): Free `imageName'.
1513         (addRegDef): Use `strsave', not `strdup'.
1514         (get_resolution): Free `pathp'.
1516 2003-02-15  Werner LEMBERG  <wl@gnu.org>
1518         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
1519         to `dummy'.
1521 2003-02-14  Werner LEMBERG  <wl@gnu.org>
1523         Add memory management for colors to deallocate unnamed colors
1524         properly.
1526         * src/include/color.h (color): New members `free_list' and `next'.
1527         New member functions `new' and `delete'.
1528         Add destructor.
1529         * src/libs/libgroff/color.cc: Implement it.
1531         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
1532         for array size of new operator.
1534         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
1535         redundant comparison.
1537         * src/roff/troff/input.cc (word_space_node::reread,
1538         hmotion_node::reread): Avoid warning about unused parameter.
1539         (reset_output_registers): Remove redundant parameter.
1540         (define_color): Undo change 2003-02-12.
1542         * src/roff/troff/reg.h: Updated.
1544         * src/roff/troff/node.cc (troff_output_file::really_print_line,
1545         output_file::put_filename, real_output_file::really_put_filename,
1546         ascii_output_file::really_print_line,
1547         break_char_node::get_hyphen_list): Avoid warning about unused
1548         parameter.
1549         (suppress_node::tprint): Updated.
1551         * configure.ac: Check declaration for rand() and srand().
1552         * configure: Regenerated.
1554         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
1555         conditionally.
1556         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
1557         and srand().
1559         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
1560         to avoid compiler warnings.
1562         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
1563         unused.
1565         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
1566         is unused.
1567         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
1568         (unused) parameter.
1569         Updated all callers.
1571         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
1572         is unused.
1573         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
1574         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
1576         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
1577         Parameter is unused.
1578         (html_printer::add_table_end): Define parameter conditionally.
1579         * src/devices/grohtml/output.cc (simple_output::special): Parameter
1580         is unused.
1582         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
1583         (lbp_printer::set_char): Last parameter is unused.
1585         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
1587 2003-02-13  Werner LEMBERG  <wl@gnu.org>
1589         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
1590         Make \D'f ...' move horizontally again for backwards compatibility.
1591         Replace it with \D'Fg ...' where appropriate to avoid dependency
1592         on horizontal resolution.
1594         * src/roff/troff/input.cc (do_get_long_name): New function.
1595         (get_long_name): Call it.
1597         (read_draw_node): Handle `\D'Fx ...' by calling ...
1598         (read_color_draw_node): New function.
1600         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
1601         `end'.
1602         Pass it to `do_get_long_name' which is used instead of
1603         `get_long_name'.
1605         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
1606         unnecessary value guard.
1607         (parse_D_command) <'f'>: Add horizontal shift.
1609         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
1610         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1611         (FILL_MAX): Removed.
1613         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1614         Updated.
1616 2003-02-12  Werner LEMBERG  <wl@gnu.org>
1618         * src/roff/troff/input.cc (do_name_test, do_expr_test,
1619         do_zero_width): Push `\n' if closing delimiter is missing.
1621         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
1622         <'F'>: Make \F non-transparent at the beginning of line.
1623         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
1624         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
1625         `have_input'.
1627         (define_color): Free color in case of reassignment.
1629         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
1630         @DefescListEnd): Use @Var, not @var.
1631         Fix all calls.
1633         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
1635         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
1636         `shaded' and `outlined' arrays.
1637         (object_spec::object_spec): Initialize `shaded' and `outlined'.
1638         (graphic_object::set_fill_color, graphic_object::set_outline_color):
1639         Use strsave.
1640         (closed_object::set_fill_color): Ditto.
1641         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
1642         instead of strdup.
1643         (troff_output::reset_color): Use a_delete instead of free.
1644         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
1646 2003-02-11  Werner LEMBERG  <wl@gnu.org>
1648         * doc/groff.texinfo: Improve documentation of `ad'.
1649         Document that \D'f...' is dependent on the horizontal resolution.
1650         * man/groff_diff.man: Improve documentation of \D'f...'.
1652         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
1653         compensating \h'...' for \D'f ...' since the latter no longer moves
1654         current position.
1655         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1657 2003-02-10  Werner LEMBERG  <wl@gnu.org>
1659         Improve error messages for `x F' (and `F') commands.
1661         * src/include/error.h: Add declaration for
1662         `current_source_filename'.
1663         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
1664         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
1665         parameter for source file string.
1666         Updated all callers.
1668         * src/libs/libdriver/input.cc: Add `current_source_filename'.
1669         (remember_source_filename): New function.
1670         (parse_x_command <'F'>, do_file <'F'>): Use it.
1672 2003-02-09  Werner LEMBERG  <wl@gnu.org>
1674         Make grotty not emit warnings about unknown colors more than
1675         necessary.
1677         * src/devices/grotty/tty.cc: Include `ptable.h'.
1678         (TTY_MAX_COLORS): Removed.
1679         (DEFAULT_COLOR_IDX): Defined to -1.
1680         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
1681         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
1682         Change `tty_colors' to be a ptable.
1683         First arg of `put_color' is now `char'.
1684         New functions `make_rgb_string' and `tty_color'.
1685         (tty_printer::tty_printer): Use `tty_color'.
1686         (tty_printer::color_to_idx): Return value is now `char'.
1687         Use `tty_color'.
1689         * src/include/color.h (color): Add `print_color' member function.
1690         * src/libs/libgroff/color.cc (color::print_color): Implement it.
1692 2003-02-08  Werner LEMBERG  <wl@gnu.org>
1694         Valgrind fixes.
1696         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
1697         encoding file.
1699         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
1700         assume that value has been allocated with `new[]', thus use
1701         `a_delete' for deallocation.
1703         * src/libs/libdriver/input.cc (get_integer_arg,
1704         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
1705         where appropriate.
1707         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
1708         * src/libs/libgroff/nametoindex.cc
1709         (character_indexer::named_char_index): Use `new <type>[1]'.
1711         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
1712         <type>[1]'.
1713         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
1714         (split_text): Use `a_delete'.
1716         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
1717         <type>[1]'.
1719         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
1720         harmless memory leak.
1721         (hyphen_trie::read_patterns_file): Initialize `buf'.
1722         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
1723         Initialize `current_fill_color'and `current_glyph_color'.
1724         * src/roff/troff/glyphuni.cc
1725         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
1726         * src/roff/troff/uniuni.cc
1727         (unicode_decompose_init::unicode_decompose_init): Ditto.
1728         * src/roff/troff/uniglyph.cc
1729         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
1731 2003-01-26  Werner LEMBERG  <wl@gnu.org>
1733         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
1734         `access' before calling `unlink'.
1735         (do_file): Handle __EMX__.
1737         * src/include/nonposix.h: Handle __EMX__.
1739         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
1740         (fontpath,tmacpath): Use it.
1741         (MDEFINES): Add it.
1742         Sorted alphabetically.
1744         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
1745         @SEP@.
1746         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
1747         @SEP@.
1749 2003-01-27  Werner LEMBERG  <wl@gnu.org>
1751         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
1752         New files, copied from gnulib.
1753         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
1754         * configure.ac: Updated.
1755         * configure: Regenerated.
1757         * src/include/config.hin: Regenerated.
1758         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
1759         Don't define `strcasecmp' as `strcmp'.
1760         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
1761         Dont define `strncasecmp' as `strncmp'.
1763         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
1764         Removed.
1766 2003-01-26  Werner LEMBERG  <wl@gnu.org>
1768         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
1769         s/unline/unlink/.
1771 2003-01-25  Werner LEMBERG  <wl@gnu.org>
1773         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
1775 2003-01-24  Werner LEMBERG  <wl@gnu.org>
1777         Add US-english hyphenation exceptions (converted from Barbara
1778         Beeton's hyphenation exception log reports which appear irregularly
1779         in TUGBoat).
1781         * tmac/hyphen.us: Updated to latest version.
1782         * tmac/README: Updated.
1783         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
1784         * tmac/troffrc: Load `hyphenex.us'.
1785         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
1786         * doc/groff.texinfo: Updated.
1788 2003-01-23  Werner LEMBERG  <wl@gnu.org>
1790         Improve hyphenation slightly.  This is a first step in redesigning
1791         the hyphenation algorithm to make it more flexible (e.g. allowing
1792         kerns and ligatures between the hyphenation character and the
1793         following character -- while not used normally in English, other
1794         languages like German would benefit).
1796         * src/roff/troff/env.cc (environment::hyphenate_line): Use
1797         assertion instead of if-clause.
1798         Let `get_hyphen_list' return the number of involved characters in
1799         the hyphenation pattern instead of computing it directly (which
1800         often yields too small values).
1801         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
1802         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
1803         parameter.
1805 2003-01-22  Werner LEMBERG  <wl@gnu.org>
1807         Fixing a bug which caused groff to hang if the hyphenation exception
1808         dictionary tried to grow.
1810         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
1811         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
1812         pointer to dictionary.
1814 2003-01-20  Werner LEMBERG  <wl@gnu.org>
1816         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
1817         negative left italic correction.
1818         * src/utils/afmtodit/afmtodit.man: Document it.
1820         * font/devps/generate/Makefile (RFLAG): Add `-m'.
1821         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
1822         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
1824         * NEWS: Updated.
1826 2003-01-16  Werner LEMBERG  <wl@gnu.org>
1828         * NEWS: Updated.
1830 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
1832         * src/preproc/refer/refer.man: Mention REFER environment variable.
1834 2003-01-05  Werner LEMBERG  <wl@gnu.org>
1836         Similar to \[is], the square root glyph (\[sr]) and the square root
1837         extension glyph (\[radicalex]) are now text symbols.  The new
1838         mathematical versions are called \[sqrt] and \[sqrtex],
1839         respectively.
1841         * font/devX*/S: Regenerated.
1842         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
1843         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
1844         * font/devdvi/EX, font/devdvi/S: Regenerated.
1845         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
1846         * font/devlj4/generate/special.map: Add `sqrt'.
1847         * font/devlj4/S: Regenerated.
1848         * font/devps/generate/textmap: Add `sqrt'.
1849         * font/devps/S, font/devps/symbolmap: Regenerated.
1851         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
1852         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
1853         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
1854         overlap horizontally.
1856         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
1857         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
1858         Fix `radicalex'.
1860         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
1861         and `sqrtex' are overlapping glyphs.
1863 2003-01-04  Werner LEMBERG  <wl@gnu.org>
1865         * font/devdvi/generate/texsy.map: Add `is'.
1866         * font/devps/symbolmap: Regenerated.
1867         * font/devdvi/*TC, MI, S: Regenerated.
1869         * tmac/dvi.tmac: Remove `is'.
1871 2003-01-03  Werner LEMBERG  <wl@gnu.org>
1873         `is' is now a text symbol (only relevant for dvi).  The math variant
1874         can be accessed with `integral'.
1876         * font/devX*/S: Regenerated.
1877         * font/devdvi/generate/texex.map: Remove `is'.
1878         * font/devdvi/EX: Updated.
1879         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
1880         * font/devlj4/generate/special.map: Ditto.
1881         * font/devlj4/S: Regenerated.
1882         * font/devps/generate/textmap: Add `integral'.
1883         * font/devps/S: Regenerated.
1885         * tmac/dvi.tmac: Define `is'.
1887         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
1889         * src/preproc/tbl/main.cc (process_format): Fix error message.
1891 2003-01-02  Werner LEMBERG  <wl@gnu.org>
1893         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
1894         * font/devps/textmap: Fix entries for `ne' and `nc'.
1895         * font/devps/symbolmap: Regenerated.
1897         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
1898         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
1899         `38', `58', `78', `-+', `|=', `nc', `ne'.
1901         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
1902         Use `schar' for `aq'.
1903         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
1904         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
1905         * tmac/tty.tmac: Add `ne'.
1907         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
1908         for fallback glyphs.
1910 2002-12-29  Werner LEMBERG  <wl@gnu.org>
1912         Add glyph `|='.
1914         * font/devX*/*: Regenerated.
1915         * font/devdvi/generate/ec.map: Remove `eq'.
1916         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
1917         Assign `|=' to position 39.
1918         * font/devdvi/*EC, S: Regenerated.
1919         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
1920         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
1921         Assign `|=' to position 549.
1922         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
1923         `equalmath'.
1924         Add `uni2243' for `|='.
1926         * tmac/ec.tmac: Add `eq'.
1927         * tmac/dvi.tmac: Add `=~'.
1928         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
1929         `|='.
1931 2002-12-21  Werner LEMBERG  <wl@gnu.org>
1933         * font/devdvi/generate/tc.map: Remove `**'.
1934         * font/devdvi/*TC: Regenerated.
1935         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
1936         `78', `<<', `>>'.
1937         * font/devutf8/NOTES: Updated.
1939         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
1940         Don't give default parameter to `set_macro'.
1941         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
1942         instead of `set_macro'.
1943         (charinfo::setx_macro): Implement it.
1944         (charinfo::set_macro): Don't change `mode'.
1946         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
1947         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
1948         * tmac/dvi.tmac: Define `!=' with `.schar'.
1950 2002-12-20  Werner LEMBERG  <wl@gnu.org>
1952         * font/devX*/S: Regenerated.
1953         * font/devdvi/generate/ec.map: Remove `pl'.
1954         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
1955         * font/devdvi/*{TC,EC}: Regenerated.
1956         * font/devhtml/R.proto: Add `-+'.
1957         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
1958         * font/devlbp/*: Remove `or'.
1959         * font/devlj4/generate/special.map: Remove `or'.
1960         * font/devlj4/S: Regenerated.
1961         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
1962         `seveneighths', `threeeighths'.
1963         Remove `plusmath'.
1964         Replace `minusplus' with `uni2213'.
1965         * font/devps/symbolmap: Regenerated.
1966         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
1967         Add `-+'.
1969         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
1970         function.
1971         * src/roff/troff/node.cc (troff_output_file::put_char_width):
1972         Call glyph_color and fill_color even if tcommand_flag isn't set.
1973         (make_node, node::add_char): Check not ci->is_fallback but
1974         ci->is_normal.
1976         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
1977         * tmac/ec.tmac: Add .rchar entry for `f/'.
1978         Don't remove `12', `14', `34'.
1979         Define `pl' to be always roman.
1980         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
1981         Define `18', `38', `58', `78'.
1982         * tmac/tty.tmac: Add `-+'.
1983         * tmac/dvi.tmac: Define `f/'.
1984         (dvi-frac): Use `f/'.
1985         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
1986         Define `18', `38', `58', `78'.
1988 2002-12-15  Colin Watson  <cjwatson@debian.org>
1990         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
1992 2002-12-10  Werner LEMBERG  <wl@gnu.org>
1994         Add glyph `tno', a textual variant of `no'.
1996         * font/devX*/*: Regenerated.
1997         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
1998         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
1999         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
2000         * font/devdvi/*: Regenerated.
2001         * font/devlbp/*: Add `tno'.
2002         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
2003         * font/devlj4/*: Regenerated.
2004         * font/devps/generate/textmap: Replace `no' with `tno'.
2005         * font/devps/generate/symbolchars: Add `no'.
2006         * font/devps/*: Regenerated.
2008         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
2010         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
2011         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
2013         * NEWS: Updated.
2015         * tmac/dvi.tmac: Replace most `\\' with `\E'.
2016         Add definition for `sd'.
2017         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
2019         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
2021 2002-12-08  Werner LEMBERG  <wl@gnu.org>
2023         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
2024         mode to avoid rounding errors.
2025         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
2027         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
2028         src/roff/troff/troff.man: Improve documentation of -T.
2030 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
2032         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
2033         (run_pipeline) [_WIN32]: Provide working function without `fork'.
2035 2002-12-06  Werner LEMBERG  <wl@gnu.org>
2037         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
2038         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
2039         Scaling Euro.sansserif glyphs down to have the same height as
2040         digits.
2041         Removed unnecessary points; added some extrema.
2043         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2044         Regenerated.
2046 2002-12-04  Werner LEMBERG  <wl@gnu.org>
2048         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
2049         and `Euro.symbol.bold.slanted'.
2050         Improve some glyph offsets and widths.
2051         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2052         Regenerated.
2053         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
2054         typo.
2055         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
2056         direcory.
2058         * tmac/europs.tmac: Updated to new glyph indices.
2059         Use Euro.symbol for font familiy `A'.
2061         * doc/groff.texinfo: Minor improvements.
2063 2002-12-02  Werner LEMBERG  <wl@gnu.org>
2065         * font/devdvi/generate.tc.map: s/%O/%0/.
2066         * font/devdvi/*TC: Regenerated.
2068         * src/roff/troff/div.cc (init_div_requests): Sorted.
2070         * tmac/dvi.tmac: Remove `Ye'.
2071         * tmac/ec.tmac: Remove `Ye'.
2072         Add .rchar entry for `de'.
2074         * man/groff.man, man/groff_diff.man: Document register `.pe'.
2075         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
2076         * NEWS: Updated.
2078 2002-11-30  Werner LEMBERG  <wl@gnu.org>
2080         Add PS font for various Euro glyphs.
2082         * font/devps/generate/freeeuro.sfd: New master font file for
2083         pfaedit.
2084         * font/devps/generate/sfdtopfa.pe: New conversion script for
2085         pfaedit.
2086         * font/devps/generate/Makefile (FONTS): Add `EURO'.
2087         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
2088         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
2089         `freeeuro.sfd'.
2090         * font/devps/EURO: Generated from `freeeuro.afm'.
2091         * font/devps/download: Add `freeuro.pfa'.
2092         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
2093         `freeeuro.pfa'.
2095         * tmac/europs.tmac: New file.
2096         * tmac/ps.tmac: Include `europs.tmac'.
2097         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
2099 2002-11-29  Werner LEMBERG  <wl@gnu.org>
2101         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
2102         * font/devdvi/S: Regenerated.
2103         * font/devhtml/R.proto: Fix `CR' and `ci'.
2104         Add `OK'.
2105         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
2106         Remove `bs'.
2107         * font/devps/symbolmap: Regenerated.
2108         * font/devutf8/R.proto: Fix `CR' and `ci'.
2109         Add `OK'.
2110         * font/devutf8/NOTES: Updated.
2112         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
2113         `ci'.
2114         Add `OK'.
2115         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2117         * tmac/dvi.tmac: Add `lh' and `rh'.
2118         * tmac/Xps.tmac: Fix `lh' and `rh'.
2119         * tmac/X.tmac: Add `OK'.
2120         * tmac/lj4.tmac: Ditto.
2122 2002-11-24  Werner LEMBERG  <wl@gnu.org>
2124         * font/devX*/S: Regenerated.
2125         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
2126         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
2127         * font/devdvi/generate/texsy.map: Remove `or' glyph.
2128         * font/devdvi/S: Regenerated.
2129         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
2130         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
2131         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
2132         `bracketleftbt', `bracketrighttp', `bracketrightex',
2133         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
2134         `braceex', `braceleftex', `bracerightex', `bracerighttp',
2135         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
2136         `rb', and `bv'.
2137         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
2138         * font/devutf8/NOTES: Updated.
2139         * font/devlj4/generate/special.map: Add glyph `braceex'.
2140         * font/devlj4/S: Regenerated.
2142         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
2144 2002-11-14  Werner LEMBERG  <wl@gnu.org>
2146         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
2147         and `vA'.
2148         Fix code for `an'.
2149         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2151         * doc/texinfo.tex: New version from texinfo 4.3.
2152         * doc/groff.texinfo: Updated for texinfo 4.3.
2153         Use @tie{} where appropriate.
2154         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
2155         * font/devdvi/generate/tc.map: Remove `rn'.
2156         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
2157         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
2158         Fix code for `an'.
2159         * font/devX100/*, font/devX100-12/*, font/devX75/*,
2160         font/devX75-12/*: Regenerated.
2162         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
2163         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
2164         Improve definition of `an'.
2165         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
2166         `ru'.
2167         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
2168         * tmac/X.tmac: Add definition for `or'.
2169         * tmac/Xps.tmac: Undo change 2002-11-05.
2170         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
2172 2002-11-11  Werner LEMBERG  <wl@gnu.org>
2174         * src/roff/troff/node.cc (troff_output_file::put_char): Always
2175         call flush_tbuf.
2177 2002-11-10  Werner LEMBERG  <wl@gnu.org>
2179         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
2180         defines a glyph which is searched after the check for fonts declared
2181         with `.special' (and before the check for all mounted special
2182         fonts).  `fschar' defines a glyph for a particular font which is
2183         searched after the check for fonts declared with `.fspecial' (and
2184         before the check for fonts declared with `.special').  `rfschar'
2185         removes glyphs defined with `fschar'.
2187         * src/roff/troff/token.h (char_mode): New enum.
2188         Declare do_define_character.
2189         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
2190         `mode'.
2191         (charinfo::is_fallback): Updated.
2192         (charinfo::is_special): New method.
2193         * src/roff/troff/input.cc (do_define_character): Add and use
2194         optional second parameter used as a prefix for font-specific glyph
2195         names.
2196         (define_character, define_fallback_character): Updated.
2197         (define_special_character): New function.
2198         (init_input_requests): Add `schar'.
2199         (charinfo::charinfo, charinfo::set_macro): Updated.
2200         * src/roff/troff/node.cc: Include `stringclass.h'.
2201         (make_glyph_node): Handle special glyphs defined with `.schar' and
2202         `.fschar'.
2203         (define_font_special_character, remove_font_special_character): New
2204         functions.
2205         (init_node_requests): Sorted.
2206         Add `fschar' and `rfschar'.
2207         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2208         Document new requests.
2210         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
2211         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
2213 2002-11-08  Werner LEMBERG  <wl@gnu.org>
2215         Added new font `SC' (cmtex10) to devdvi.
2217         * devdvi/generate/Makefile (FONTS): Add `SC'.
2218         (SC): New rule.
2219         * devdvi/generate/textex.map: New map file for cmtex.
2220         * devdvi/SC: New.
2221         * devdvi/Makefile.sub (DEVFILES): Updated.
2222         * tmac/dvi.tmac: Add fspecial entries for SC.
2223         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
2224         found before `S' since the font position of `SC' is lower due to the
2225         gaps in DESC's `font' line.
2226         * tmac/ec.tmac: Add a `special' call.
2227         * NEWS: Updated.
2229         * font/devhtml/R.proto: Remove double entry for `ti'.
2230         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
2231         * tmac/tty-char.tmac: Remove entry for `bq'.
2232         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
2233         * tmac/ec.tmac: Don't remove `aq' glyph.
2234         * tmac/X.tmac: Fix entry for `em'.
2235         Add entries for `fo' and `fc'.
2236         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
2238         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
2239         documentation of `special' and `fspecial' requests.
2241 2002-11-05  Werner LEMBERG  <wl@gnu.org>
2243         * font/devascii/R.proto, font/devcp1047/R.proto,
2244         font/devlatin1/R.proto: Remove entry for `.i'.
2245         * font/devdvi/generate/textt.map: Add entry for `ad'.
2246         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
2247         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
2248         We need this for getting kerning values to compose `/l' and `/L'.
2249         * font/devdvi: Regenerated font definition files for CM fonts.
2250         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
2251         * font/devutf8/R.proto: Ditto.
2252         Remove double entry for `ti'.
2254         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
2255         for (groff) ligatures, `la', and `ra'.
2256         Add "'C", "'c", `IJ', and `ij'.
2257         Remove double entry for `ti'.
2258         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
2259         double entries.
2260         Add "'C", "'c", `IJ', and `ij'.
2261         Fix entries for (groff) ligatures, `la', and `ra'.
2263         * tmac/ps.tmac (ps-achar): New macro.
2264         Define "'c" and "'C".
2265         * tmac/tty.tmac: Add entry for `.i'.
2266         * tmac/X.tmac (X-achar): New macro.
2267         Define "'c", "'C", and `:Y'.
2268         Add entries for `IJ' and `ij'.
2269         * tmac/Xps.tmac (Xps-achar): New macro.
2270         Define "'c" and "'C".
2271         Add entries for `IJ' and `ij'.
2272         * tmac/lbp.tmac (lbp-achar): New macro.
2273         Add fallback characters for all groff ligatures and many other
2274         glyphs.
2275         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
2276         Add entries for `/l' and `/L'.
2277         Define "'c" and "'C".
2278         Add entries for `IJ' and `ij'.
2280 2002-11-02  Larry Kollar  <kollar@alltel.net>
2282         * PROBLEMS: Document how to solve Mac OS X compilation problems.
2284 2002-11-02  Werner LEMBERG  <wl@gnu.org>
2286         Adding support for composite glyphs: \[xxx yyy ...] and the
2287         `composite' request.
2289         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
2290         to Unicode-based glyph names.
2291         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
2292         glyph names to groff glyph names.
2293         * src/roff/troff/uniuni.cc: New file for canonically decomposing
2294         Unicode-based glyph names.
2295         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
2296         for handling Unicode glyph names.
2297         * src/roff/troff/input.cc: Include unicode.h.
2298         (composite_glyph_name): New function.
2299         (token::next) <'['>: Handle Unicode glyph names and composite
2300         glyphs.
2301         (composite_dictionary): New dictionary for the `composite' request.
2302         (composite_request): Implement `composite' request.
2303         (init_input_requests): Add `composite'.
2304         Alphabetically sorted.
2305         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
2306         commented out).
2307         (init_env_requests): Alphabetically sorted.
2308         Removed `tas' and `tar' (already commented out).
2309         * src/roff/troff/Makefile.sub: Updated.
2311 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
2313         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
2314         of options.
2316 2002-10-29  Werner LEMBERG  <wl@gnu.org>
2318         Fix computation of .trunc register.  Additionally, its value (and
2319         the value of the .ne register) is now always set before entering the
2320         trap.
2322         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
2323         `needed_space' before calling `space'.
2324         (top_level_diversion::space): Remove special code for 'sp before the
2325         first page.
2326         Call `begin_page' with the discarded space as a parameter.
2327         (top_level_diversion::begin_page): Add optional parameter to set
2328         `truncated_space'.
2329         * src/roff/troff/div.h: Updated.
2331         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
2332         \n[.ne].
2334         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
2335         (LP): Remove superfluous call to `br'.
2336         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
2337         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2339 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2341         * tmac/doc-ditroff: Remove useless switch/variable -rC.
2342         (doc-setup-header): Don't set page register `%'.
2343         * tmac/doc-nroff: Remove variable `C'.
2344         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
2345         (doc-setup-header): Don't set page register `%'.
2346         Don't call `bp'.
2347         * tmac/doc-common (doc-header): Call `ns'.
2348         (doc-paragraph): Protect .sp with .br so that it survives traps
2349         possibly set by the user.
2350         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2352         * tmac/doc*: Replace ' with . for consistency if no effect.
2354 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2356         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
2357         so that it survives traps possibly set by the user.
2359         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
2360         (troff_output_file::set_font): Call flush_tbuf if necessary.
2361         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
2362         flush_tbuf and do_motion only if necessary.
2363         (troff_output_file::start_special,
2364         troff_output_file::put_char_width, troff_output_file::put_char,
2365         troff_output_file::draw): Updated.
2366         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2367         vmotion_node::tprint): Undo change 2002-10-23.
2369 2002-10-25  Werner LEMBERG  <wl@gnu.org>
2371         * tmac/www.tmac (DC): Fix case of overlapping images.
2373 2002-10-23  Werner LEMBERG  <wl@gnu.org>
2375         * src/roff/troff/node.cc (troff_output_file::fill_color,
2376         troff_output_file::glyph_color): Set current color before testing
2377         color_flag.
2378         (troff_output_file::put_char_width, troff_output_file::put_char,
2379         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
2380         before glyph_color.
2381         (troff_output_file::file_color, troff_output_file::glyph_color):
2382         Call do_motion.
2383         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2384         vmotion_node::tprint): Move first, then call fill_color.
2386 2002-10-20  Werner LEMBERG  <wl@gnu.org>
2388         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
2389         possible to use multiple main macro packages.
2391 2002-10-19  Werner LEMBERG  <wl@gnu.org>
2393         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
2394         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
2395         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
2396         is set.
2397         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
2398         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
2400 2002-10-16  Werner LEMBERG  <wl@gnu.org>
2402         * NEWS, doc/webpage.ms: Updated.
2404 2002-10-14  Werner LEMBERG  <wl@gnu.org>
2406         * src/roff/troff/node.cc (troff_output_file::put_char_width,
2407         troff_output_file::put_char, troff_output_file::fill_color,
2408         troff_output_file::glyph_color): Handle case where color pointer
2409         is null.
2411 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
2413         Add the new -r option to grotty.  It is similar to the -i option
2414         except it tells grotty(1) to use the "reverse video" attribute to
2415         render italic fonts.
2417         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
2418         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
2419         (tty_printer::make_underline, tty_printer::put_color,
2420         tty_printer::end_page): Use it.
2421         (main): Add -r switch.
2422         (usage): Updated.
2423         * src/devices/grotty/grotty.man: Document it.
2425 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
2427         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2428         cast to `unsigned char' to properly read patterns with 8bit
2429         characters.
2431 2002-10-08  Werner LEMBERG  <wl@gnu.org>
2433         * REVISION: Increased to 2.
2435 Version 1.18.1 released
2436 =======================
2438 2002-10-08  Werner LEMBERG  <wl@gnu.org>
2440         * doc/webpage.ms, NEWS: Updated.
2442 2002-10-07  Werner LEMBERG  <wl@gnu.org>
2444         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
2445         suppress additional whitespace after the header.
2447         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
2448         with NetBSD.
2450         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
2452 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
2454         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
2455         (Dt): Use it to improve language localization (especially Russian
2456         and French).
2458 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
2460         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
2461         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
2462         drawing commands.
2463         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
2464         curve type.
2465         Call `picurve' for BSPLINE.
2466         (HGPrintElt): Handle BSPLINE.
2467         * src/preproc/grn/README: Document it.
2469 2002-10-03  Werner LEMBERG  <wl@gnu.org>
2471         * src/roff/troff/node.cc (break_char_node::col): New variable.
2472         Updated constructor.
2473         (space_node::tprint, word_space_node::tprint): Call `fill_color'
2474         unconditionally.
2475         (space_node::space_node): Remove assertion.
2476         (break_char_node::add_self): Pass color argument to space node.
2477         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
2478         Ditto.
2479         * src/roff/troff/env.cc (environment::do_break,
2480         environment::add_padding): Ditto.
2482 2002-10-02  Werner LEMBERG  <wl@gnu.org>
2484         Redesigning color support in troff.  Colors are no longer
2485         represented as separate nodes but are now part of glyph nodes and
2486         friends.  This fixes the current formatting misbehaviour due to the
2487         changes introduced on 2002-09-20.  Some extra code is necessary for
2488         proper grotty support: Without adding color variables to
2489         space-related nodes, the background color would be changed too late.
2491         * src/roff/troff/node.h, src/roff/troff/node.cc:
2492         s/current_pagecolor/current_fill_color/.
2493         s/current_glyphcolor/current_glyph_color/.
2494         (glyph_color_node, fill_color_node): Removed.
2495         (node::get_glyph_color, node::get_fill_color): New virtual member
2496         functions.
2497         (space_node::col): New variable.
2498         Updated constructors of space_node and derived classes accordingly.
2499         (hmotion_node::col): New variable.
2500         Updated constructors of hmotion_node and space_char_hmotion_node
2501         accordingly.
2502         (vmotion_node::col): New variable.
2503         Updated constructor accordingly.
2504         (draw_node::gcol, draw_node::fcol): New variables.
2505         Updated constructor accordingly.
2506         (special_node::gcol, special_node::fcol): New variables.
2507         Updated constructors accordingly.
2508         (troff_output_file::put_char, troff_output_file::put_charwidth,
2509         troff_output_file::draw): Set glyph and fill color.
2510         (troff_output_file::start_special): Set glyph and fill color.
2511         Always set current font.
2512         (troff_output_file::fill_color, troff_output_file::glyph_color):
2513         Don't call `do_motion'.
2514         (glyph_node::gcol, glyph_node::fcol): New variables.
2515         Updated constructors of glyph_node and ligature_node accordingly.
2516         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
2517         member functions.
2518         (glyph_node::merge_glyph_node,
2519         kern_pair_node::add_discretionary_hyphen,
2520         node::add_discretionary_hyphen): Updated.
2521         (break_char_node::merge_self): Updated.
2522         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2523         vmotion_node::tprint): Handle color.
2524         (make_glyph_node, make_node, node::add_char): Updated.
2526         * src/roff/troff/env.cc (environment::space_newline,
2527         environment::space, environment::output_line, environment::do_break,
2528         environment::make_tab_node, environment::add_padding, title):
2529         Updated.
2530         (environment_switch, environment_copy): Don't add color nodes.
2532         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
2533         nothing.
2534         (token::next): Updated.
2535         \m and \M now are as transparent as \s.
2536         (process_input_stack, token::add_to_node_list, token::process,
2537         read_draw_node): Updated.
2538         (charinfo_to_node_list): Don't add color nodes.
2540         * doc/groff.texinfo: Updated.
2542 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
2544         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
2545         strings.
2547 2002-09-27  Colin Watson  <cjwatson@debian.org>
2549         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
2551 2002-09-23  Werner LEMBERG  <wl@gnu.org>
2553         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
2554         appropriate.
2555         (DEFAULT_LINEWIDTH_FACTOR): New macro.
2556         (linewidth_factor): New global variable.
2557         (lbp_printer::set_line_thickness): Fix case for size < 0, using
2558         linewidth_factor.
2559         (long_options): Add -w/--linewidth option.
2560         (usage): Updated.
2561         (main): Handle -w option to set linewidth_factor.
2562         (lbp_printer::lbp_printer): Initialize req_linethickness, not
2563         line_thickness.
2565         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
2567 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
2569         Fixed a bug in the line thickness setting code.
2571         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
2572         variable.
2573         (lbp_printer::set_line_thickness): Pass environment as second
2574         parameter.
2575         Implement it actually.
2576         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
2577         and `set_line_thickness, depending on the current font size.
2579 2002-09-21  Werner LEMBERG  <wl@gnu.org>
2581         Some Debian patches.
2583         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
2584         * src/roff/troff/node.cc (bracket_node::copy): Initialize
2585         `list->last'.
2587 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2589         * configure: Regenerated with autoconf 2.54.
2591 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2593         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
2594         glyph_color.
2595         Rename cur_fill_color to fill_color.
2596         * src/roff/troff/env.cc: Updated.
2598 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2600         * src/roff/troff/env.cc (title): Copy color status after processing
2601         title.
2602         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
2603         fill color nodes to reset colors properly.
2605         * tmac/www.tmac (DC): Fix color handling.
2607         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
2608         * doc/groff.texinfo: Fixing documentation of `tl' request.
2609         * doc/webpage.ms: Updated.
2611 2002-09-19  Werner LEMBERG  <wl@gnu.org>
2613         * src/roff/troff/env.cc (environent_switch, environment_copy):
2614         Emit glyph and fill color nodes to initialize colors properly.
2616 2002-09-17  Colin Watson  <cjwatson@debian.org>
2618         * src/roff/troff/env.cc (environment::set_glyph_color,
2619         environment::set_fill_color): Fix typo which prevented \m[] work
2620         correctly.
2622 2002-09-17  Werner LEMBERG  <wl@gnu.org>
2624         Add left and right italic correction to non-slanted PS fonts.  This
2625         is an experimental feature to improve image rendering of grohtml.
2627         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
2628         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
2629         * font/devps/*: All non-slanted fonts regenerated.
2630         * NEWS: Updated.
2632 2002-09-16  Werner LEMBERG  <wl@gnu.org>
2634         Add a site-specific font directory.
2636         * Makefile.in (localfontdir, legacyfontdir): New variables.
2637         (fontpath): Use them.
2638         (MDEFINES, uninstall_dirs): Updated.
2639         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
2640         Remove `FONTPATH' and `MACROPATH'.
2642         * src/roff/troff/troff.man, NEWS: Updated.
2643         * doc/groff.texinfo (Font Directories): New section.
2644         Other minor fixes.
2646         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
2647         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
2648         src/preproc/grn/grn.man: Minor fixes.
2650         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
2651         Remove unused variable.
2653 2002-09-11  Werner LEMBERG  <wl@gnu.org>
2655         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
2656         * man/groff_out.man: Fix documentation of 'N'.
2658 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
2660         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
2661         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
2662         set.
2663         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
2664         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
2665         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
2666         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
2667         PRE_TAG>: Call `begin' with `FALSE'.
2669 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2671         * src/libs/libgroff/string.cc (string::extract): Fix position of
2672         terminating null byte.
2674 2002-09-08  Werner LEMBERG  <wl@gnu.org>
2676         Add global option `nospaces' to tbl so that leading and trailing
2677         spaces in data items are ignored.
2679         * src/libs/libgroff/string.cc (string::remove_spaces): New member
2680         function to remove leading and trailing spaces.
2681         * src/include/stringclass.h: Updated.
2683         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
2685         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
2686         option.
2687         Fix typo in error messages.
2688         (process_data): Implement `nospaces' option.
2689         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
2691 2002-09-07  Werner LEMBERG  <wl@gnu.org>
2693         * src/include/config.hin: Add `HAVE_ISATTY'.
2694         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
2695         `fname' member.
2696         * src/libs/libgroff/tmpname.cc: Include `time.h'.
2697         * src/libs/libdriver/input.cc (Char): Add `operator==' and
2698         `operator!=' for `char'.
2699         * doc/groff.texinfo: Replace @ifnottex block for top node with
2700         @ifhtml block.
2702 2002-09-06  Werner LEMBERG  <wl@gnu.org>
2704         * doc/Makefile.in (.texinfo.html): Add -I switch.
2705         * doc/groff.texinfo: Add @ifnottex block for top node to make
2706         translation to HTML work.
2708 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
2710         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
2711         (get_papersize, determine_vertical_offset): Removed.
2712         (char_buffer::do_image): Always specify letter size.
2713         (main): Updated.
2714         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
2715         -sPAPERSIZE.
2717 2002-09-05  Werner LEMBERG  <wl@gnu.org>
2719         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
2720         default indentation.
2722 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
2724         * src/preproc/html/pre-html.cc (imageList::createPage): Use
2725         -sPAPERSIZE for gs.
2726         (generateImages): Clean up push-back buffer.
2728 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2730         * doc/groff.texinfo: Minor fixes.
2732 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2734         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
2735         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
2736         (gsPaper): Removed.
2737         (determine_vertical_offset): Use LETTER_LENGTH.
2738         (createPage): Moved to ...
2739         (imageList::createPage): This.
2740         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
2741         (imageList::getMaxX): New function.
2742         (createImage): Moved to ...
2743         (imageList::createImage): This.
2744         (imageList::createImages): New function.
2745         (generateImages): Read `maxx' directly.
2746         Updated.
2747         (scanArguments): Don't specify `gsPaper' for `-o'.
2748         (makeTempFiles): Call `xtmpfile' with the last argument set to
2749         `TRUE'.
2751 2002-08-24  Werner LEMBERG  <wl@gnu.org>
2753         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
2754         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
2755         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
2756         * src/preproc/html/pushback.cc: Include nonposix.h.
2757         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
2758         conditionally.
2760 2002-08-23  Werner LEMBERG  <wl@gnu.org>
2762         Use $(OBJEXT) for the object file extension.
2764         * Makefile.comm (.SUFFIXES): Add .obj.
2765         (.cc.obj, .c.obj): New implicit rules.
2766         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
2767         (MDEFINES): Add EXEEXT and OBJEXT.
2768         * */Makefile.sub: s/.o/.$(OBJEXT)/.
2770 2002-08-22  Werner LEMBERG  <wl@gnu.org>
2772         * INSTALL: Mention texinfo 4.2 as a prerequisite.
2774 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2776         * src/devices/grohtml/post-html.cc (colType): Make enum global to
2777         the file.
2778         (html_printer::update_min_max, html_printer::add_table_end): New
2779         methods.
2780         (html_printer::lookahead_for_tables): Use them.
2781         Reset page offset correctly.
2782         (html_printer::~html_printer): Add creation of creator comment up.
2784 2002-08-20  Werner LEMBERG  <wl@gnu.org>
2786         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
2787         * man/groff_tmac.man: Fix typos.
2788         * man/groff_font.man: Minor reordering.
2789         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
2790         * contrib/groffer/groffer.man: Fix typos.
2792 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
2794         Avoid endless loops while scanning for tables.
2796         * src/devices/grohtml/post-html.cc (list::insert): Set
2797         ptr->right->left.
2798         (html_printer::next_horiz_pos): Add `text_glob' argument; update
2799         all callers.
2800         Return immediately if that argument is NULL.
2801         (html_printer::calc_nf): Don't test if `g' is NULL.
2802         (html_printer::lookahead_for_tables): Use
2803         `glyphs.move_right_get_data'.
2804         Don't test if `g' is NULL.
2806 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
2808         A better fix, replacing fix 2002-08-15, for increasing SIZE.
2810         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
2811         a pointer.
2812         (char_block::char_block): Allocate `buffer'.
2813         (char_buffer::add_string): Use it.
2815 2002-08-15  Werner LEMBERG  <wl@gnu.org>
2817         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
2818         src/devices/grodvi/grodvi.man: Document default line thickness.
2820 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
2822         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
2823         8192.
2825 2002-08-14  Werner LEMBERG  <wl@gnu.org>
2827         * doc/webpage.ms: Updated.
2829 2002-08-09  Werner LEMBERG  <wl@gnu.org>
2831         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
2832         unbreakable space.
2834 2002-08-08  Aaron Campbell  <aaron@monkey.org>
2836         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
2837         (&& -> &).
2839 2002-08-08  Werner LEMBERG  <wl@gnu.org>
2841         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
2842         tok.next().
2843         (read_gray): Ditto.
2844         Don't push back a space but a newline onto the stack.
2846 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
2848         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
2849         inadvertently.
2851         * src/devices/grohtml/post-html.cc (html_printer::end_font,
2852         html_printer::start_font): Handle them.
2853         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
2854         reset bold and tt.
2855         (html_text::do_bold): Don't reset italic and tt.
2856         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
2857         * font/devhtml/DESC.proto: Add those fonts.
2858         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
2860 2002-08-07  Werner LEMBERG  <wl@gnu.org>
2862         * MORE.STUFF: Added gpresent.
2864         * tmac/trace.tmac: Show nesting level by a corresponding amount of
2865         whitespace before printing the logging message.
2867 2002-07-31  Colin Watson  <cjwatson@debian.org>
2869         * src/devices/grohtml/html-table.cc (html_table::finish_row):
2870         Initialize `n' to zero.  This fixes a segfault on ARM.
2872 2002-07-30  Werner LEMBERG  <wl@gnu.org>
2874         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
2876 2002-07-29  Werner LEMBERG  <wl@gnu.org>
2878         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
2879         final semicolon.
2881 2002-07-28  Colin Watson  <cjwatson@debian.org>
2883         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
2884         `.ps'.
2885         (html_printer::html_printer): Initialize `pointsize'.
2887 2002-07-26  Werner LEMBERG  <wl@gnu.org>
2889         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
2890         gnu.png.
2891         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
2892         (gnu.eps): Add -rle switch to pnmtops.
2893         (distfiles): Add gnu.eps and gnu.png.
2895 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
2897         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
2898         Add `operator!='.
2900 2002-07-24  Werner LEMBERG  <wl@gnu.org>
2902         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
2903         ' \+' but '  *' for sed.
2904         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
2906 2002-07-23  Werner LEMBERG  <wl@gnu.org>
2908         * doc/groff.texinfo: Document `papersize' keyword.
2909         * NEWS, man/groff_font.man: Updated.
2911 2002-07-23  Colin Watson  <cjwatson@debian.org>
2913         Extend papersize keyword to accept more than a single entry.  The
2914         first valid will be used.
2916         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
2917         (font::scan_papersize): Really skip final newline.
2918         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
2920 2002-07-23  Werner LEMBERG  <wl@gnu.org>
2922         * configure.ac: Test for isatty.
2923         * configure: Regenerated.
2924         * src/include/posix.h: Check HAVE_ISATTY.
2925         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
2926         * src/utils/lookbib/lookbib.cc: Include posix.h.
2927         Don't declare isatty.
2929 2002-07-21  Werner LEMBERG  <wl@gnu.org>
2931         * NEWS: Add `output' request.
2933         * REVISION: Increased to 1.
2935 Version 1.18.0 released
2936 =======================
2938 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
2940         Allow internal glyph indices > 0xFF in grohtml for input characters.
2942         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
2943         as parameter.
2944         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
2945         Updated all callers.
2946         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
2947         (html_printer): Updated.
2949 2002-07-19  Werner LEMBERG  <wl@gnu.org>
2951         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
2952         * font/devutf8/R.proto: Adding some missing glyphs.
2953         * font/devutf8/NOTES: Updated.
2955         * tmac/dvi.tmac: Add more composite glyphs.
2956         * tmac/html.tmac: Updated.
2958         * man/groff_char.man: Add `sum' and `product' entities.
2960         * NEWS: Updated.
2962 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
2964         Improved table, tab, and indenting support.
2966         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
2967         string_iterator::suppress_newline_flag): Removed.  Updated all
2968         function which have used it.
2970         * src/roff/troff/env.cc: Include `input.h'.
2971         (environment::add_node): Accept 0 as parameter.
2972         (environment::add_html_tag): Add `force' parameter.
2973         Updated all callers.
2974         (environment::add_html_tag_tabs): Ditto.
2975         For the moment, support left-aligned tabs only.
2976         (environment::make_html_tag): New function.
2977         (fill, no_fill): Set .br html tag additionally.
2978         (environment::newline): Emit `eol.ce' or `eol' tag for html.
2979         (environment::add_html_tag_eol): Removed.
2980         (tab_stops::distance_to_next_tab): Add variant for handling 
2981         nextpos'.
2982         (environment::distance_to_next_tab): Ditto.
2983         Updated all callers.
2984         (environment::handle_tab): Handle tabs for html.
2985         
2986         * src/roff/troff/env.h: Updated.
2988         * src/roff/troff/div.cc: Updated all callers of
2989         `environment::add_html_tag'.
2991         * src/devices/grohtml/html-table.cc,
2992         src/devices/grohtml/html-table.h: New files.
2994         * src/devices/grohtml/html-text.cc (html_text): New members
2995         `blank_para' and `start_space'.
2996         (html_text::issue_tag): Don't emit TABLE_TAG.
2997         Handle indentation for PRE_TAG and P_TAG.
2998         (html_text::end_tag): Updated.
2999         (html_text::table_is_void, html_text::issue_table_begin,
3000         html_text::issue_table_end): Removed.
3001         (html_text::do_push): Simplified.
3002         [DEBUGGING]: Small fix.
3003         (html_text::push_para): Add new parameter for indentation; updated
3004         all callers.
3005         Handle PRE_TAG.
3006         (html_text::do_indent, html_text::do_table, html_text::done_table,
3007         html_text::is_in_table): Removed.
3008         (html_text::do_pre): Handle P_TAG also.
3009         (html_text::shutdown): Handle p->indent.
3010         (html_text::check_emit_text): Simplified.
3011         (html_text::do_emittext): Reset `blank_para'.
3012         (html_text::do_para): Add new parameter for indentation; updated
3013         all callers.
3014         (html_text::remove_indent): New function.
3015         (html_text::do_space): Handle verbatim text properly.
3016         (html_text::ever_emitted_text, html_text::starts_with_space,
3017         html_text::remove_para_align): New functions.
3018         (html_text::dump_stack_element, html_text::dump_stack): Updated.
3020         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
3021         Updated.
3023         * src/devices/grohtml/post-html.cc: Include html-table.h.
3024         (INDENTATION): Removed.
3025         (text_glob): Added many `is_<foo>' functions.
3026         Added table description `tab'.
3027         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
3028         member functions.
3029         (list): Add `insert' and `move_to' member functions.
3030         (page): Add `insert_tag' member function.
3031         (page::dump_page) [DEBUG_TABLES]: Improved.
3032         (html_printer): Add `table' and `max_linelength' elements.
3033         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
3034         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
3035         `remove_tabs', `remove_courier_tabs'.
3036         (html_printer::emit_raw): Handle indentation.
3037         (html_printer::do_center, html_printer::write_header): Updated.
3038         (html_printer::is_courier_until_eol): Check for tag.
3039         (html_printer::do_linelength): Handle max_linelength.
3040         (html_printer::do_page_offset, html_printer::do_indentation): Handle
3041         fill_on.
3042         (html_printer::do_tempindent): Updated.
3043         (html_printer::do_indentedparagraph): Removed.
3044         (html_printer::do_indent): Simplified.
3045         (html_printer::do_eol): Use `ever_emitted_text'.
3046         (html_printer::do_flush, html_printer::do_links): Don't call
3047         done_table.
3048         (html_printer::do_break): Handle end_tempindent.
3049         (html_printer::troff_tag): Get argument.
3050         Don't handle `.ip'.
3051         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
3052         (html_printer::flush_page): Call `lookahead_for_tables'.
3053         Don't call `done_table'.
3054         (html_printer::add_to_sbuf): Always call do_indent.
3056         * src/devices/grohtml/Makefile.sub: Updated.
3058         * tmac/an-old.tmac (TP): Don't handle html device specially.
3059         (an-do-tag-html): New function which will be used instead of
3060         `an-do-tag' if html device is used.
3062         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
3064         * tmac/s.tmac (@IP): Don't handle html device specially.
3065         (@IP-html): New function which will be used instead of `@IP' if
3066         html device is used.
3068         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
3069         is a hack which will eventually vanish again.
3070         (PIMG): Handle `-C' option correctly if not html.
3071         (HR): Use HTML-NS.
3073 2002-07-17  Werner LEMBERG  <wl@gnu.org>
3075         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
3077 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
3079         * contrib/pic2graph/pic2graph.*: Use convert(1).
3080         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
3082 2002-07-14  Bernd Warken  <bwarken@mayn.de>
3084         * tmac/groff_trace.man: New file.
3085         * tmac/Makefile.sub: Updated.
3086         * NEWS: Updated.
3088 2002-07-13  Werner LEMBERG  <wl@gnu.org>
3090         * src/roff/groff/groff.man: Add some cross references.
3092 2002-07-12  Werner LEMBERG  <wl@gnu.org>
3094         * src/roff/troff/input.cc (substring_request): Add warnings for
3095         string indices out of range.
3097 2002-07-11  Werner LEMBERG  <wl@gnu.org>
3099         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
3100         * font/devdvi/*EC: Regenerated.
3102 2002-07-10  Bernd Warken  <bwarken@mayn.de>
3104         * man/groff_char.man: Updated and extended.
3106 2002-07-10  Werner LEMBERG  <wl@gnu.org>
3108         * src/roff/troff/input.cc (length_macro): Renamed to...
3109         (length_request): This.
3110         Move call of `tok.next()' to the very end, otherwise the register
3111         value hasn't been updated yet.
3112         (init_input_requests): Updated.
3114 2002-07-09  Werner LEMBERG  <wl@gnu.org>
3116         * src/roff/troff/input.cc (substring_macro): Renamed to...
3117         (substring_request): This.
3118         (init_input_requests): Updated.
3119         * src/roff/troff/request.h: Updated.
3121 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
3123         * src/roff/grog/grog.sh: Fix typo.
3125 2002-07-08  Werner LEMBERG  <wl@gnu.org>
3127         * win32-diffs: Updated.
3129         Handle `papersize' keyword properly in DESC.
3131         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
3132         type.
3133         Updated all callers.
3134         * src/libs/libgroff/paper.cc: Add four more paper formats used by
3135         grolj4.
3136         * src/include/paper.h: Updated.
3138         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
3139         Other minor C syntax fixes.
3140         (papersize, paperlength, paperwidth): Renamed to `user_*'.
3141         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
3142         members.
3143         (lbp_printer::lbp_printer): Pass three arguments.
3144         Set paper dimensions properly.
3145         (make_printer, main): Updated.
3146         (handle_unknown_desc_command): Fix error messages.
3147         (main): Handle papersize keyword in DESC properly.
3149         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
3150         `user_paper_size'.
3151         (lbp_printer::lbp_printer): Pass an argument.
3152         Set paper_size properly.
3153         (handle_unknown_desc_command): Removed.
3154         (make_printer, main): Updated.
3155         * src/devices/grolj4/grolj4.man: Minor documentation fix.
3157         * man/groff_font.man, NEWS: Updated.
3159 2002-07-07  Werner LEMBERG  <wl@gnu.org>
3161         Integrated eqn2graph, contributed by Eric S. Raymond.
3163         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
3164         files.
3165         * Makefile.in, NEWS: Updated.
3167 2002-06-04  Werner LEMBERG  <wl@gnu.org>
3169         Changing the substring request to make it fit better with other
3170         string manipulation functions in other programming languages:
3171         Index 0 is now the first character in the string, and index -1
3172         indicates the last character.  Since this request didn't work
3173         properly anyway in the last release, it doesn't harm too much to
3174         change the syntax.
3176         * src/roff/troff/input.cc (substring_macro): Use loops to get
3177         the real string length (ignoring COMPATIBLE_SAVE and
3178         COMPATIBLE_RESTORE) and offsets.
3179         Implement change described above.
3181         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
3182         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
3184         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
3186 2002-06-03  Werner LEMBERG  <wl@gnu.org>
3188         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
3189         COMPATIBLE_RESTORE are completely ignored.
3191         * src/roff/troff/input.cc (char_list::set, char_list::get): New
3192         functions.
3193         (macro): `length' field renamed to `len'.
3194         Added new field `empty_macro' (1 if macro is empty), to be used
3195         instead of checking `len'.
3196         Updated all callers.
3197         (macro::empty): Updated.
3198         (macro::length, macro::set, macro::get): New functions.
3199         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3200         Set `empty_macro'.
3201         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
3202         COMPATIBLE_RESTORE pairs.
3203         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3204         * src/roff/troff/request.h: Updated.
3206         * doc/groff.texinfo: Document .chop's behaviour better.
3208 2002-06-02  Werner LEMBERG  <wl@gnu.org>
3210         * doc/pic.ms: Fix documentation for the addition of positions.
3212         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
3214 2002-06-29  Werner LEMBERG  <wl@gnu.org>
3216         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
3218         * src/roff/troff/input.cc (have_string_arg): New global variable.
3219         (read_mode): New enumeration.
3220         (read_escape_name): Use it.  Update all calls.
3221         (read_long_escape_name): Use it.  Update all calls.
3222         Set have_string_arg if appropriate.
3223         (get_char_for_escape_name): Add parameter for handling space
3224         character.
3225         (interpolate_string_with_args, decode_string_args): New functions.
3226         (get_copy, token::next): Call it if necessary.
3227         (interpolate_string): Fix error message.
3229         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3230         Document it.
3232 2002-06-24  Bernd Warken  <bwarken@mayn.de>
3234         * man/groff_tmac.man: Updated and extended.
3236 2002-06-24  Werner LEMBERG  <wl@gnu.org>
3238         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
3240 2002-06-23  Werner LEMBERG  <wl@gnu.org>
3242         * doc/pic.ms: Improve documentation of composite block objects.
3244 2002-06-22  Werner LEMBERG  <wl@gnu.org>
3246         * src/roff/troff/input.cc (init_registers): Add three registers
3247         `seconds', `minutes', and `hours' to hold the current time.
3249         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3250         Updated.
3252 2002-06-20  Werner LEMBERG  <wl@gnu.org>
3254         Make \X accept both `\ ' and `\~', converting them to single space
3255         characters.
3257         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
3258         (token::unstretchable_space): New inline function.
3259         * src/roff/troff/input.cc (token::next, token::delimiter,
3260         token::description, token::add_to_node_list, token::process): Handle
3261         TOKEN_UNSTRETCHABLE_NODE.
3262         (encode_char): Handle tok.stretchable_space and
3263         tok.unstretchable_space.
3265         * NEWS, doc/groff.texinfo: Document it..
3267 2002-06-19  Werner LEMBERG  <wl@gnu.org>
3269         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
3271         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
3272         keyword to enable/disable SGR output.
3273         (tty_printer::change_fill_color): New function.
3274         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
3276         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
3277         call.
3279 2002-06-18  Werner LEMBERG  <wl@gnu.org>
3281         Add a `color' request and a `.color' register to control usage of
3282         colours.
3284         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
3285         (color_flag): This (which is the inverse).
3286         (activate_color): New function.
3287         (main, init_input_requests): Updated.
3288         * src/roff/troff/troff.h, src/roff/troff/node.cc
3289         (troff_output_file::fill_color, troff_output_file::glyph_color):
3290         Updated.
3292         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3293         Document the changes.
3295 2002-06-17  Colin Watson  <cjwatson@debian.org>
3297         Circumvent bug in autoconf 2.53 regarding top_builddir.
3299         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
3300         * Makefile.in, doc/Makefile.in:
3301         s/@top_builddir@/@groff_top_builddir@/.
3302         * configure: Regenerated (with autoconf 2.53).
3304 2002-06-17  Werner LEMBERG  <wl@gnu.org>
3306         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
3307         `paperwidth' and `paperlength' for the `papersize' keyword.
3309 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
3311         * src/devices/grops/grops.man: Add info about Type 42 fonts.
3313 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
3315         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
3316         html_printer::do_linelength, html_printer::do_pageoffset,
3317         html_printer::do_indentation, html_printer::do_tempindent,
3318         html_printer::do_break, html_printer::begin_page): Clear indented
3319         text.
3320         * tmac/html.tmac: Disable hyphenation.
3322 2002-06-15  Werner LEMBERG  <wl@gnu.org>
3324         Don't produce HTML files if utility programs are missing.
3326         * Makefile.in (make_html, make_install_html): New variables.
3327         (MDEFINES): Updated.
3329         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
3330         utility programs.
3331         * configure.ac: Use it.
3332         * configure: Regenerated.
3334         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
3335         (HTMLEXAMPLESFILES): This new variable.
3336         (EXAMPLESIMAGEFILES): Renamed to...
3337         (HTMLEXAMPLEIMAGEFILES): This.
3338         (CLEANADD): Add HTMLEXAMPLEFILES.
3339         (all): Use `make_html'.
3340         (html): New target.
3341         (install_data): Use `make_install_html'.
3342         Move html stuff to...
3343         (install_html): This new target.
3344         (uninstall_sub): Updated.
3346 2002-06-14  Bernd Warken  <bwarken@mayn.de>
3348         * src/roff/grog/Makefile.sub (grog): Renamed to...
3349         (grog.old): This.
3350         (grog): New rule to always install grog.sh as grog.
3352 2002-06-08  Bernd Warken  <bwarken@mayn.de>
3354         * src/roff/grog/grog.pl: Fix typo.
3356 2002-06-07  Werner LEMBERG  <wl@gnu.org>
3358         * doc/groff.texinfo: Add more info on .tr arguments.
3360 2002-06-05  Werner LEMBERG  <wl@gnu.org>
3362         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3364         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
3365         * configure: Regenerated.
3367 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3369         * src/roff/troff/symbol.cc (table_sizes): Add more values.
3371         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
3373 2002-06-04  Werner LEMBERG  <wl@gnu.org>
3375         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
3376         is not initialized at the time we need it in case `--prefix' hasn't
3377         been set.  Check for `ac_default_prefix' also.
3378         Test for `papersize' keyword also and generalize allowed whitespace.
3379         * configure: Regenerated.
3381         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
3382         `paperlength'.
3384         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
3385         with...
3386         (src_version, src_revision): New variables to avoid overwriting
3387         from parent make process.
3388         (version.cc): Updated.
3390         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
3391         (linebuf, linebufsize): New global variables.
3392         (sys_fatal): Use `fatal' to abort properly.
3393         (get_line): New function.
3394         (get_resolution): Use it.
3395         Improve error messages.
3396         (get_papersize): Check `papersize' also.
3397         Use `get_line'.
3398         Improve error messages.
3400 2002-06-03  Werner LEMBERG  <wl@gnu.org>
3402         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
3403         should be removed only if builddir is not srcdir.
3404         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
3405         (clean): Depend on `mostlyclean'.
3406         (distclean): Depend on `clean'.
3407         (realclean, extraclean): Depend on `distclean'.
3408         (.y.cc, .y.o): Simplified.  The output files are no longer written
3409         to srcdir but to builddir.
3410         * Makefile.in (MDEFINES): Add `version' and `revision'.
3411         (uninstall_dirs): Fix order of directories.
3412         * doc/Makefile.sub (version, revision): Removed.
3413         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
3414         Added `HTMLDOCFILES'.
3415         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
3416         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
3417         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
3418         as prefix.
3420         * doc/texinfo.tex (\authortt): New macro.
3421         (\shortcontt): Define.
3422         (\titlepage): Set \tt to \authortt while defining \authorfont.
3423         (\appendixbox): New macro.
3424         (\chapmacro, \appendixentry): Use \appendixbox to get even
3425         indentation for letters.
3426         (\summarycontents): Set \tt.
3427         (\internalpagesize): Add two arguments for real paper width and
3428         height as needed by pdfTeX.
3429         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
3430         Updated.
3431         (\tempdima, \tempdimb): New temporary dimensions.
3432         (\pagesizesyyy): Updated.
3434 2002-06-02  Werner LEMBERG  <wl@gnu.org>
3436         Adding a new keyword `papersize' to the DESC file format (similar
3437         but not completely identical to grolbp's extension).  grops now has
3438         a -p command line option to override `papersize'.  Finally, grolbp
3439         has been adapted to the new syntax.
3441         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
3442         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
3443         elements.
3444         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
3445         (CCSRCS): Add `paper.cc'.
3447         * src/include/font.h (font): Add `papersize' element.
3448         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
3449         (font::scan_papersize): New function.
3450         (font::load_desc): Use it for handling `papersize' keyword.
3451         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
3453         * src/devices/grops/ps.cc: Include paper.h.
3454         (user_paper_length): New global variable.
3455         (ps_printer): Use paper length as initializer.
3456         (make_printer): Updated.
3457         (main): Handle new `-p' option.
3458         * src/devices/grops/grops.man: Updated.
3460         * src/devices/grolbp/lbp.cc: Include paper.h.
3461         s/papersizes/lbp_papersizes/.
3462         (set_papersize): Use new `papersizes' array.
3463         (handle_unknown_desc_command): Don't handle `papersize'.
3464         (main): Use `font::scan_papersize' for handling `-p' option.
3465         * src/devices/grolbp/grolbp.man: Updated.
3467         * man/groff_font.man: Document `papersize'.
3468         * NEWS: Updated.
3470 2002-05-30  Werner LEMBERG  <wl@gnu.org>
3472         * src/devices/grops/TODO: Updated.
3473         * src/devices/grops/grops.man: More info on paper formats.
3474         * man/groff_font.man: Document `paperheight' and `paperwidth'.
3476 2002-05-29  Werner LEMBERG  <wl@gnu.org>
3478         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
3479         to list only if srcdir != currdir.
3480         (distfiles): New target.
3482         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
3483         (NOMAKEDIRS): New variable.
3484         (DISTDIRS): Use it.
3486 2002-05-26  Werner LEMBERG  <wl@gnu.org>
3488         Add .output request, similar to \! at top-level.
3490         * src/roff/troff/input.cc (transparent): Remove unused declaration.
3491         (output_request): New function.
3492         (init_input_requests): Add it.
3493         Sorted.
3494         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3495         Document it.
3497         * Makefile.in (MDEFINES): Add INSTALL_INFO.
3498         (prepare_examples): Fix typo.
3499         * doc/groff.texinfo (@direntry): Fix it.
3501 2002-05-25  Werner LEMBERG  <wl@gnu.org>
3503         Including the doc subdir into groff's Makefile system.
3505         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
3506         * configure.ac: Use it.
3507         Generate `doc/Makefile'.
3508         * configure: Regenerated.
3510         * Makefile.in (infodir, INSTALL_INFO): New variables.
3511         (MDEFINES, uninstall_dirs): Updated.
3512         (OTHERDIRS): Add `doc'.
3513         * Makefile.comm (CLEANDIRADD): New variable.
3514         (mostlyclean): Use it.
3516         * doc/Makefile.sub, doc/Makefile.in: New files.
3517         * doc/Makefile: Removed.
3519         * NEWS, INSTALL: Updated.
3521 2002-05-24  Werner LEMBERG  <wl@gnu.org>
3523         * doc/homepage.ms: Renamed to ...
3524         * doc/webpage.ms: This.
3525         Use `.NHR'.
3527 2002-05-23  Werner LEMBERG  <wl@gnu.org>
3529         Integrating the `mom' macro package, contributed by Peter Schaffter
3530         <df191@ncf.ca>.
3532         * contrib/mom/*: New subdirectory tree.
3533         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
3534         be used for documentation files.
3535         (MDEFINES, uninstall_dirs): Use them.
3536         (OTHERDIRS): Add contrib/mom.
3537         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
3538         @HTMLDOCDIR@.
3539         * MANIFEST, NEWS: Updated.
3541 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
3543         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
3544         if at outer level; at start-up we are at outer level.
3546         * src/roff/troff/input.cc (do_suppress): Implement it.
3547         Simplify \O[3].
3549         Add option -p to show progress information.
3550         pre-grohtml will now render only one page at a time, reducing the
3551         size of needed disk resources enormously.
3553         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
3554         (imagePageName): New global variable.
3555         (psPageName, show_progress, currentPageNo): New global variables.
3556         (html_system): Close saved stderr and stdout handles.
3557         (write_end_image): Accept a parameter to control \O escape.
3558         (write_start_image): Adapted to new \O meaning.
3559         (char_buffer::write_upto_newline): Updated.
3560         (createAllPages): Replaced with...
3561         (createPage): This new function to create a single page for images.
3562         It uses `psselect' from the psutils package.
3563         (removeAllPages): Removed.
3564         (createImage): Updated.
3565         Handle progress display.
3566         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
3567         (scanArguments): Add option -p.
3568         (makeTempFiles): Updated to create temp files for psPageName and
3569         imagePageName.
3570         (removeTempFiles): Removed.
3571         (main): Updated.
3573         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
3574         html_printer::write_header): Append `\0' to `buffer'.
3575         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
3576         (main): Handle -p.
3577         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
3578         Handle `text_emitted'.
3579         (html_text::table_is_void): Slightly rewritten.
3580         (stop): New external symbol.
3581         (html_text::do_push) [DEBUGGING]: Use it and simplify.
3582         (html_text::shutdown): Call `dump_stack'.
3583         (html_text::do_space): Rewritten.
3584         * src/devices/grohtml/grohtml.man: Document -p and the need of
3585         `psselect'.
3587         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
3588         new \O syntax.
3589         Call \O[0] if `ps4html' is active.
3590         * tmac/s.tmac (@EQ, @EN): Handle html better.
3591         (@TS, TE): Ditto.
3592         * tmac/html.tmac: Don't use black for background colour.
3594         * src/roff/troff/node.cc: Include `div.h'.
3595         (troff_output_file::really_print_line): Don't use `is_on'. 
3596         (troff_output_file::word_marker, troff_output_file::flush_tbuf
3597         troff_output_file::check_charinfo,
3598         troff_output_file::put_char_width, troff_output_file::put_char,
3599         troff_output_file::determine_line_limits, troff_output_file::draw,
3600         real_output_file::begin_page, glyph_color_node::tprintf,
3601         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
3602         Use `is_on'.
3603         (troff_output_file::really_on): Call `do_motion'.
3604         (suppress_node::tprint): Use `get_page_number' instead of `%'
3605         register.
3606         Call `reset_output_registers' conditionally on `is_on'.
3608         * doc/groff.texinfo: Document new syntax of \O.
3609         * NEWS, man/groff_diff.man: Updated.
3611 2002-05-22  Werner LEMBERG  <wl@gnu.org>
3613         * MORE.STUFF: Add info about David Frey's deroff implementation.
3614         Mention troff.org.
3616 2002-05-16  Werner LEMBERG  <wl@gnu.org>
3618         Pic's `with' attribute now accepts positions.
3620         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
3621         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
3622         conflicts.
3623         (object_spec): Add rule for `WITH' and `position'.
3624         (relative_path): Give `corner' the precedence of `CHOP'.
3625         * src/preproc/pic/object.h (path): New members `pos' and
3626         `is_position'.
3627         * src/preproc/pic/object.cc: Updated initializers of `path'.
3628         (path::follow): Handle `is_position'.
3630         * doc/pic.ms: Completely updated grammar description.
3631         Many typographical improvements.
3633 2002-05-15  Werner LEMBERG  <wl@gnu.org>
3635         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
3636         code of x in range 0-127) also.
3637         * doc/groff.texinfo, man/groff_diff.man: Updated.
3639         Added keywords `north', `south', `east', and `west' for corners
3640         in pic.
3642         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
3643         and WEST.
3644         (yylex): Handle them.
3645         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
3646         (corner): Handle them.
3648 2002-05-14  Werner LEMBERG  <wl@gnu.org>
3650         * src/devices/grops/grops.man: Clarify handling of `download' file.
3652 2002-05-11  Werner LEMBERG  <wl@gnu.org>
3654         Adding `warnscale' and `spreadwarn' requests, based on a patch from
3655         Jeffrey Friedl <jfriedl@yahoo.com>.
3657         * src/roff/troff/input.cc (spread_limit, warn_scale,
3658         warn_scaling_indicator): New global variables.
3659         (warnscale_request, spreadwarn_requests): New functions.
3660         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
3661         (init_input_requests): Updated.
3662         (error_type): Add `OUTPUT_WARNING'.
3663         (do_error): Handle it.
3664         (output_warning): New warning function which shows output location.
3665         * src/roff/troff/env.h (spread_limit): New external variable.
3666         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
3667         `output_warning'.
3668         (distribute_space): Emit warning if added space is larger than
3669         `spread_limit'.
3670         (environment::possibly_break_line): Emit warning if a line can't
3671         be adjusted on both sides.
3673         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
3675 2002-05-08  Werner LEMBERG  <wl@gnu.org>
3677         * src/roff/troff/node.cc (special_node::special_node): Use
3678         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
3679         \X''\% crashes, for example.
3681         * doc/groff.texinfo: Document \! and \? used at top-level.
3683 2002-05-06  Werner LEMBERG  <wl@gnu.org>
3685         * src/preproc/pic/pic.man: Fix some keyword syntax.
3686         Other minor typographical fixes.
3688         * src/roff/groff/groff.man: Fix typos.
3690 2002-05-04  Werner LEMBERG  <wl@gnu.org>
3692         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
3693         (ShortOpt[]): This to avoid problems with refer.
3695         * doc/pic.ms: Fix typo.
3696         Fix pic grammar description.
3698         * tmac/an-old.tmac (ne): Use de1, not de.
3700 2002-05-03  Werner LEMBERG  <wl@gnu.org>
3702         * doc/groff.texinfo: Finished separation of glyphs and characters.
3703         Don't use the string `Appendix' for appendix headers (both in
3704         the text and the table of contents).
3705         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
3706         directories.
3708         Use registers LL and LT (similar to -ms) for controlling the
3709         length of title and line, respectively, in the -man and -mdoc
3710         macro packages.
3712         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
3713         (doc-setup-page-layout): Use \n[LL] and \n[LT].
3714         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
3715         (TH): Use \n[LL].
3716         (an-header, an-p-footer): Use \n[LT].
3717         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
3718         doc/groff.texinfo: Document it.
3720 2002-05-02  Werner LEMBERG  <wl@gnu.org>
3722         * doc/fdl.texi: New file.
3723         * doc/groff.texinfo: Include it.
3724         Define and use @copying.
3725         Starting with separating glyph, symbol, and character.
3727 2002-04-27  Werner LEMBERG  <wl@gnu.org>
3729         * Makefile.in (EXEEXT): Set it.
3730         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
3731         programs.
3733         * src/include/nonposix.h: Define GS_NAME.
3734         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
3736         Some preliminary changes for EMX support under OS/2.
3738         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
3739         __EMX__ similar to __MSDOS__.
3740         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
3742 2002-04-25  Werner LEMBERG  <wl@gnu.org>
3744         * doc/groff.texinfo: Integrated groff_out.man.
3745         Some macro fixes.
3747 2002-04-23  Werner LEMBERG  <wl@gnu.org>
3749         * man/groff_out.man: Minor fixes.
3751 2002-04-23  Werner LEMBERG  <wl@gnu.org>
3753         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
3754         correct page references.
3755         Fixed many index entries.
3757 2002-04-23  Bernd Warken  <bwarken@mayn.de>
3759         * man/roff.man: Enlarged.
3761 2002-04-22  Werner LEMBERG  <wl@gnu.org>
3763         * doc/groff.texinfo: More examples, other fixes.
3765 2002-04-20  Werner LEMBERG  <wl@gnu.org>
3767         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
3768         will now form a chain, e.g.
3770           .pi foo
3771           .pi bar
3773         is now the same as
3775           .pi foo | bar
3777         This is for compatibility with plan 9's troff.
3779         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
3780         with UNIX troff.
3781         * NEWS: Updated.
3783         * doc/groff.texinfo: Add documentation of remaining requests and
3784         registers.
3786 2002-04-19  Werner LEMBERG  <wl@gnu.org>
3788         * doc/groff.texinfo: Add documentation of remaining escapes.
3790         * font/devdvi/generate/tc.map: Remove entry for `sr'.
3791         * font/devdvi/*TC: Regenerated.
3793 2002-04-18  Werner LEMBERG  <wl@gnu.org>
3795         * src/roff/troff/input.cc (token::next): Make \H behave consistently
3796         if not in compatibility mode, i.e., increment relative to the
3797         previous height.
3798         * doc/groff.texinfo: Updated accordingly.
3800 2002-04-17  Werner LEMBERG  <wl@gnu.org>
3802         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
3804 2002-04-16  Bernd Warken  <bwarken@mayn.de>
3806         * src/roff/groff/groff.man: Improve documentation of -P option.
3807         Other minor fixes.
3809 2002-04-15  Werner LEMBERG  <wl@gnu.org>
3811         Add new escape \F to switch font family.
3813         * src/roff/troff/input.cc (token::next): Handle \F.
3814         * src/roff/troff/env.cc (environment::set_family): Handle
3815         `interrupted' flag.
3816         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3817         Document it.
3819 2002-04-14  Werner LEMBERG  <wl@gnu.org>
3821         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
3822         spaces in tags.
3824 2002-04-13  Werner LEMBERG  <wl@gnu.org>
3826         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
3827         \m[] and \M[], respectively.
3829         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
3830         (symbol::symbol): Handle NULL string and empty string differently.
3831         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
3832         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
3833         Add optional parameter.
3834         Updated calling functions.
3835         (get_copy, do_glyph_color, do_fill_color, token::next): Use
3836         `symbol::is_empty'.
3837         * src/roff/troff/env.cc (environment::set_font): Ditto.
3839         * src/preproc/pic/troff.cc (troff_output::set_fill,
3840         troff_output::reset_color: Updated.
3842         * tmac/www.tmac: Updated.
3844         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
3845         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
3846         Updated.
3848         * tmac/Xps.tmac: Remove some redundant code.
3850         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
3851         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
3852         man/groff_out.man, man/groff.man, man/groff_diff.man,
3853         src/roff/groff/groff.man: Replace \f[P] with \f[].
3855 2002-04-13  Bernd Warken  <bwarken@mayn.de>
3857         * src/include/printer.h, src/libs/libdriver/printer.cc
3858         (printer::change_fill_color): New member function.
3859         * src/libs/libdriver/input.cc (parse_D_command): Use it.
3861 2002-04-12  Werner LEMBERG  <wl@gnu.org>
3863         * doc/groff.texinfo: Completed pass on gtroff reference.
3865 2002-04-11  Werner LEMBERG  <wl@gnu.org>
3867         * doc/groff.texinfo: More fixes.
3869 2002-04-11  Bernd Warken  <bwarken@mayn.de>
3871         * src/include/color.h: Decorate with `const'.
3872         Use `size_t'.
3873         Include `stddef.h'.
3874         * src/libs/libgroff.color.cc: Decorate with `const'.
3875         Use `size_t'.
3876         (color::color): Initialize members.
3877         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
3878         command according to the documentation.
3880         * man/groff_out.man: Updated.
3881         Minor fixes.
3883 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
3885         * src/preproc/html/pre-html.cc (write_start_image): Remove
3886         redundant output.
3887         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
3889         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
3890         \C'hy' caused an assertion failure.
3892         * src/roff/troff/env.cc (environment::environment): Initialize
3893         `emitted_node'.
3894         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
3896 2002-04-10  Werner LEMBERG  <wl@gnu.org>
3898         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3899         Document pvs request and .pvs register.
3901 2002-04-09  Werner LEMBERG  <wl@gnu.org>
3903         * doc/groff.texinfo: Improve and fix documentation of diversions
3904         and environments.
3906 2002-04-08  Werner LEMBERG  <wl@gnu.org>
3908         * doc/groff.texinfo: Fix documentation of drawing functions.
3909         Other minor fixes.
3911 2002-04-07  Werner LEMBERG  <wl@gnu.org>
3913         * doc/groff.texinfo: Better documentation of double quotes as
3914         arguments.
3915         Other minor fixes.
3917 2002-04-06  Werner LEMBERG  <wl@gnu.org>
3919         * man/groff_font.man: Document names of special characters better.
3920         * doc/groff.texinfo: Minor improvements.
3922         * tmac/lbp.tmac: Load latin1.tmac.
3923         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
3925         * font/devX*/*: Regenerated (all chars > 0x80 removed).
3927 2002-04-05  Werner LEMBERG  <wl@gnu.org>
3929         * tmac/tty.tmac: Don't use shc request.
3930         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
3931         * NEWS: Updated.
3933         * man/groff_diff.man: Minor fixes.
3935         * font/devlbp/*: Remove all `charXXX' entities.
3937         * src/libs/libgroff/font.cc (font::~font): Deallocate
3938         `special_device_coding'.
3939         (font::load): Use `new' for allocating `special_device_coding'.
3940         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
3941         Removed unused member.
3943 2002-04-05  Werner LEMBERG  <wl@gnu.org>
3945         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
3946         (resource_manager::do_begin_binary,
3947         resource_manager::do_begin_data): Use it.
3949         * doc/texinfo.tex: Updated to version 4.2.
3951         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
3952         (token::zero_width_break): New inline function.
3953         * src/roff/troff/input.cc (token::next): Use it.
3954         (token::description): Updated.
3955         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
3956         (token::add_to_node_list, token::process): Use it.
3957         * NEWS, doc/groff.texinfo: Updated.
3959         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
3960         * tmac/tty.tmac: Add missing backslash.
3962 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
3964         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
3965         `.ps' register instead of `.s' to handle fractional point sizes.
3966         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
3967         limit_box::output): Ditto.
3968         * src/preproc/eqn/other.cc (size_box::compute_metrics,
3969         size_box::output): Ditto.
3970         * src/preproc/eqn/over.cc (over_box::compute_metrics,
3971         over_box::output): Ditto.
3972         * src/preproc/eqn/script.cc (script_box::compute_metrics,
3973         script_box::output): Ditto.
3974         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
3975         sqrt_box::output): Ditto.
3977 2002-04-03  Michael Selway  <mas@ssl.co.uk>
3979         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
3980         Fix typo.
3982 2002-04-03  Werner LEMBERG  <wl@gnu.org>
3984         * doc/homepage.ms: Reduce title size.
3985         * doc/groff.texinfo: Fix documentation of .t register.
3986         Fix handling of colon.
3987         Fix `\' vs. `\\'.
3989         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
3990         only if page length is positive to avoid a loop.
3992         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
3993         tbl.
3995 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
3997         * src/include/nonposix.h, src/roff/groff/pipeline.c:
3998         s/__CYGWIN32__/__CYGWIN__/.
4000 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
4002         * doc/gnu.xpm: New image contributed by Emily Mulley.
4003         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
4004         (homepage.html): Be dependent on gnu.eps.
4005         * doc/homepage.ms: Updated to new image.
4007         * src/devices/grohtml/post-html.cc (html_printer): New member
4008         `sbuf_prev_hpos'.
4009         (html_printer::flush_sbuf, html_printer::set_char): Set it.
4010         (html_printer::sbuf_continuation): Use it.
4012 2002-03-28  Werner LEMBERG  <wl@gnu.org>
4014         * src/libs/libgroff/getopt.c: Updated to latest version.
4016         * tmac/README: More on hyphen.tex license.
4018 2002-03-26  Larry Kollar  <kollar@alltel.net>
4020         * doc/groff.texinfo: Add documentation of most missing requests.
4022 2002-03-25  Werner LEMBERG  <wl@gnu.org>
4024         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
4025         of `+-', `mu', and `di', respectively.
4027         * font/devascii/R.proto, font/devutf8/R.proto,
4028         font/devlatin1/R.proto, font/devhtml/R.proto,
4029         font/devcp1047/R.proto, font/devlpb/*: Add them.
4030         * font/devps/generate/textmap: Ditto.
4031         * font/devps/*: Regenerated.
4032         * font/devlj4/generate/text.map: Add them.
4033         * font/devlj4/*: Regenerated.
4034         * font/devdvi/generate/tc.map: Use them.
4035         * font/devdvi/generate/texsy.map: Add them.
4036         * font/devdvi/*: Regenerated.
4037         * font/devX*/*: Regenerated.
4039         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
4040         tmac/tty-char.tmac: Updated.
4042         * NEWS, man/groff_char.man: Updated.
4044 2002-03-24  Werner LEMBERG  <wl@gnu.org>
4046         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
4047         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
4048         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
4049         we use `.fchar' in dvi.tmac.
4050         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
4051         * tmac/Xps.tmac: Simplify some char definitions.
4052         Add definition for \[f/].
4053         * man/groff_char.man: Updated for new X.tmac.
4055         * tmac/README: New file.
4057 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
4059         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
4060         internal .y.o rule took precendence over the .y.cc rule, compiling
4061         the yacc files with gcc instead of g++.
4063 2002-03-23  Werner LEMBERG  <wl@gnu.org>
4065         * tmac/dvi.tmac: Add replacement font for `CB'.
4067         * tmac/doc.tmac: s/request/macro/ in messages.
4068         (doc-generic-macro): Improve error message.
4069         * tmac/groff_mdoc.man: Minor improvements.
4071 2002-03-22  Werner LEMBERG  <wl@gnu.org>
4073         * doc/groff.texinfo: Document possible conflict between `tr' and
4074         `char' requests.
4076 2002-03-21  Werner LEMBERG  <wl@gnu.org>
4078         Improve handling of hyphenation patterns.  It is now possible to
4079         use most of TeX's pattern files unmodified.  To make the process
4080         more flexible, a new request `hpfcode' has been added which
4081         provides a character code mapping for the `hpf' request.  See
4082         comment before hpf_getc() for more details.
4084         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
4085         functions.
4086         (read_patterns_file): Additional parameter for exception dictionary.
4087         Extended to recognize \pattern, \hyphenation, and \endinput.
4088         (do_hyphenation_patterns_file): Updated.
4089         * src/roff/troff/env.h (hpf_code_table): New extern.
4091         * src/roff/troff/input.cc (hpf_code_table): New array.
4092         (init_hpf_code_table, hyphenation_patterns_file_code): New
4093         functions.
4094         (hyphenation_code): Handle translation from `trin' correctly.
4095         (main, init_input_requests): Updated.
4096         (charinfo::set_translation): Handle hyphenation code also.
4098         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
4099         inline function.
4101         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
4102         char' is used for offsets in hyphenation exceptions.
4104         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
4106         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4108 2002-03-20  Larry Kollar  <kollar@alltel.net>
4110         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
4111         requests.
4113 2002-03-18  Werner LEMBERG  <wl@gnu.org>
4115         * tmac/html.tmac: Fix serious typo.
4117 2002-03-17  Larry Kollar  <kollar@alltel.net>
4119         * doc/groff.texinfo: Add documentation for `writec' request.
4121 2002-03-17  Werner LEMBERG  <wl@gnu.org>
4123         Added request `hpfa' to append hyphenation patterns.
4125         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4126         parameter `append'.
4127         (hyphenation_patterns_file): Renamed to...
4128         (do_hyphenation_patterns_file): This.
4129         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
4130         functions.
4131         (init_hyphen_requests): Updated.
4132         * NEWS, man/groff.man, man/groff_diff.man: Document it.
4134 2002-03-16  Werner LEMBERG  <wl@gnu.org>
4136         Added request `writec' in analogy to `tmc'.
4138         * src/roff/troff/input.cc (write_request): Renamed to...
4139         (do_write_request): This.
4140         Added one parameter.
4141         (write_request, write_request_continue): New functions.
4142         (init_input_requests): Updated.
4143         * NEWS, man/groff.man, man/groff_diff.man: Document it.
4145         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
4146         5-10000pt.
4147         * NEWS: Document it.
4149 2002-03-15  Werner LEMBERG  <wl@gnu.org>
4151         * man/groff.man: Add writem request.
4153         Add request `trin' (translate input) to make `.asciify' work
4154         correctly.  This is necessary since `charXXX' entity names are no
4155         longer hardcoded in font definition files.
4157         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
4158         `translate_input' members.
4159         (charinfo::set_asciify_code, charinfo::get_asciify_code,
4160         charinfo::set_translation_input): New methods.
4161         (charinfo::set_translation): Add third argument.
4162         * src/roff/troff/input.cc (charinfo:set_translation): Set
4163         `asciify_code'.
4164         (do_translate): Add second argument.
4165         (translate_input): New function.
4166         (init_input_requests): Updated.
4167         * src/roff/troff/node.cc (glyph_node::asciify,
4168         composite_node::asciify): Use `get_asciify_code'.
4170         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
4172         * NEWS, man/groff.man, man/groff_diff.man: Updated.
4174 2002-03-14  Larry Kollar  <kollar@alltel.net>
4176         * doc/groff.texinfo: Improve documentation of .RS and .RE.
4178 2002-03-14  Werner LEMBERG  <wl@gnu.org>
4180         Add a new request `sizes' similar to the `sizes' command in DESC
4181         files.
4183         * src/roff/troff/env.cc (override_sizes): New function.
4184         (init_env_requests): Use it.
4185         * src/roff/troff/token.h: Export `read_string'.
4186         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4188 2002-03-12  Werner LEMBERG  <wl@gnu.org>
4190         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
4192 2002-03-10  Werner LEMBERG  <wl@gnu.org>
4194         * tmac/pspic.tmac: Add support for -Tdvi.
4195         * tmac/dvi.tmac: Include pspic.tmac.
4196         * src/devices/grodvi/grodvi.man: Document it.
4197         * NEWS: Updated.
4199         * font/devlj4/generate/Makefile: Fix URL of metric files.
4201 2002-03-09  Werner LEMBERG  <wl@gnu.org>
4203         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
4205 2002-03-09  Larry Kollar  <kollar@alltel.net>
4207         * tmac/groff_ms.man: Add documentation for RS and RE macros.
4209 2002-03-08  Werner LEMBERG  <wl@gnu.org>
4211         * doc/groff.texinfo: Fixes for texinfo 4.1.
4213 2002-03-07  Werner LEMBERG  <wl@gnu.org>
4215         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
4216         included.
4217         Handle CYGWIN properly.
4219 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
4221         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
4222         * tmac/lbp.tmac: Add some font translations.
4224 2002-03-02  Werner LEMBERG  <wl@gnu.org>
4226         * font/devcp1047/R.proto, font/devlatin1/R.proto,
4227         font/devhtml/R.proto: Remove `charXXX'  entries.
4228         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
4229         where appropriate.
4231         * font/devlj4/generate/text.map: Remove `charXXX' entries.
4232         * font/devlj4/*: Regenerated all font definition files.
4233         * tmac/lj4.tmac: Load latin1.tmac.
4235         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
4236         from 2000-06-17: LJ4 metric files are *not* text files.
4238         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
4239         register to test for EBCDIC.
4241 2002-03-01  Werner LEMBERG  <wl@gnu.org>
4243         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
4244         files (as grops already does).
4245         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
4246         files.
4247         * src/devices/grops/grops.man: Document comment lines in encoding
4248         files.
4250         * tmac/cp1047.tmac: New file.
4251         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
4252         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
4253         * tmac/Makefile.sub (NORMALFILES): Updated.
4255         * tmac/ec.tmac: Don't load latin1.tmac again.
4257         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
4258         font/devps/generate/dingbats.map,
4259         font/devps/generate/dingbats.rmap, font/devps/text.enc,
4260         font/devps/generate/Makefile (symbolmap): Add header comment.
4261         * font/devps/generate/textmap: Ditto.
4262         Remove `charXXX' entries.
4263         * font/devps/symbolmap: Regenerated.
4264         * font/devps/*: Regenerated all font definition files.
4266 2002-02-28  Werner LEMBERG  <wl@gnu.org>
4268         Add color support to grodvi (for drawing colors are currently
4269         translated to gray values).
4271         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
4272         (dvi_printer): Add `cur_color' member.
4273         (dvi_printer::set_color): New function.
4274         (draw_dvi_printer): Remove `fill'.
4275         (draw_dvi_printer::fill_next): Pass environment as parameter.
4276         Update code for new color support translated to gray.
4277         (dvi_printer::set_char): Updated.
4278         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
4279         changes crossing the page border.
4280         (dvi_printer::draw): Updated.
4281         Remove cases `f' and `F'.
4282         * tmac/dvi.tmac: Add color definitions.
4283         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4285         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
4286         used incorrectly.
4288         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
4289         versions of autoconf.
4290         * configure: Updated.
4292         * doc/homepage.ms: Use `.blm'.
4293         * tmac/www.tmac (www-depth): New auxiliary variable.
4294         (www-pop-level): Don't issue HTML tag.
4295         (ULS, ULE, LI): Use absolute indentation.
4297         * src/devices/grops/ps.cc (ps_printer::begin_page,
4298         ps_printer::end_page): Switch forth and back to default color while
4299         starting a new page.
4301 2002-02-27  Werner LEMBERG  <wl@gnu.org>
4303         Add EC and TC fonts to devdvi.
4305         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
4306         * font/devdvi/generate/cork.map: Renamed to...
4307         * font/devdvi/generate/ec.map: This.
4308         Remove entry for `aq'.
4309         * font/devdvi/generate/tc.map: New file.
4310         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
4311         EC and TC fonts.
4312         (FONTS): Updated.
4313         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
4314         * font/devdvi/Makefile.sub (DEVFILES): Updated.
4315         * tmac/ec.tmac: New file.
4316         * tmac/Makefile.sub (NORMALFILES): Updated.
4317         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4318         * man/groff_char.man: Check `ECFONTS' register.
4320         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
4322 2002-02-26  Werner LEMBERG  <wl@gnu.org>
4324         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
4325         * font/devdvi/generate/cork.map: Add 'y and 'Y.
4326         * font/devdvi/*: Updated.
4327         * tmac/dvi.tmac: Formatting.
4329         Add font `HBI' for the dvi output.
4330         Add support for font families `T' and `H'.
4332         * font/devdvi/HBI: New file.
4333         * font/devdvi/B: Renamed to ...
4334         * font/devdvi/TB: This.
4335         * font/devdvi/BI: Renamed to ...
4336         * font/devdvi/TBI: This.
4337         * font/devdvi/I: Renamed to ...
4338         * font/devdvi/TI: This.
4339         * font/devdvi/R: Renamed to ...
4340         * font/devdvi/TR: This.
4341         * font/devdvi/H: Renamed to ...
4342         * font/devdvi/HR: This.
4343         * font/devdvi/Makefile.sub (DEVFILES): Updated.
4344         * font/devdvi/generate/Makefile (HBI): New rule.
4345         (FONTS): Updated.
4346         (R, I, B, BI, H): Renamed to ...
4347         (TR, TI, TB, TBI, HR): This, respectively.
4348         (srcdir): Fixed.
4349         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4350         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
4351         Add `styles' and `family' keywords.
4352         * tmac/dvi.tmac: Alias `H' to `HR'.
4353         Add some fspecial requests for italic fonts.
4354         Add TR and TI as special.
4355         Add support for `_' with font CWI.
4357         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
4358         operator `:'.  Until now, the expression `0:1' would return 2
4359         instead of 1.
4361 2002-02-25  Werner LEMBERG  <wl@gnu.org>
4363         * man/groff_char.man: Added some missing PS glyph names (from the
4364         Adobe Glyph List).
4365         * font/devps/generate/textmap, font/devps/symbolmap: Add
4366         `arrowupdn'.
4368         * doc/groff.texinfo: Minor additions and fixes.
4369         * man/groff_diff.man: Remove documentation of fp request.  This
4370         is already covered in the original troff manual.
4371         Updated to be consistent with other doc files.
4372         * NEWS: Updated.
4374 2002-02-24  Werner LEMBERG  <wl@gnu.org>
4376         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
4377         TTYDEVDIRS.
4378         Define new variable OTHERDEVDIRS (containing `font/devlj4
4379         font/devlbp' if not EBCDIC).
4380         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
4381         (OTHERDEVDIRS): New variable.
4382         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
4383         * configure: Regenerated.
4385         * NEWS, src/devices/grotty/grotty.man: Updated.
4387 2002-02-23  Werner LEMBERG  <wl@gnu.org>
4389         * src/roff/troff/input.cc (do_overstrike, do_bracket,
4390         get_line_arg): Honour input level.
4392         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
4394         * font/*/*: Implement it in all font files.
4395         * font/devps/generate/textmap, font/devps/generate/symbolchars,
4396         * font/devps/symbolmap: Updated.
4397         * font/devlj4/generate/text.map: Updated.
4398         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
4399         * font/devdvi/generate/texmi.map: Updated.
4401         * font/devutf8/R.proto: Remove all `charXXX' entries.
4402         * font/devutf8/NOTES: Updated.
4404         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
4405         version 4.1.0.
4407         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
4409         * NEWS, man/groff_char.man: Updated.
4411 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
4413         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
4415 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4417         * src/roff/grog/grog.pl: Fix computation of $refer.
4419 2002-02-19  Werner LEMBERG  <wl@gnu.org>
4421         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
4422         `snprintf' and `vsnprintf'.
4424         * src/include/htmlindicate.h: Renamed to...
4425         * src/include/htmlhint.h: This.
4426         * src/include/Makefile.sub: Updated.
4427         * src/preproc/eqn/main.cc: Updated.
4429 2002-02-18  Werner LEMBERG  <wl@gnu.org>
4431         * man/roff.man, man/groff_out.man, man/groff.man,
4432         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
4433         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
4435         * win32-diffs: Updated.
4437 2002-02-17  Werner LEMBERG  <wl@gnu.org>
4439         * doc/Makefile (clean): Add *.eps.
4440         (MEMACROS): Removed.
4441         (TFLAG): New variable.
4442         (TROFF): Use it.
4443         Add -ww.
4444         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
4445         (.me.dit): Fixed.
4446         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
4448         * tmac/www.tmac: Use dummy diversion while resetting and disabling
4449         `.tl'.
4450         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
4451         unstripped.
4452         * src/roff/troff/troff.man: Fix order of parameter description.
4454         * NEWS: Updated.
4456 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
4458         Simplify image handling for grohtml.
4459         Fix <p> bug.
4461         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
4462         comment out.
4463         (html_text::dump_stack): Don't emit newline while debugging.
4464         (html_text::do_push) [DEBUGGING]: Print more info.
4465         (html_text::check_emit_text): Fix handling of <p>.
4466         * src/devices/grohtml/html.h: Updated.
4467         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
4468         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
4469         send its data to stderr also.
4470         Update all callers.
4471         (simple_output::space_or_newline) [DEBUGGING]: Removed.
4472         * src/devices/grohtml/post-html.cc (html_printer::do_links,
4473         html_printer::html_printer): Remove `DEBUGGING' conditionals.
4475         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
4476         Removed.
4477         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
4478         is_inline_image): Removed.
4479         (html_begin_suppress, html_end_suppress): Don't take a parameter.
4480         (graphic_start, graphic_end): Removed.
4481         * src/include/htmlindicate.h: Updated.
4482         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
4483         (macroset_template): New global variable.
4484         (makeFileName): Use `macroset_template'.
4485         (write_end_image): Don't take a parameter.
4486         Don't emit newline.
4487         (write_start_image: Don't emit newline.
4488         (char_buffer::write_upto_newline): Updated.
4489         (char_buffer::skip_to_newline): Renamed to ...
4490         (char_buffer::skip_until_newline): This.
4491         Fix code.
4492         (char_buffer::write_file_troff, char_buffer::write_file_html):
4493         Simplified.
4494         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
4495         (removeAllPages): Remove `DEBUGGING' conditionals.
4496         (addRegDef, dump_args): New functions.
4497         (char_buffer::do_html, char_buffer::do_image): Handle
4498         `www-image-template' command line variable.
4499         Add more debugging code.
4500         (addps4html): Removed.
4501         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
4503         * src/preproc/eqn/main.cc: Include `ctype.h'.
4504         (suppress_html): Removed.
4505         (do_file): Updated.
4506         (inline_equation): Use `html_begin_suppress' and
4507         `html_end_suppress'.
4508         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
4509         (troff_output::start_picture, troff_output::finish_picture):
4510         Updated.
4511         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
4512         (process_input_file): Updated.
4514         * src/roff/troff/div.cc (page_number): Set page number only if the
4515         `ps4html' register isn't defined.
4516         * src/roff/troff/input.cc (image_no): New external variable.
4517         (do_suppress): Use it.
4518         * src/roff/troff/node.h (suppress_node::image_id): New member.
4519         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
4520         (suppress_node::suppress_node): Initialize `image_id' member.
4521         (suppress_node::same): Handle `image_id' also.
4522         (suppress_node::copy): Updated.
4523         (last_image_id): New global variable.
4524         (suppress_node::tprint): Use it.
4526         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
4527         HTML-IMAGE-END.
4528         * tmac/pspic.mac (PSPIC): Fix html support.
4529         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
4530         * tmac/www.tmac (www-image-template): Set up.
4531         (HTMLINDEX): Renamed to...
4532         (HX): This.
4533         (BODYCOLOR): Renamed to...
4534         (BCL): This.
4535         (BACKGROUND): Renamed to...
4536         (BGIMG): This.
4537         (URL): Change order of parameters for consistency.
4538         (MAILTO): Renamed to...
4539         (MTO): This.
4540         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
4541         (IMG, PIMG, MPIMG): This.
4542         (HTML-H-BEGIN, HTML-H-END): Renamed to...
4543         (HnS, HnE): This.
4544         (LINKS): Renamed to...
4545         (LK): This.
4546         (LINE): Renamed to...
4547         (HR): This.
4548         (NO-AUTO-RULE): Renamed to...
4549         (NHR): This.
4550         (HTML-TL): Renamed to...
4551         (HTL): This.
4552         (UL-BEGIN, UL-END): Renamed to...
4553         (ULS, ULE): This.
4554         (DROPCAP): Renamed to...
4555         (DC): This.
4556         (TS, TE, EQ, EN): Provide default definitions.
4557         (www-make-unique-name): Updated.
4558         (HTML-IMAGE-INLINE): Fix typo.
4559         * tmac/groff_www.man: Updated.
4561         * doc/Makefile (homepage.html): Add option -r to grohtml.
4562         Use shortened image name.
4563         * doc/groff.texinfo: Updated info on grohtml strings and macros.
4564         * doc/homepage.ms: Updated and extended.
4566 2002-02-14  Werner LEMBERG  <wl@gnu.org>
4568         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
4570         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
4571         SGR_BACK_DEFAULT_COLOR): Replaced with ...
4572         (tty_printer::put_color): Use it.
4573         (ttr_printer::end_page): Simplify.
4575 2002-02-13  Werner LEMBERG  <wl@gnu.org>
4577         * tmac/groff_tmac.man: Moved to...
4578         * man/groff_tmac.man: This place.
4579         * tmac/Makefile.sub, man/Makefile.sub: Updated.
4581 2002-02-12  Werner LEMBERG  <wl@gnu.org>
4583         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
4584         $(COMPILE.c) to not include groff's assert.h.
4586         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
4587         variable.
4588         * NEWS, src/drivers/grotty/grotty.man: Document it.
4590 2002-02-11  Werner LEMBERG  <wl@gnu.org>
4592         * src/libs/snprintf/snprintf.c: Updated to latest version
4593         (2002-02-11).
4595         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
4596         test whether there is `.]' also.
4597         Don't check for spaces after `.['.
4598         * src/roff/grog/grog.sh: Do the same.
4600 2002-02-10  Werner LEMBERG  <wl@gnu.org>
4602         Illegal -> Invalid.
4604         * src/libs/libgroff/illegal.cc: Renamed to ...
4605         * src/libs/libgroff/invalid.cc: This.
4606         (illegal_char_table): Renamed to ...
4607         (invalid_char_table): This.
4608         * src/libs/libgroff/Makefile.sub: Updated.
4609         * win32-diffs: Updated.
4611         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
4612         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
4613         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
4614         font::load), src/preproc/eqn/main.cc (read_line, main),
4615         src/preproc/eqn/lex.cc (file_input::read_line),
4616         src/preproc/pic/lex.cc (file_input::read_line,
4617         simple_file_input::get, simple_file_input::peek),
4618         src/preproc/pic/main.cc (top_input::get, top_input::peek),
4619         src/preproc/pic/pic.man, src/preproc/refer/main.cc
4620         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
4621         do_bib), src/preproc/tbl/main.cc (table_input::get),
4622         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
4623         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
4624         do_zero_width, read_request, encode_char, ps_get_line,
4625         transparent_file, get_char_for_escape_name, transparent_translate,
4626         asciify, input_char_description, read_string, set_string),
4627         src/roff/troff/env.cc (environment::add_html_tag),
4628         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
4630         * src/include/lib.h: Updated.
4632         * src/preproc/eqn/eqn.cc: Removed.
4634         * NEWS: Updated.
4636         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
4638 2002-02-09  Werner LEMBERG  <wl@gnu.org>
4640         * doc/gnu.xpm: New image.
4641         * doc/Makefile (DOCS): Add homepage.ps.
4642         Add rules for converting xpm->png and xpm->eps.
4643         Use `gnu.{xpm,eps}' as image names.
4644         * doc/homepage.ms: Updated.
4646 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
4648         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
4649         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
4650         Remove calls to `B1' and `B2'
4651         (PNG-IMAGE): New macro for inclusion of images in PNG format.
4652         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
4653         auxiliary variables for MARGIN-PNG-IMAGE.
4654         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
4655         auxiliary macros for MARGIN-PNG-IMAGE.
4656         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
4657         the margin.
4658         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
4659         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
4660         (DROPCAP): New macro to produce dropcap characters.
4661         (www-do-image): Renamed back to...
4662         (HTML-DO-IMAGE): This.
4663         Updated all callers.
4665         * doc/Makefile (gnubw.eps): Updated.
4666         * doc/homepage.ms: Updated.
4668 2002-02-08  Werner LEMBERG  <wl@gnu.org>
4670         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
4671         Added `linethick' to table in section `Style Variables'.
4673 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
4675         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
4677 2002-02-07  Werner LEMBERG  <wl@gnu.org>
4679         Adding options -C (compatibility mode) and -c (grotty's old output
4680         scheme) to nroff.
4682         * src/roff/nroff/nroff.sh: Implement it.
4683         Remove `-Wall'.
4684         * NEWS, src/roff/nroff/nroff.man: Updated.
4686         * PROBLEMS: Document bison 1.32 bug.
4688         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
4690         * src/roff/troff/node.cc (make_tfont): Define it earlier.
4691         * src/roff/troff/div.h: Add prototype for `end_diversions'.
4692         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
4693         * src/roff/troff/env.h: Add prototype for `title'.
4695         Adding EBCDIC support to grotty.
4697         * src/devices/grotty/tty.cc (CSI): New macro.
4698         (SGR_*, tty_printer::put_color): Use it.
4700 2002-02-06  Werner LEMBERG  <wl@gnu.org>
4702         Implementing color support in grotty.  The new switch -c activates
4703         the old drawing scheme, disabling color at the same time.  The new
4704         switch `-i' selects italic instead of underlining (SGR only).
4706         * src/devices/grotty/tty.cc (putstring): New define instead of
4707         `fputs'.  Updated all callers.
4708         (old_drawing_scheme): New global variable.
4709         (COLOR_CHANGE): New enum value.
4710         (SGR_*): New defines containing color handling escape sequences.
4711         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
4712         (glyph): New members `back_color_idx' and `fore_color_idx'.
4713         (glyph::order): Add COLOR_CHANGE.
4714         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
4715         `is_underline', `is_bold', `cu_flag', `tty_colors'.
4716         New methods `make_underline', `make_bold', `color_to_idx',
4717         `change_color', `put_color'.
4718         (cu_flag): Moved into `tty_printer' class.
4719         (tty_printer::tty_printer): Initialize colors.
4720         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
4721         tty_printer::draw, tty_printer::end_page): Handle colors also.
4722         (main): Add options `-c' and `-i'.
4723         (usage): Updated.
4724         * NEWS, src/devices/grotty/grotty.man: Updated.
4726         * src/include/errarg.h (errarg): Add support for `unsigned int'.
4727         * src/libs/libgroff/errarg.c: Implement it.
4729         * src/include/printer.h (printer): Add `change_color' method
4730         (currently used by grotty only).
4731         * src/libs/libdriver/printer.cc: Implement it.
4732         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
4733         call to `pr->change_color'.
4735         * src/roff/troff/node.cc (troff_output_file::fill_color,
4736         troff_output_file::glyph_color): Call `do_motion'.
4738         * tmac/tty.tmac: Add color definitions.
4740         * src/roff/groff/groff.man: Minor fixes.
4742 2002-02-05  Bernd Warken  <bwarken@mayn.de>
4744         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
4745         it.  This is a preparation for future changes.
4747 2002-02-05  Werner LEMBERG  <wl@gnu.org>
4749         * src/roff/troff/input.cc (process_input_stack): Fix the case
4750         where leading spaces are followed by \f or \s; previously, an
4751         incorrect space width has been used.
4753         * doc/roff.man (quoted_char): Fix argument.
4754         (comment): Define string.
4756 2002-02-04  Larry Kollar  <kollar@alltel.net>
4758         * doc/groff.texinfo: More fixes.
4760 2002-02-04  Werner LEMBERG  <wl@gnu.org>
4762         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
4763         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
4764         `restore_compatibility' before `output_string' -- the LINE_STRING
4765         register now already contains proper switches from and to
4766         compatibility mode.
4768         * man/groff_char.man: Add Euro symbol.
4769         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
4770         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
4771         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
4772         Other minor fixes.
4774         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
4775         texinfo->pdf.
4776         (.texinfo.html): Add support for texinfo->html.
4778 2002-02-03  Werner LEMBERG  <wl@gnu.org>
4780         Added three new requests `ds1', `as1', and `ami'.  The former two
4781         are equivalent to `ds' and `as' with the difference that
4782         compatibility mode is saved on entry, switched off during string
4783         expansion, and restored on exit.  The latter is the pendant to `dei'
4784         for `am'.
4786         (do_define_string): Use `define_mode' and `calling mode'.
4787         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
4788         end of string, respectively.
4789         (define_string, append_string): Use `calling_mode'.
4790         (define_nocomp_string, append_nocomp_string,
4791         define_string_indirect): New functions.
4792         (init_input_requests): Updated.
4793         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4795         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
4796         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
4797         mm macro package accesses this string register directly.
4798         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
4800         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
4801         compatibility mode.
4803 2002-02-02  Larry Kollar  <kollar@alltel.net>
4805         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
4807 2002-01-31  Werner LEMBERG  <wl@gnu.org>
4809         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
4811 2002-01-31  Bernd Warken  <bwarken@mayn.de>
4813         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
4814         * man/groff_out.man: Revised and updated.
4816 2002-01-30  Bernd Warken  <bwarken@mayn.de>
4818         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
4819         out the unused `{' and `}' commands.  Undefined by default.
4820         (IntArray): Make `data' private.
4821         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
4822         new methods instead.
4823         (skip_line_D, skip_to_end_of_line): New functions.
4824         (get_D_fixed_args): Use `skip_line_D'.
4825         Changed to handle dummy odd arguments by ...
4826         (get_D_fixed_args_odd_dummy): This new function.
4827         (get_D_variable_args): Split some code into ...
4828         (get_possibly_integer_args): This new function.
4829         (send_draw): Use more `const'.
4830         (delete_current_env): New function.
4831         (position_to_end_of_args): Use `size_t'.
4832         Updated.
4833         (send_draw): Updated.
4834         (parse_D_command): Handle `c', `C', and `t' better.
4835         Updated.
4836         (do_file): Updated.
4838 2002-01-29  Werner LEMBERG  <wl@gnu.org>
4840         * NEWS: Revised.
4841         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
4842         @Def...ListEnd which replaces @Def...x.  This is necessary to get
4843         proper HTML output -- see the comment in the file for more
4844         information.
4845         Updated all calls.
4847 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
4849         Fixes to make color changes of 2002-01-21 work with grohtml.
4851         * src/devices/grohtml/post-html.cc (style): Updated.
4852         (html_printer): Remove unused methods.
4853         (html_printer::do_font, html_printer::draw, html_printer::set_char,
4854         html_printer::special): Updated.
4855         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
4856         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
4857         Added some debugging code.
4858         (html_text::start_tag): Updated.
4859         (html_text::do_push): New method.
4860         (html_text::push_para): Call it.
4861         Add method for handling color.
4862         (html_text::do_color): Updated.
4863         (html_text::shutdown): Handle color.
4864         * src/devices/grohtml/html-text.h (tag_definition): New member
4865         `col'.
4866         Updated.
4868 2002-01-28  Werner LEMBERG  <wl@gnu.org>
4870         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
4872 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
4874         Add two switches -a and -g to control the antialiasing bits for
4875         text and graphics, respectively.
4877         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
4878         `-g'.
4879         * src/devices/grohtml/grohtml.man: Document them.
4880         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
4881         New macros.
4882         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
4883         (setupAntiAlias): New function.
4884         (createAllPages): Updated.
4885         (scanArguments): Handle `-a' and `-g'.
4886         (main): Call `setupAntiAlias'.
4887         * NEWS: Updated.
4889 2002-01-27  Werner LEMBERG  <wl@gnu.org>
4891         * doc/groff.texinfo (Def*): Call index function after deffn.
4893         * tmac/html.tmac: Call `nroff' request.
4895 2002-01-26  Larry Kollar  <kollar@alltel.net>
4897         * tmac/groff_ms.man: Add some omissions.
4899 2002-01-25  Larry Kollar  <kollar@alltel.net>
4901         * tmac/groff_ms.man: Typographical improvements.
4903 2002-01-25  Werner LEMBERG  <wl@gnu.org>
4905         * doc/groff.texinfo: Updated version and copyright.
4906         * src/devices/grops/grops.man: Updated.
4908         * tmac/groff_tmac.man: Fix `ig' macro.
4910         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
4911         nroff mode.
4912         Use `.ne' unconditionally everywhere.
4913         (TS): Only insert some vertical space.  Doing a page break is no
4914         longer necessary due to the redefinition of the `ne' request.
4916         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
4917         warning for unknown subcommands but parse and pass them to the
4918         device driver.
4920 2002-01-24  Werner LEMBERG  <wl@gnu.org>
4922         * tmac/groff_www.man, NEWS: Fix typos.
4924 2002-01-21  Werner LEMBERG  <wl@gnu.org>
4926         Complete revision of color support:
4928           Adapt programs to the new libdriver/input.cc.
4930           Color spaces are no longer converted to RGB but transferred as-is
4931           in the troff intermediate output format.
4933           Handle default color gracefully.  troff now supports a `default'
4934           color (which can't be changed).
4936           grops will now use the proper color space functions if available.
4938           Update pic.
4940         Note that currently grohtml doesn't handle colors properly.  This
4941         has to be fixed.
4943         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
4944         (ui_to_a): New function.
4945         * src/include/lib.h: Updated.
4947         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
4948         (color): Simplified; removed all `double' members and methods.
4949         A new array `components' now holds the color parameters.
4950         (color::is_default, color::get_components): New methods.
4951         (color::operator==, color:operator!=): New.
4952         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
4953         to make access to the `components' array more comprehensible.
4954         * src/libs/libgroff/color.cc: Implement new color support.
4955         (atoh): Small fixes.
4956         (color::read_encoding): Simplified for new troff intermediate color
4957         output format.
4958         (default_color): New global variable.
4960         * src/roff/troff/input.cc (default_symbol): New global variable.
4961         (lookup_color): Use it.
4962         (default_black): Removed.
4963         (do_glyph_color, do_fill_color): Simplified.
4964         (define_color): Handle default color.
4965         Improve warnings.
4966         (do_if_request): Handle default color.
4967         * src/roff/troff/env.cc (environment::environment): Initialize
4968         colors with `default_color'.
4969         * src/roff/troff/node.cc (troff_output_file::put): Add method
4970         for `unsigned int'.
4971         (troff_output_file::hex): Removed.
4972         (troff_output_file::fill_color, troff_output_file::glyph_color):
4973         Updated to include/color.h and libdriver/input.cc.
4975         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
4976         fill color properly (identically to the outline color).  \D'f...'
4977         doesn't work any more.
4978         All function calls to it updated.
4980         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
4981         Updated.
4982         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
4983         Updated.
4985         * src/devices/grops/ps.cc (ps_output::put_color): New method.
4986         (ps_printer::sbuf_color): Make a real member instead of pointer.
4987         (ps_printer::fill_color, ps_printer::output_color): Removed.
4988         (ps_printer::ps_printer): Updated.
4989         (ps_printer::set_char): Ditto.
4990         (ps_printer::set_color): Use various color schemes.
4991         Use `put_color' method.
4992         (ps_printer::flush_sbuf): Don't set color.
4993         (ps_printer::fill_path): Take `environment' as parameter.
4994         Simplify color handling.
4995         (ps_printer::set_line_thickness): Renamed to ...
4996         (ps_printer::set_line_thickness_and_color): This (and updated).
4997         (ps_printer::set_color): Change second parameter from `complete'
4998         to `fill' which better describes what it does.
4999         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
5000         and text in the right order.
5001         Updated.
5002         Remove branches for `f' and `F'; this is handled by
5003         libdriver/input.cc.
5004         * src/devices/grops/ps.h: Updated.
5005         * font/devps/prologue (FL): Redefined.
5006         ({F,C}r,k,g: New color functions (with and without filling).
5008         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
5009         * man/groff_diff.man, man/groff.man, man/groff_out.man,
5010         doc/groff.texinfo, NEWS: Updated.
5012 2002-01-20  Bernd Warken  <bwarken@mayn.de>
5014         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
5015         in this file for what has been changed.
5017 2002-01-19  Werner LEMBERG  <wl@gnu.org>
5019         * test-groff: Fix GROFF_FONT_PATH.
5020         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
5021         is read before .TH or .Dd is parsed.
5023 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
5025         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
5026         quadrant boundaries.
5028 2002-01-18  Werner LEMBERG  <wl@gnu.org>
5030         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
5031         applied last patch.
5033 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
5035         * tmac/doc.common: Initialize %I register for the %I macro to
5036         avoid (harmless) warning.
5037         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
5038         when in the SYNOPSIS section.
5040 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
5042         * src/preproc/pic/lex.cc (get_token): Fix typo.
5044 2002-01-17  Werner LEMBERG  <wl@gnu.org>
5046         * devices/grops/ps.cc: Fix incorrectly applied last patch.
5048 2002-01-17  Larry Kollar  <kollar@alltel.net>
5050         * tmac/groff_ms.man: Completely rewritten.
5052 2002-01-16  Werner LEMBERG  <wl@gnu.org>
5054         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
5056 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
5058         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
5059         fill colors.
5060         (ps_printer::draw): Ditto.
5062 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
5064         * tmac/groff_mdoc.man: Minor fixes.
5066 2002-01-13  Werner LEMBERG  <wl@gnu.org>
5068         * man/groff_out.man: Some fixes.
5070 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
5072         * doc/pic.ms: Fix typos.
5074 2002-01-12  Werner LEMBERG  <wl@gnu.org>
5076         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
5078 2002-01-10  Werner LEMBERG  <wl@gnu.org>
5080         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
5081         symbols.
5082         * NEWS: Updated.
5084 2002-01-09  Bernd Warken  <bwarken@mayn.de>
5086         * man/groff_out.man: Revised.
5087         * man/roff.man: Minor fixes.
5088         * src/roff/troff/troff.man: Some reordering.
5090 2002-01-09  Werner LEMBERG  <wl@gnu.org>
5092         * tmac/an-old.tmac: Add dummy macros for equation support.
5094 2002-01-07  Werner LEMBERG  <wl@gnu.org>
5096         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
5098         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
5099         man pages.
5100         * tmac/groff_man.man: Small improvements.
5102 2002-01-07  Bernd Warken  <bwarken@mayn.de>
5104         * man/groff_diff.man: Revised.
5106 2002-01-06  Werner LEMBERG  <wl@gnu.org>
5108         * tmac/www.tmac: Remove extraneous backslash.
5110 2002-01-06  Bernd Warken  <bwarken@mayn.de>
5112         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
5114 2002-01-05  Werner LEMBERG  <wl@gnu.org>
5116         Integrated groffer, contributed by Bernd Warken.
5118         * contrib/groffer/*: New.       
5119         * Makefile.in, NEWS: Updated.
5121 2002-01-04  Werner LEMBERG  <wl@gnu.org>
5123         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
5124         registers defined in macro packages.
5125         Revising the ms part.
5127 2002-01-04  Larry Kollar  <kollar@alltel.net>
5129         * doc/groff.texinfo: Add documentation for ms macros.
5131 2002-01-02  Werner LEMBERG  <wl@gnu.org>
5133         First step in adding PS support for the Euro symbol.  `eu' is the
5134         official Euro logo, `Eu' is a font-specific glyph variant.
5136         * font/devps/text.enc: Add `Euro' at position 9.
5137         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
5138         * font/devps/symbolmap: Regenerated.
5140         * NEWS: Updated.
5142 2002-01-02  Bernd Warken  <bwarken@mayn.de>
5144         * man/roff.man: Revised.
5146 2002-01-01  Bernd Warken  <bwarken@mayn.de>
5148         * src/roff/groff/groff.man: Completely rewritten.
5150 2001-12-31  Werner LEMBERG  <wl@gnu.org>
5152         * doc/Makefile: Updated.
5154 2001-12-30  Werner LEMBERG  <wl@gnu.org>
5156         * tmac/www.tmac: Make all names of internal macros/registers/strings
5157         lowercase, and prepend `www-'.
5158         Other minor changes.
5159         * src/roff/troff/troff.man: Add preprocessor string at BOF.
5161 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
5163         Implement option `-b' in grohtml to set the HTML background colour.
5165         * src/devices/grohtml/post-html.cc (default_background): New global
5166         variable.
5167         (html_printer::html_printer): Initialize `background' to
5168         `default_background'.
5169         (main): Implement option `-b'.
5170         (usage): Updated.
5171         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
5172         of `-b' option.
5173         * src/devices/grohtml/grohtml.man: Updated.
5174         * doc/Makefile (.ms.html): Use `-b'.
5175         * tmac/html.tmac: Don't set background color.
5177         Add new grohtml tag `.html-tl'.
5179         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
5180         member variable.
5181         (title_desc::title_desc): Updated.
5182         (html_printer::troff_tag): Handle `.html-tl'.
5183         (html_printer::write_title): Use `with_h1'.
5184         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
5185         (HTML-TL): New macro.
5187         Add support for unordered lists in HTML.
5189         * tmac/www.tmac (www-level): New auxiliary register.
5190         (www-level1, www-level2, www-level3): New auxiliary strings.
5191         (www-push-level, www-pop-level): New auxiliary macros
5192         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
5194         Miscellaneous.
5196         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
5197         (DEFAULT_VERTICAL_OFFSET): Removed.
5198         (IMAGE_BOARDER_PIXELS): Set to 0.
5199         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
5200         (vertical_offset): Initialize with 0.
5201         (gsPaper): New global variable.
5202         (get_resolution): Scan for and return unsigned int.
5203         (get_papersize): New function to get paper length from devps/DESC.
5204         (determine_vertical_offset): New function.
5205         (createAllPages): Produce gray-level images and use proper page
5206         length.
5207         (createImage): Use `-quiet' option of pnmcrop.
5208         (addZ): Fix passing of `-Z'.
5209         (scanArguments): Fix handling of `-o'.
5210         (main): Call `determine_vertical_offset'.
5211         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
5212         code for `l'.
5214         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
5215         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
5216         glyph descenders properly.
5218         * doc/homepage.ms: Include `gnubw.eps'.
5219         * doc/Makefile (gnubw.eps): New rule.
5220         (homepage.html): Depend on `gnubw.eps'.
5222 2001-12-25  Werner LEMBERG  <wl@gnu.org>
5224         * src/roff/troff/input.cc (default_black): Fix return value.
5226 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
5228         * tmac/doc-common (Dt): Change output of architecture strings.
5229         Do some syntax cleanup.
5230         * tmac/groff_mdoc.man: Updated.
5232 2001-12-23  Werner LEMBERG  <wl@gnu.org>
5234         Adding an `itc' request (input line trap accepting \c).
5236         * src/roff/troff/env.h (environment): New member
5237         `continued_input_trap'.
5238         Make `do_input_trap' a friend function instead of `input_trap'.
5239         * src/roff/troff/env.cc (environment::environment,
5240         environment::copy): Updated.
5241         (environment::newline): Implement it.
5242         (do_input_trap): New function.
5243         (input_trap): Call `do_input_trap'.
5244         (input_trap_continued): New function.
5245         (init_env_requests): Updated.
5246         * src/roff/troff/TODO: Updated.
5248         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
5249         `.it'.
5251         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
5253 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
5255         * tmac/doc-common, tmac/doc-syms: Small updates.
5257 2001-12-22  Colin Watson  <cjwatson@debian.org>
5259         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
5261 2001-12-22  Bernd Warken  <bwarken@mayn.de>
5263         * MANIFEST: New file.
5265 2001-12-22  Werner LEMBERG  <wl@gnu.org>
5267         * src/preproc/grn/grn.man: Updated.
5269 2001-12-22  Solar Designer  <solar@openwall.com>
5271         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
5272         (DBRead): Use it.
5274 2001-12-19  Werner LEMBERG  <wl@gnu.org>
5276         Implement a fallback character request `.fchar'.
5278         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
5279         (is_fallback): New inline function.
5280         * src/roff/troff/input.cc (do_define_character): New function.
5281         (define_character): Call `do_define_character'.
5282         (define_fallback_character): New function.
5283         (init_input_requests): Add `fchar'.
5284         (charinfo::charinfo): Updated.
5285         (charinfo::set_macro): New argument to set `fallback' flag.
5286         * src/roff/troff/node.cc (make_glyph_node, make_node,
5287         node::add_char): Check `fallback' flag.
5288         * NEWS, man/groff_diff.man, man/groff_man: Updated.
5290 2001-12-16  Werner LEMBERG  <wl@gnu.org>
5292         * groff.texinfo: Document exact search algorithm for glyphs.
5294 2001-12-15  Werner LEMBERG  <wl@gnu.org>
5296         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
5297         the left side of $(MANPAGES) rule to make it always non-empty.
5299 2001-12-14  Werner LEMBERG  <wl@gnu.org>
5301         * src/roff/troff/input.cc (default_black): Define default color
5302         `black' if not yet defined.
5304 2001-12-13  Werner LEMBERG  <wl@gnu.org>
5306         Implement new string-valued register `.fn' to return the current
5307         real (internal) font name.
5309         * env.cc (environment::get_font_name_string): New function.
5310         (init_env_requests): Add `.fn' register.
5311         * env.h (environment): Updated.
5312         * node.cc (font_info): Make `get_font_name' a friend.
5313         (get_font_name): New function.
5314         * node.h: Updated.
5316         * man/groff_diff.man, man/groff.man, NEWS: Updated.
5318 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5320         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
5322 2001-12-12  Werner LEMBERG  <wl@gnu.org>
5324         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
5326 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
5328         * man/groff_diff.man: Adding documentation for \O.
5330 2001-12-10  Werner LEMBERG  <wl@gnu.org>
5332         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
5333         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
5335 2001-12-09  Werner LEMBERG  <wl@gnu.org>
5337         * man/roff.man: Revised.
5338         * src/roff/groff/groff.man: Replace man page references with a
5339         pointer to roff.man.
5341 2001-12-09  Bernd Warken  <bwarken@mayn.de>
5343         * man/roff.man: Completely rewritten.
5345 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5347         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
5349 2001-12-05  Werner LEMBERG  <wl@gnu.org>
5351         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
5352         longer used.
5353         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
5354         order of initializers.
5355         * NEWS: Updated.
5357 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
5359         * doc/groff.texinfo: Fix documentation of \O.
5361         * src/devices/grohtml/html-text.cc (html_text::do_indent,
5362         html_text::do_table, html_text::do_emittext, html_text::do_para):
5363         Use `const' for first argument.
5364         (html_text::do_table): Use cast.
5365         * src/devices/grohtml/html-text.h: Updated.
5366         * src/devices/grohtml/output.cc (simple_output::put_string): Add
5367         method for `const string &s'.
5368         * src/devices/grohtml/html.h: Updated.
5369         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
5370         (ANCHOR_TEMPLATE): Modified.
5371         (manufacture_headings): New global variable to handle `-h' option.
5372         (is_subsection): Removed.
5373         (char_buffer::add_string): Add `const' to first argument.
5374         Protect against invalid string argument.
5375         Add method for `const string &s'.
5376         (text_glob): Completely redesigned.
5377         (page): Use `const' for strings and remove string length variable.
5378         (page::add_html): Removed.
5379         (page::add_end_encode): New member function.
5380         (to_unicode): Moved upwards.
5381         (title_desc, header_desc): Updated.
5382         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
5383         definition.
5384         (html_printer::is_bold, html_printer::make_bold): New member
5385         functions.
5386         (html_printer::end_of_line): Updated.
5387         (generate_img_src, html_printer::do_auto_image,
5388         html_printer::do_title, html_printer::write_header,
5389         html_printer::determine_header_level, html_printer::do_heading,
5390         html_printer::do_linelength, html_printer::do_pageoffset,
5391         html_printer::do_indentation, html_printer::do_tempindent,
5392         html_printer::do_indentedparagraph, html_printer::do_break,
5393         html_printer::flush_sbuf, get_html_translation,
5394         html_printer::begin_page, html_printer::special): Rewritten to get
5395         rid of static string length limit.
5396         (html_printer::troff_tag): Added `.no-auto-rule'.
5397         (html_printer::flush_globs): Small fix.
5398         (html_printer::determine_space): Don't compute `space_width'.
5399         (html_printer::translate_to_html): Renamed to ...
5400         (html_printer::emit_html): This (with updates).
5401         (html_printer::write_header): Implement `-h' option.
5402         (html_printer::draw): Remove commented-out code.  Handle `F'
5403         command.
5404         (html_printer::add_char_to_sbuf): Removed.
5405         (html_printer::add_to_sbuf): Rewritten.
5406         (html_printer::sbuf_continuation): Fixed.
5407         (html_printer::seen_backwards_escape, reverse,
5408         html_printer::remove_last_char_from_sbuf): Removed.
5409         (char_translate_to_html, str_translate_to_html): Removed.
5410         (html_printer::overstrike): New function member.
5411         (html_printer::set_char): Use it.
5412         (html_printer::do_body): New function member.
5413         (html_printer::~html_printer): Use it.
5414         (main): Handle `-h' option.
5415         (usage): Updated.
5416         * src/devices/grohtml/grohtml.man: Document -h switch.
5418         * src/preproc/html/pre-html.cc: Include searchpath.h
5419         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
5420         (get_resolution): New function.
5421         (checkImageDir): Use `0777' permissions in mkdir()
5422         (write_start_image): Rewritten to use `\O[5...]'.
5423         (createImage, generateImages): Updated.
5424         (main): Handle `F' and `h' options.
5425         Use `get_resolution'.
5427         * src/roff/troff/input.cc (begin, end, image): Removed.
5428         (do_suppress): Take parameter.
5429         Handle modified syntax of `\O'.
5430         (token::next): Updated.
5431         (init_markup_requests): Removed.
5432         (main): Updated.
5434         * src/roff/troff/div.h: Add declaration for begin_page().
5436         * tmac/color-html.tmac: Removed.  Contents moved to...
5437         * tmac/html.tmac: Here.  Set background color.
5438         * tmac/color.tmac: Removed.  Contents moved to...
5439         * tmac/ps.tmac: Here.
5440         * tmac/www.tmac: Remove the title command when generating images
5441         for html.
5442         (NO_AUTO_RULE): New macro.
5443         (HTML_DO_IMAGE): Use revised `\O' escapes.
5444         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
5446 2001-12-02  Werner LEMBERG  <wl@gnu.org>
5448         * tmac/groff_mdoc.man: Fix typo.
5450 2001-12-01  Colin Watson  <cjwatson@debian.org>
5452         * man/roff.man: Fix typo.
5454 2001-11-29  Werner LEMBERG  <wl@gnu.org>
5456         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
5457         stdlib.h.
5459         * src/roff/troff/input.cc (read_draw_node): Emit error message if
5460         more than one argument to \D'f ...'.
5462         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
5464 2001-11-28  Werner LEMBERG  <wl@gnu.org>
5466         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
5467         loaded only once.
5469         * tmac/groff_man.man: Minor cosmetic fix.
5471 2001-11-27  Werner LEMBERG  <wl@gnu.org>
5473         * src/roff/groff/groff.man, tmac/groff_tmac.man,
5474         tmac/groff_www.man: s/mwww/www/.
5476 2001-11-26  Werner LEMBERG  <wl@gnu.org>
5478         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
5479         * configure: Regenerated.
5480         * win32-diffs: Updated.
5482         * tmac/groff_mwww.tmac: Renamed to ...
5483         * tmac/groff_www.tmac: This.
5484         * tmac/mwww.tmac: Removed.
5485         * NEWS, tmac/Makefile.sub: Updated.
5487 2001-11-21  Werner LEMBERG  <wl@gnu.org>
5489         * doc/groff.texinfo: Improve documentation of the `\v' escape.
5490         Fix explanation of `\D' and `rt'.
5492 2001-11-20  Werner LEMBERG  <wl@gnu.org>
5494         * tmac/an-old.tmac (an-header): Set header length equal to page
5495         width.
5496         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
5497         minor fixes.
5498         * NEWS: Small fix.
5500 2001-11-19  Werner LEMBERG  <wl@gnu.org>
5502         * NEWS, man/Makefile.sub: Updated.
5504 2001-11-19  Bernd Warken  <bwarken@mayn.de>
5506         * man/ditroff.man: New file.
5508 2001-11-17  Werner LEMBERG  <wl@gnu.org>
5510         * man/groff_differences.man: Renamed to ...
5511         * man/groff_diff.man: This.  Updated.
5512         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
5514         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
5515         * src/preproc/html/pushback.cc: This.  Updated.
5516         * src/preproc/html/pushbackbuffer.h: Renamed to ...
5517         * src/preproc/html/pushback.h: This.
5518         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
5519         Updated.
5521         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
5522         * src/libs/libgroff/htmlhint.cc: This.
5523         * src/libs/libgroff/Makefile.sub: Updated.
5525         * tmac/an-old.tmac (an-end): Fix page length.
5527 2001-11-16  Werner LEMBERG  <wl@gnu.org>
5529         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
5530         * man/Makefile.sub: Include groff_differences.man.
5531         * VERSION: Set to 1.18.
5532         * REVISION: Set to 0.
5534 2001-11-16  Bernd Warken  <bwarken@mayn.de>
5536         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
5537         the second dot (or ending macro name) to end a macro.
5538         * doc/groff.texinfo: Doc fix.
5540 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
5542         * tmac/doc-common (doc-header): Handle very long document titles
5543         better.
5545 2001-11-16  Werner LEMBERG  <wl@gnu.org>
5547         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
5549 2001-11-15  Werner LEMBERG  <wl@gnu.org>
5551         * src/roff/troff/troff.man: Revised and split into troff.man and...
5552         * man/groff_differences.man: New file.
5553         * NEWS: Updated.
5555 2001-11-13  Werner LEMBERG  <wl@gnu.org>
5557         * tmac/an-old.tmac (TS, TE): New macros for table support.
5559 2001-11-12  Werner LEMBERG  <wl@gnu.org>
5561         * src/include/lib.h: Provide a fix for emx to not include
5562         groff-getopt.h.
5564 2001-10-27  Werner LEMBERG  <wl@gnu.org>
5566         * src/roff/troff/input.cc (substring_macro): Fix computation of
5567         boundary values.
5569 2001-10-20  Werner LEMBERG  <wl@gnu.org>
5571         Undo change from 2001-08-28.
5573         * src/roff/troff/input.cc (have_input): New global variable.
5574         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
5575         in compatibility mode.
5576         (process_input_stack): Use it.
5578 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
5580         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
5581         being handled as end-of-sentence characters,
5583 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
5585         * src/roff/troff/input.cc (file_iterator): New members
5586         `suppress_newline_flag' and `seen_escape'.
5587         (file_iterator::next_file): Updated.
5588         (file_iterator::fill): Use it.
5589         (string_iterator): New member `suppress_newline_flag'.
5590         (string_iterator::fill): Set it.
5591         (get_color_element): Use MAX_COLOR_VAL.
5592         * src/roff/troff/env.cc (environment): Remove `need_eol'.
5593         (no_fill): Don't set `env->ignore_next_eol'.
5594         (environment::newline): Handle `eol' tag properly.
5595         Emit `eol.ce'.
5596         (environment::add_html_tag): Set `env->ignore_next_eol'.
5597         Don't handle `.ce'.
5598         * src/roff/troff/env.h (environment): Updated.
5600         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
5601         member function.
5602         (html_printer::outstanding_eol): New member function.
5603         (html_printer::do_title): Use new functions.
5604         (html_printer::troff_tag): Test `id_eol_ce'.
5606 2001-10-10  Werner LEMBERG  <wl@gnu.org>
5608         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
5609         files work with -C also.
5611 2001-10-05  Werner LEMBERG  <wl@gnu.org>
5613         * doc/pic.ms: Minor fix.
5614         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
5615         as a valid command line switch.
5616         * src/devices/grohtml/post-html.cc (main): Ditto.
5617         (usage): Updated.
5618         * src/devices/grohtml/grohtml.man: Updated.
5619         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
5621 2001-10-04  Werner LEMBERG  <wl@gnu.org>
5623         Implementing color support in troff, pic, grops, and grohtml.  These
5624         changes are based on a major patch provided by Gaius Mulley
5625         <gaius@glam.ac.uk>.
5627         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
5628         definitions with both hex values and fractions.
5630         New escapes: \m and \M for drawing and background color,
5631         respectively.  This corresponds to the troff output commands `m'
5632         and `DF'.
5634         groff and troff accept command line switch `-c' to disable color
5635         output (which is automatically disabled in compatibility mode).
5637         New scaling indicator `f' for fractions (1f = 65536u).
5639         New conditional operator `m' to test for defined colors with `if'
5640         and `ie'.
5642         New keywords `color' (or `colour', `colored', `coloured'), `outline'
5643         (or `outlined'), and `shaded' added to pic.
5645         * src/include/color.h: New file.
5646         * src/include/driver.h: Include it.
5647         * src/include/printer.h: Include color.h.
5648         (environment): New members `col' and `fill'.
5649         (printer): Remove `adjust_arc_center' member function.
5650         * src/include/Makefile.sub: Updated.
5652         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
5653         `env.fill'.
5654         Handle `m' and `DF' troff commands.
5655         * src/libs/libgroff/color.cc: New file.
5656         * src/libs/libgroff/Makefile.sub: Updated.
5658         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
5659         (stop): Removed.
5660         (createImage): Fix computation of `y2'.
5661         Use `pnmcrop' also.
5662         (buffer::write_file_html): Remove calls to `stop'.
5664         * src/preproc/pic/common.h (common_output): New abstract function
5665         members `set_color', `reset_color', `get_last_filled', and
5666         `get_outline_color'.
5667         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
5668         (object_spec): Add members `shaded' and `outlined'.
5669         * src/preproc/pic/output.h (output): `command' is now abstract.
5670         New function members `set_color', `reset_color', `get_last_filled',
5671         and `get_outline_color'.
5672         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
5673         `outline[d]', and `shaded'.
5674         * src/preproc/pic/object.cc (output::command): Removed.
5675         (output::set_location): Moved to output.h.
5676         (graphic_object): Add protected members `outline_color' and
5677         `color_fill'.
5678         Add member functions `set_outline_color', `get_outline_color', and
5679         `set_fill_color'.
5680         (closed_object): Add member function `set_fill_color'.
5681         Add member `color_fill'.
5682         (graphic_object::print_text): Use `out->set_color' and
5683         `out->reset_color'.
5684         (box_object::print, ellipse_object::print, circle_object::print,
5685         line_object::print, spline_object::print, arc_object::print): Ditto.
5686         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
5687         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
5688         `SHADED', making them `%left'.
5689         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
5690         * src/preproc/pic/tex.cc (tex_output): New dummy function members
5691         `set_color', `reset_color', `get_last_filled', and
5692         `get_outline_color'.
5693         * src/preproc/pic/troff.cc (simple_output): New abstract function
5694         members `set_color', `reset_color', and `get_last_filled'.
5695         (simple_output::polygon, simple_output::circle,
5696         simple_output::ellipse): Use `get_last_filled'.
5697         (troff_output): New members `last_filled' and `last_outlined'.
5698         New function members `set_color', `reset_color', `get_last_filled',
5699         and `get_outline_color'.
5700         (troff_output::finish_picture): Use `reset_color'.
5701         (troff_output::set_fill): Test `last_filled'.
5702         * src/preproc/pic/pic.man: Updated.
5704         * src/roff/groff/groff.cc (main): Implement `-c' option.
5705         (synopsis, help): Updated.
5706         src/roff/groff/groff.man: Updated.
5708         * src/roff/troff/troff.h: Include color.h.
5709         (warning_type): Add WARN_COLOR.
5710         * src/roff/troff/env.h (environment): New members
5711         `{cur,prev}_{glyph,fill}_color'.
5712         New member functions `get_{prev_,}{glyph,fill}_color'.
5713         * src/roff/troff/env.cc: Initialize and implement them.
5714         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
5715         Replace `NULL' with `0' everywhere for consistency.
5716         (lookup_color, default_black, do_glyph_color, do_fill_color,
5717         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
5718         define_color): New functions.
5719         (token::next): Implement \M and \m escapes.
5720         (do_if_request): Implement `m' operator.
5721         (usage): Updated.
5722         (main): Implement `-c' option.
5723         (init_markup_requests): Add `defcolor' request.
5724         (warning_table): Add `color' warning.
5725         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
5726         classes.
5727         * src/roff/troff/node.cc (troff_output_file): New members
5728         `current_{page,glyph}color'.  New member functions `put_hex',
5729         `glyph_color', and `fill_color'.
5730         (glyph_color_node::*, fill_color_node::*): Implement it.
5731         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
5732         (parse_term): Add support for `f'.
5733         * src/roff/troff/troff.man: Updated.
5735         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
5736         entry for `F'.
5737         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
5738         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
5740         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
5741         (tag_definition): Use `void *' for arg1.
5742         (html_text): New member functions `do_color' and `done_color'.
5743         Use `void *' for second parameter of `push_para' member function.
5744         New `push_para' member function with a single parameter.
5745         Use `char *' for parameter of `issue_table_begin' member funtion.
5746         New `issue_color_begin' member function.
5747         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
5748         COLOR_TAG.
5749         (html_text::issue_color_begin): New function.
5750         (html_text::issue_table_begin): Use `char *' for parameter.
5751         (html_text::start_tag, html_text::shutdown,
5752         html_text::check_emit_text): Updated.
5753         (html_text::push_para): Use `void *' for second parameter.
5754         Add same function with only one parameter.
5755         (html_text::do_*): Updated.
5756         (html_text::do_color, html_text::done_color): New functions.
5757         * src/devices/grohtml/post-html.cc (style): New member `col'.
5758         Mew member `style' with 6 parameters.
5759         (style::style, style::operator==): Updated.
5760         (html_printer::do_font): Use it.
5761         (html_printer::draw): Add dummy entry for `F'.
5762         (html_printer::set_char): Updated.
5763         * src/devices/grohtml/grohtml.man: Updated.
5765         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
5766         trailing zeroes removed.
5767         (ps_printer): New members `sbuf_color', `fill_color', and
5768         `output_color'.
5769         Removed member `fill'.
5770         New member function `set_color'.
5771         (ps_printer::ps_printer, ps_printer::set_char): Updated.
5772         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
5773         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
5775         * tmac/color-html.tmac, tmac/color.tmac: New files.
5776         * tmac/troffrc: Include them.
5777         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
5778         * tmac/Makefile.sub: Updated.
5780         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
5781         man/groff.man: Updated.
5782         * font/devps/prologue.ps: Define FC and CO functions.
5784 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
5786         Fix incorrect cropping of images and incorrect handling of special
5787         characters.  Fix handling of file names in \O.
5789         * src/include/geometry.h: New file.
5790         * src/libs/libgroff/geometry.cc: New file.
5791         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
5792         to `geometry.cc'.
5793         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
5794         initial spaces.
5795         (do_suppress): Updated.
5796         * src/roff/troff/node.cc: Include geometry.h.
5797         (troff_output_file::flush_tbuf): Fixed parameters to
5798         `check_output_limits'.
5799         (troff_output_file::check_charinfo): Ditto.
5800         (troff_output_file::determine_line_limits): Add support for `Da'
5801         and `Dl' commands.
5803         * src/devices/grohtml/post-html.cc (str_translate_to_html):
5804         Add new parameter `is_special' to decode special characters from
5805         escape sequences.
5806         (html_printer::do_title, html_printer::do_heading,
5807         html_printer::do_indentedparagraph,
5808         html_printer::translate_to_html, html_printer::special): Updated.
5810 2001-10-03  Werner LEMBERG  <wl@gnu.org>
5812         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
5813         Fix entry for config.h.
5814         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
5815         * tmac/troffrc: Translate nonbreakable space character to `\~'.
5816         * src/preproc/eqn/eqn.man: Document -d command line option.
5818 2001-09-27  Werner LEMBERG  <wl@gnu.org>
5820         * man/groff.man: Use
5822           .ev xxx
5823           .na
5824           .nh
5825           <table>
5826           .ev
5828         instead of the old code (`.ad .hy' after the table) to suppress
5829         incorrect hyphenation for grohtml output.
5831 2001-09-22  Werner LEMBERG  <wl@gnu.org>
5833         * man/groff_font.man, man/groff_out.man: Minor fixes.
5835 2001-09-20  Werner LEMBERG  <wl@gnu.org>
5837         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
5838         Arnold Robbins <arnold@skeeve.com>).
5840 2001-09-09  Werner LEMBERG  <wl@gnu.org>
5842         * configure: Regenerated with autoconf 2.52.
5844         * doc/groff.texinfo: Complete revision of indices.
5846 2001-09-07  Werner LEMBERG  <wl@gnu.org>
5848         * doc/Makefile (clean): Updated to delete all indices.
5850 2001-09-05  Werner LEMBERG  <wl@gnu.org>
5852         * src/roff/troff/troff.man: Remove superfluous line.
5854         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
5855         given on the command line (or rather, if only the default warnings
5856         are set).
5858 2001-09-03  Werner LEMBERG  <wl@gnu.org>
5860         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
5861         use .ne for TTY devices.
5863 2001-08-31  Werner LEMBERG  <wl@gnu.org>
5865         * src/roff/troff/token.h, src/roff/troff/input.cc:
5866         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
5868 2001-08-28  Werner LEMBERG  <wl@gnu.org>
5870         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
5871         * src/roff/troff/input.cc (token::next): Return
5872         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
5873         compatibility mode.
5874         (token::description): Updated.
5875         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
5876         (token::add_to_node_list, token::process): Ignore
5877         TOKEN_TRANSPARENT_ESCAPE.
5879 2001-08-27  Werner LEMBERG  <wl@gnu.org>
5881         * tmac/an-old.tmac: Fix `S' string.
5883 2001-08-26  Werner LEMBERG  <wl@gnu.org>
5885         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
5887 2001-08-25  Werner LEMBERG  <wl@gnu.org>
5889         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
5890         backslashes).
5891         Many other minor fixes.
5893         * configure.ac: Add message at end to inform how to compile
5894         xditview.
5895         * configure: Regenerated.
5897 2001-08-24  Werner LEMBERG  <wl@gnu.org>
5899         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
5900         Updated to latest version of libc.
5902 2001-08-23  Werner LEMBERG  <wl@gnu.org>
5904         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
5905         Autoconf 2.50 and newer can handle this.
5906         * configure: Regenerated.
5908 2001-08-21  Werner LEMBERG  <wl@gnu.org>
5910         * doc/pic.ms: Fix typo.
5911         * src/preproc/tbl/tbl.man: Document case of global options.
5913 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5915         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
5916         handling of `CR' font.
5918 2001-08-20  Werner LEMBERG  <wl@gnu.org>
5920         Use a config.h file.
5922         * src/include/lib.h: Include config.h.
5923         * All C files: Ditto (if necessary).
5924         * All C++ source and header files: Include lib.h first (if
5925         necessary).
5927         * src/include/config.hin: New file (autogenerated by autoheader).
5928         * stamp-h.in: New file.
5929         * configure.ac: Updated.
5930         * aclocal.m4: Add third parameters to AC_DEFINE macros.
5931         (GROFF_ARRAY_DELETE): Simplified.
5932         * Makefile.sub (DISTCLEANFILES): Updated.
5933         Added targets for remaking config.status, config.hin, config.h,
5934         stamp-h.in, and stamp-h.
5935         * configure: Regenerated.
5937 2001-08-19  Werner LEMBERG  <wl@gnu.org>
5939         * NEWS: Updated.
5941 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
5943         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
5944         (do_sprintf): Use snprintf().
5946 2001-08-18  Werner LEMBERG  <wl@gnu.org>
5948         * src/libs/snprintf/*: Added an snprintf module written by Mark
5949         Martinec.
5950         * src/libs/libgroff/Makefile.sub: Updated.
5951         * configure.ac: Add test for snprintf().
5952         * Makefile.in: Updated.
5953         * configure: Regenerated.
5955         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
5956         uses snprintf().
5958 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
5960         * tmac/doc.tmac (Ex): New implementation.
5961         * tmac/doc-common, tmac/groff_tmac.man: Updated.
5963 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
5965         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
5966         argument.
5967         * tmac/groff_tmac.man: Updated.
5969 2001-08-13  Werner LEMBERG  <wl@gnu.org>
5971         * src/preproc/tbl/tbl.man: Minor documentation update.
5973 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5975         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
5976         * configure.ac: Add declaration test for gettimeofday().
5977         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
5978         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
5979         * configure: Regenerated.
5981 2001-08-11  Werner LEMBERG  <wl@gnu.org>
5983         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
5984         * configure.ac: Add declaration test for strcasecmp().
5985         * Makefile.in: Updated.
5986         * configure: Regenerated.
5987         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
5988         this is necessary because groff's mkstemp.cc is C++.
5989         Add declaration conditionally for strcasecmp().
5991 2001-08-10  Werner LEMBERG  <wl@gnu.org>
5993         Integrated pic2graph, contributed by Eric S. Raymond.
5995         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
5996         files.
5997         * Makefile.in, NEWS: Updated.
5999         * src/preproc/tbl/tbl.man: Revised.
6001 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
6003         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
6005 2001-08-09  Werner LEMBERG  <wl@gnu.org>
6007         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
6008         requests.
6010 2001-08-08  Paul Eggert  <eggert@twinsun.com>
6012         * Makefile.sub (configure): Depend on configure.ac, not
6013         configure.in.
6014         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
6016 2001-08-07  Werner LEMBERG  <wl@gnu.org>
6018         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
6019         fixes.
6021 2001-08-06  Werner LEMBERG  <wl@gnu.org>
6023         * src/roff/troff/troff.man: Improve documentation of -E option.
6025 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6027         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
6028         Simplified.
6030 2001-07-27  Werner LEMBERG  <wl@gnu.org>
6032         * src/preproc/refer/refer.cc: Undo last change.
6033         * src/devices/grohtml/post-html.cc: Ditto.
6035 2001-07-26  Werner LEMBERG  <wl@gnu.org>
6037         * src/preproc/refer/refer.cc: Include `lib.h'.
6038         * src/devices/grohtml/post-html.cc: Ditto.
6040 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
6042         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
6043         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
6044         * Makefile.in: Comment updated.
6045         * configure: Regenerated.
6047 2001-07-25  Werner LEMBERG  <wl@gnu.org>
6049         * src/preproc/pic/pic.cc: Removed.
6050         * src/preproc/pic/pic_tab.h: Removed.
6051         * src/preproc/refer/label.cc: Removed.
6053         * doc/Makefile (.ms.html): Don't use a file name extension in
6054         argument to grohtml's -I option.
6055         * Makefile.in (dist): Remove CVS directories.
6056         Call `distfiles' target.
6058         * src/devices/grohtml/grohtml.man: Add information about valid
6059         versions of pnmtopng.
6060         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
6061         name instead of number.
6063 2001-07-24  Werner LEMBERG  <wl@gnu.org>
6065         * doc/groff.texinfo: Minor fixes.
6067 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
6069         * doc/Makefile (.ms.html): Put image files into a subdirectory.
6070         (clean): Updated.
6072 2001-07-20  Werner LEMBERG  <wl@gnu.org>
6074         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
6075         * src/libs/libgroff/mkstemp.cc: New file.
6076         * src/libs/libgroff/mksdir.cc: New file.
6077         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
6078         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
6079         * src/libs/libgroff/Makefile.sub: Updated.
6080         * src/include/lib.h: Add mksdir() prototype.
6081         * src/include/posix.h: Define S_IXUSR if not yet defined.
6083         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
6084         (createAllPages): Use mksdir() instead of current code.
6085         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
6086         (main): [!HAVE_MKSTEMP]: Removed.
6088         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
6089         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
6090         macros.
6091         * configure.ac: Add tests for stdint.h, sys/time.h, and
6092         gettimeofday().
6093         Call new GROFF_xxx macros.
6094         * configure: Regenerated.
6095         * Makefile.in: Comments updated.
6097 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
6099         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
6100         instead of current code.
6101         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
6102         * src/roff/groff/groff.cc (possible_command::insert_args): New
6103         function.
6104         (main): Use it for predriver handling instead of insert_arg().
6106 2001-07-19  Werner LEMBERG  <wl@gnu.org>
6108         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
6109         groff also.
6111         * src/include/posix.h: Define S_IWUSR if not yet defined.
6113 2001-07-18  Werner LEMBERG  <wl@gnu.org>
6115         * NEWS: Updated.
6117 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
6119         * tmac/groff_mdoc.man: Document new -width and -column syntax.
6120         Some other minor fixes.
6121         * tmac/an-old.tmac: Add `AT' and `UC' macros.
6123 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
6125         Replace call to `troff' with `groff -Z' to make it aware of
6126         GROFF_BIN_PATH.
6128         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
6129         (troff_command, command_prefix): Removed.
6130         (alterDeviceTo): Use groff.
6131         (addZ): New function.
6132         (char_buffer::do_html): Use it.
6133         (scanArguments): Use TROFF_COMMAND.
6134         (findPrefix): Removed.
6135         (main): Updated.
6136         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
6138 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
6140         * doc/pic.ms: Documentation fixes.
6142 2001-07-17  Werner LEMBERG  <wl@gnu.org>
6144         Replace atexit() with global destructor.
6146         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
6147         (xtmpfile_list_init): New global structure to deallocate
6148         xtmpfile_list on exit.  Its destructor inherits most code from
6149         remove_tmp_files().
6150         (remove_tmp_files): Deleted.
6151         (add_tmp_file): Simplified.
6153 2001-07-16  Werner LEMBERG  <wl@gnu.org>
6155         Replace strdup() with strsave().
6157         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
6158         (set_papersize): Use strsave() and a_delete.
6159         (main): Use strsave().
6160         * src/preproc/html/pre-html.cc (make_message, createAllPages,
6161         removeAllPages): Use strsave() and a_delete.
6163         * configure.ac: Remove test for strdup.
6164         * Makefile.in: Comment updated.
6165         * configure: Regenerated.
6167 2001-07-15  Werner LEMBERG  <wl@gnu.org>
6169         * win32-diffs: Updated.
6171 2001-07-14  Werner LEMBERG  <wl@gnu.org>
6173         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
6174         removing the old one.
6175         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
6177 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6179         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
6181 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
6183         Merge -xwidth into -width.  Add -xwidth functionality to -column
6184         also.
6186         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
6187         avoid warning.
6188         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
6189         string immediately following a leading dot starts with a valid mdoc
6190         argument.
6191         Add similar code to the -column branch.
6192         (doc-Bl-usage): Updated.
6193         * groff_mdoc.man: s/-xwidth/-width/.
6195 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
6197         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
6198         running into centered or non-formatted text.
6200 2001-07-11  Werner LEMBERG  <wl@gnu.org>
6202         Introduce short and long prefixes to have the selection at run-time
6203         whether there is a 8+3 limit for names of temporary files.
6205         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
6206         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
6207         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
6208         variables.
6209         (temp_init): New global structure to initialize above three
6210         variables.
6211         (xtmptemplate): Use two parameters for long and short prefix.
6212         Simplify code use above three variables.
6213         (xtmpfile): Use long and short prefixes as parameters.
6214         * src/include/lib.h: Updated.
6216         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
6217         with ...
6218         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
6219         (createAllPages, makeTempFiles): Updated.
6221 2001-07-09  Werner LEMBERG  <wl@gnu.org>
6223         * REVISION: Increased to 3.
6225 Version 1.17.2 released
6226 =======================
6228 2001-07-07  Werner LEMBERG  <wl@gnu.org>
6230         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
6231         to size_t.
6233 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
6235         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
6236         Fix synopsis.
6237         * tmac/groff_mdoc.man: Fix synopsis.
6239 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
6241         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
6242         Restore `doc-Pa-font'.
6244 2001-07-04  Werner LEMBERG  <wl@gnu.org>
6246         * src/utils/indxbib/dirnamemax.c: Moved to ...
6247         * src/libs/libgroff/maxfilename.cc: Here.
6248         s/dir_name_max/file_name_max/.
6249         Add copyright.
6250         * src/include/lib.h: Add file_name_max.
6251         * src/utils/indxbib/indxbib.cc: Updated.
6252         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
6253         Updated.
6255         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
6256         as empty.
6257         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
6259         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
6260         REGION_TEMPLATE): New macros.
6261         (createAllPages, makeTempFiles): Use them.
6262         Include `nonposix.h'.
6263         (html_system): New function.
6264         (createAllPages, createImage): Use it.
6265         Use EXE_EXT.
6267         * tmac/www.tmac: Fix typos.
6269 2001-07-03  Werner LEMBERG  <wl@gnu.org>
6271         * tmac/www.tmac: Disable hyphenation in normal text only if output
6272         device is html.
6273         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
6274         * tmac/groff_mwww.man, NEWS: Updated.
6276 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
6278         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
6279         image location.
6281 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
6283         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
6284         doc-display-ps-stack): Implement font and font size stack for
6285         displays.
6287 2001-07-02  Werner LEMBERG  <wl@gnu.org>
6289         * REVISION: Increased to 2.
6290         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
6292         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
6293         beginning of a line.
6294         * src/groff/grog/grog.sh: Ditto.
6296 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
6298         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
6299         make it portable.
6301 2001-06-27  Werner LEMBERG  <wl@gnu.org>
6303         Fix problems with preprocessor string for `man' program.
6305         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
6306         Updated/added copyright.
6307         Moved Emacs's local variable to identify nroff mode to the end of
6308         the file; add local variable if missing.
6310 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
6312         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
6313         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
6314         * configure: Regenerated.
6316 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
6318         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
6319         * configure: Regenerated.
6321 2001-06-24  Werner LEMBERG  <wl@gnu.org>
6323         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
6324         but www.tmac.
6325         * doc/pic.ms: Fix typos.
6327 Version 1.17.1 released
6328 =======================
6330 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
6332         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
6333         * configure: Updated.
6335 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
6337         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
6338         image names.
6339         * src/roff/troff/dic.cc (blank_line): Add html tag.
6341 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
6343         * src/roff/troff/input.cc (do_suppress): Fix typo.
6345 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
6347         Added two new options (-D and -I) to specify image names and a
6348         subdirectory to place the images in.
6350         Change syntax from \\Ox to \\O[x].
6352         * src/devices/grohtml/post-html.cc (main): Add options.
6353         (usage): Updated.
6354         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
6355         Use `NULL' instead of `0' for null string pointers.
6356         (MAX_RETRIES): New macro.
6357         (lengthOfintToStr, intToStr, make_message): New functions.
6358         (makeFileName): Make function static.
6359         Implement -D and -I options.
6360         (checkImageDir): New function.
6361         (write_end_image, write_start_image): Use new syntax of \O.
6362         (createAllPages, removeAllPages): Implement -D and -I options.  Use
6363         make_message().
6364         (createImage): Use make_message().
6365         (addps4html): Add guard for malloc().
6366         (usage, scanArguments): Updated.
6367         (makeTempFiles): Use mkstemp().
6368         (removeTempFiles): Use unlink().
6369         (findPrefix): Add guard for malloc().
6370         (main): Updated.
6371         * src/roff/troff/input.cc (get_delim_file_name): New function to
6372         parse \O.
6373         (do_suppress): Updated to parse new syntax.
6374         * src/devices/grohtml/grohtml.man: Updated.
6375         * tmac/www.tmac: Updated to new syntax.
6377         * NEWS: Updated.
6379 2001-06-15  Werner LEMBERG  <wl@gnu.org>
6381         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
6383         * src/devices/grohtml/grohtml.man: Minor improvements.
6385 2001-06-14  Werner LEMBERG  <wl@gnu.org>
6387         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
6389 2001-06-11  Werner LEMBERG  <wl@gnu.org>
6391         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
6392         line to specify preprocessor options -- mandb 2.3.1 only recognizes
6393         the former.
6394         * src/preproc/grn/grn.man: Add proper '\" string.
6396 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
6398         * test-groff: Don't use PATH but GROFF_BIN_PATH.
6400 2001-06-08  Werner LEMBERG  <wl@gnu.org>
6402         Updated to autoconf 2.50.
6404         * configure.in: Renamed to...
6405         * configure.ac: This.
6406         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
6407         (GROFF_OS390): Updated.
6408         * configure: Regenerated.
6410 2001-05-18  Werner LEMBERG  <wl@gnu.org>
6412         * src/roff/troff/env.c, src/roff/troff/env.h,
6413         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
6414         from 2000-12-21.
6416 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
6418         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
6420 2001-05-16  Werner LEMBERG  <wl@gnu.org>
6422         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
6423         less than or equal zero; set it to 1 then.
6424         * src/roff/troff/node.h (node::node): Initialize `last'.
6426 2001-05-08  Werner LEMBERG  <wl@gnu.org>
6428         * tmac/an-old.tmac: Make predefined strings work in compatibility
6429         mode.
6430         Add troff version guard.
6431         * tmac/doc.tmac: Simplify version guard.
6433 2001-05-07  Werner LEMBERG  <wl@gnu.org>
6435         The .ns and .rs requests are now honoured not only in the top-level
6436         but in all diversions (similar to UNIX troff).
6438         This change is based on a patch from Tadziu Hoffmann
6439         <hoffmann@usm.uni-muenchen.de>.
6441         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
6442         (top_level_diversion): Remove `no_space_mode' member.
6443         * src/roff/troff/div.cc (diversion::diversion,
6444         top_level_diversion::top_level_diversion): Updated.
6445         (macro_diversion::output): Reset `no_space_mode'.
6446         (no_space, restore_spacing): Use `curdiv' unconditionally.
6447         (space_request, blank_line): Check `curdiv->no_space_mode'.
6448         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
6449         `curdiv' unconditionally.
6450         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6451         Updated.
6453 2001-05-06  Werner LEMBERG  <wl@gnu.org>
6455         Added two new requests `de1' and `am1' which are similar to `de' and
6456         `am' with the difference that compatibility mode is saved on entry,
6457         switched off during macro execution, and restored on exit.
6459         * src/roff/troff/input.h: Added two new special characters
6460         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
6461         * src/roff/troff/input.cc (input_iterator): Added two member
6462         functions `save_compatible_flag' and `get_compatible_flag'.
6463         (input_stack): Ditto.
6464         (string_iterator): Ditto.  Also add private member
6465         `saved_compatible_flag'.
6466         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
6467         (calling_mode): New enumeration.
6468         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
6469         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
6470         (define_macro, define_indirect_macro, append_macro, ignore): Use
6471         `calling_mode'.
6472         (define_nocomp_macro, append_nocomp_macro): New functions.
6473         (init_input_requests): Updated.
6474         (do_request): Rename local variable `saved_compatible_flag' to
6475         `old_compatible_flag'.
6476         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6478         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
6479         public and trap-invoked macros.  As a consequence, the man macros
6480         work in compatibility mode also.
6482 2001-05-06  Solar Designer  <solar@openwall.com>
6484         * Makefile.in: Use $(mandir).
6486 2001-05-06  Alexios Zavras  <zvr@pobox.com>
6488         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
6490 2001-05-05  Werner LEMBERG  <wl@gnu.org>
6492         Added `.ns' number register: Returns 1 in no-space mode (if in
6493         top-level diversion), 0 otherwise.
6495         * src/roff/troff/div.cc (no_space_mode_reg): New class.
6496         (init_div_requests): Updated.
6497         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6498         Document it.
6500 2001-05-04  Werner LEMBERG  <wl@gnu.org>
6502         * src/roff/nroff/nroff.man: Improved documentation (especially
6503         locales).
6505 2001-05-02  Werner LEMBERG  <wl@gnu.org>
6507         Added `brp' request: This is \p as a request.
6509         * src/roff/troff/env.cc (environment::do_break): Add parameter
6510         `spread'.
6511         (do_break_request): New function (was `break_request').
6512         (break_request): Calls `do_break_request'.
6513         (break_spread_request): New; calls `do_break_request'.
6514         (init_env_requests): Updated.
6515         * src/roff/troff/env.h: Updated.
6516         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6518         * REVISION: Increased to 1.
6519         * win32-diffs: Updated.
6521 2001-05-01  Werner LEMBERG  <wl@gnu.org>
6523         * tmac/an-old.tmac: Fix minor compatibility mode issue.
6524         * tmac/troffrc-end: Make it really work in compatibility mode.
6526 2001-04-27  Werner LEMBERG  <wl@gnu.org>
6528         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
6529         stdlib.h.
6531 2001-04-22  Werner LEMBERG  <wl@gnu.org>
6533         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
6534         latest versions from glibc CVS archive.
6536         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
6537         <c.zeelenberg@hccnet.nl>.
6539 2001-04-21  Werner LEMBERG  <wl@gnu.org>
6541         * configure.in: Move check for mkstemp() to...
6542         * aclocal.m4 (GROFF_MKSTEMP): This new function.
6543         * configure: Regenerated.
6545         * src/include/groff-getopt.h: Don't use variable names in
6546         declarations.
6548         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
6549         * src/devices/grohtml/Makefile.sub,
6550         src/devices/grohtml/post-html.cc: Updated.
6552 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
6554         * configure.in: Add special check for mkstemp().
6555         * src/libs/libgroff/tmpfile.cc: Use it.
6556         * src/utils/indxbib/indxbib.cc: Ditto.
6557         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
6558         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
6559         `const'.
6561 2001-04-20  Bruce Lilly  <blilly@erols.com>
6563         `Version_string' as C++ object was not visible to linker from C
6564         object files.
6565         Add `const' to `Version_string'.
6567         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
6568         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
6569         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
6570         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
6571         (scanArguments), src/preproc/refer/refer.cc (main),
6572         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
6573         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6574         (main), src/devices/grohtml/post-html.cc (main),
6575         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
6576         (main), src/utils/hpftodit/hpftodit.cc (main),
6577         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
6578         (main), src/utils/lkbib/lkbib.cc (main),
6579         src/utils/addftinfo/addftinfo.cc (main): Implement it.
6581         * src/roff/groff/pipeline.c: Add _UWIN.
6582         * src/include/nonposix.h: Ditto.
6584 2001-04-20  Werner LEMBERG  <wl@gnu.org>
6586         * src/include/lib.h: Use HAVE_STRERROR.
6587         * src/roff/groff/pipeline.c: Ditto.
6588         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
6589         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
6590         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
6591         * win32-diffs: Updated.
6592         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
6594 2001-04-19  Werner LEMBERG  <wl@gnu.org>
6596         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
6597         instead of hardwired `"troff"'.
6598         (char_buffer::read_file): Remove unused variables.
6599         (char_buffer::write_file_troff): Ditto.
6600         (char_buffer::write_file_html): Ditto.
6601         (generateImages): Ditto.
6602         (abs): Removed.
6603         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
6605         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
6607         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
6608         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
6609         index_search_item::search1): Ditto.
6610         * src/roff/troff/node.h (width_list): Reorder members.
6611         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
6612         (lookup_warning): Ditto.
6613         (prepend_string): Commented out.
6614         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
6615         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
6616         * src/preproc/tbl/main.cc (process_format): Ditto.
6617         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
6618         compiler warnings.
6619         * src/preproc/pic/pic.cc: Updated.
6620         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
6621         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
6622         * src/preproc/refer/command.cc (execute_command): Ditto.
6623         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
6624         * src/preproc/refer/token.cc (lookup_token): Ditto.
6625         * src/preproc/soelim/soelim.cc: Ditto.
6626         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
6627         (isHexDigit): Commented out.
6628         (pushBackBuffer::isString): Remove unused variable.
6629         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
6630         warning.
6631         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
6632         resource_manager::read_resource_arg, read_one_of, parse_extensions):
6633         Ditto.
6634         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
6635         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
6636         lookup_paper_size): Ditto.
6637         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
6638         (text_glob, element_list): Reorder members.
6639         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
6640         compiler warning.
6641         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
6642         return value to `void'.
6643         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
6644         of initializers.
6645         * src/devices/grohtml/html.h (simple_output::check_newline,
6646         simple_output::space_or_newline, simple_output::enable_newlines):
6647         Add return value.
6648         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
6649         compiler warnings.
6650         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
6651         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
6652         output_ligatures, output_charset, read_map): Ditto.
6653         * src/utils/lookbib/lookbib.cc (main): Ditto.
6654         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
6655         (do_file): Fix typo (`=' -> `==').
6656         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
6657         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
6659 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
6661         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
6662         Fix usage of GROFF_BIN_PATH.
6663         * src/roff/nroff/nroff.man: Updated.
6665 2001-04-18  Werner LEMBERG  <wl@gnu.org>
6667         * NEWS: Fixing typos.
6668         Updated.
6670 Version 1.17 released
6671 =====================
6673 2001-04-17  Werner LEMBERG  <wl@gnu.org>
6675         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
6676         directory, not in $(srcdir).
6678 2001-04-16  Werner LEMBERG  <wl@gnu.org>
6680         * doc/groff.texinfo: More info on conditionals.
6682 2001-04-15  Werner LEMBERG  <wl@gnu.org>
6684         * doc/groff.texinfo: Added some info about groff internals.
6686         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
6687         about missing special character only if the name is non-null.
6689 2001-04-14  Werner LEMBERG  <wl@gnu.org>
6691         Removing the grohtml-old device driver which is now obsolete.
6693         * src/devices/grohtml-old/*: Removed.
6694         * font/devhtml-old/*: Removed.
6695         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
6696         Remove comments.
6697         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
6698         * test-groff (PATH): Updated.
6699         * tmac/Makefile.sub (NORMALFILES): Updated.
6700         * tmac/an-old.tmac: Remove special code for html-old device.
6701         Replace `html-or-html-old' register with `an-html'.
6702         * tmac/eqnrc: Updated.
6703         * tmac/html-old.tmac: Removed.
6704         * tmac/troffrc, tmac/troffrc-end: Updated.
6705         * tmac/www.tmac: Remove special code for html-old device.
6706         Replace `html-or-html-old' register with `www-html'.
6708         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
6709         src/libs/libgroff/htmlindicate.cc (graphic_end),
6710         include/htmlindicate.h, src/preproc/grn/*.cc,
6711         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
6712         single argument for consistency with rest of source code.
6714         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
6716 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
6718         * src/roff/troff/troff.man: Fixing typos.
6720 2001-04-13  Werner LEMBERG  <wl@gnu.org>
6722         * doc/pic.ms: Fixing many font switches.
6723         * doc/groff.texinfo: Fixes, additions.
6724         * MORE.STUFF: Updated.
6726 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
6728         * src/devices/grohtml/grohtml.man: Updated manual page regarding
6729         simple anchor.
6730         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
6731         cropping of images.
6732         (removeTempFiles): New function to tidy up temporary files.
6733         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
6734         Many fixes to do with the new inline suppress node and image regions
6735         are much tighter.
6736         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
6737         (generate_img_src): New function.
6738         (html_printer::do_auto_image): Utilizes it.
6739         (do_heading, do_title): Include inline images within their contents.
6740         (html_printer::begin_page): Tidied up comments that are issued to
6741         the html output file.
6742         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
6743         than courier.
6744         (text_glob::is_br): New method used by do_heading.
6745         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
6746         equivalent diversion.
6747         * src/include/html-strings.h: Altered image tags to reflect the
6748         inline image node.
6749         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
6750         parameter.
6751         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
6752         it is already inside a pic image.  Only emit tags if the argument
6753         `-Tps:html' is present.
6754         * src/preproc/tbl/main.cc: Changes to reflect additional
6755         `html_end_suppress' parameter.
6756         * src/roff/troff/env.cc: Only emit eol tag if a node has been
6757         emitted since the last eol tag was written.
6758         * src/roff/troff/env.h: New boolean `emitted_node'.
6759         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
6760         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
6761         * src/roff/troff/node.cc (check_charinfo): New method. 
6762         (troff_output_file::determine_line_limits): Alterations to limit
6763         checking.
6764         * tmac/www.tmac: Changes to reflect new suppress nodes.
6765           
6766 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
6768         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
6769         Escape the html_glyph in the buffer.
6770         (str_translate_to_html): Output the unescaped escaped_char.
6771         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
6772         `frame=void', not `frame=none'.  Add `border=0'.
6774 2001-04-12  Werner LEMBERG  <wl@gnu.org>
6776         * PROBLEMS: Add some words on how to avoid wrapper macros.
6778 2001-04-11  Blake McBride  <blake@florida-software.com>
6780         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
6782 2001-04-11  Werner LEMBERG  <wl@gnu.org>
6784         * font/devlbp/Makefile.sub (CLEANADD): Set it.
6785         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
6786         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
6787         * Makefile.sub (DISTCLEANFILES): Here.
6789         * libs/libgroff/new.cc: Include `nonposix.h'.
6790         * win32-diffs: Updated.
6792 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
6794         Added skeleton macro for defunct macros.
6796         Updated documentation.
6798         When inside displays, an empty input line warning should be
6799         suppressed.  If another macro call is put inside a display,
6800         all subsequent empty lines found in that display caused a
6801         warning to be emitted.
6803         * tmac/doc.tmac (doc-defunct-macro): New macro.
6804         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
6805         (doc-restore-global-vars): Fixed typo.
6806         (doc-empty-line): Check the `doc-display-depth' register to
6807         determine whether we are inside display or not.
6809         * tmac/doc-common: Removed `Or' and `Sf' registers.
6810         Moved obsolete `Ds' macro to doc.tmac.
6812         * tmac/groff_mdoc.man: Bump document date.
6813         Document `.Vt' under ``Variable Types''.
6814         Removed documentation for obsolete `.Or' macro.
6816 2001-04-10  Werner LEMBERG  <wl@gnu.org>
6818         * NEWS: Updated.
6819         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
6821 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
6823         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
6824         (usage): Add stream argument. Don't exit.
6825         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
6826         Write --version output to stdout, not stderr.
6827         (usage): Add stream argument. Don't exit.
6828         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
6829         (usage): Add stream argument. Don't exit.
6830         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
6831         constants.
6832         (usage): Add stream argument. Don't exit.
6833         (main): Write --help output to stdout, not stderr.
6834         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
6835         (usage): Add stream argument. Don't exit.
6836         * src/devices/grops/ps.cc (main): Accept --help and --version.
6837         (usage): Add stream argument. Don't exit.
6838         * src/devices/grotty/tty.cc (main): Accept --help and --version.
6839         (usage): Add stream argument. Don't exit.
6840         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
6841         (main): Accept --help and --version.
6842         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
6843         (main): Accept --help and --version.
6844         * src/preproc/html/pre-html.cc (usage): Add stream argument.
6845         (scanArguments): Accept --help and --version.
6846         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
6847         (main): Accept --help and --version.
6848         * src/preproc/refer/refer.cc (main): Accept --help and --version.
6849         (usage): Add stream argument. Don't exit.
6850         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
6851         exit.
6852         (main): Accept --help and --version.
6853         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
6854         (main): Accept --help and --version.
6855         * src/roff/groff/groff.cc (main): Accept --help and --version.
6856         (synopsis): Add stream argument.
6857         (help): Write --help output to stdout, not stderr.
6858         (usage): Add stream argument. Don't exit.
6859         * src/roff/grog/grog.pl: Accept --help and --version.
6860         (help): New sub.
6861         * src/roff/grog/grog.sh: Accept --help and --version.
6862         * src/roff/nroff/nroff.sh: Accept --help and --version.
6863         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
6864         (usage): Add stream argument. Don't exit.
6865         (main): Accept --help and --version.
6866         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
6867         (usage): New function with stream argument, doesn't exit.
6868         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
6869         (usage): New function with stream argument, doesn't exit.
6870         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
6871         (usage): Add stream argument. Don't exit.
6872         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
6873         (main): Accept --help and --version.
6874         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
6875         exit.
6876         (main): Accept --help and --version.
6877         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
6878         (main): Accept --help and --version.
6879         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
6880         (usage): Add stream argument. Don't exit.
6882 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
6884         Fix indentation in SYNOPSIS.
6886         Updated to include changes of latest BSD mdoc version (basically,
6887         the only change is that `.Fn' and `.Fc' put a final semicolon after
6888         a function declaration in the SYNOPSIS section).
6890         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
6891         (doc-in-synopsis-section): New variable.  Updated all related
6892         functions.
6893         (doc-indent-synopsis-active): New register.
6894         (Nd, Fn, Fo): Use it.
6895         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
6896         `.Cd' with long argument line produces indented wrapped lines. 
6897         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
6898         undesirable line break to be output.
6899         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
6900         `.rs'.
6901         (Fn, Fc): Add final `;' to output.
6902         (doc-save-global-vars, doc-restore-global-vars): Updated.
6903         * tmac/doc-common: Remove `Ex' register.
6904         Updated.
6905         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
6906         copyright.
6908 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
6910         * tmac/doc.tmac (Cd): Simplify code.
6911         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
6913 2001-04-06  Werner LEMBERG  <wl@gnu.org>
6915         Implement continuous underlining for nroff mode.  To do that, a new
6916         request in the ditroff language has been added: `x u N' (N is 0
6917         or 1).
6919         \X and \Y are now transparent to end-of-sentence recognition.
6921         * src/include/printer.h (printer): Add `type' parameter to `special'
6922         method.
6923         * src/libs/libdriver/printer.cc (printer::special): Updated.
6924         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
6926         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
6927         specials of type `p'.
6928         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
6929         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
6930         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
6931         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
6932         (glyph::order): New method.
6933         (tty_printer::add_char): Use it.
6934         (tty_printer::special): New method.
6935         (tty_printer::end_page): Implement it.
6937         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
6938         * src/roff/troff/node.cc (special_node::special_node): Add parameter
6939         to set `no_init_string'.
6940         (special_node::tprint_start): Use it.
6941         (special_node::same, special_node::copy): Updated.
6942         (special_node::ends_sentence): New method.
6943         (troff_output_file::start_special): Add parameter to include
6944         inititialization of special conditionally.
6946         * src/roff/troff/env.h (environment): New member `underline_spaces'.
6947         * src/roff/troff/env.cc (do_underline_special): New function.
6948         (environment::set_font): Use it.
6949         (do_underline): Use it.  This was `underline()'.
6950         (underline): Call `do_underline()'.
6951         (continuous_underline): New function which calls `do_underline()'.
6952         (environment::newline): Use `do_underline_special()'.
6953         (init_env_requests): Updated.
6955         * NEWS, man/troff_out.man: Updated.
6957 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
6959         * font/devutf8/R.proto: Fix code of 'shc'.
6961 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
6963         Many fixes.  Diag lists can now be nested also; additionally,
6964         `-compact' and `-offset' are supported.
6966         * tmac/doc.tmac (doc-have-indent): Replaced with ...
6967         (doc-list-have-indent-stackXXX): A new register stack.
6968         (doc-have-diag-list): Removed.
6969         (Bl): Use `doc-list-have-indent-stackXXX'.
6970         (El): Updated.
6971         (doc-diag-list): Use `doc-compact-list-stackXXX'.
6972         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
6973         (doc-set-vertical-and-indent): Ditto.
6974         (doc-next-list-depth): Removed.
6975         (doc-increment-list-stack): Updated.
6976         (doc-decrement-list-stack): Use `doc-list-depth' instead of
6977         `doc-next-list-depth'.
6978         (doc-end-list, doc-end-column-list): Don't use
6979         `doc-increment-list-stack'.
6980         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
6981         (doc-save-global-vars, doc-restore-global-vars): Updated.
6982         * tmac/doc-common: Updated.
6983         * tmac/groff_mdoc.man: Updated.
6984         * NEWS: Fix typo.
6986 2001-04-02  Werner LEMBERG  <wl@gnu.org>
6988         * src/devices/grotty/grotty.man: Fix grammatical error.
6990 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
6992         Remove .Ld from mdoc package; replace it with special handling of
6993         `...'.
6995         * tmac/doc-common: Remove `Ld' register.
6996         Uncomment `doc-volume-ds-*' strings.
6997         Remove `doc-operating-system-default'.
6998         (Os): Updated.
6999         * tmac/doc-syms (Ld): Removed.
7000         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
7001         `...' specially.
7002         * NEWS: Updated.
7004         * tmac/groff_mdoc.man: Many fixes and updates.
7006 2001-03-29  Werner LEMBERG  <wl@gnu.org>
7008         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
7009         Bond <tkb@tkb.mpl.com>.
7010         * tmac/www.tmac: Save compatibility mode.
7012 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
7014         * tmac/groff_mdoc.man: Many fixes.
7016 2001-03-28  Werner LEMBERG  <wl@gnu.org>
7018         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
7019         isn't recognized.
7021 2001-03-27  Werner LEMBERG  <wl@gnu.org>
7023         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
7024         diversion.  This fixes overlong tags.
7026 2001-03-26  Werner LEMBERG  <wl@gnu.org>
7028         * doc/groff.texinfo: Fixed and improved documentation of fonts.
7029         * tmac/doc-syms: Fix error messages.
7030         * tmac/an-old.tmac: Remove incorrect double backslashes.
7032 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
7034         * tmac/Makefile.sub: Strip mdoc.local also
7035         * tmac/strip.sed: Fixed.
7037 2001-03-24  Werner LEMBERG  <wl@gnu.org>
7039         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
7040         selecting the font size.
7041         * tmac/groff_mdoc.man, NEWS: Document it.
7043 2001-03-23  Werner LEMBERG  <wl@gnu.org>
7045         * src/roff/troff/div.cc (save_vertical_space): Add default argument
7046         to `sv' request.
7047         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
7048         argument to restore previous font family.
7049         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
7051         * doc/groff.texinfo: More fixes and additions (mainly for font
7052         manipulating commands).
7054         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
7055         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
7056         * tmac/Makefile.sub, NEWS: Updated.
7058 2001-03-23  Werner LEMBERG  <wl@gnu.org>
7060         Replaced mdoc implementation.  The new version is `state of the
7061         art', using almost all new features of groff 1.17 -- it won't run
7062         with older versions.
7064         * tmac/doc.tmac: Completely rewritten.
7065         * tmac/doc-common: Ditto.
7066         * tmac/doc-nroff: Ditto.
7067         * tmac/doc-ditroff: Ditto.
7068         * tmac/doc-syms: Ditto.
7069         * tmac/mdoc.local: New file.
7070         * tmac/groff_mdoc.samples.man: Replaced with ...
7071         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
7072         * tmac/strip.sed: Updated.
7073         * tmac/Makefile.sub: Updated.
7074         * INSTALL: Updated.
7076         * tmac/groff_man.man: Add `man.local' to the FILES section.
7078 2001-03-22  Werner LEMBERG  <wl@gnu.org>
7080         * doc/groff.texinfo: Added many @noindent.
7081         Replaced @end_Example -> @endExample.
7082         Added info whether registers are r/o.
7083         Many other additions and fixes.
7085 2001-03-21  Werner LEMBERG  <wl@gnu.org>
7087         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
7088         in makeinfo of texinfo 4.0) to be used in @Def* macros.
7089         Improved @Def* macros: Now the exact syntax of request, register,
7090         and escapes is shown.
7091         Added macros for parentheses and brackets to be used in @Def*.
7092         Many fixes and improvements of the documentation.
7094 2001-03-20  Werner LEMBERG  <wl@gnu.org>
7096         * doc/groff.texinfo: Added new index: `st' (for strings).
7097         Added macros @Defstr(x).
7098         Added macro @Example (adding @group).
7099         Other minor improvements.
7101 2001-03-19  Werner LEMBERG  <wl@gnu.org>
7103         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
7104         `rq' for requests.  `fn' is no longer used.
7105         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
7106         Removed @Deffn(x).
7108         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
7109         number with name of man page.
7111 2001-03-19  Larry Kollar  <kollar@alltel.net>
7113         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
7114         consistency.
7116 2001-03-19  Werner LEMBERG  <wl@gnu.org>
7118         * man/groff_font.man: Document `prepro', `postpro', and `print'.
7119         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
7120         * src/devices/grohtml/grohtml.man: Fixing typos.
7122 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
7124         * tmac/s.tmac (@IP): Pass `.ip' html tag.
7125         * tmac/groff_mwww.man: Remove .LINE macro
7126         * tmac/www.tmac (LINE): Add `.ti'.
7128         * src/devices/grohtml/post-html.cc (html_printer): New member
7129         `indent'.
7130         (html_printer::emit_raw): Use it.
7131         (html_printer::do_linelength): Ditto.
7132         (html_printer::do_pageoffset): Ditto.
7133         (html_printer::do_indentation): Ditto.
7134         (html_printer::do_tempindent): Ditto.
7135         (html_printer::do_break): Ditto.
7136         (html_printer::begin_page): Ditto.
7137         (html_printer::do_indentedparagraph): New function.
7138         (html_printer::troff_tag): Handle `.ip'.
7139         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
7140         Add `<td width=...>' handling.
7141         (html_text::do_table): Add parameter.
7142         (html_text::do_indent): Updated.
7143         * src/devices/groohtml/html-text.h: Updated.
7145 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
7147         Introduced simple html tables to implement indentation.
7149         * src/devices/grohtml/html.h (word, word_list): New structures.
7150         (simple_output): Use it.
7151         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
7152         (html_printer): Improve indentation handling.
7153         (html_printer::emit_raw): Set `in_table' element.  Handle
7154         indentation if set.
7155         (html_printer::write_header): Move conditional downwards.
7156         Don't allow whitespace in tags.
7157         (html_printer::do_linelength): Handle line length and indentation
7158         conditionally.
7159         (html_printer::do_pageoffset): Handle indentation conditionally.
7160         (html_printer::do_indentation): Ditto.
7161         (html_printer::do_tempindent): New function member.
7162         (html_printer::do_fill): Take care of indentation.
7163         (html_printer::do_flush): Finish table.
7164         (html_printer::do_links): Ditto.
7165         (html_printer::do_break): New function for handling `.br' and `.ti'.
7166         (html_printer::troff_tag): Use it.
7167         Handle `.ti'.
7168         (html_printer::flush_globs): Fix.
7169         (html_printer::flush_page): Finish table.
7170         (html_printer::html_printer): Fix error message.  Set up
7171         `linelength'.
7172         (html_printer::add_to_sbuf): Remove special handling of character
7173         code 255.
7174         (to_unicode): Remove `stop()'.
7175         (html_printer::write_title): Cleanup.
7176         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
7177         (html_printer::~html_printer): Flush text and end the line.
7178         Use `put_string()'.
7179         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
7180         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
7181         emission of tags.
7182         (html_text::start_tag): Disable newlines.
7183         (html_text::table_is_void): New function.
7184         (html_text::issue_table_begin): Ditto.
7185         (html_text::issue_table_end): Ditto.
7186         (html_text::push_para): Better table handling.
7187         (html_text::do_indent): New function.
7188         (html_text::do_table): Ditto.
7189         (html_text::done_table): Ditto.
7190         (html_text::do_tt): Handle PRE_TAG.
7191         (html_text::is_in_table): New function.
7192         (html_text::check_emit_text): Handle tables.
7193         (html_text::do_emittext): Use `nl()'.
7194         (html_text::do_para): Handle table.
7195         (html_text::remove_def): New function.
7196         * src/devices/grohtml/output.cc (word, word_list): Implement
7197         methods.
7198         (simple_output::end_line): Flush last word.
7199         (simple_output::simple_comment): Ditto.
7200         (simple_output::begin_comment): Recoded.
7201         (simple_output::end_comment): Ditto.
7202         (simple_output::comment_arg): Removed.
7203         (simple_output::check_newline): Improve test and flush last word.
7204         (simple_output::space_or_newline): Improved.
7205         (simple_output::write_newline): Replaced with...
7206         (simple_output::nl): This.
7207         (simple_output::put_raw_char): Flush last word.
7208         (simple_output::check_space): Removed.
7209         (simple_output::put_translated_string): Ditto.
7210         (simple_output::put_string): Simplified.
7211         (simple_output::put_number): Updated.
7212         (simple_output::put_float): Ditto.
7213         (simple_output::put_symbol): Removed.
7214         (simple_output::enable_newlines): Add `check_newline()'.
7215         (simple_output::flush_last_word): New function.
7217         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
7218         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
7220         * tmac/s.tmac (@PP, @IP): Add html conditional code.
7221         * tmac/an-old.tmac (TP): Ditto.
7223 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
7225         * mdate.sh: Make it POSIX compliant.
7227 2001-03-09  Werner LEMBERG  <wl@gnu.org>
7229         Added the `return' request to end a macro immediately.  It simply
7230         pops iterators from the input stack until a macro iterator is found.
7232         * src/roff/troff/input.cc (input_iterator::is_macro,
7233         macro_iterator::is_macro): New member.
7234         (input_return_boundary): New class to signal an immediate return
7235         to while_request().
7236         (input_stack::add_return_boundary, input_stack::is_return_boundary):
7237         New functions.
7238         (input_stack::clear): Use it.
7239         (input_stack::pop_macro): New function.
7240         (while_request): Use `is_return_boundary()'.
7241         (return_macro_request): New function.
7242         (init_input_requests): Use it.
7244         * src/roff/troff/TODO: Updated.
7245         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7247 2001-03-08  Werner LEMBERG  <wl@gnu.org>
7249         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
7250         cleanup.
7252 2001-03-07  Werner LEMBERG  <wl@gnu.org>
7254         Make `\B' more rigid.
7256         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
7257         parameter.
7258         (get_number_rigidly): New function.
7259         * src/roff/troff/input.cc (do_expr_test): Use it.
7260         * src/roff/troff/token.h: Updated.
7262         * src/roff/troff/request.h: Fix typo (init_html_request ->
7263         init_markup_request).
7265 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
7267         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
7268         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
7269         are now `.begin', `.end', `.image'.
7271         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
7272         (html_printer::add_to_sbuf): Changing type of `code' parameter.
7273         Use add_char_to_sbuf().
7274         (to_unicode): New function.
7275         (char_translate_to_html): Changing type of `ch' parameter.
7276         Use `to_unicode()'.
7277         (html_printer::~html_printer): Comment out doctype string.
7278         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
7279         instead of `.html-end'.
7280         (write_start_image): Use `.begin' and `.image' instead of
7281         `.html-begin' and `.html-image'.
7282         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
7283         (html_begin): Renamed to ...
7284         (begin): This.
7285         (html_end): Renamed to ...
7286         (end): This.
7287         (html_image): Renamed to ...
7288         (image): This.
7289         (init_html_requests): Renamed to ...
7290         (init_markup_requests): This.
7291         * tmac/www.tmac: Updated.
7293 2001-02-28  Bram  <bram@avontuur.org>
7295         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
7296         constructor.
7298 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
7300         * doc/meref.me: Fixing some typos.
7302 2001-02-16  Werner LEMBERG  <wl@gnu.org>
7304         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
7305         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
7306         * src/roff/troff/node.h: Updated.
7308 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
7310         * tmac/groff_tmac.man: Fix typo.
7312 2001-02-16  Werner LEMBERG  <wl@gnu.org>
7314         Fixing a bug which prevented proper end-of-sentence recognition
7315         between an `unformatted' box and the following text.  As a
7316         consequence, vertical line distances are no longer preserved in
7317         boxes after a call to `.unformat' -- because boxes aren't
7318         line-oriented (contrary to diversions), this doesn't make sense
7319         anyway.
7321         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
7322         value.
7323         (vertical_size_node::set_unformat_flag): New method.
7324         * src/roff/troff/node.hh: Updated.
7325         * src/roff/troff/input.cc (word_space_node::reread,
7326         hmotion_node::reread): Reset `unformat' flag after usage.
7327         (unformat_macro): Append only if `set_unformat_flag()' returns
7328         non-zero.
7329         * src/roff/troff/troff.man: Updated.
7331 2001-02-15  Werner LEMBERG  <wl@gnu.org>
7333         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
7334         documentation of `asciify' and `unformat' requests.
7336 2001-02-13  Werner LEMBERG  <wl@gnu.org>
7338         Redesigned the `unformat' request.  It is no longer connected with
7339         `asciify' but rather uses new `reread()' methods if the `unformat'
7340         flag is set.  Additionally, the handling of space characters after
7341         unformatting has been fixed so that they retain their width.
7343         * src/roff/troff/node.h (width_list): New structure to store
7344         original widths of spaces.
7345         (node): Added `unformat' member.
7346         Replaced `num_spaces' variable with `orig_width' list.
7347         * src/roff/troff/node.cc (*node::asciify,
7348         asciify_reverse_node_list): Removed `unformat_only' flag and related
7349         code.
7350         (word_space_node::asciify, word_space_node::word_space_node): Use
7351         `orig_width'.
7352         (word_space_node::~word_space_node): New destructor.
7353         (word_space_node::copy): Updated to handle `orig_width'.
7354         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
7355         (*node::merge_space): Update `orig_width' list if necessary.
7356         (*node::set_unformat_flag): New methods to set the `unformat' flag.
7357         * src/roff/troff/enc.cc (environment::space_newline): Use
7358         `width_list'.
7359         (environment::space): Added method to handle space width and
7360         sentence space width as parameters.  Use `width_list'.
7361         (environment::make_tab_node): Updated.
7362         * src/roff/troff/env.h: Updated.
7363         * src/roff/troff/input.cc (word_space_node::reread,
7364         unbreakable_space_node::reread, hmotion_node::reread): New methods
7365         to handle nodes specially if `unformat' flag is set.
7366         (do_asciify_macro): Renamed back to ...
7367         (asciify_macro): This.
7368         (unformat_macro): New implementation to simply set the `unformat'
7369         flag.
7371         * MORE.STUFF: Added more info about deroff.
7373 2001-02-08  Werner LEMBERG  <wl@gnu.org>
7375         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7376         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
7377         and `add_self()' methods to avoid hyphenation.  For example, the
7378         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
7379         soft hyphen after `foo'.  Now the hyphen list is correctly
7380         `foo<ignore><ignore>bar'.
7382 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
7384         * tmac/groff_tmac.man: Fix `BIR' macro.
7386 2001-02-04  Werner LEMBERG  <wl@gnu.org>
7388         A new escape sequence `\:', inserting a zero-width break point.
7390         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
7391         * src/roff/troff/input.cc (get_copy, token::next, asciify):
7392         Implement it.
7393         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
7394         method.
7395         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
7396         and `asciify()' methods.
7397         * src/roff/troff/node.cc (space_node::space_node): Updated.
7398         (space_node::asciify): Handle `was_escape_colon'.
7399         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7401         Handle `\~' similar to other comparable requests.
7403         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
7404         label.
7405         (token::next): Move creation of an unbreakable_space_node to...
7406         (token::add_to_node_list): Here.
7408         Fix a bug which sometimes prevented hyphenation of words connected
7409         with `\~' or `\ ' (and other escape sequences handled as
7410         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
7411         (after a call to the `unformat' request).
7413         * src/roff/troff/env.h (environment::possibly_break_line,
7414         environment::hyphenate_line): Introducing `start_here' parameter.
7415         * src/roff/troff/env.cc (environment::space_newline,
7416         environment::space): Use it.
7417         (environment::possibly_break_line, environment::hyphenate_line):
7418         Implement it.
7419         * src/roff/troff/input.cc (process_input_stack): Use it.
7420         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7421         space_char_hmotion_node, overstrike_node): Add
7422         `get_hyphenation_type()' method.
7423         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
7424         if `unformat_only' is active.
7426 2001-01-30  Werner LEMBERG  <wl@gnu.org>
7428         Implemented new read-only number register `.linetabs' which
7429         returns 1 if in line-tabs mode, 0 otherwise.
7431         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
7432         * src/roff/troff/env.cc (get_line_tabs): New function.
7433         (init_env_requests): Use it.
7434         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7436         * VERSION, REVISION: Changing to 1.17.0.
7438 2001-01-28  Werner LEMBERG  <wl@gnu.org>
7440         Fixed a bug which prevented hyphenation of words which are finished
7441         with `\)'.
7443         * src/roff/troff/token.h (token): Add enum type
7444         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
7445         * src/roff/troff/input.cc (token::next, token::description,
7446         get_line_arg, token::add_to_node_list, token::process): Use it.
7448 2001-01-27  Werner LEMBERG  <wl@gnu.org>
7450         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
7451         * src/roff/troff/div.cc (do_divert): Use it.
7453         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
7455 2001-01-25  Werner LEMBERG  <wl@gnu.org>
7457         Adding the `linetabs' request.  If set, tab distances are not
7458         computed relative to the input line but relative to the output line.
7460         * src/roff/troff/env.h (environment): New member `line_tabs'.
7461         * src/roff/troff/env.cc (line_tabs_request): Implement request.
7462         (environment::environment, environment::copy): Updated.
7463         (environment::distance_to_next_tab): Use `line_tabs'.
7464         (init_env_requests): Register request.
7465         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
7466         fixes.
7468 2001-01-24  Werner LEMBERG  <wl@gnu.org>
7470         Introducing a new read-only register `.int' which is set to a
7471         positive value if the last output line is interrupted (i.e., if it
7472         contains `\c').
7474         * src/roff/troff/env.cc (init_env_requests): Add it.
7475         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7477 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
7479         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
7480         * src/preproc/html/pre-html.cc (findPrefix): New function which
7481         generates the troff executable name via the system prefix.
7482         * src/preproc/eqn/main.cc: Modified warning message.
7484 2001-01-23  Werner LEMBERG  <wl@gnu.org>
7486         troff's `box' and `boxa' requests didn't preserve temporary
7487         indentation.
7489         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
7490         `saved_target_text_length' members.
7491         * src/roff/troff/div.cc (do_divert): Use them.
7493         Tabs (but not yet leaders and fields) are now handled correctly by
7494         `asciify' request.
7496         * node.h (hmotion_node): Add field `was_tab'.
7497         * env.cc (environment::make_tab_node): Set it.
7498         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
7500         Added new request `unformat' which will, contrary to `asciify',
7501         preserve font information after unformatting (i.e., only nodes
7502         dealing with horizontal space are converted back to input
7503         characters).
7505         * input.cc (asciify_macro): Renamed to ...
7506         (do_asciify_macro): this, having a new parameter `unformat_only'.
7507         (asciify_macro, unformat_macro): New; using do_asciify_macro.
7508         (init_input_requests): Added `unformat'.
7509         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
7510         parameter to control asciification process.
7511         * node.h (*_node::asciify): Ditto.
7512         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7514 2001-01-20  Werner LEMBERG  <wl@gnu.org>
7516         * doc/groff.texinfo: Minor improvement of `.in' documentation.
7518 2001-01-18  Werner LEMBERG  <wl@gnu.org>
7520         * tmac/ps.tmac: Remove call of psold.tmac.
7521         * tmac/psold.tmac: Comment updated.
7522         * tmac/psnew.tmac: Removed since no longer needed.
7523         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
7525         * font/devutf8/R.proto: Adding `shc' glyph.
7526         * font/devutf8/NOTES: Updated.
7528         * test-groff: Updated.
7530 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7532         First cut of the new html device driver.  Changes to pre-html and
7533         the new grohtml are too numerous to be documented here.
7535         Stuff related to `html' has been renamed to `html-old' and `html2'
7536         stuff has been renamed to `html' (including directories).  The new
7537         html device driver is therefore invoked as `-Thtml'.
7539         Added new `\O' escape to suppress output (needed by html driver).
7541         Added functions and code to pass info about input-level commands
7542         (`.in', `.fl', etc.) to html driver.
7544         Three new functions (.html-begin, .html-end, and .html-image) for
7545         better html handling: `html-begin' will execute the remaining line
7546         if at the outermost nesting level, increasing an internal counter.
7547         `html-end' does the same but decreases the internal counter.
7548         `html_image' puts its arguments into a special node (suppress_node)
7549         to define an image region.
7551         The `output' request has been removed.
7553         * tmac/html-tags.tmac: Removed.
7554         * tmac/arkup.tmac: Updated and renamed to ...
7555         * tmac/www.tmac: New file.
7556         * tmac/markup.tmac Updated and renamed to ...
7557         * tmac/mwww.tmac: New file.
7558         * tmac/Makefile.sub: Updated.
7559         * tmac/an-old.tmac: Updated.
7560         * tmac/eqnrc: Updated.
7561         * tmac/groff_man.man
7562         * tmac/groff_markup.man: Updated and renamed to ...
7563         * tmac/groff_mwww.man: New file.
7564         * tmac/groff_tmac.man: Updated.
7565         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
7566         * tmac/html.tmac: Updated and renamed from html2.tmac.
7567         * tmac/pspic.tmac: Updated html support.
7568         * tmac/s.tmac: Added html output support.
7569         * tmac/troffrc, tmac/troffrc-end: Updated.
7571         * Makefile.in, doc/Makefile: Updated.
7572         * doc/groff.texinfo: Added info about new `\O' escape.
7573         * doc/homepage.ms: Use `MAILTO' macro.
7575         * font/devhtml/DESC.proto: Add `C' font.
7576         * font/devhtml/Makefile.sub: Updated.
7577         * font/devhtml/R.proto: Minor fixes.
7578         * font/devhtml-old/Makefile.sub: Updated.
7580         * src/devices/grohtml-old/Makefile.sub: Updated.
7582         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
7583         method.
7584         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
7585         graphic_start): Add `inline' parameter.  Update.
7586         (html_end_suppress, graphic_end): Update.
7588         * src/include/html-strings.h: New file.
7589         * src/include/htmlindicate.h: Comments updated.
7590         * src/include/printer.h: Updated.
7592         * src/preproc/eqn/main.cc (do_file, main): Updated.
7593         * src/preproc/pic/troff.cc (troff_output::start_picture,
7594         troff_output::finish_picture): Updated.
7595         * src/preproc/tbl/main.cc (process_input_file): Updated.
7597         * src/roff/groff/groff.cc (main): Updated.
7598         Pass device arguments to predrivers also.
7599         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
7600         * src/roff/troff/env.h (environment): Updated.
7601         New elements `need_eol' and `ignore_next_eol' (for html output).
7602         * src/roff/troff/env.cc (environment::environment): Add initializers
7603         for `need_eol' and `ignore_next_eol'.
7604         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
7605         functions.
7606         (point_size, fill, no_fill, center, right_justify, line_length,
7607         indent, temporary_indent, break_request, handle_tab): Use
7608         `add_html_tag()'.
7609         (set_tabs): Use `add_html_tag_tabs()'.
7610         (environment::add_html_tag): Updated.
7611         (environment::do_break): Updated.
7612         * src/roff/troff/div.cc (space_request, flush_output): Use
7613         `environment::add_html_tag()'.
7614         * src/roff/troff/input.cc: Updated.
7615         New variable `html_level' to indicate nested `html-begin' requests.
7616         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
7617         (non_interpreted_char_node, token_node, non_interpreted_node): Add
7618         `force_tprint()' method.
7619         (token::next): Handle `\O'.
7620         (do_suppress): Implement it.
7621         (html_begin, html_end, html_image): New functions.
7622         (init_output_requests): Renamed to ...
7623         (init_html_requests): this.
7624         (main): Use it.
7625         (macro::append_str, macro::append_unsigned, macro::append_int): New
7626         methods.
7627         New variable `output_low_mark_miny' to limit minimal value of y.
7628         (reset_output_registers): Use it.
7629         (output_request): Removed.
7630         (get_output_registers): New function.
7631         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
7632         (*_node): Added `force_tprint()' if necessary.
7633         (special_node): New elements `tf' and `get_tfont()'.
7634         (suppress_node): New class.
7635         * src/roff/troff/node.cc:
7636         New global variables `image_no' and `suppress_start_page'.
7637         (real_output_file): New method `is_on()'.
7638         (troff_output_file): New method `start_special(tfont)'.
7639         (troff_output_file::really_print_line): Use `tprint' conditionally.
7640         (real_output_file::print_line): Updated.
7641         (real_output_file::on): Updated.
7642         (*_node): Added `force_tprint()'.
7643         (special_node::special_node): Initializer updated.
7644         (special_node::same, special_node::copy, special_node::tprint_start):
7645         Updated.
7646         (get_reg_int, get_reg_str): New functions.
7647         (suppress_node::*): New methods.
7648         New global variables last_position, last_image_filename;
7649         (min): New inline function.
7650         * src/roff/troff/reg.h, src/roff/troff/request.h,
7651         src/roff/troff/troff.h: Updated.
7653 2001-01-13  Werner LEMBERG  <wl@gnu.org>
7655         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
7656         documentation of `asciify' request.
7658 2001-01-12  Werner LEMBERG  <wl@gnu.org>
7660         * src/roff/troff/input.cc: Move definition of special characters
7661         like `ESCAPE_TILDE' to ...
7662         * src/roff/troff/input.h: New file.
7663         * src/roff/troff/Makefile.sub (HDRS): Add it.
7665         Extending the .asciify request to `unformat' space characters also.
7667         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
7668         to count input space characters.
7669         Update constructors to take care of it.
7670         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
7671         `ESCAPE_SPACE' instead of normal space.
7672         (word_space_node::asciify): New method.
7673         (unbreakable_space_node::asciify): New method.
7674         (word_space_node::merge_space): New method.
7675         * src/roff/troff/env.cc (environment::space_newline,
7676         environment::space): Add code to initialize `num_spaces' (using the
7677         constructor of `word_space_node').
7678         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7679         Document it.
7681 2001-01-09  Werner LEMBERG  <wl@gnu.org>
7683         * man/groff_char.man: Use table header traps only conditionally.
7685 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
7687         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
7689 2001-01-08  Werner LEMBERG  <wl@gnu.org>
7691         Introducing the `box' and `boxa' requests which are similar to
7692         `di' resp. `da' but omitting a partially filled line (which is
7693         restored after ending the diversion).
7695         * src/roff/troff/div.h (diversion): Add elements to save partially
7696         filled line.
7697         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
7698         partially filled line.
7699         (divert, divert_append): Updated.
7700         (box, box_append): New functions.
7701         (init_div_requests): Use them.
7702         * src/roff/troff/env.h (environment): do_divert() is now a friend.
7703         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7705         * doc/groff.texinfo: Fix documentation of `lf' request.
7707 2000-12-25  Werner LEMBERG  <wl@gnu.org>
7709         * src/roff/troff/troff.man, NEWS: Document `writem' request.
7711 2000-12-21  Werner LEMBERG  <wl@gnu.org>
7713         Ignore `ss' request if in compatibility mode.
7715         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
7716         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
7717         * src/roff/troff/env.cc (space_size): Use it.
7719         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
7720         `ss' request in nroff mode.
7722         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
7723         changes.
7725 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
7727         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
7729 2000-12-13  Werner LEMBERG  <wl@gnu.org>
7731         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
7732         * src/preproc/eqn/neqn.man: Small fixes and additions.
7734 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
7736         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
7737         Fixing typo.
7739         * src/preproc/eqn/neqn.man: New file.
7741         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
7742         negative' warning.
7744         * tmac/e.tmac: Add `T&' macro.
7745         Fix `indent cannot be negative' warning.
7746         * tmac/s.tmac: Fix `indent cannot be negative' warning.
7748 2000-12-07  Werner LEMBERG  <wl@gnu.org>
7750         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
7752 2000-12-06  Werner LEMBERG  <wl@gnu.org>
7754         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
7755         `alloca' symbol .
7757         * MORE.STUFF: Added info about deroff for djgpp.
7759         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
7760         documentation of -rcR switch.
7762 2000-12-03  Werner LEMBERG  <wl@gnu.org>
7764         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
7765         if -rcR=1 (which is now the default in nroff mode), a single, very
7766         long page is created instead of multiple pages: All `ne' and `wh'
7767         requests are put into conditionals; a new macro `an-end' is added to
7768         be called with `em'.
7770         Some other minor cleanups.
7772         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
7774 2000-12-02  Werner LEMBERG  <wl@gnu.org>
7776         Fixing a bug which prevented hyphenation in words followed
7777         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
7779         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
7780         Adding possibly_break_line().
7781         * src/roff/troff/env.h (environment): Make possibly_break_line()
7782         public.
7784         Make `\~' usable in .tr request.
7786         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
7787         (token): Add stretchable_space().
7788         * src/roff/troff/input.cc (token::next, token::delimiter,
7789         token::description, process_input_stack, do_translate,
7790         add_to_node_list, token::process): Use it.
7791         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
7792         for adjusting the space.
7793         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
7794         for stretchable space.
7795         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
7796         (make_node): Add code for stretchable space.
7797         * src/roff/troff/env.cc (environment::add_char): Use it.
7798         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
7799         (get_copy, token::next, transparent_translate, asciify): Use it.
7801         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
7802         doc/groff.texinfo: Updated.
7803         * man/groff.man: Small reorderings.
7805 2000-11-23  Werner LEMBERG  <wl@gnu.org>
7807         * NEWS: Fixes.
7808         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
7809         option.
7810         * src/roff/troff/input.cc (main): Add `config_macro_path' and
7811         `safer_macro_path' to -M option.
7812         * src/roff/troff/troff.man: Fixes.
7814 2000-11-22  Werner LEMBERG  <wl@gnu.org>
7816         Use safer path (except for config files) if -U isn't specified.  Add
7817         a special macro path (without home and current directory) for config
7818         files.  Add home directory to unsafe path for consistency.  Don't
7819         include the home directory in the font path.
7821         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
7822         `macro_path'.
7823         * src/include/macropath.h: Add `config_macrp_path'.
7824         * src/libs/libgroff/fontfile.cc: Fix font path.
7825         * src/roff/troff/input.cc (process_startup_file): Use
7826         `config_macro_path'.
7827         (main): Select unsafe path if -U is given.
7829         * src/preproc/eqn/main.cc (main): Fixing search path for
7830         configuration file.
7831         * src/preproc/eqn/eqn.man: Updated.
7833         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
7834         Updated.
7836         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
7837         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
7838         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7839         src/devices/grotty/grotty.man: Updated.
7841         * Makefile.in: Fix comments.
7843 2000-11-17  Werner LEMBERG  <wl@gnu.org>
7845         * tmac/safer.tmac: Empty file added (again) for compatibility
7846         reasons.
7847         * tmac/Makefile.sub: Updated.
7849 2000-11-16  Werner LEMBERG  <wl@gnu.org>
7851         * src/devices/grodvi/dvi.cc (main),
7852         src/devices/grohtml2/post-html.cc (main),
7853         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7854         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7855         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7856         (main), src/preproc/html2/pre-html.cc (main),
7857         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7858         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7859         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7860         (main), src/utils/hpftodit/hpftodit.cc (main),
7861         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
7862         (main), src/utils/lookbib/lookbib.cc (main),
7863         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
7864         (main): Use stdout for -v.
7865         * src/roff/groff/groff.cc (run_commands),
7866         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
7867         to make direct printing to stdout possible.
7868         * src/roff/groff/pipeline.h: Updated.
7870         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
7871         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
7872         * src/utils/afmtodit/afmtodit.man: Updated.
7874         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
7875         (version): New function.
7876         (usage): Updated.
7877         * src/utils/addftinfo/addftinfo.man: Updated.
7879         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
7880         Fixing copyright dates.
7882         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
7883         replacing it.
7885         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
7886         version_string.
7888         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
7890 2000-11-15  Werner LEMBERG  <wl@gnu.org>
7892         In all programs, make -v return immediately with exit status 0 to
7893         be compliant with the GNU standard.
7895         * src/devices/grodvi/dvi.cc (main),
7896         src/devices/grohtml2/post-html.cc (main),
7897         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7898         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7899         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7900         (main), src/preproc/html2/pre-html.cc (main),
7901         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7902         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7903         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7904         (main): Implement it.
7905         * NEWS: Updated.
7907         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
7908         and postprocessors to the -v option.
7910         * src/roff/grog/grog.pl: Implement -v.
7911         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
7912         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7914         * src/roff/nroff/nroff.sh: Implement -v.
7915         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
7916         * src/roff/nroff/nroff.man: Updated.
7917         
7918         * src/preproc/eqn/main.cc (main): Fix comment typo.
7920         * MORE.STUFF: Added info about djgpp port of grap.
7922 2000-11-14  Werner LEMBERG  <wl@gnu.org>
7924         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
7925         mode (or rather, implemented non-compatibility mode).
7926         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7928         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
7929         replacing it -- we don't find gxditview otherwise.
7930         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
7932         * src/preproc/pic/depend: Removed.  Unnecessary.
7934         Implemented dummy keyword `solid' in pic for compatibility with
7935         AT&T pic.
7937         * lex.cc (lookup_keyword): Added `solid'.
7938         * pic.y: Added SOLID with dummy rule.
7939         * pic.cc, pic_tab.h: Regenerated.
7940         * doc/pic.ms: Updated.
7942 2000-11-13  Werner LEMBERG  <wl@gnu.org>
7944         For security reasons, don't use the current directory but the home
7945         directory while searching and scanning troffrc and troffrc-end.
7946         Similarly, replace the current directory with the home directory
7947         in the font path.
7949         * Makefile.in (fontpath, tmacpath): Remove current directory.
7951         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
7952         two parameters `add_home' and `add_current'.
7953         (search_path::~search_path, search_path::command_line_dir,
7954         search_path::open_file): Remove tests for `dirs' being zero.
7955         * src/include/searchpath.h: Adjust.
7956         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
7957         `safer_macro_path'.
7958         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
7960         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
7961         * src/roff/troff/input.cc: Use `mac_path', initialized with
7962         `macro_path'.
7963         (process_startup_file): Set `mac_path' to `safer_macro_path'.
7964         * src/roff/troff/env.cc: Use `mac_path'.
7966         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
7968         * NEWS, man/roff.man, src/roff/troff/troff.man,
7969         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
7970         Updated.
7972 2000-11-12  Werner LEMBERG  <wl@gnu.org>
7974         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
7976         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
7977         * configure.in: Fix typo in comment.
7978         * configure: Regenerated.
7980         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
7981         copyright dates.
7983 2000-11-08  Werner LEMBERG  <wl@gnu.org>
7985         Add system tmac directory (/usr/local/lib/groff/site-tmac).
7987         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
7988         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
7989         $(systemtmacdir).
7990         Use @libdir@.
7991         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
7992         * tmac/Makefile.sub (install_data): Create
7993         $(systemtmacdir) and $(localtmacdir).
7994         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
7995         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
7996         NEWS, doc/groff.texinfo: Updated and minor fixes.
7998         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
7999         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
8000         $(systemtmacdir) since the wrapper files are platform-dependent.
8002 2000-11-01  Werner LEMBERG  <wl@gnu.org>
8004         * doc/groff.texinfo: Fix typo.
8006 2000-10-26  Werner LEMBERG  <wl@gnu.org>
8008         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
8009           tmac.doc.old -> doc-old.tmac
8010           tmac.an.old  -> an-old.tmac
8012         * tmac/tmac.*: Moved to ...
8013         * tmac/*.tmac: this.
8014         * tmac/man.local: Fix comment.
8015         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
8016         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
8017         Added some `FILES' sections.  More use of @...@ directives.  Other
8018         minor updates.
8019         * arch/djgpp/README, font/devutf8/NOTES: Updated.
8020         * doc/homepage.ms, doc/groff.texinfo: Updated.
8021         * man/groff.man, man/roff.man: Updated.
8022         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
8023         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8024         src/devices/grotty/grotty.man: Updated.
8025         * src/preproc/pic/pic.man: Updated.
8026         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
8027         instead of -mdoc.old.
8028         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
8029         * src/roff/nroff/nroff.man: Updated.
8030         * NEWS: Updated.
8032         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
8034         * tmac/mm.diff: Removed -- it has no use now since the mm package
8035         is part of groff.
8037         * tmac/*: Removed trailing spaces.
8039         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
8040         the tmac subdirectory also).
8042         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
8043         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
8044         stuff since it is no longer needed.
8046         * README, PROBLEMS: Updated.
8048 2000-10-25  Werner LEMBERG  <wl@gnu.org>
8050         Invert current behaviour: Search first FOOBAR.tmac, then
8051         tmac.FOOBAR.
8053         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
8054         (open_mac_file, macro_source): Implement it.
8055         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
8056         doc/groff.texinfo, NEWS: Document it.
8058         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
8059         Small documentation improvements.
8061         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
8062         subdirectory also).
8064         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
8066 2000-10-24  Werner LEMBERG  <wl@gnu.org>
8068         Add local tmac directory (groff/site-tmac).
8070         * Makefile.in: Add $(localtmacdir).
8071         (uninstall_dirs): Add $(localtmacdir).
8072         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
8073         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
8074         in $(localtmacdir).  Create $(localtmacdir).
8075         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
8076         Updated and minor fixes.
8078         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
8080         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
8082 2000-10-23  Werner LEMBERG  <wl@gnu.org>
8084         Move hyphen.us to tmac directory.
8086         * src/roff/troff/hyphen.us: Removed.
8087         * src/tmac/hyphen.us: Added.
8088         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
8090         Change installation structure for data files from .../groff/... to
8091         .../groff/<version><revision>/... to be conform with other GNU
8092         programs.
8094         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
8095         doc/Makefile: Implement it.
8096         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
8097         * configure: Updated.
8098         * arch/djgpp/README, font/devutf8/NOTES: Use it.
8099         * NEWS: Document it.
8100         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
8101         @MACRODIR@ instead of hard-coded directories.
8103 2000-10-22  Werner LEMBERG  <wl@gnu.org>
8105         Implement $GROFF_BIN_PATH environment variable (which defaults to
8106         $bindir) used for child programs of groff and similar wrappers.
8108         * gendefs.sh: Improve documentation.
8109         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
8110         src/preproc/eqn/Makefile.sub (neqn),
8111         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
8112         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
8113         $GROFF_BIN_PATH.
8114         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
8115         $GROFF_PATH__ (the latter for communication with troff).
8116         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
8117         set.
8118         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
8119         doc/groff.texinfo: Document it.
8121         * doc/groff.texinfo: Improve documentation of troff's -a option.
8123 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
8125         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
8126         non-intrusive eol marker.
8127         (troff_output_file::determine_line_limits): New function.
8128         (troff_output_file::draw): Use it.
8129         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
8130         output_pending_lines() instead of output_line().
8131         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
8132         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
8133         createImage): Small fixes.
8134         
8135 2000-10-14  Werner LEMBERG  <wl@gnu.org>
8137         Replace tmac.safer with a real secure solution.
8139         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
8140         system_request, pipe_output): Disable requests if in safer mode.
8141         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
8142         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
8143         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
8144         doc/groff.texinfo, src/roff/groff/groff.man,
8145         src/roff/troff/troff.man, arch/djgpp/README: Updated.
8147         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
8148         (resource_manager::output_prolog): Replace setenv() with putenv().
8150 2000-10-09  Werner LEMBERG  <wl@gnu.org>
8152         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
8153         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
8154         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
8155         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
8156         compilation errors with some compilers.  It seems that this code
8157         is no longer necessary -- if yes, it is easy to add some #ifdef's
8158         for that particular old-fashioned compiler.
8160         * MORE.STUFF: Added info about Meta-tbl.
8162         * doc/groff.texinfo: Added more info about `.if "..."..."'.
8164 2000-10-07  Werner LEMBERG  <wl@gnu.org>
8166         Adding a new escape sequence \B'...': If the string between
8167         the delimiters is a valid numeric expression, return the character
8168         `1', and `0' otherwise.  This is an analogon to \A.
8170         * src/roff/troff/input.cc (do_expr_test): Implement it.
8171         (token::next): Use it.
8172         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
8174         * tmac/tmac.trace: Made independent from escape character.
8176 2000-10-06  Werner LEMBERG  <wl@gnu.org>
8178         Adding a new request .dei: define indirect.  The first and second
8179         parameter of .dei are taken from string registers instead directly;
8180         this very special request is needed to make tmac.trace independent
8181         from the escape character (which might even be disabled).
8183         * src/roff/troff/input.cc (do_define_macro): Implement it.
8184         (define_macro_indirect): New function.
8185         (init_input_requests): Use it.
8187         Adding two requests .ecs and .ecr: Save and restore the escape
8188         character.  These two requests are needed to make tmac.trace
8189         independent from the escape character (which might even be
8190         disabled).
8192         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
8193         Implement it.
8194         (init_input_requests): Use it.
8196         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8198 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
8200         Adding a new option -P and new environment variable GROPS_PROLOGUE
8201         to grops, selecting a different prologue file (minor modifications
8202         by WL).
8204         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
8205         src/devices/grops/ps.cc (main): Implement it.
8206         * src/devices/grops/grops.man, NEWS: Document it.
8208 2000-09-22  Werner LEMBERG  <wl@gnu.org>
8210         * INSTALL: Add info about selecting paper format.
8212 2000-09-21  Werner LEMBERG  <wl@gnu.org>
8214         * src/roff/troff/input.cc (main): Fixing compiler warning.
8215         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
8216         strings.h from the former to the latter.
8217         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
8218         stuff from the former to the latter.
8220 2000-09-11  Werner LEMBERG  <wl@gnu.org>
8222         Implementing two new requests .tm1 and .tmc: The former is similar
8223         to .tm but can output leading spaces; its syntax is similar to
8224         defining a string, i.e., a `"' can be used to mark the beginning of
8225         the string to be written to stderr: `.tm1 " test'.  The latter is
8226         similar to .tm1 but doesn't write out a final newline character.
8228         * src/roff/troff/input.cc (terminal1, terminal_continue,
8229         do_terminal): New functions.
8230         (init_input_requests): Use them.
8231         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8233 2000-09-09  Werner LEMBERG  <wl@gnu.org>
8235         * tmac/groff_mdoc.samples.man: Small fixes.
8237 2000-09-08  Werner LEMBERG  <wl@gnu.org>
8239         * tmac/groff_mdoc.man: Fixing typo.
8241 2000-09-02  Werner LEMBERG  <wl@gnu.org>
8243         Implementing a .nop request which does nothing.
8245         * src/roff/troff/input.cc (nop_request): New function.
8246         (init_input_requests): Use it.
8247         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8249 2000-09-01  Werner LEMBERG  <wl@gnu.org>
8251         * doc/groff.texinfo: Added some comments.
8253 2000-08-30  Werner LEMBERG  <wl@gnu.org>
8255         * src/roff/troff/TODO: Updated.
8257 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8259         * doc/groff.texinfo: Fix comment how to compile the DVI file.
8261 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
8263         * font/devps/generate/Makefile (SHELL): Define explicitly to
8264         "/bin/sh", for non-Unix platforms.
8265         (extraclean): Use a more portable "" quoting instead of a
8266         backslash (which doesn't work on DOS/Windows).
8267         
8268         * font/devlj4/generate/Makefile (extraclean): Ditto.
8270         * font/devdvi/generate/Makefile (extraclean): Ditto.
8272 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8274         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
8275         src/roff/troff/troff.man: Document Eli's latest changes.
8277 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
8279         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
8280         macro file names of the form NAME.tmac as well as tmac.NAME.
8282 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8284         * src/include/posix.h: Remove definition of FILENAME_MAX.
8286         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
8287         `sys_fatal' and `stop' function().
8289         * test-groff: Updated.
8291 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
8293         Added the new troff command .output <arg> to suppress output (while
8294         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
8295         registers (for passing the output dimensions to the output device).
8297         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
8298         parameter.
8299         * src/roff/troff/node.h, src/roff/troff/node.cc
8300         (troff_output_file::really_print_line,
8301         ascii_output_file::really_print_line,
8302         supress_output_file::really_print_line): Use `width' parameter.
8303         (troff_output_file::really_on, troff_output_file::really_off,
8304         output_file::on, output_file::off, real_output_file::on,
8305         real_output_file::off, real_output_file::really_on,
8306         real_output_file::really_off): New functions.
8307         (real_output_file:public output_file): New variable `output_on'.
8308         (real_output_file::begin_page, real_output_file::copy_file,
8309         real_output_file::transparent_char, real_output_file::print_line):
8310         Use it.
8311         (real_output_file::print_line): Use check_output_limits.
8312         * src/roff/troff/reg.h, src/roff/troff/request.h,
8313         src/roff/troff/input.cc (assign_registers): New function to remove
8314         two `goto's.
8315         (do_ps_file): Use it.
8316         (check_output_limits, reset_output_registers, output_request,
8317         init_output_requests): New functions.
8318         (init_input_requests): Updated.
8320         Added new grohtml2 device and html2 preprocessor (coding
8321         not yet finished) which will eventually replace grohtml.
8323         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
8324         Updated.
8325         * src/include/htmlindicate.h, src/include/htmlindicate
8326         (html_begin_suppress, html_end_suppress): New functions.
8327         * src/preproc/tbl/main.cc: Use it.
8328         * src/roff/groff/groff.cc: Add support for html2 device (which will
8329         automatically invoke the html2 preprocessor).
8330         * src/roff/troff/input.cc (is_html2): New variable.
8331         * src/roff/troff/troff.h, src/roff/troff/env.h,
8332         src/roff/troff/env.cc (environment::add_html_tag): New function
8333         (uses `is_html2').
8334         (environment::do_break): Use it.
8335         * font/devhtml2/*: New files.
8336         * src/devices/grohtml2: New device.
8337         * src/preproc/html2: New preprocessor.
8338         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
8340 2000-08-23  Werner LEMBERG  <wl@gnu.org>
8342         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
8344 2000-08-22  Werner LEMBERG  <wl@gnu.org>
8346         * src/include/lib.h: Provide a fix for IRIX to not include
8347         groff-getopt.h.
8349 2000-08-18  Werner LEMBERG  <wl@gnu.org>
8351         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
8352         since some non-GNU sed programs can't handle null regexps.
8353         * configure, src/preproc/eqn/Makefile.sub,
8354         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
8356         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
8357         bug (string.h and strings.h are both needed according to latest
8358         POSIX standard).
8360         * MORE.STUFF: Added info about unroff and troffcvt.
8362 2000-08-08  Werner LEMBERG  <wl@gnu.org>
8364         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
8365         used before -ms.
8367         * tmac/tmac.man.old: Remove unused number register.
8369         * tmac.doc: Minor documentation fix.
8371 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8373         * src/roff/groff/pipeline.c (is_system_shell):
8374         Fix typo: "monocased_shell" no longer exists.
8376 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8378         Remove FILENAME_MAX limits.
8380         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
8381         that the argument length is less than FILENAME_MAX.
8382         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
8383         Use struct hack to allocate and free file name.
8384         (struct xtmpfile_list): fname is now part of the structure,
8385         not a pointer to another string.
8387 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
8389         * src/include/posix.h: Add a default value for FILENAME_MAX.
8391 2000-08-06  Paul Eggert  <eggert@twinsun.com>
8393         Add support for new BSD-style man pages (with ".Dd" instead of
8394         ".TH"), so that "groff -man" understands both styles, even
8395         when running "groff -man" on a host whose system man page
8396         macros don't support ".Dd".
8398         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
8399         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
8400         in case the system man macros don't define Dd or TH.
8402         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
8403         * tmac/tmac.an: New one-line file.
8404         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
8406 2000-08-06  Werner LEMBERG  <wl@gnu.org>
8408         * src/roff/troff/troff.man: Fixing typos.
8410 Version 1.16.1 released
8411 =======================
8413 2000-07-31  Werner LEMBERG  <wl@gnu.org>
8415         Preparing release 1.16.1.
8417         * REVISION: Revision number set to 1.
8418         * MORE.STUFF: Added info about port to DOS.
8419         * NEWS, win32-diffs: Updated.
8421         * src/include/nonposix.h: Remove first line -- this file is used
8422         in C also.
8424         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
8425         link to it.
8427 2000-07-30  Werner LEMBERG  <wl@gnu.org>
8429         * doc/texinfo.tex: Update to latest version.
8431 2000-06-28  Paul Eggert  <eggert@twinsun.com>
8433         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
8434         commands that fail.  Don't assume that "export a=b" is valid shell
8435         syntax.  This is needed for Solaris 2.5.1.
8437         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
8438         comment about missing Solaris headers.
8440         * PROBLEMS: Add section about problems with Sun Make and VPATH.
8442 2000-06-25  Werner LEMBERG  <wl@gnu.org>
8444         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
8445         SET_BINARY().
8447         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
8449         * win32-diffs: Updated.
8450         * README.WIN32: Added CRs to make all Windows editors happy.
8452         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
8453         src/roff/groff/pipeline.c).
8455 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
8457         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
8458         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
8460 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
8462         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
8463         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
8464         are binary files.
8465         (main): Support non-Posix systems with several different styles of
8466         slash characters in file names.
8468         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
8469         (main) [SET_BINARY]: Switch stdin into binary mode.
8471         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
8472         (main): Support file names with several possible slash-type
8473         characters, as given by DIR_SEPS[] in nonposix.h.
8474         (main) [__MSDOS__]: If renaming the temporary index file fails
8475         because it has more than one dot in its trunk, replace the dot
8476         with an underscore and try again.
8477         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
8478         Newline.
8479         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
8481         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
8482         (File::File): Open the input file in binary mode.  Strip CR
8483         characters from each CR-LF pair.
8484         (xbasename): Support file names with several possible slash-type
8485         characters, as given by DIR_SEPS[] in nonposix.h.
8487         * src/include/Makefile.sub (HDRS): Add nonposix.h.
8489         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
8490         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
8491         [!_POSIX_VERSION]: Define for traditional Unix systems.
8492         (real_output_file::real_output_file): Remove the MSVC-specific
8493         call to popen, use instead POPEN_WT, appropriately defined on
8494         nonposix.h.  #include nonposix.h.
8495         (real_output_file::~real_output_file): Remove the MSVC-specific
8496         call to pclose, a suitable macro is now defined on nonposix.h.
8497         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
8498         and WEXITSTATUS instead of assuming traditional Unix
8499         interpretation of the status returned by pclose.
8501         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
8502         call to popen, use POPEN_RT instead (appropriately defined on
8503         nonposix.h).  #include nonposix.h.
8504         (ps_bbox_request): Open the PostScript file in binary mode.
8505         Close the file after processing it.
8506         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
8507         nonposix.h.
8509         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
8510         A version of run_pipeline that doesn't use `fork'.
8511         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
8512         (system_shell_name, system_shell_dash_c)
8513         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
8514         the ugliness of testing DOS/Windows file names for equality, and
8515         support both stock shells and ports of Unix shells.
8517         * src/roff/groff/groff.cc: #include nonposix.h.
8518         (BSHELL): Definition moved to nonposix.h.
8519         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
8520         instead of a literal "-c".
8521         (xbasename): Support file names with several possible slash-type
8522         characters, as given by DIR_SEPS[] in nonposix.h.
8523         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
8524         of literal strings.
8526         * src/preproc/soelim/soelim.cc: #include nonposix.h.
8527         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
8529         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
8530         pic_tab.h.
8532         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
8534         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
8535         eqn_tab.h.
8537         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
8539         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
8540         P_tmpdir is defined, use it instead of the literal "/tmp".
8541         (remove_tmp_files, add_tmp_file): New functions.
8542         (xtmpfile): Record temporary files and register an atexit function
8543         to delete them explicitly, instead of relying on the OS to do
8544         that, which doesn't work on non-Unix systems.
8546         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
8547         (search_path::search_path): Use PATH_SEP instead of a literal
8548         colon.
8549         (search_path::command_line_dir): Ditto.
8550         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
8551         to support non-Posix systems.
8553         * src/libs/libbib/search.cc: #include nonposix.h.
8554         (search_list::add_file): Open the file in binary mode.
8556         * src/libs/libbib/linear.cc: #include nonposix.h.
8557         (file_buffer::load): Remove \r characters preceding \n from the
8558         loaded buffer.
8560         * src/libs/libbib/index.cc: #include nonposix.h.
8561         (make_index_search_item): Open index_filename in O_BINARY mode.
8562         (index_search_item_iterator::get_tag): Ditto.  Remove \r
8563         characters before \n characters.
8564         (index_search_item::check_files): Open files in binary mode.
8565         (index_search_item::munge_filename): Support DOS-style file names
8566         with backslashes and drive letters, use IS_ABSOLUTE.
8568         * src/devices/grops/ps.cc: #include nonposix.h.
8569         (main) [SET_BINARY]: Switch stdout to binary mode.
8571         * src/devices/grolj4/lj4.cc: #include nonposix.h.
8572         (main) [SET_BINARY]: Switch stdout to binary mode.
8574         * src/devices/grolbp/lbp.cc: #include nonposix.h
8575         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
8577         * src/devices/grodvi/dvi.cc: #include nonposix.h.
8578         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
8579         nonposix.h).
8580         (main) [SET_BINARY]: Switch stdout to binary mode.
8581         [_MSC_VER]: Remove an explicit call to _setmode.
8583         * src/include/nonposix.h: New file.
8585         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
8586         operation when building with DJGPP.
8587         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
8588         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
8589         ENVSETUP.
8591         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
8592         MS-DOS.
8593         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
8594         etc. can include a semi-colon on DOS/Windows.
8595         (depend.temp): Use depend1.temp instead of depend.temp1, to
8596         prevent files from overerwiting each other on 8+3 filesystems.
8598         * gendef.sh (t): Change definition to work with DOS/Windows.
8600         doc/groff.texinfo: Apart of some typo corrections, I also changed
8601         some index entris, to make them more non-ambiguous, and also put
8602         @ignore around some parts that are not yet written, to allow the
8603         Info output be readable.
8605 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
8607         Replaced specific checks for function declarations with a generic
8608         routine taken from GNU bfd.
8610         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
8611         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
8612         * configure.in: Use it.
8613         * src/devices/grolbp/lbp.cc, src/include/lib.h,
8614         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
8615         src/roff/groff/groff.cc: Use it.
8616         * Makefile.in, configure: Updated.
8618 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
8620         * src/devides/grolbp/lbp.h: Removed unused variables.
8622 2000-05-31  Keith Thompson  <kst@sdsc.edu>
8624         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
8625         strncasecmp().
8627 2000-05-31  Werner LEMBERG  <wl@gnu.org>
8629         * aclocal.m4 (GROFF_SRAND): New function to test the return value
8630         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
8631         * configure.in: Use it.
8632         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
8633         * configure, Makefile.in: Updated.
8635         * configure.in: Add test for strncasecmp().
8636         * src/include/lib.h: Use it.
8638 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
8640         * src/preproc/grn/Makefile.sub: Add MLIB.
8642 2000-05-29  Nix  <nix@esperi.demon.co.uk>
8644         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
8646 2000-05-29  Werner LEMBERG  <wl@gnu.org>
8648         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
8650         * PROBLEMS: Small update.
8652         * src/devices/grolbp/lbp.cc: Various small fixes.
8654 2000-05-28  Keith Thompson  <kst@sdsc.edu>
8656         * src/roff/nroff/nroff.sh: Fix main loop syntax.
8658         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
8660 2000-05-25  Werner LEMBERG  <wl@gnu.org>
8662         * man/roff.man: Removed unused macro.
8664 2000-05-24  Werner LEMBERG  <wl@gnu.org>
8666         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
8667         This is needed e.g. if you do
8668         `make distclean; ./configure; make dist'.
8670 Version 1.16 released
8671 =====================
8673 2000-05-23  Werner LEMBERG  <wl@gnu.org>
8675         Adding font CWI (constant width italic) to devdvi.
8677         * font/devdvi/CWI: New file.
8678         * font/devdvi/generate/Makefile: Add generating rule.
8679         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
8680         tmac/tmac.dvi: Use it.
8681         * NEWS: Announce it.
8683         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
8684         * font/devlj4/generate/Makefile: Cosmetic changes only.
8686         * man/groff.man: Removed most of the redundant description of
8687         special characters (which is in groff_char.man).  Added font
8688         translation CB->CR for devdvi.  Other minor fixes.
8690         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
8691         (registered) symbols.
8693 2000-05-22  Werner LEMBERG  <wl@gnu.org>
8695         * doc/Makefile: Added rule for creating info files.
8697         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
8698         AMS font metrics.
8699         * font/devdvi/generate/Makefile: Fixed dependencies.
8701         * font/devps/*: Regenerated.  Heavy changes for Bookman and
8702         NewCentury Schoolbook!
8703         * font/devps/generate/afmname: Will now run with GNU awk.
8704         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
8705         * font/devps/generate/Makefile: Cosmetic changes only.
8707 2000-05-21  Werner LEMBERG  <wl@gnu.org>
8709         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
8710         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
8711         `.SS' now produces a heading with a smaller size than `.SH'. 
8712         Completely formatted.
8713         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
8715         * man/groff.man: Improved table appearance.  Use of `eo' request
8716         to reduce number of doubled backslashes in macro definitions.
8717         Replacing `\e' with `\(rs'.  Other minor fixes.
8719         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
8720         to have correct line number.
8722         * INSTALL: Small improvement.
8724 2000-05-20  Bernd Warken  <bwarken@mayn.de>
8726         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
8727         WL).
8729 2000-05-19  Bernd Warken  <bwarken@mayn.de>
8731         * man/groff.man: Complete update (with a lot of corrections by WL).
8733 2000-05-18  Werner LEMBERG  <wl@gnu.org>
8735         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
8737         * font/*/*: Implement it.
8738         * man/groff_char.man, NEWS: Document it.
8740         * src/include/unix.h: Removed.  It isn't used.
8742         * doc/groff.texinfo: Slight improvements.
8744 2000-05-17  Werner LEMBERG  <wl@gnu.org>
8746         * README, win32-diffs: Small fixes and improvements.
8748 2000-05-16  Werner LEMBERG  <wl@gnu.org>
8750         * FDL: New file (the Free Documentation License version 1.1).
8752         * doc/groff.texinfo: Added many start-up values for gtroff.
8753         Some structural improvements of the source code.
8755 2000-05-15  Werner LEMBERG  <wl@gnu.org>
8757         * src/roff/troff/input.cc: Added small comment about troffrc-end.
8758         * src/roff/troff/troff.man: Added info about troffrc-end.
8760 2000-05-14  Werner LEMBERG  <wl@gnu.org>
8762         * Makefile.in (EXTRADIRS): Fix typos.
8763         (dist): Handle deletion of old .tar.gz file correctly.
8764         (DISTDIRS): Include all tty output devices.
8766         * doc/groff.texinfo: Adding more cross references; countless other
8767         fixes.
8769 2000-05-13  Werner LEMBERG  <wl@gnu.org>
8771         * MORE.STUFF: Added Robert Marks's utilities.
8773 2000-05-12  Werner LEMBERG  <wl@gnu.org>
8775         Added win32 port contributed by Blake McBride
8776         <blake@florida-software.com>.
8778         * README.WIN32, win32-diffs: New files.
8779         * NEWS: Updated.
8781         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
8782         (tmove, tmove2): Added parentheses to avoid compiler warnings.
8783         (change): Removed unused variables.
8785         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
8786         (savebounds): Changed return value from `int' to `void'.
8787         * src/preproc/grn/hdb.cc: Ditto.
8789         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
8790         final backslash in comment to avoid compiler warning.
8792         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
8794         * doc/groff.texinfo: More fixes.
8796 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
8798         * tmac/tmac.doc: Documentation fix.
8800 2000-05-11  Werner LEMBERG  <wl@gnu.org>
8802         * doc/groff.texinfo: Reading the source code shows up a lot of
8803         omissions and incorrect data...  More conversion to @Deffn macros.
8805 2000-05-10  Werner LEMBERG  <wl@gnu.org>
8807         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
8808         dependency.
8810         * src/roff/troff/request.h: Removing unused `no_break_flag'.
8812 2000-05-09  Werner LEMBERG  <wl@gnu.org>
8814         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
8815         improvements.
8817         * doc/groff.texinfo: Extended history section.  More conversion to
8818         @Deffn macros.  More .tr documentation.
8820 2000-05-07  Werner LEMBERG  <wl@gnu.org>
8822         * doc/groff.texinfo: Completed tab section.  Added info about
8823         fields.
8825 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
8827         * PROBLEMS: Describe configure script fix for OS/390 Unix.
8829 2000-05-05  Werner LEMBERG  <wl@gnu.org>
8831         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
8832         LaTeX 2e).
8833         * NEWS: Document it.
8835         * man/troff.man: Minor optical improvements.
8837 2000-05-03  Werner LEMBERG  <wl@gnu.org>
8839         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
8841         * font/*/*: Implement it.
8842         * man/groff_char.man, NEWS: Document it.
8844 2000-05-02  Werner LEMBERG  <wl@gnu.org>
8846         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
8847         expansion.
8848         * NEWS: Document the three new man pages.
8850         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
8851         * configure: Updated.
8853         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
8855 2000-05-01  Werner LEMBERG  <wl@gnu.org>
8857         Added grap support to grog.
8859         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
8860         * src/roff/grog/grog.man: Document it.
8862         * doc/groff.texinfo, NEWS: Add info about grap support.
8864         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
8865         (with slight fixes by me).
8867         * tmac/groff_tmac.man: New file documenting tmac mechanism.
8868         * tmac/Makefile.sub: Add groff_tmac.man.
8869         * man/roff.man: New file giving overview of roff system.
8870         * man/troff.man: A short reference of troff.
8871         * man/Makefile.sub: Add roff.man and troff.man.
8873 2000-04-30  Werner LEMBERG  <wl@gnu.org>
8875         Added grap support to groff.
8877         * src/roff/groff/groff.cc: Implement it.
8878         * src/roff/groff/groff.man: Document it.
8880         * src/devices/grotty/grotty.man: Add cp1047 device.
8881         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
8882         Ditto.
8883         * src/roff/groff/groff.man: Ditto.
8884         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
8885         * doc/groff.texinfo: Ditto.
8887         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
8888         for cp1047.
8890 2000-04-29  Werner LEMBERG  <wl@gnu.org>
8892         * man/groff_char.man: Add `pc' glyph.
8893         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
8894         * tmac/tmac.tty: Add `pc' glyph.
8895         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
8896         we use cp1047 output device.
8898         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
8899         there are still hardcoded latin1->unicode values in utf8's font
8900         definition files.
8901         * configure: Updated.
8902         * NEWS: Minor clarification.  Updated.
8904         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
8905         Unix.
8907 2000-04-28  Werner LEMBERG  <wl@gnu.org>
8909         Adding EBCDIC code page 1047.
8911         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
8912         font/devcp1047/DESC.proto: New files.
8914         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
8915         either ascii/latin1 or cp1047.
8916         * Makefile.in: Use it.
8917         * configure: Updated.
8919         Replacing and/or adding `md' (mathdot) glyph with `pc'
8920         (periodcentered) in all text fonts.
8922         * font/*/*: Change it.
8924 2000-04-27  Werner LEMBERG  <wl@gnu.org>
8926         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
8928         * configure.in: Add check for strings.h.
8929         * src/include/driver.h: Use HAVE_STRINGS_H.
8930         * src/devices/grolbp/lpb.cc: Remove string.h.
8932         * src/include/groff-getopt.h: New file.  It will be used instead of
8933         getopt.h (to be included in lib.h) to avoid endless problems with
8934         picky C++ compilers.
8935         * src/include/lib.h: Use groff-getopt.h.
8936         * src/include/Makefile.sub: Updated.
8938         * configure: Updated.
8939         * Makefile.in: Updated.
8941         * NEWS: Mention EBCDIC support.
8943 2000-04-26  Werner LEMBERG  <wl@gnu.org>
8945         * TODO: Some additions.
8947 2000-04-25  Werner LEMBERG  <wl@gnu.org>
8949         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
8950         of mso request.
8952 2000-04-23  Werner LEMBERG  <wl@gnu.org>
8954         * src/roff/troff/troff.man: Minor fixes.
8956 2000-04-22  Werner LEMBERG  <wl@gnu.org>
8958         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
8959         `.T' string register and the incompatible definition of the `.T'
8960         number register (compared to Unix troff).
8962         * man/groff_char.man: Add some missing characters.
8963         * font/devutf8/NOTES: Update.
8965 2000-04-21  Werner LEMBERG  <wl@gnu.org>
8967         * src/include/htmlindicate.h, src/include/lib.h,
8968         src/include/posix.h: Fix copyright.
8970         * src/include/Makefile.sub: Update.
8972 2000-04-20  Werner LEMBERG  <wl@gnu.org>
8974         * src/roff/troff/input.cc (input_char_description): Removing
8975         superfluous space char.
8977         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
8979         * doc/groff.texinfo: Document EBCDIC.
8981 2000-04-19  Werner LEMBERG  <wl@gnu.org>
8983         Introducing `shc' as the glyph name for the soft hyphen character.
8985         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
8986         font/devlatin1/R.proto: Use it.
8988         * NEWS: Updated.
8990 2000-04-18  Werner LEMBERG  <wl@gnu.org>
8992         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
8993         dependency on ASCII order.
8995 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
8997         * src/libs/libgroff/illegal.c: Added EBCDIC table.
8998         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
9000         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
9001         to increase portability.
9003 2000-04-15  Werner LEMBERG  <wl@gnu.org>
9005         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
9006         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
9007         the generic `\n' if under OS/390 Unix.
9009         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
9011         * configure: Regenerated.
9013 2000-04-14  Werner LEMBERG  <wl@gnu.org>
9015         * doc/groff.texinfo: More conversions to @Deffn.
9017 2000-04-12  Werner LEMBERG  <wl@gnu.org>
9019         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
9020         with `:'.
9022         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
9024 2000-04-10  Werner LEMBERG  <wl@gnu.org>
9026         * doc/groff.texinfo: More conversions to @Deffn.
9028 2000-04-08  Werner LEMBERG  <wl@gnu.org>
9030         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
9031         Updated to latest version (glibc 2.1.3).
9033 2000-04-07  Werner LEMBERG  <wl@gnu.org>
9035         * doc/Makefile (clean): Include more index files.
9036         Add rule texinfo->dvi.
9038 2000-04-05  Werner LEMBERG  <wl@gnu.org>
9040         * doc/groff.texinfo: Added new index `op' for operators.  More
9041         info on end of sentence characters.  More use of @Deffn.
9043 2000-03-30  Werner LEMBERG  <wl@gnu.org>
9045         * */*.man: Adding a note that a whitespace can be inserted between
9046         a command line option and its parameter -- we are using GNU getopt.
9048         * src/roff/groff/groff.man: Add example of `-m mandoc'.
9050 2000-03-28  Werner LEMBERG  <wl@gnu.org>
9052         Correct anachronism of calling the man macro file with `-man'
9053         instead of `-m man' etc.
9055         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
9056         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
9057         load tmac.<package>.
9059         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
9061         * NEWS: Updated.
9063         * doc/groff.texinfo: Updated.
9065         * tmac/groff_man.man: Copyright added.
9067 2000-03-27  Werner LEMBERG  <wl@gnu.org>
9069         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
9070         typeset the request resp. escape name with a tt font -- due to a
9071         bug in texinfo.tex it is necessary to use the `-e' switch with
9072         texi2dvi.
9074         Improving info about usage of groff units.
9076         Other minor fixes.
9078 2000-03-20  Werner LEMBERG  <wl@gnu.org>
9080         * doc/groff.texinfo: Added section about man macro package
9081         (I've basically taken groff_man.man).  Introducing new indices `ma'
9082         for macros/strings and `gl' for glyph names.  Other minor fixes.
9084         * tmac/groff_man.man: Fixed some typos.
9086 2000-03-19  Werner LEMBERG  <wl@gnu.org>
9088         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
9089         Other minor fixes.
9091         * doc/texinfo.tex: New file.
9093 2000-03-18  Werner LEMBERG  <wl@gnu.org>
9095         * doc/groff.texinfo: Improved section on number registers.  Other
9096         minor updates.
9098 2000-03-16  Werner LEMBERG  <wl@gnu.org>
9100         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
9101         synopsis.
9103         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
9104         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
9105         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
9106         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
9108         * src/preproc/grn/grn.man: Better synopsis; added copyright.
9110         * src/roff/grog/grog.man: Updated copyright date.
9112 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
9114         * configure.in: Added test for strdup.
9116         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
9117         is available.
9119         Replaced dynamic allocation of arrays `[...]' with `new' operator.
9121         Other minor fixes.
9123 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
9125         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
9127 2000-03-11  Werner LEMBERG  <wl@gnu.org>
9129         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
9130         compilers silent.
9131         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
9132         * src/include/lib.h: Remove some spaces.
9134 2000-03-10  Werner LEMBERG  <wl@gnu.org>
9136         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
9137         initializers from arguments (some compilers don't like this).
9139 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
9141         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
9142         used by pic and eqn to tell grohtml where the graphic regions start
9143         and end.
9144         * src/libs/libgroff/Makefile.sub: Use it.
9145         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
9146         graphic_start() and graphic_end() from htmlindicate.cc.
9148 2000-03-09  Werner LEMBERG  <wl@gnu.org>
9150         * tmac/tmac.safer: Will now work correctly in compatibility mode.
9151         * tmac/groff_man.man: More fixes.
9153 2000-03-08  Werner LEMBERG  <wl@gnu.org>
9155         * doc/Makefile: Added texput.log to the `clean' target.
9156         * doc/groff.texinfo: Added info about delimiters for escapes.
9158 2000-03-08  Bernd Warken  <bwarken@mayn.de>
9160         * src/preproc/pic/pic.man: Add info on conversion of pic images to
9161         other graphic formats.
9163 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
9165         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
9166         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
9167         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
9168         files.
9170 2000-03-07  Werner LEMBERG  <wl@gnu.org>
9172         * doc/groff.texinfo: Spelling fixes.
9174 2000-03-06  Werner LEMBERG  <wl@gnu.org>
9176         * tmac/groff_man.man: Completely revised to cover everything in
9177         tmac.an.
9179         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
9180         Other minor fixings.
9181         * src/roff/troff/env.cc (environment_copy): Improve error message and
9182         fix itoa->i_to_a.
9183         * src/roff/troff/TODO: Updated.
9185         * doc/Makefile: Bug fixes -- this is still provisional, though...
9187         * tmac/eqnrc: Small fixes.
9189 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
9191         Adding a request `evc' to copy environments.
9193         * src/roff/troff/env.cc (environment::copy, environment_copy):
9194         Implement it.
9195         * src/roff/troff/env.h: Add prototype.
9197 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
9199         Adding strsep() -- Solaris 8 doesn't have it.
9201         * configure.in: Test it.
9202         * src/devices/grolbp/lbp.cc: Add code.
9204 2000-03-05  Werner LEMBERG  <wl@gnu.org>
9206         * src/roff/troff/div.cc (macro_diversion::output,
9207         top_level_diversion::output): Fixing an incompatibility with
9208         original troff: \x'0' updates the .a register also.  Thanks to
9209         <Andries.Brouwer@cwi.nl> for pointing this out.
9210         * doc/groff.texinfo: Document it.
9212         * Makefile.in: Create Makefile.dep if necessary before calling the
9213         submake process to avoid warning about nonexistent file.
9215         * NEWS, PROJECTS: Updated.
9217 2000-03-04  Werner LEMBERG  <wl@gnu.org>
9219         * tmac/troffrc: Add tmac.lbp.
9221 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
9223         * tmac/tmac.lbp: New file.
9224         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
9225         command.
9227 2000-03-03  Werner LEMBERG  <wl@gnu.org>
9229         * Makefile.in: Fixing $(subdir).
9231         * README, NEWS: Small fixes.
9233         * test-groff: Adding path to grolbp.
9235         * configure.in: The (new) file src/xditview/Imakefile.in will be
9236         also configured -- it is now possible to build gxditview in a
9237         directory different from $srcdir.
9239 2000-03-02  Blake McBride  <blake@florida-software.com>
9241         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
9243         * MORE.STUFF: Added website of bell labs and info about plot2dev.
9245 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
9247         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
9248         files.
9250 2000-02-29  Werner LEMBERG  <wl@gnu.org>
9252         Adding GNU getopt to the groff distribution.
9254         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
9255         New files.
9256         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
9257         * aclocal.a4: Remove GROFF_GETOPT function.
9258         * configure.in, Makefile.in, PROBLEMS: Update.
9259         * src/include/lib.h: Replace getopt tests with getopt.h.
9260         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
9262         * doc/groff.texinfo: Further checking/updating.  Adding more index
9263         entries.
9265         * man/groff_out.man: Fix nroff mode activation (for emacs).
9266         * man/groff_font.man: Add missing ligature.
9268 2000-02-28  Werner LEMBERG  <wl@gnu.org>
9270         * doc/groff.texinfo: Further checking/updating.  Adding more index
9271         entries.
9273         * src/devices/grolbp/grolbp.man: Added a comment line at the
9274         beginning of the file (similar to shell scripts) which indicates
9275         that `tbl' should be used as a preprocessor.
9277 2000-02-27  Blake McBride  <blake@florida-software.com>
9279         Adapting groff to MS Visual C++ 6.0 compiler (tested with
9280         Windows NT 4.0).  Uses _MSC_VER define where necessary.
9282         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
9283         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
9284         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
9285         src/include/lib.h, src/libs/libgroff/errarg.cc,
9286         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
9287         src/preproc/refer/label.y, src/preproc/refer/label.cc,
9288         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
9289         src/roff/troff/div.cc, src/roff/troff/env.cc,
9290         src/roff/troff/input.cc, src/roff/troff/node.cc,
9291         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
9292         if_to_a() to avoid name clashes.
9293         * src/include/posix.h: Don't use unistd.h.
9294         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
9295         clause for integrating non-Unix xtmpfile() code.
9296         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
9297         structure; use "rt" for popen() in pipe_source(); add getpid()
9298         dummy function.
9299         * src/roff/troff/node.cc: Use special versions of popen() in
9300         real_output_file() and pclose() in ~real_output_file().
9302 2000-02-27  Werner LEMBERG  <wl@gnu.org>
9304         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
9305         LBP-8 series laser printers).  This code has been contributed by
9306         Francisco Andrés Verdú <pandres@dragonet.es>.
9308         * src/devices/grolbp/*: The grolbp output device.
9309         * font/devlpb/*: The font description files.
9310         * Makefile.in: Add grolpb and devlbp subdirectories.
9312         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
9313         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
9314         typographic fixes.
9316         * doc/groff.texinfo: Further checking/updating.  Adding more index
9317         entries.
9319         * NEWS: Updated.
9321         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
9323         * man/groff_font.man: Adding info about obsolete DESC keywords.
9324         * src/devices/grolj4/grolj4.man: Documenting additional DESC
9325         keywords.
9327 2000-02-26  Werner LEMBERG  <wl@gnu.org>
9329         * src/preproc/grn/grn.man: Added info about the gremlin file format
9330         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
9332 2000-02-25  Werner LEMBERG  <wl@gnu.org>
9334         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
9335         friends to be non-integer.
9337         * src/preproc/grn/grn.man: Document it.
9339         * doc/groff.texinfo: Further checking/updating.  Adding more index
9340         entries.
9342 2000-02-24  Werner LEMBERG  <wl@gnu.org>
9344         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
9345         line thicknesses to be integer multiples of this value.
9347         * src/preproc/grn/grn.man: Commenting out the -s option -- the
9348         corresponding code doesn't work (yet).
9350         * doc/groff.texinfo: Further checking/updating.  Adding more index
9351         entries.
9353 2000-02-23  Werner LEMBERG  <wl@gnu.org>
9355         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
9356         specify line thickness instead of base units.  The new default
9357         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
9358         thick lines respectively.
9360         Removed unused variable `prevval'.
9362         * src/preproc/grn/grn.man: Updated.
9364 2000-02-22  Werner LEMBERG  <wl@gnu.org>
9366         * src/preproc/grn/main.cc: Slight formatting.
9368         * src/roff/groff/groff.man: Formatting fix.
9369         * src/preproc/grn/grn.man: Ditto.
9371         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
9373         * doc/groff.texinfo: Further checking/updating.
9375 2000-02-21  Werner LEMBERG  <wl@gnu.org>
9377         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
9379         * test-groff: Added grn subdir to path.
9381         * doc/groff.texinfo: Some restructing and other small improvements.
9383         * src/roff/groff/groff.cc (help): Fixed info string.
9385 2000-02-20  Werner LEMBERG  <wl@gnu.org>
9387         * doc/meref.me: Fix description of .GS request.
9389         * src/roff/troff/troff.man: Fixing typo.
9391         Adding the `grn' preprocessor for gremlin graphic files.
9393         * src/preproc/grn/*: This is the Berkeley distribution written by
9394         David Slattengren and Barry Roitblat, adapted to groff by Daniel
9395         Senderowicz and Werner Lemberg.
9397         * doc/grnexampl.{me,g}: A sample for grn.
9399         * Makefile.in: Added subdirectory entry for grn.
9401         * src/roff/groff/groff.cc: Added support for grn.  It can be now
9402         called with the switch `-g'.
9404         * src/roff/groff/groff.man: Updated.
9406         * src/roff/grog/grog.{man,pl,sh}: Updated.
9408         * NEWS: Updated.
9410 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
9412         * src/include/lib.h: Added xtmptemplate and made xtmpfile
9413         parametrically polymorphic.
9415         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
9416         and the alterations to xtmpfile.
9417         xtmpfile can be requested to return the filename created
9418         and asked not to unlink the temp file.  The default behaviour
9419         if parameters are absent is exactly the same as before.
9421 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
9423         A new request `length' is available which returns the length of a
9424         string in a number register:
9426         * src/roff/troff/input.cc (length_macro): Implement it.
9427         * src/roff/troff/input.cc (init_input_requests): Register it.
9429 2000-02-11  Werner LEMBERG  <wl@gnu.org>
9431         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
9432         of the `substring' request.
9434         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
9435         request.
9437         * src/roff/troff/TODO, NEWS: Updated.
9439 2000-02-09  Werner LEMBERG  <wl@gnu.org>
9441         * src/roff/groff/groff.man: Added an example.
9443 2000-02-06  Werner LEMBERG  <wl@gnu.org>
9445         I've considerably modified the directory structure of the
9446         distribution to get a more vertical layout.  For example, the number
9447         of top level directories has been reduced from 42 to 6.
9449         As a consequence, many changes, especially to the makefiles, were
9450         necessary:
9452         * The makefile variables `top_builddir' and `top_srcdir' have been
9453         introduced.  Virtually all relative paths have been replaced with
9454         absolute ones using these two variables.
9456         * Dependencies (in the files `Makefile.dep') are no longer part of
9457         the distribution.  Instead, they are created during a `make install'
9458         in the build directory.
9460         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
9461         make `top_srcdir' and `top_builddir' absolute.
9463         Some other changes:
9465         * Man pages now depend on the files `VERSION' and `REVISION'.
9467         * The added shell script `mkinstalldirs' will replace `mkdir' in
9468         almost all cases.
9470         * VERSION: Version number increased to 1.16.
9472 2000-02-04  Werner LEMBERG  <wl@gnu.org>
9474         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
9476         * Makefile.in: Removed $(tmac_m) since it is no longer needed
9477         (after an update of the mm stuff).
9479         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
9481 2000-02-03  Werner LEMBERG  <wl@gnu.org>
9483         The .psbb request will now also accept Mac PS images (i.e. using LF
9484         as the EOL character).
9486         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
9487         (with slight modifications).
9488         * troff/input.cc (do_ps_file): Use it.
9490         * test-groff: Add grohtml and grolj4 output devices to PATH.
9492 2000-01-30  Werner LEMBERG  <wl@gnu.org>
9494         * NEWS, MORE.STUFF: Updated.
9496 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
9498         Add the `srand' command to pic.
9500         * pic/lex.cc, pic/pic.y: Implement it.
9501         * pic/pic.man: Document it.
9502         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
9504 2000-01-30  Werner LEMBERG  <wl@gnu.org>
9506         Add a new request `.psbb'.  This does exactly what the external
9507         program psbb did.  It scans a PostScript image file for a
9508         %%BoundingBox comment and extracts the bounding box values (in
9509         PostScript units) which are then stored in the four new (read-only)
9510         number registers `llx', `lly', `urx', and `ury'.
9512         This will allow the usage of the .PSPIC macro without worrying
9513         about unsafe behaviour of groff, i.e., it will work without the
9514         `-U' switch of groff.
9516         * troff/input.cc: Implement it.
9517         * tmac/tmac.pspic: Use it.
9518         * troff/troff.man, grops/grops.man, NEWS: Document it.
9519         * psbb/*, Makefile.in: Remove it since it is no longer needed.
9521         This is bloody C code simply adapted from psbb.c!  Any improvements
9522         welcome.
9524 2000-01-29  Werner LEMBERG  <wl@gnu.org>
9526         * man/groff_font.man: Minor clarifications.
9528         * NEWS: Updated.
9530 2000-01-28  Werner LEMBERG  <wl@gnu.org>
9532         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
9534 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
9536         * man/groff_font.man: Brought up to date regarding tcommand
9537         extensions.
9538         * libgroff/font.cc: Handle everything after `--' as a comment
9539         in the font files.
9540         * devps/*: Added comment delimiter inside devps font files.
9542 2000-01-28  Werner LEMBERG  <wl@gnu.org>
9544         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
9545         \fC...\fP (which now works as expected).
9547         * troff/troff.man: Fix typo.
9549 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
9551         Completed the pass_filenames implementation in troff.
9553         * libdriver/input.cc: Will read the new `F' tcommand.
9554         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
9555         * troff/input.cc: Use it.
9557 2000-01-26  Werner LEMBERG  <wl@gnu.org>
9559         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
9560         font will now be updated even if an invalid font is selected.
9562 2000-01-24  Werner LEMBERG  <wl@gnu.org>
9564         * doc/homepage.ms: Updated for new tmac.arkup.
9566         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
9568         * tmac/tmac.arkup: Cleanup.
9570         Added `\&' to .HTML macro to `leave vertical mode', so to say.
9572         Removed obsolete .LINK macro completely.
9574         The macros .URL, .FTP, and .MAILTO now accept a third argument which
9575         will be immediately appended to the second argument (to be used with
9576         punctuation, for example).
9578         Disabled .CDFTP macro temporarily for security reasons.
9580         * tmac/groff_markup.man: Complete revision for latest changes in
9581         tmac.arkup -- note that it does not yet format correctly with
9582         grohtml :-(
9584 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
9586         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
9587         * devutf8/R.proto: Add mappings for wp, lh, rh.
9588         * devutf8/NOTES: Updated.
9590 2000-01-23  Werner LEMBERG  <wl@gnu.org>
9592         * doc/groff.texinfo: Updated version/copyright info.
9594 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
9596         Added support for two new directives in device descriptions:
9597         `pass_filenames' (to pass the input file name to the output device)
9598         and `use_charnames_in_special' (to support e.g. accented characters
9599         in the `X' request).
9601         * include/font.h, troff/charinfo.h: Declare it.
9603         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
9605         * devhtml/DESC: Use it.
9607         * troff/input.cc: New function encoded_char.
9609         * troff/token.h: Add test for `specialness'.
9611 2000-01-21  Werner LEMBERG  <wl@gnu.org>
9613         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
9614         mistake from the list of files to be installed.
9616 2000-01-18  Werner LEMBERG  <wl@gnu.org>
9618         * README: Added info how to apply patches.
9620 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
9622         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
9624 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9626         * troff/input.cc: Add support for troffrc-end.
9628         * tbl/main.cc: Altered to issue table-start and table-end special
9629         characters if using the html device.
9631         * devhtml/*: Modified font files to incorporate html encoding of
9632         characters.
9634         * tmac/groff_markup.man: New file documenting tmac.arkup.
9636         * tmac/troffrc-end: New file.  This is invoked after all user
9637         specified macros.  Currently used by the html device to include
9638         tmac.html.  Thus no need for users to specify -mhtml anymore.
9640         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
9641         (MAN7): Add groff_markup.man.
9643         * tmac/tmac.an, tmac/tmac.html: Small html updates.
9645         * tmac/troffrc: tmac.arkup will now be called for the html device.
9647         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
9648         extra device specific information about fonts.
9650         * doc/homepage.ms: New file.  It is an example how an HTML home page
9651         could look like with grohtml.
9653         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
9655 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
9657         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
9658         of Im, Re.
9660         * devutf8/NOTES: Updated.
9662 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
9664         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
9665         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
9666         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9667         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
9668         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
9669         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
9670         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
9671         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
9672         warnings.
9674         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
9676 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
9678         grolj4: Paper size will be searched case-insensitively.
9680         * include/lib.h: Add check for strcasecmp().
9681         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
9682         * configure.in: Check for strcasecmp().
9684 2000-01-11  Werner LEMBERG  <wl@gnu.org>
9686         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
9687         `REVISION'.
9689 2000-01-10  Werner LEMBERG  <wl@gnu.org>
9691         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
9692         revision scheme.
9694         Add a new read-only register, `.Y', which contains the groff
9695         revision.
9697         * troff/input.cc (init_input_requests): Define it.
9698         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
9699         * doc/groff.texinfo, troff/troff.man: Document it.
9701         * libgroff/Makefile.sub (version.cc): Add definition of
9702         `Version_string[]', consisting of `<major>.<minor>.<revision>'
9703         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
9704         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
9705         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
9706         troff/input.cc, pfbtops/pfbtops.c: Use it.
9708 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
9710         Add a revision scheme to the groff package.
9712         * REVISION: New file.
9713         * libgroff/Makefile.sub (version.cc): Use it to define
9714         `revision_string[]'.
9715         * grops/psrm.cc: Use revision_string (converted to an unsigned
9716         integer) in constructor of resource_manager.
9718 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
9720         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
9721         files.
9722         * Makefile.in (DEVDIRS): Add devutf8.
9723         * grotty/tty.cc: Include device.h.
9724         (glyph): Change type of `code' to `unsigned int'.
9725         (tty_printer): New field is_utf8.  Constructor takes device argument.
9726         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
9727         (tty_printer::add_char): Change type of first arg to `unsigned int'.
9728         (tty_printer::put_char): New function.
9729         (tty_printer::end_page): Use put_char() instead of ::putchar().
9730         (make_printer): Pass device to tty_printer constructor.
9731         * nroff.sh: Determine default device by calling 'locale'.  As a
9732         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
9733         Recognize UTF-8 locales.
9734         * tmac/eqnrc: Recognize utf8 like latin1.
9735         * tmac/troffrc: Device utf8 needs tmac.tty.
9737 2000-01-07  Werner LEMBERG  <wl@gnu.org>
9739         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
9741 2000-01-07  Paul Eggert  <eggert@twinsun.com>
9743         Add a new predefined writeable number register, `year',
9744         which contains the current year.
9746         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
9747         * tmac/tmac.s: Use it.
9748         * troff/input.cc (init_registers): Initialize it.
9750 2000-01-06  Werner LEMBERG  <wl@gnu.org>
9752         * PROBLEMS: Fixed typo.
9754 2000-01-04  Paul Eggert  <eggert@twinsun.com>
9756         * PROBLEMS: Add Y2k advice for the yr number register.
9758 2000-01-03  Paul Eggert  <eggert@twinsun.com>
9760         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
9762 2000-01-02  Werner LEMBERG  <wl@gnu.org>
9764         * tmac/tmac.arkup: Slight modification of macros to provide better
9765         appearance for non-HTML formats.
9767 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
9769         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
9770         does not automatically translate to malloc(n) on all OSes
9771         (e.g., SunOS) so do it explicitly.  Also, check the returned
9772         value.
9774 2000-01-01  Werner LEMBERG  <wl@gnu.org>
9776         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
9778         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
9779         expects this variable
9781 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
9783         * doc/Makefile: Added instructions to create HTML and text
9784         versions of some files.
9786 1999-12-31  Werner LEMBERG  <wl@gnu.org>
9788         * Updated INSTALL.gen.
9790         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
9791         better resp. correctly with non-HTML devices.
9793 Version 1.15 released
9794 =====================
9796 1999-12-28  Werner LEMBERG  <wl@gnu.org>
9798         * NEWS, VERSION: Changed to 1.15
9800 1999-12-27  Paul Eggert  <eggert@twinsun.com>
9802         * nroff/nroff.man: -S is safer, not safe.
9804         * groff/groff.cc (main): Use `safer', not `safe', in variable
9805         names.  This does not change the behavior.
9807         * troff/input.cc (main): Likewise.
9809         * nroff/nroff.sh: Likewise.
9811         * troff/input.cc (prepend_string): New function.
9812         (main): Prepend -msafer, so that we check macro libraries for
9813         safety.
9815         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
9817 Version 1.14 released
9818 =====================
9820 1999-12-26  Werner LEMBERG  <wl@gnu.org>
9822         * NEWS, VERSION: Changed to 1.14.
9824 1999-12-24  Werner LEMBERG  <wl@gnu.org>
9826         * refer/refer.cc: Fixing the last fix.
9828 Version 1.13 released
9829 =====================
9831 1999-12-23  Werner LEMBERG  <wl@gnu.org>
9833         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
9834         number disappear.
9836         * NEWS: Updated.
9838         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
9840         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
9841         document conventions, the version number must be a real.
9843 Version 1.12.1 released
9844 =======================
9846 1999-12-22  Werner LEMBERG  <wl@gnu.org>
9848         * VERSION: Changed to 1.12.1.
9850 1999-12-22  Alan Rooks  <arooks@istar.ca>
9852         * refer/refer.cc (do_file): Slight modification to satisfy the
9853         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
9854         UnixWare 7.1.
9856 1999-12-20  Werner LEMBERG  <wl@gnu.org>
9858         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
9859         notices.
9861         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
9862         list of unsafe requests.
9864         * pic/pic.man: Fixed a typo.
9866         * man/groff_out.man: Fixed a typo.
9868 1999-12-18  Werner LEMBERG  <wl@gnu.org>
9870         * Makefile.in: Doc fixes.
9872 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
9874         * groff/groff.cc: Missing `U' option added to getopt().
9876         * troff/troff.man: Missing `U' option added to synopsis.
9878 Version 1.12 released
9879 =====================
9881 1999-12-14  Werner LEMBERG  <wl@gnu.org>
9883         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
9884         to the synopsis.
9886         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
9887         with the more appropriate terms `safer' and `unsafe'.
9889         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
9890         sys_nerr and sys_errlist[].
9892         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
9894         * pic/pic.y, pic/pic.cc: Added check for fmod().
9896 1999-12-13  Werner LEMBERG  <wl@gnu.org>
9898         * VERSION: Changed to 1.12.
9900         Here some patches from various sources; most of them taken from
9901         the Debian distribution.
9903         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
9904         tmac/Makefile.sub: New files copied directly from the NetBSD
9905         distribution.  Probably, some additional adaptation later on is
9906         necessary...
9908         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
9909         of unsafe requests.
9911         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
9912         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
9913         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
9914         (`-S') is now the default.
9916         * README, NEWS: Updated.
9918 1999-12-09  Werner LEMBERG  <wl@gnu.org>
9920         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
9922         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
9924 1999-12-06  Werner LEMBERG  <wl@gnu.org>
9926         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
9927         grief than relief today.  Additionally, it is against the GNU
9928         coding standards.
9930         * configure: Recreated.
9932 1999-12-05  Werner LEMBERG  <wl@gnu.org>
9934         * configure.in: Added GROFF_LIBM.
9936         * configure: Recreated.
9938         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
9939         necessary.
9941         * Makefile.in: Added definition of $(LIBM).
9943         * Makefile.comm (LIBM): Removed.
9945         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
9947 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
9949         * doc/Makefile: Added rule for generation pic.html.
9951         (clean): Files produced by grohtml will be removed also.
9953         * doc/pic.ms: Small fix.
9955         * tmac/tmac.html: Fixed suppression of headers.
9957 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
9959         * tmac/tmac.html: Fixing horizontal arrows.
9961         Turning off hyphenation.
9963         * tmac/tmac.an: Improved support for grohtml; better indentation,
9964         no footers/headers.
9966 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
9968         * tmac/tmac.arkup: Added CDFTP macro
9970         * tmac/tmac.html: All headers are turned off for ms, me, and mm
9971         macros.
9973         * tmac/troffrc: Some additions for HTML stuff.
9975 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
9977         * tmac/tmac.html: Small changes.
9979 1999-09-26  Werner LEMBERG  <wl@gnu.org>
9981         * doc/groff.texinfo: Minor fixes.
9983 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
9985         * devhtml/TR: Changed spacewidth to 3.
9987         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
9989         * tmac/tmac.html: Moved markup macros to tmap.arkup.
9991         * tmac/tmac.arkup: New file.
9993         * grohtml/ChangeLog: New file.
9995 1999-09-16  Werner LEMBERG  <wl@gnu.org>
9997         * doc/groff.texinfo (Common Features): Added Copying chapter.
9998         Changed format to @smallbook.
10000 1999-09-15  Werner LEMBERG  <wl@gnu.org>
10002         * NEWS: Added info about groff.texinfo.
10004         * doc/groff.texinfo: Will now compile (using texi2dvi) without
10005         warning messages.
10007 1999-09-14  Werner LEMBERG  <wl@gnu.org>
10009         * groff/groff.man: More updates.
10011 1999-09-13  Werner LEMBERG  <wl@gnu.org>
10013         * doc/groff.texinfo: New file.  This manual is still very
10014         rudimentary.  It has been originally contributed by Trent
10015         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
10016         additions by me.
10018         * INSTALL: Added information about the `doc' subdir
10020         * troff/troff.man: Minor fixes.
10022         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
10023         reordered options.
10025         * troff/input.cc (usage): Added missing `-ffam' to usage message.
10027         * Makefile.in (dist): groff-$(version).tar.gz must be removed
10028         also, otherwise it is included itself in another call of `make
10029         dist'.
10031         * groff/groff.cc (synopsis): Removed superfluous space.
10033         * PROJECTS, PROBLEMS, NEWS: Updated.
10035         * VERSION: Updated to 1.12beta.
10037         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
10039         * README: Updated: Included documentation about CVS repository,
10040         mailing lists, and daily snapshots.
10042         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
10044 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
10046         * tmac/tmac.an: If the tag didn't fit into the space that the
10047         macro `TP' specifies, the rest of the tag went into the space for
10048         the next line.
10050 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
10052         * grolj4/lj4.cc: Added duplex printing (option `-d').
10054         * grolj4/grolj4.man: Document duplex printing.
10056 1999-09-12  Werner LEMBERG  <wl@gnu.org>
10058         * doc/Makefile (pic.ps): Fixed rule which caused problems with
10059         non-GNUish sed programs.
10061         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
10062         definition.
10064         * configure.in (LIBS): Added `-lc'
10066         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
10068         * pic/tex.cc (solid_arc): Casting M_PI to double.
10070         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
10072         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
10073         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
10074         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
10076         * groff/groff_man.man: New file.  This manual page was originally
10077         written for the Debian GNU/Linux system by Susan G. Kleinmann
10078         <sgk@debian.org>.
10080         * eqn/list.cc (list_box::compute_metrics,
10081         list_box::compute_sublist_width): Removed variable declaration to
10082         avoid shadowing warnings.
10084         * grops/psrm.cc (resource_manager::process_file): Ditto.
10086         * tfmtodit/tfmtodit.cc (main): Ditto.
10088         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
10089         to avoid shadowing warnings.
10091         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
10092         shadowing loop variable.
10094         * groff/groff.man, troff/troff.man: Added doc about grohtml.
10096 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
10098         New grohtml frontend to convert groff input to html.
10100         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
10102         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
10104         * tmac/eqnrc: Added html device.
10106         * tmac/tmac.html: New file.
10108         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
10109         (troff_output::start_picture, troff_output::finish_picture),
10110         tbl/main.cc (process_input_file):
10111         Surrounded output with `graphics_start' and `graphics_end' so that
10112         the html driver can identify non-text portions.
10114         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
10115         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
10116         grotty/tty.ps (tty_printer::set_char): Additional parameter
10117         `name'.
10119         * include/printer.h: Class printer: New function
10120         set_char_and_width; new variables (is_char_named, is_named_set,
10121         named_command, named_char_s, named_char_n) to hold information
10122         about named characters -- needed by the html driver.
10124         * libdriver/printer.cc (printer::set_ascii_char,
10125         printer::set_special_char): Use set_char_and_width.
10127         * devhtml/*: New device files for html driver.
10129         * grohtml/*: New driver grohtml.
10131 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
10133         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
10134         default strings.
10136 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
10138         * libgroff/string.cc (search): Small fix to test against NULL
10139         pointer.
10141 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
10143         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
10144         \b'abc') were stacked in reverse order when processed in a
10145         diversion.
10147         * troff/node.h: Added `*last' to struct `node' to make the above
10148         fix work.
10150         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
10151         The default scale for the 'f' and 't' graphics functions were 'm'
10152         rather than 'u' (i.e., no scaling).
10154 1999-09-11  Peter Miller  <peterm@jna.com.au>
10156         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
10157         do_file), soelim/soelim.man: Added `-I file' option to soelim,
10158         defining include paths.
10160         * soelim/soelim.cc (include_path_append): New function.
10162 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
10164         * tbl/main.cc (process_options): Unix (at least Documenter's
10165         Workbench) tbl allows arbitrary non-alpha characters between
10166         options.
10168 1999-09-11  Paul Eggert  <eggert@twinsun.com>
10170         Y2k fixes.  Don't assume that the current year precedes 2000.
10172         * doc/meref.me: Add \n(y2, \n(y4.
10174         * tmac/doc-common (Yr): New number register.
10175         (Dd): Don't assume current year precedes 2000.
10177         * tmac/tmac.e (td): Likewise.
10178         (y2, y4): New number registers.
10180         * pic/pic.man: Update reference for pic paper to May, 1991
10181         version.
10183 1999-09-11  Werner LEMBERG  <wl@gnu.org>
10185         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10186         Removed quotation marks which prevented correct expansion of
10187         $(tmac_wrap).
10189         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
10191 1999-09-10  Werner LEMBERG  <wl@gnu.org>
10193         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
10194         `config.cache'.
10196         * Removed configure.old.
10198 1999-08-31  Werner LEMBERG  <wl@gnu.org>
10200         * VERSION: Updated to 1.11.1
10202 1999-05-27  Werner LEMBERG  <wl@gnu.org>
10204         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
10206         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10207         added quotations around $(tmac_wrap) to avoid syntax error if
10208         variable is empty.
10210         * configure: Newly generated using autoconf 2.13.
10212         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
10214 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
10216         * README, PROJECTS, NEWS, INSTALL, VERSION, 
10217         doc/Makefile. doc/pic.ms, groff/groff.man:
10218         Prepare for 1.11 release.  No code changes.
10219         Documentation for pic added (doc/pic.ms).
10221 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
10223         * Version 1.10 released.
10225 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
10227         * afmtodit/afmtodit.pl: Avoid comment on first line.
10229 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
10231         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
10232         * configure.in: Call it.
10234         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
10235         (distfiles): Doesn't depend on config.log or config.cache.
10237 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
10239         * grog/grog.sh: Use print "" rather than print in END rule.
10241 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
10243         * tbl/main.cc (process_data): Don't give error for excess data
10244         entries that are comments.
10246 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
10248         * tbl/main.cc (process_data): Fix case where new for-scope rules
10249         silently change meaning of code.
10251 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
10253         * troff/env.cc (hyphenate): Loop over all consecutive sequences
10254         of non-zero hyphenation codes.
10256 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
10258         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
10260 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
10262         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
10264 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
10266         * tmac/tmac.andoc: Make it work in compatibility mode.
10268         * refer/token.h (token_info::is_range_sep): New function.
10269         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
10270         * refer/ref.cc (reference::output): More sophisticated check for
10271         multiple pages.
10273         * devps/prologue.ps (MANUAL): New procedure.
10274         * grops/ps.cc (main): New -m option.
10275         (usage): Include -m.
10276         (ps_printer::~ps_printer): Implement -m.
10278         * aclocal.m4 (GROFF_G): New macro.
10279         * configure.in: Call it.
10280         * Makefile.in (g): Provided by configure.
10282         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
10284         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
10285         translations.
10287         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
10288         (tmac_m, tmac_s): Deleted.
10289         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
10290         tmac_s_prefix): New variables.
10291         (MDEFINES): Change accordingly.
10292         * Makefile.comm (.man.n): Use new TMAC_* variables.
10293         * configure.in (GROFF_TMAC): Call.
10294         * aclocal.m4 (GROFF_TMAC): Define.
10295         * tmac/Makefile.sub (stamp_wrap): New target.
10296         (install_data, uninstall_sub): Handle macro wrapping.
10298 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
10300         * tbl/main.cc (main): Ignore -T option.
10302 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
10304         * devlj4/generate/special.map: Add definition of \(nb.
10306         * tmac/tmac.dvi: Add definition of \(nb.
10308         * troff/dictionary.c (dictionary::dictionary): association::v gets
10309         initialized by association::association.
10311         * tmac/Makefile.sub: Avoid using temporary files when installing.
10313         * troff/env.cc (environment::set_font): Make bad font number a
10314         warning.
10316         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
10318         * Makefile.in (datadir): Use share rather than lib.
10320         * groff/groff.cc (basename): Rename to xbasename.
10322 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
10324         * Makefile (CCLIBS): Don't use.
10325         * Makefile.ccpg: Likewise.
10327         * acgroff.m4: Rename to...
10328         * aclocal.m4: Modify extensively for autoconf 2.
10329         * configure.in: Likewise.
10330         * Makefile.in: Likewise.
10332         * groff/pipeline.c (const): Declare as empty if __STDC__ not
10333         defined.
10334         (xstrsignal): Check for definition of NSIG. Conditionalize
10335         on SYS_SIGLIST_DECLARED.  Make return type const.
10337 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
10339         * troff/input.cc (interpolate_macro): Rephrase missing space
10340         warning.
10342 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
10344         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
10345         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
10346         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
10347         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10348         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
10349         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
10350         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
10351         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
10352         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
10353         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
10354         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
10355         Fix 'for' scoping.
10357 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
10359         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
10360         string_iterator.
10361         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
10362         file.
10363         (macro_iterator::macro_iterator): Add additional argument.
10365 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
10367         * troff/div.cc (vertical_size::vertical_size): In place of integer
10368         specifying line spacing use cunits specifying post vertical
10369         space.
10370         (macro_diversion::output, top_level_diversion::output): Likewise.
10371         * troff/div.h: Change declarations accordingly.
10372         * troff/env.cc (pending_output_line): Replace ls field by post_vs
10373         field.
10374         (pending_output_line::pending_output_line,
10375         pending_output_line::output, environment::output,
10376         environment::output_line, environment::output_title,
10377         environment::hyphenate_line):  In place of
10378         integer specifying line spacing use cunits specifying post vertical
10379         space.
10380         (environment::environment): Add post_vertical_spacing and
10381         prev_post_vertical_spacing arguments.
10382         (environment::get_post_vertical_spacing): New function.
10383         (environment::total_post_vertical_spacing): New function.
10384         (environment::post_vertical_spacing): New function.
10385         (init_env_requests): Initialize pvs request and .pvs register.
10386         * troff/env.h: Change declarations.
10388 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
10390         * tmac/tmac.pspic: Immediately remove the temporary file.
10392 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
10394         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
10395         height is specified.
10397 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
10399         * tbl/table.c (struct vertical rule, class table_entry): Use int
10400         not short for start_row and end_row.
10402 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
10404         * troff/input.cc (trapping_blank_line, blank_line_macro): New
10405         functions.
10406         (diverted_space_node::reread, process_input_stack): Call
10407         trapping_blank_line() rather than blank_line().
10408         (init_input_requests): Bind "blm" to blank_line_macro().
10410         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
10412 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
10414         * troff/env.cc (environment::possibly_break_line): Require that
10415         width total excluding width of final space node be greater than
10416         the target text length.
10418 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
10420         * troff/node.cc (kern_pair_node::vertical_extent): New function.
10422 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
10424         * troff/node.cc (charinfo_node): New class.
10425         (glyph_node, composite_node): Derive from charinfo_node.  Change
10426         member functions accordingly.
10428 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
10430         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
10432 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
10434         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
10436         * devps/generate/textmap (notsubset): Add.
10438         * tmac/tmac.a4: New file.
10440 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
10442         * pic/main.cc (had_parse_error): New variable.
10443         (do_picture, do_whole_file): Set had_parse_error if yyparse()
10444         returns non-zero.
10445         (main): Return 1 if had_parse_error is true.
10447 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
10449         * grolj4/lj4.cc (main): Avoid use of strtoul.
10451 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
10453         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
10454         iso_8859_1 or $LESSCHARSET is latin1.
10456 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
10458         * hpftodit: New directory.
10459         * Makefile.in (CCPROGDIRS): Add hpftodit.
10460         * devlj4/generate: New directory.
10462 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
10464         * configure.in: Don't use AC_VFORK.
10465         * groff/pipeline.c (run_pipeline): Use fork() always.
10467 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
10469         * grops/ps.cc (main): Use %1 not %s in error message for -w.
10471         * Makefile.in (CCPROGDIRS): Add grolj4.
10472         (DEVDIRS): Add devlj4.
10473         * grolj4, devlj4: New directories.
10474         * tmac/troffrc: Handle lj4.
10475         * tmac/tmac.lj4: New file.
10477 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
10479         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
10481 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
10483         * troff/input.cc (do_if_request): At end of second string, switch
10484         environments before getting next token.
10486 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
10488         * devps/psstrip.sed: Split rule that strips whitespace on either
10489         side of delimiters.
10491 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
10493         * troff/node.h (font_family::make_definition): Add return value to
10494         declaration.  * troff/symbol.h (symbol::operator==,
10495         symbol::operator!=): Likewise.
10497 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
10499         * groff/groff.cc (main, help, synopsis): Handle -S.
10500         (possible_command::insert_arg): New function.
10502         * tmac/tmac.safer: New file.
10503         * tmac/msafer.man: New file.
10504         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
10506 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
10508         * pic/pic.h, pic/main.cc (safer_flag): New variable.
10509         * pic/pic.y (placeless_element): Avoid unsafe operations if
10510         `safer_flag' is set.
10511         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
10513 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
10515         * eqn/lex.cc (get_token): Put call to add_context() in block to
10516         work around Sun C++ 4.0 bug.
10518         * include/stringclass.h (operator +): Use ?: instead of `if' to
10519         work around Sun C++ 4.0 bug.
10521 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
10523         * tbl/main.cc (process_format): Accept - as a synonym for the _
10524         key letter.
10526         * libbib/index.cc (minus_one): Don't declare as const.
10528 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
10530         * troff/input.cc (get_char_for_escape_name): Push back a newline.
10532 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
10534         * troff/input.cc (write_macro_request): New function.
10535         (init_input_requests): Bind write_macro_request to writem.
10537 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
10539         * tmac/tmac.s (@EN): Turn filling back on even if there was no
10540         equation.
10542         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
10544         * tmac/tmac.s (@TS): Renamed from TS.
10545         (TS): Call LP then TS again.
10546         (cov*ab-init): Alias @TS to TS.
10548         * tmac/tmac.s: Allow QP or RS to initialize.
10550         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
10551         Move initializations of PS and LL here.
10552         (par@init): Don't initialize HY.  Avoid changing environment 0.
10553         (par*env-init): Don't all par@reset.
10555 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
10557         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
10559 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
10561         * Makefile.in (MDEFINES): Add LDFLAGS.
10562         (LDFLAGS): Add definition line.
10564 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
10566         * troff/input.cc (get_optional_char): Split off error check into...
10567         (check_missing_character): New function.
10568         * troff/token.h: Declare it.
10569         * troff/env.cc (margin_character): Don't call get_optional_char.
10570         Only call tok.next() after making the node.
10572         * include/lib.h (getopt): Make 2nd argument char *const *.
10574 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
10576         * nroff/conftest.sh: Deleted.
10578 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
10580         * pic/make-dos-dist: Deleted.
10582 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
10584         * devps/psstrip.sed: Strip comments before stripping trailing
10585         white space.
10587 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
10589         * Version 1.09 released.
10591 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
10593         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
10595 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
10597         * libgroff/font.cc (font::load_desc): Fix typo in error message.
10599 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
10601         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
10602         about returning without a value.
10604         * troff/charinfo.h (charinfo::get_special_translation): Cast
10605         TRANSLATE_NONE to int.
10607         * refer/token.cc (lookup_token, store_token): Remove bogus loop
10608         test.  Fix test so that it works with n unsigned.
10610         * pic/pic.y (defaults_table): Fully bracket initializer.
10611         * pic/lex.cc (lookup_keyword): Likewise.
10612         * eqn/lex.cc (token_table, def_table): Likewise.
10613         * eqn/box.cc (param_table): Likewise.
10614         * troff/input.cc (warning_table): Likewise.
10615         * libgroff/font.cc (table): Likewise.
10616         * grops/ps.cc (ps_printer::special): Likewise.
10617         * grops/psrm.cc (resource_manager::process_file): Likewise.
10618         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
10619         * refer/command.cc (command_table): Likewise.
10620         * addftinfo/addftinfo.cc (param_table): Likewise.
10622         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
10623         about temp's being unused.
10624         (unused): New function.
10626         * groff/pipeline.cc: Declare c_fatal.
10628         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
10629         uchar.
10631         * libbib/index.cc (index_search_item::load): Prevent compiler
10632         warnings about fd_closer's being unused.
10633         (unused): New function.
10635 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
10637         * troff/input.cc (copy_mode_error): Make `prefix' static.
10638         Fix typo.
10640         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
10641         defined.
10642         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
10643         HAVE_CC_OSFCN_H and modify accordingly.
10645         * troff/input.cc (init_charset_table): radicalex overlaps
10646         horizontally.
10648         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
10649         udodo!hans@relay.NL.net).
10650         * groff/configure.in: Call it.
10652         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
10653         * groff/configure.in: Call it.
10654         * include/lib.h: Conditionalize declaration of pclose.
10656         * troff/div.cc (last_page_number): New global variable.
10657         (top_level_diversion::begin_page): Exit if we just printed the
10658         last page.
10659         * troff/div.h (last_page_number): Declare it.
10660         * troff/input.cc (parse_output_page_list): Set last_page_number.
10662         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
10663         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
10664         tmac/tmac.X: Likewise.
10665         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
10666         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
10668 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
10670         * tmac/doc-ditroff (hK): Remove groff specific code which
10671         prevented page-breaks between separate manual entries.  If this is
10672         the first page, don't set the page number to 1.
10674         * acgroff.m4 (GROFF_POSIX): New macro.
10675         * configure.in: Use it.
10677         * troff/node.cc (class real_output_file,
10678         real_output_file::real_output_file,
10679         real_output_file::~real_output_file): Conditionalize use of
10680         popen/pclose on POPEN_MISSING.
10681         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
10682         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
10683         (pipe_source): Similarily.
10685         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
10687         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
10688         presence of declarations by trying to compile example with
10689         conflicting declarations.  (gcc only gives a warning for missing
10690         declarations.)
10692 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
10694         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
10695         (from Ulrich Lauther).
10697 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
10699         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
10701 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
10703         * indxbib/indxbib.cc (write_hash_table): Add code for case where
10704         pointers and ints have different sizes.
10706 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
10708         * tmac/tmac.s (par*env-init): Call par@reset.
10710 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
10712         * tmac/tmac.s (@IP): Switch to a new environment when diverting
10713         tag.
10714         (par*push-tag-env, par*pop-tag-env): New macros.
10716 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
10718         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
10719         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
10721         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
10722         comment.  Include <time.h>.
10724 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
10726         * grops/ps.cc (is_small_h, is_small_v): Deleted.
10727         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
10728         lines.
10730 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
10732         * troff/input.cc (read_request): Only print a prompt if reading
10733         from the terminal.  Also clearerr on EOF if reading from the
10734         terminal.  Declare isatty.
10736 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
10738         * refer/label.y: Rename map_t to map_func and extractor_t to
10739         extractor_func.
10741 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
10743         * include/assert.h: Don't use volatile.
10744         * libgroff/assert.cc: Likewise.
10746 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
10748         * troff/input.cc (abort_request): Look at character in tok before
10749         calling get_copy().
10751 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
10753         * troff/troff.h (NO_RETURN): Deleted.
10754         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
10755         * troff/input.cc (exit_troff): Likewise
10757         * Makefile.in: Remove `Making ...' messages since GNU make now
10758         gives these. 
10760         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
10762 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
10764         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
10765         to constant 1 inch.
10767 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
10769         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
10771 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
10773         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
10774         MARK_REG if there was no left delimiter.
10776 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
10778         * pic/troff.cc (troff_output::text): Set line thickness to
10779         relative before outputting text.
10781         * tmac/tmac.e (@k): Don't zero ?T.
10782         ((z): Likewise.
10784 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
10786         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
10788 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
10790         * troff/input.cc (decode_args): Warn about unquoted tabs (from
10791         Paul Eggert).
10793 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
10795         * troff/input.cc (ignoring): New variable.
10796         (ignore): Set ignoring during call to do_define_macro.
10797         (do_define_macro): Clear ignoring before interpolating terminating
10798         macro.
10799         (copy_mode_error): New function.
10800         (get_char_for_escape_name, read_long_escape_name,
10801         interpolate_arg): Use copy_mode_error.
10802         (warning_table): Add WARN_IG.
10803         * troff/troff.h (WARN_IG): Declare.
10804         (WARN_TOTAL): Change accordingly.
10806         * groff/pipeline.c (strsignal): Rename to xstrsignal.
10807         * groff/groff.cc (strsignal): Delete declaration.
10809 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
10811         * troff/div.cc (page_offset): Use 'm' as default scaling.
10813 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
10815         * nroff/nroff.sh: Ignore -u.
10817 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
10819         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
10821 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
10823         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
10824         drawing box.
10825         (B2): With -Tascii, leave additional vertical space before
10826         and after. Ensure that the left and right indent is restored to
10827         what it was even if the point size changes.  Don't call
10828         par@finish. Change the indent, line length and title length
10829         directly.  With -Tascii, make the width of the box 1n less.
10830         (B1): Remember 1n at the current point size.  Don't call
10831         par@reset.  Change the indent, line length and title length
10832         directly.  Ensure that the temporary indent is preserved.
10833         (par*box-mark-top): Turn off no spacing mode.
10835 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
10837         * Makefile.in (dist): Use .gz suffix.
10839 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
10841         * troff/input.cc (main): Add return 0.
10842         * pic/main.cc (main): Use return instead of exit.
10843         * tbl/main.cc (main): Likewise.
10844         * eqn/main.cc (main): Likewise.
10845         * grops/ps.cc (main): Likewise.
10846         * grotty/tty.cc (main): Likewise.
10847         * groff/groff.cc (main): Likewise.
10848         * grodvi/dvi.cc (main): Likewise.
10849         * refer/refer.cc (main): Likewise.
10850         * indxbib/indxbib.cc (main): Likewise.
10851         * lkbib/lkbib.cc (main): Likewise.
10852         * soelim/soelim.cc (main): Likewise.
10853         * addftinfo/addftinfo.cc (main): Likewise.
10854         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
10855         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
10857         * troff/token.h (process_input_stack): Don't declare as static.
10858         * troff/input.cc: Likewise.
10860         * troff/node.c (invalidate_fontno): Make it a static member of
10861         class font_family.  Change callers.
10862         * troff/node.c: Change declaration.
10864         * tbl/main.cc (struct input_entry_format): Add explicit public
10865         specifier.
10866         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
10867         struct double_hline_stuff): Likewise.
10868         * tbl/table.h (struct entry_format): Likewise.
10869         * pic/object.h (struct saved_state): Likewise.
10871         * include/stringclass.h: Add forward declarations of friend
10872         functions that are later declared as inline.  Don't include inline
10873         specifier in friend declaration.
10875         * libgroff/lib.h: Declare popen and pclose.
10876         * acgroff.m4 (GROFF_POPEN): New macro.
10877         * configure.in: Call it.
10879         * include/lib.h (PI): New constant. Undef first if necessary.
10880         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
10881         * grops/ps.cc (degrees, radians): Likewise.
10882         * libgroff/font.cc (font::get_skew): Likewise.
10884         * grops/ps.cc (is_ascii): New function.
10885         (ps_output::put_string): Use is_ascii.  Use csprint rather than
10886         isprint.
10887         (ps_printer::define_encoding): Use csspace.
10888         * libgroff/strtol.c (ISASCII): New macro.
10889         (strtol): Cast arguments to is*() and tolower() to unsigned char.
10890         Use ISASCII rather than isascii.
10891         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
10892         * libgroff/cset.cc: Likewise.
10893         * libdriver/input.cc: Include cset.h.
10894         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
10895         than isdigit().
10897         * refer/refer.cc (main): Use %ld rather than %d for longs.
10899         * libbib/index.cc (index_search_item_iterator::get_tag): Use
10900         S_ISREG macro.
10902         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
10904 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
10906         * troff/input.cc (hyphenation_code): Skip white space between
10907         char/code pairs.
10909 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
10911         * tbl/table.h (table::entry_list_tailp): New member.
10912         (table::table): Initialize it.
10913         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
10914         behaviour.
10916 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
10918         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
10919         with negative horizontal positions. Remove casts of glyph::hpos to
10920         int.
10921         (USHRT_MAX): Delete definition.
10922         (SHRT_MAX, SHRT_MIN): New definitions.
10923         (glyph::hpos): Change type to short.
10924         (tty_printer::end_page): Output multiple backspaces if necessary.
10925          Remove casts of glyph::hpos to int.
10926         
10927 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
10929         * tmac/tmac.s (@RT): New definition.
10931 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
10933         * refer/refer.cc (do_file): Make sure current_filename is set when
10934         filename is "-".
10936         * pic/common.cc (common_output::dot_line): Handle zero length
10937         lines.
10939 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
10941         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
10942         (par@init): Initialize \n[HY].
10944 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
10946         * troff/dictionary.cc (dictionary::remove): Continue when
10947         r < j < i.
10949 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
10951         * Makefile.com (.y.cc): Avoid ending up with two versions of
10952         $(YTABH).
10954 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
10956         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
10957         (\(,C): Likewise.  Also fix typo.
10959 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
10961         * lib.h: Delete extraneous semi-colon.
10963         * Add pso request: `so' from a pipe.
10964         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
10965         (file_iterator::close): New function.
10966         (file_iterator::~file_iterator, file_iterator::next_file): Use
10967         file_iterator::close.
10968         (file_iterator::backtrace): Say `process' rather than `file' when
10969         the stream is popened.
10970         (pipe_source): New function.
10971         (init_input_requests): Bind ".pso" to pipe_source.
10973 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
10975         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
10977         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
10978         digits in lower case.
10980 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
10982         * Version 1.08 released.
10984         * Makefile.in (dist): Insert || true after ln -s commands that
10985         might fail.
10987         * mm: Update to mm 1.16.
10989         * acgroff.m4 (GROFF_CSH_HACK): New macro.
10990         * configure.in: Call GROFF_CSH_HACK.  Substitute for
10991         SH_SCRIPT_SED_CMD.
10992         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
10993         MDEFINES.
10994         * nroff/Makefile.sub (nroff): New target.
10995         (install_data): Install nroff.
10996         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
10997         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
10999 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
11001         * eqn/Makefile.sub (neqn): Add chmod +x.
11003         * grog/Makefile.sub (grog): Remove spurious semi-colon.
11005 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
11007         * troff/input.cc (string_iterator::string_iterator()): Initialize
11008         lineno and count.
11010 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
11012         * troff/div.cc (macro_diversion::space,
11013         top_level_diversion::space): Don't set high_water_mark.
11014         (macro_diversion::output, top_level_diversion::output): Don't
11015         include post line space in high water mark.
11017 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
11019         * eqn/eqn.y: Don't define YYDEBUG.
11020         * pic/pic.y: Likewise.
11022 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
11024         * tmac/tmac.e ([3): Add space after comma following editors.
11025         Change double spaces to single spaces.
11026         ([4): Change double spaces to single spaces.
11028         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
11029         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
11030         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
11031         after %!PS-Adobe- (for Newsprint).
11033         * troff/div.cc (top_level_diversion::begin_page): When
11034         before_first_page is 1, set page_number to 1.
11036 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
11038         * eqn/box.cc (box::top_level): Protect equation with \&.
11040 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
11042         * groff/groff.cc (possible_command::set_name): Delete old name.
11044         * groff/groff.cc (possible_command::~possible_command): Use
11045         a_delete.
11047         * troff/node.cc (troff_output_file::begun_page): New member.
11048         (troff_output_file::troff_output_file): Initialize it.
11049         (troff_output_file::really_begin_page): Only output V command if a
11050         page has been begun.
11052         * pic/pic.y (placeless_element): Delete argument to PRINT after
11053         use.
11055 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
11057         * Make wrapman work.
11058         * troff/div.h (class top_level_diversion): Replace
11059         first_page_begun by before_first_page (with opposite sense).
11060         * Change first_page_begun to before_first_page inverting sense.
11061         * troff/div.cc (class nl_reg): New class.
11062         (init_div_requests): Use class nl_reg for \n(nl.
11063         (top_level_diversion::begin_page): Don't call
11064         output_file::begin_page if before_first_page is 2;
11065         reset before_first_page afterwards.  If have_next_page_number is
11066         false, then always increment page_number.
11067         * tmac/tmac.an: Set traps within TH rather than at the top-level.
11068         Restore compatibility mode after loading, and then disable
11069         compatibility mode in TH.
11071 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
11073         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
11074         past last line.
11075         * troff/node.h (output_file::trailer): Declare.
11076         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
11077         * troff/node.cc (output_file::trailer): New function.
11078         (troff_output_file::~troff_output_file): Move most code into...
11079         (troff_output_file::trailer): New function.
11080         (class troff_output_file): Delete page_length member. Declare
11081         trailer().
11082         (troff_output_file::really_begin_page): Use current page length
11083         for final V command.
11085         * tbl/main.cc (struct options): New decimal_point_char member.
11086         (options::options): Initialize this.
11087         (process_options): Implement decimalpoint option.
11088         (process_data): Pass decimal_point_char option to table::table.
11089         * tbl/table.h (class table): New decimal_point_char member.
11090         (table::table): Add additional argument.
11091         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
11092         second argument specifying decimal point character.  Use this
11093         instead of '.'.
11094         (table::table): Initialize decimal_point_char.
11095         (table::add_entry): Change call to find_dot.
11097         * troff/input.cc (get_copy, token::next): Implement \V.
11098         (interpolate_environment_variable): New function.
11100 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
11102         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
11103         * pic/pic.y: Likewise.
11105         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
11106         Add casts to int.
11107         * refer/ref.cc (reference::insert_field, reference::delete_field):
11108         Likewise.
11109         * troff/number.cc (parse_term): Likewise.
11111         * acgroff.m4 (GROFF_PROG_YACC): New macro.
11112         * configure.in: Use GROFF_PROG_YACC.
11114         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
11115         and g++.
11116         * Makefile.in (OPTIMIZE): New define.
11117         (DEBUG): Empty by default.
11118         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
11120         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
11121         (GROFF_ARRAY_DELETE): Likewise.
11122         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
11124         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
11126         * devps/psstrip.sed: Use different delimiter on last line (so that
11127         it works with BSD 4.4 sed.)
11129 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
11131         * devps/psstrip.sed: Delete comments.
11133         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
11134         optind, opterr, optarg.
11135         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
11136         opterr, optarg.
11138 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
11140         * Makefile.in (check): Dummy target.
11142 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
11144         * Version 1.07 released.
11146         * Integrate mm 1.11.
11148         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
11149         where start_col was meant.
11151 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
11153         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
11155 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
11157         * troff/input.cc (token::next): Make \z\o'...' and similar things
11158         work.
11160         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
11161         constants.
11162         (environment): Add margin_character_flags member.
11163         * env.cc (environment::environment(symbol),
11164         environment::environment(const environment *): Initialize
11165         margin_character_flags.
11166         (margin_character): Rewrite.
11167         (environment::output_line): Add a margin character if
11168         margin_character_flags is non-zero.  Turn off the
11169         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
11170         zero, use margin_character_node without copying and then set
11171         margin_character_node to 0.
11173         * devps/DESC.in: Change minimum size to 1000.
11175 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
11177         * troff/symbol.h (symbol::hash): Change return type to unsigned
11178         long.
11179         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
11180         Add casts to int.
11182         * test-groff: Use -r rather than -x.
11184         * grops/psfig.diff: Include in distribution again.
11186 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
11188         * Makefile.in (dist): Use gzip.
11190 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
11192         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
11193         unistd.h as well as in stdlib.h.
11194         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
11195         defined; otherwise include <sys/types.h> and <unistd.h> if
11196         UNISTD_H_DECLARES_GETOPT is defined.
11198         * configure.in: use builtin(include, ... rather than include(...
11199         * configure: Regenerate with autoconf 1.3.
11201         * libdriver/print.cc (printer::adjust_arc_center): Use new
11202         algorithm suggested by Andy Fyfe.
11204         * libdriver/printer.cc (printer::adjust_arc_center): New function.
11205         * include/printer.h: Declare this.
11206         * grops/ps.cc (ps_printer::draw): Use it.
11207         * grodvi/dvi.cc (dvi_printer::draw): Use it.
11209 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
11211         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
11213 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
11215         * eqn/main.cc (main): Handle "eqn -".
11217 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
11219         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
11221         * mm: Integrate version 1.08.
11223         * pic/troff.cc (troff_output::finish_picture): Set
11224         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
11225         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
11226         if it's not defined. Check whether the register is non-zero rather
11227         than whether it's not defined.
11228         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
11230         * indxbib/indxbib.cc: Move all signal handling into...
11231         * indxbib/signal.c: New file.
11232         * configure.in: Call AC_RETSIGTYPE.
11234         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
11235         * configure.in: Call GROFF_STRUCT_EXCEPTION.
11236         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
11238         * troff/input.cc (token::token, token::operator=): Work round SGI
11239         C++ bug.
11240         * pic/object.cc (position::position): Likewise.
11242 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
11244         * pic/pic.h: Move declaration of hypot().
11246 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
11248         * pic/pic.h: Declare hypot().
11250         * pic/pic.h: Define M_PI if necessary.
11252 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
11254         * tmac/tmac.e (re): Add alternative version that doesn't use groff
11255         `.ta T' feature.
11257         * devps/prologue.ps (RE): Handle the possibility that the old font
11258         doesn't have a FontName entry.
11260 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
11262         * tmac/tmac.e (fam): Redefine to set family in environment 2.
11263         (@C): Use @fam not fam.
11265 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
11267         * lookbib/lookbib.cc (main): Change type of start to const char *.
11268         * lkbib/lkbib.cc (main): Likewise.
11270         * eqn/lex.cc (definition::definition): Don't use member
11271         initializer syntax for members of anonymous unions.
11273         * troff/input.cc (input_stack::backtrace): Change type of to const
11274         char *.
11276 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
11278         * include/stringclass.h (class string): Declare inline friend
11279         functions as inline in class declaration.
11280         * troff/hvunits.h (class hunits, class vunits): Likewise.
11281         * include/refid.h (class reference_id): Likewise
11282         * troff/troff.h (points_to_units(units), scale(units, double)):
11283         Delete declarations.
11284         * libdriver/input.cc (get_char): Delete declaration.
11285         * include/lib.h: Change 2nd argument of getopt from const char **
11286         to char **.
11287         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
11288         char **' before assigning to a `const char **'.
11289         * tbl/table.cc: Delete extra declarations of prints().
11291 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
11293         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
11294         char **' before assigning to a `const char **'.
11296         * libgroff/errarg.cc (errarg::errarg): Don't use member
11297         initializer syntax for members of anonymous unions.
11299 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
11301         * mm: Integrate version 1.07.
11303 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
11305         * troff/input.c (translate2): Rename to
11306         (translate_no_transparent).
11307         (init_input_requests): Rename tr2 to trnt.
11309 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
11311         * troff/charinfo.h (class charinfo): Add transparent_translate field.
11312         (charinfo::set_translation, charinfo::set_special_translation):
11313         Add second argument that specifies value for
11314         transparent_translate.
11315         (charinfo::get_translation, charinfo::get_special_translation):
11316         Add optional second argument that specifies whether translation is
11317         being used for transparent throughput.
11318         * troff/input.cc (charinfo::set_translation,
11319         charinfo::set_special_translation): Handle second argument.
11320         (charinfo::charinfo): Initialize transparent_translate.
11321         (translate): Split main part off into
11322         (do_translate): New function.  Pass argument saying whether
11323         translation applies to transparent throughput.
11324         (translate2): New request.
11325         (init_input_requests): Bind translate2 to `tr2'.
11327 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
11329         * tbl/table.h (class table): Add `nokeep' flag.
11330         * tbl/main.cc (process_options): Handle `nokeep' option.
11331         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
11332         table::do_bottom): Don't output keep/release macro definitions or
11333         calls when `nokeep' option has been specified.
11335 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
11337         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
11339 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
11341         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
11342         block_entry::divert, alphabetic_block_entry::divert): Add extra
11343         argument giving column separation.
11344         (table::compute_widths): Pass column separation to
11345         table_entry::divert().
11346         (block_entry::do_divert): If an entry spans multiple columns and a
11347         minimumum width has been specified for each column, then set the
11348         line length to the sum of the widths (plus possibly the column
11349         separations).
11351         * troff/input.cc (set_escape_char): Don't set the escape_char
11352         until after calling has_arg().
11354 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
11356         * tbl/table.cc (table::do_top): Add missing \s0 for double box
11357         case.
11359         * tbl/table.cc (table::print_double_hline): Avoid extra new line
11360         in case where r > nrows - 1.
11362         * tbl/table.cc (BODY_HEIGHT): Deleted.
11363         (LINE_SEP): New definition.
11364         (table::print_single_hline, table::print_double_hline,
11365         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
11366         table::do_row, table::do_top): Use LINE_SEP space before a line
11367         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
11369         * tbl/table.cc (text_entry::print_contents): New function.
11370         (text_string_name, right_text_string_name): Deleted.
11371         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
11372         (simple_text_entry::do_width, numeric_text_entry::do_width,
11373         alphabetic_text_entry::do_width): Don't store the contents of the
11374         entry in a string.
11375         (left_text_entry::simple_print, right_text_entry::simple_print,
11376         center_text_entry::simple_print,
11377         alphabetic_text_entry::simple_print,
11378         numeric_text_entry::simple_print): Print the entry directly
11379         instead of using the stored string.
11381 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
11383         * devps/Makefile: Strip PostScript files.
11384         * devps/prologue: Rename to...
11385         * devps/prologue.ps.
11386         * devps/psstrip.sed: New file.
11387         * devps/download: Use .pfa rather than .ps for installed versions
11388         of fonts.
11390 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
11392         * troff/env.cc (input_trap): Give a warning if the argument is out
11393         of range.
11395         * troff/env.cc (adjust): Treat negative argument as missing. Round
11396         argument > 5 down to 5.
11398         * troff/env.cc (center, right_justify): Make negative argument zero.
11400         * troff/div.cc (page_offset, vertical_position_traps): Treat
11401         invalid argument as missing.
11402         * troff/env.cc (line_spacing, line_length, title_length, indent,
11403         underline, hyphen_line_max_request, control_char,
11404         no_break_control_char, widow_control_request, adjust, input_trap,
11405         point_size): Likewise.
11406         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
11407         constant_space): Likewise.
11408         * troff/input.cc (compatible, shift, warn_request,
11409         set_escape_char): Likewise.
11411         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
11412         * tbl/table.cc (table::table): Likewise.
11414         * Makefile.dev (install_dev): depends on $(DEVFILES).
11416 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
11418         * devX75, devX75-12, devX100, devX100-12: New directories.
11419         * Makefile.in: Add these to DEVDIRS.
11421         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
11422         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
11423         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
11424         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
11425         targets.
11426         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
11427         (uninstall): New target.
11428         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
11429         uninstall_prog, uninstall_dev): New targets.
11431         * troff/div.cc (return_request): Treat an invalid argument as
11432         missing.
11434 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
11436         * tmac/tmac.e ((f): Set up the environment even when there's a
11437         current diversion.  Transperently throughput a call to @N.
11438         (@N): New macro.
11440 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
11442         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
11443         up to vertical resolution.
11445         * tbl/table.cc (table::do_row): Change row number after printing
11446         stuff list.
11448         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
11450 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
11452         * Rename CHANGES to NEWS.
11454 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
11456         * libgroff/new.cc (operator new): Avoid calling malloc(0).
11458 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
11460         * man.ultrix: Removed.
11462 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
11464         * Makefile.comm (extraclean): Delete files whose names begin with
11465         `='.
11467         * pic/troff.cc (troff_output::text): Fix typo in implementation of
11468         aligned text.
11470 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
11472         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
11473         * troff/div.cc (page_length, need_space, space_request): Treat
11474         invalid optional argument as missing.
11475         * troff/env.cc (number_lines): If the first argument is present
11476         but not a number, turn on line numbering, don't change the next
11477         line number and parse the remaining arguments.
11479         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
11481 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
11483         * eqn/box.h: Change declaration accordingly.
11484         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
11485         the specified size was bad but don't give an error.  Check for
11486         overflow.
11487         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
11488         * eqn/lex (do_size): Likewise.
11490 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
11492         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
11493         compatible headers.
11495 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
11497         * tbl/table.cc (table::init_output): Improve error message when
11498         table won't fit on one page.
11500 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
11502         * pic/troff.cc (troff_output::start_picture): Generate line
11503         containing a horizontal motion equal to the width of the picture.
11505         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
11506         using GROFF_COMMAND_PREFIX environment variable.
11508 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
11510         * mdate.sh: Use $NF rather than $(NF).
11512 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
11514         * pic/main.cc (main):  Use %1 not %c in argument to warning.
11516         * eqn/main.cc (main): Output code to check that geqn was given the
11517         correct -T option.
11519 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
11521         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
11522         `ln -s ../Makefile .; make; rm -f Makefile'.
11524         * troff/hyphen: Rename to...
11525         * troff/hyphen.us:
11526         * troff/input.cc (main): Delete -H option. Don't call
11527         read_hyphen_file().
11528         * troff/env.cc: Include searchpath.h and macropath.h.
11529         (exception_dictionary): Deleted.
11530         (ht): Deleted.
11531         (read_hyphen_file): Deleted.
11532         (hyphenation_language): New struct.
11533         (class trie, class hyphen_trie): Move declarations up.
11534         (trie_node::~trie_node): Deleted.
11535         (trie::delete_trie_node): New function.
11536         (trie::do_delete): New pure virtual function.
11537         (hyphen_trie::do_delete): New function.
11538         (trie::~trie): New function.
11539         (hyphen_trie::~hyphen_trie): New function.
11540         (trie::clear): No need to chcek that tp is not 0.
11541         (current_language, language_dictionary): New variables.
11542         (hyphen_word): Give an error if no current language.  Use
11543         exceptions dictionary in current language.
11544         (hyphen_trie::read_patterns_file): Find file using macro_path.
11545         Allow comments (starting with %) in patterns file.  Don't make it
11546         a fatal error if the file can't be found.
11547         (hyphenate): Return if no current language.  Get the exceptions
11548         dictionary and the hyphenation patterns from the current language.
11549         (set_hyphenation_language): New variable.
11550         (hyphenation_patterns_file): New function.
11551         (hyphenation_language_reg): New class.
11552         (hyphenation_language_reg::get_string): New function.
11553         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
11554         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
11555         register.
11556         * groff/groff.cc (main, help, synopsis): Delete -H option.
11557         * include/Makefile.sub: Don't define HYPHENFILE.
11558         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
11559         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
11560         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
11561         hyphenation patterns.
11563 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
11565         * eqn/neqn.sh: New file.
11566         * eqn/Makefile.sub: Handle neqn.sh.
11568         * eqn/eqn.h: Declare `nroff' variable.
11569         * eqn/box.cc (param_table): Add `nroff' param.
11570         (nroff): Define it.
11571         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
11572         variable.
11573         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
11575         * troff/troff.h (WARN_FONT): New warning.
11576         (WARN_TOTAL): Change accordingly.
11577         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
11578         (warning_table): Add WARN_FONT.
11579         * troff/node.cc (mount_font_no_translate): Pass argument to
11580         font::load_font.  If this is non-zero, give a warning.
11581         Don't give an error message when accessing a font that has already
11582         been found to be invalid.
11583         * include/font.h (font::load, font::load_font): Add additional
11584         optional argument which suppresses error message if the font is
11585         not found.
11586         * libgroff/font.cc (font::load_font): Handle additional argument.
11587         (font::load): Add additional argument. If this is non-null, set it
11588         to 1 and don't give error message.
11590         * include/printer.h (printer::end_page): Add argument giving
11591         length of page.
11592         * libdriver/input.cc (do_file): Pass this.
11593         * grops/ps.cc (ps_printer::end_page): Add argument.
11594         * grodvi/dvi.cc (dvi_printer::end_page,
11595         draw_dvi_printer::end_page): Add argument.
11596         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
11597         columns_per_page members. New member nlines.
11598         (DEFAULT_LINES_PER_PAGE): Deleted.
11599         (tty_printer::tty_printer): Don't compute lines_per_page from
11600         font::paperlength. Don't compute columns_per_page from
11601         font::paperwidth.
11602         (tty_printer::add_char): Don't check horizontal position against
11603         columns_per_page. Grow glyphs vector if neccessary.
11604         (tty_printer::end_page): Add argument giving page_length in units.
11605         Discard lines past end of page.
11607 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
11609         * tmac/tmac.tty-char: Fix definition of \(/l.
11611         * tmac/tmac.X: Define \(en.
11613 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
11615         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
11616         lpq, then use lp rather than lpr.
11618         * tmac/tmac.s (par@reset): Don't call `ad'.
11619         (par*env-init): Call `ad'.
11621 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
11623         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
11624         date.
11626         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
11627         * indxbib/indxbib.cc: Likewise.
11629 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
11631         * libgroff/putenv.c: New file.
11632         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
11633         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
11634         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
11635         stdlib.h with AC_HAVE_HEADERS.
11637 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
11639         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
11640         does not exist.
11642 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
11644         * eqn/box.cc (gsize): Make it an int.
11645         (set_gsize): Parse argument handling increment or decrement.
11646         (box::top_level): Convert gsize to a string.
11648         * troff/input.cc (exit_troff): Make buf unsigned char [].
11649         Call to make_temp_iterator casts buf to char*.
11651         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
11653         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
11654         * Makefile.cpg (depend.temp): Likewise.
11656         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
11658         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
11660 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
11662         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
11664 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
11666         * Version 1.06 released.
11668         * Integrate mm 1.04.
11670 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
11672         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
11674 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
11676         * afmtodit/afmtodit.pl: Add -n option that disables generation of
11677         ligatures command.
11678         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
11679         afmtodit. Regenerate.
11681         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
11682         @f back past the current position.
11684         * tmac/tmac.e: Change calls to @R so that comments are not part of
11685         arguments.
11687 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
11689         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
11691         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
11692         check that we can link a call to a function declared in <stdio.h>.
11693         (GROFF_UNISTD_H): New macro.
11694         * configure.in: Call it.
11695         * Makefile.in: Document it.
11696         * include/posix.h: New file.
11697         * troff/troff.h: Don't include <osfcn.h>
11698         * troff/input.cc: Include posix.h.
11699         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
11700         osfcn.h.
11701         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
11702         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
11703         <fcntl.h>.
11704         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
11705         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
11706         * libbib/search.cc (O_RDONLY): Delete definition.
11707         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
11708         Don't include <osfcn.h>.
11710         * acgroff.m4 (GROFF_TIME_T): New macro.
11711         * configure.in: Call it.
11712         * Makefile.in: Document it.
11714         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
11715         * configure.in: Call it.
11716         * Makefile.in: Document -DTRADITIONAL_CPP.
11717         * include/ptable.h: Don't include generic.h.
11718         (name2): Define it.
11720         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
11721         Afterwards remove [T1 and [T2.
11722         (ref*spec!0, ref*spec!2): Use T1 rather than T.
11723         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
11724         (ref*add-T2): Renamed from ref*add-T.
11725         (ref*add-T1): New macro.
11727 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
11729         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
11731         * libbib/index.cc: Include <fcntl.h>.
11732         (O_RDONLY): Define if necessary.
11733         (make_index_search_item, index_search_item_iterator::get_tag,
11734         index_search_item::check_files): Use O_RDONLY.
11735         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
11736         (O_RDONLY): Define if necessary.
11737         (search_list::add_file): Use O_RDONLY.
11738         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
11739         <sys/stat.h>.
11740         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
11741         (main): Use these.
11743         * libbib/index.cc (S_ISREG): Define it if necessary.
11744         (index_search_item::load): Use S_ISREG.
11746         * include/driver.h: Include <errno.h>.
11748 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
11750         * eqn/box.cc (body_height): Increase default value to 85.
11751         (body_depth): Increase default value to 35.
11753 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
11755         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
11756         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
11757         protected from expansion with \E.
11759         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
11761         * Makefile (Makefile): New target.
11763         * Makefile.sub (configure, distfiles): New targets.
11765         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
11766         construct.
11768 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
11770         * eqn/box.cc (param_table): Add body_height and body_depth.
11772         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
11774 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
11776         * psbb/Makefile.sub: Don't link with libgroff.a.
11778         * acgroff.m4 (GROFF_PUTENV): New macro.
11779         * configure.in: Call GROFF_PUTENV.
11780         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
11781         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
11782         is defined.
11784         * troff/env.cc (distribute_space): Rename force_forward argument
11785         to force_reverse.  Reverse the list if force_reverse is true.
11787 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
11789         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
11791         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
11792         height or depth to be negative.  Guard against SUP_RAISE quantity
11793         being negative.
11795 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
11797         * devps/generate/textmap: Add `an' (arrowhorizex).
11798         * tmac/tmac.ps: \(an overlaps horizontally.
11799         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
11801         * devps/symbolchars: Add arrowverttp, arrowvertbt.
11802         * devps/textmap: Add arrowvertex.
11803         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
11804         updownarrow delimiters.
11805         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
11807         * tbl/table.cc (simple_entry::position_vertically,
11808         block_entry::position_vertically):  For a centered entry, perform
11809         the motion in two stages.
11811         * refer/refer.cc (split_punct): Don't call lookup_token if there
11812         is no token.
11814 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
11816         * troff/input.cc (token::next): Delete token_node after copying
11817         token.
11819         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
11820         cur_point_size.
11822         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
11824         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
11826 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
11828         * grops/ps.cc (usage): -b option takes an argument.
11830         * devps/prologue (PLG): New procedure.
11831         * grops/ps.cc (main, usage): New -g option.
11832         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
11833         length using PLG.
11835 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
11837         * include/cset.h: Include <limits.h> if we have it.
11839         * libgroff/illegal.cc: New file.
11840         * include/lib.h (illegal_input_char): Use table.
11841         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
11842         * pic/lex.cc (ARG1): Renumber to 14.
11843         * eqn/lex.cc (ARG1): Likewise.
11845         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
11846         (eg 1.05.90) correctly.
11848 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
11850         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
11851         Rename $r and $R registers to $v and $V.
11852         ($r, $R): Initialize to 0.
11853         (@v, @V): New macros.
11854         (sz): Call @v.
11855         (@M): Call @V.
11857         * troff/input.cc (main, usage): Add -R option that says not to
11858         load troffrc.
11859         * eqn/main.cc (main, usage): Rename -n to -R.
11861 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
11863         * devps/DESC.in: Leave font positions 5-9 blank.
11864         * devdvi/DESC.in: Likewise.
11866         * grog/grog.pl: Handle `.PS <file' correctly.
11868         * troff/input.cc (input_stack::push): Improve error message when
11869         input stack limit exceeded.
11871 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
11873         * refer/refer.cc (main): Fix typo in handling of `a' option.
11875         * refer/refer.cc (do_bib): In state START after a newline remain
11876         in state START.
11878         * groff/groff.sh: Deleted.
11879         * groff/Makefile.sub: Delete handling of groff.sh.
11881         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
11882         to determine whether to use \X'ps:...'.
11883         * tmac/troffrc: Set 0p register to 0.
11884         * tmac/tmac.ps: Set 0p register to 1.
11886         * groff/groff.cc: Support -X option. Give warning for -TXps and
11887         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
11888         * tmac/troffrc: Support -r.X=1.
11890         * pic/troff.cc (troff_output::dot): Don't test
11891         zero_length_line_flag.
11893 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
11895         * include/lib.h: Declare getopt() and friends unless
11896         STDLIB_H_DECLARES_GETOPT is defined.
11898         * doc/chars.tr: Delete.
11899         * man/groff_char.man: New file.
11901 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
11903         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
11904         user has changed register format.
11906 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
11908         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
11909         `postpro' command in DESC file.  Get spooler command from `print'
11910         command in DESC file.  Execute spooler command with /bin/sh.
11912         * groff/groff.cc: Split Unix-specific parts into...
11913         * groff/pipeline.c: New file.
11915         * LICENSE: Delete.
11916         * COPYING: New file.
11917         * all files: Update copyright notices.
11919         * Rearrange files.  Redo Makefiles.  Use autoconf.
11921 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
11923         * troff/input.c (charinfo_to_node_list): Interpret character
11924         definition with escape_char of `\'.
11926 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
11928         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
11929         Define INT_DIGITS as big enough for 64-bit integer.
11930         * lib/strtol.c: Don't include lib.h.
11931         * lib/lib.h: Delete ifdef __cplusplus stuff.
11933 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
11935         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
11936         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
11937         get DESC from current directory.
11939 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
11941         * tbl/main.c (main): Always reset the line number when reading
11942         from stdin.
11944         * tbl/table.c (table::print_single_hline, table::print_double_hline,
11945         table::define_bottom_macro, table::do_row, table::do_top): Round
11946         vertical spacing up to vertical resolution.
11948 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
11950         * ps/ps.h (enum resource_type): Avoid comma at end of
11951         enumerator-list.
11952         * dvi/dvi.c (class dvi_printer): Likewise.
11953         * dvi/tfmtodit.c (gf::load): Likewise.
11954         * refer/label.y (struct expression): Likewise.
11955         * refer/refer.c (class label_processing_state): Likewise.
11956         * refer/indxbib.c (do_file): Likewise.
11957         * troff/troff.c (enum warning_type): Likewise.
11958         * tbl/main.c (process_data): Likewise.
11959         * troff/charinfo.h (class charinfo):
11961 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
11963         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
11965 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
11967         * groff.c: Move to new groff subdirectory.
11968         * groff/Makefile: New file.
11969         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
11971         * man/mdate.sh: Use ls -L if supported.
11973         * Consolidate all header files produced by gendef into lib/defs.h.
11974         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
11975         Don't include path.h.
11976         * lib/Makefile (path.h): Don't generate.
11977         * troff/input.c: Include defs.h. Don't include config.h.
11978         * troff/Makefile (config.h): Don't generate.
11979         * refer/index.h: Don't include suffix.h.
11980         * refer/index.c: Include defs.h.
11981         * refer/indxbib.c: Include defs.h.
11982         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
11983         defs.h.
11984         * refer/Makefile (suffix.h, path.h): Don't generate.
11985         * groff.c: Don't include config.h. Include defs.h.
11986         * Makefile (config.h): Don't generate.
11987         (lib/defs.h): Generate.
11988         (topclean): Remove lib/defs.h.
11990 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
11992         * lib/malloc.c, lib/getpagesize.h: Deleted.
11993         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
11994         related stuff.
11995         * lib/Makefile: Delete malloc-related stuff.
11996         * lib/new.c: Workaround COOKIE_BUG if necessary.
11998         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
11999         needed header files directly.
12000         * refer/refer.h: Omit definition of DEFAULT_INDEX.
12001         * Makefile: Include definition of DEFAULT_INDEX in path.h.
12003 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
12005         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
12006         argument.
12007         * lib/font (font::load_desc, font::load): Don't split argument of
12008         unknown command.
12009         (font::handle_unknown_font_command): Change type.
12010         * ps/ps.c (ps_font::handle_unknown_font_command,
12011         handle_unknown_desc_command): Change type.
12012         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
12014 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
12016         * lib/font.h (font::handle_unknown_font_command): Add file and
12017         line arguments.
12018         * lib/font.c (font::handle_unknown_font_command):
12019         * ps/ps.c (ps_font::handle_unknown_font_command):
12020         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
12021         lineno arguments.  Use _with_file_and_line functions for error
12022         reporting.
12024         * lib/fontfile.c (font::unknown_desc_command_handler): New static
12025         data member.
12026         * lib/font.c (font::set_unknown_desc_command_handler): New
12027         function.
12028         (font::load_desc): For unknown commands, call
12029         unknown_desc_command_handler if not null.
12030         * lib/font.h (class font): Declare them.
12031         (FONT_COMMAND_HANDLER): New typedef.
12032         * ps/ps.c (handle_unknown_desc_command): New function.
12033         (main): Set bflag if we had a -b option. Call
12034         font::set_unknown_desc_command_handler.
12035         (broken.h): Don't include.
12036         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
12037         submake 
12038         * ps/devps/Makefile: Add `broken' command to DESC file using
12039         BROKEN_SPOOLER_FLAGS.
12041         * macros/tmac.e ([, ]): Add as synonyms for { and }.
12043         * macros/tmac.e ($p): Only exdent if \$3 > 0.
12045         * macros/tmac.e (@R, @S): New macros.
12046         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
12047         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
12048         Declare $H, $[0-9], .. macros with @S.
12049         Declare |0, |1, |2, |3 strings with @S.
12051         * macros/tmac.e (@S): Rename to @U.
12053         * macros/tmac.e (@z): Define @b and bp as empty instead of
12054         deleting them,
12056         * macros/tmac.e (@m): Deleted.
12057         (@h): Don't call @m.
12058         (@z): Don't set @m trap.
12060         * macros/tmac.e ($h, $f): Define |z as empty string.
12062         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
12063         (@q): Likewise.
12065         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
12066         removing them.
12067         ()f): Likewise for * register.
12069         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
12070         argument is missing, don't change $R.  Call sr with three
12071         arguments when initializing.
12073 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
12075         * macros/tmac.e (sr): New macro.
12076         Initialize $r and $R using sr.
12078         * macros/tmac.e (,): Delete \*(#[.
12080         * troff/env.c (set_tabs): Read the tab type even if the position
12081         is bad.  Allow the position of the first tab stop to be negative.
12083 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
12085         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
12086         _POSIX_VERSION.
12087         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
12088         rather than -DPATHCONF_MISSING.
12089         * Makefile: Get rid of PATHCONF_MISSING.
12091         * refer/map.c: New file.
12092         * refer/index.c: Interface to mmap through map.c.  Rename map_size
12093         to map_len.
12094         * refer/Makefile: Handle map.c.
12095         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
12097 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
12099         * Makefile: RANLIB should be `true' if there is no ranlib.
12100         * lib/Makefile (libgroff.a): Simplify.
12101         * driver/Makefile (libdriver.a): Simplify.
12103         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
12104         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
12105         defined.
12107 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
12109         * troff/env.c (compare_ranges): Declare as extern "C".
12111         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
12113         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
12115 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
12117         * pic/troff.c (troff_output::text): Merge in grops_output::text,
12118         but conditionalize use of \X based on \*(.T.
12119         (grops_output::*): Deleted.
12120         * pic/output.h: Delete declaration of make_grops_output.
12121         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
12122         by default. -n sets it to 0.
12123         (usage): Corresponding changes.
12124         * groff.c (main): Don't pass -x or -p to pic.
12125         * groff.sh: Likewise.
12127         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
12128         to be non-zero.
12130         * ps/devps/afmtodit: Change calculation of asc_boundary and
12131         desc_boundary.  Make these bounds inclusive.
12132         * ps/devps: Regenerate font files.
12134 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
12136         * macros/tmac.latin1: New file.
12137         * macros/tmac.tty-char: Use tmac.latin1.
12138         (tmac.tty-tr): Deleted.
12139         * macros/Makefile: Install tmac.latin1.
12140         * macros/tmac.dvi: Use tmac.latin1.
12141         * macros/troffrc: Translate \[char160] onto no-break space here.
12142         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
12144 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
12146         * macros/tmac.Xps: Use `do' request.
12148         * macros/tmac.ps: Use `do' request.
12150         * macros/tmac.e (@C): Use `do' request.
12152         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
12153         * macros/Makefile: Install tmac.X*.
12155         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
12156         * tty/Makefile: Don't install tmac.tty*.
12157         * macros/Makefile: Install tmac.tty*.
12159         * dvi/tmac.dvi: Move to macros.
12160         * dvi/Makefile: Don't install tmac.dvi.
12161         * macros/Makefile: Install tmac.dvi.
12163         * ps/tmac.ps*: Move to macros.
12164         * ps/Makefile: Don't install tmac.ps*.
12165         * macros/Makefile: Install tmac.ps*.
12167         * eqn/box.c: Provide draw_lines parameter corresponding to -D
12168         option.
12169         * macros/eqnrc: Set draw_lines parameter based on device.
12170         * groff.c: Don't pass -D flag to eqn.
12171         * groff.sh: Likewise.
12172         * eqn/main.c: Warn about use of -D.
12174         * troff/input.c (process_startup_file): New function.
12175         (main): Call process_startup_file().
12176         * macros/troffrc: New file.
12177         * macros/Makefile: Install troffrc.
12178         * groff.c (main): Don't pass extra -m option to troff. For a 
12179         pseudo device pass the name of the pseudo device to troff using
12180         -d.
12181         * groff.sh: Likewise.
12182         * groff.c (possible_command::prepend_arg): Deleted.
12184         * troff/input.c (do_request): New function.
12185         (init_input_requests): Bind "do" to do_request.
12187         * eqn/main.c (main): Instead of loading eqnchar from device directory,
12188         load eqnrc from macro directory.
12189         * macros/eqnrc: New file.
12190         * macros/Makefile: Install eqnrc.
12191         * ps/devps/eqnchar: Deleted.
12192         * ps/devps/Makefile: Don't install eqnchar.
12193         * dvi/devdvi/eqnchar: Deleted.
12194         * dvi/devdvi/Makefile: Don't install eqnchar.
12195         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
12196         variable optM.
12198         * lib/device.[ch]: New files.
12199         * lib/font.h (font::set_device_name, font::get_device_name):
12200         Deleted.
12201         * lib/fontfile.c: Use device.h.
12202         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
12203         * troff/input.c: Delete definition of `device'.
12204         (main): Don't initialize device.
12205         * troff/troff.h: Include device.h rather than declaring device.
12206         * troff/Makefile: No need to handle DEVICE.
12207         * driver/input.c: Include device.h. Don't use
12208         font::{set,get}_device_name.
12209         * groff.c, Makefile: Rename device.h to config.h.
12210         * groff.c: Use library device variable.
12211         * eqn/main.c: Use library device variable.
12212         * eqn/Makefile: No need to handle DEVICE.
12214         * lib/searchpath.[ch]: New files.
12215         * lib/Makefile: Handle searchpath.[ch].
12216         * troff/input.c (open_file, init_dirs): Deleted.
12217         (macro_dirs): Deleted.
12218         (open_mac_file, macro_source): Use class search_path.
12219         (add_string, struct string_list): Move definition.
12220         (main): Change -M option to use macro_path. Delete call to
12221         init_dirs().
12222         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
12223         Rewrite to use class search_path.
12224         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
12225         * lib/Makefile: fontfile.c depends on searchpath.h.
12226         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
12227         MACROPATH.
12228         * lib/macropath.[ch]: New files.
12229         * troff/Makefile: No need to handle MACROPATH.
12231         * troff/input.c: Delete DUMP code.
12232         * lib/fontfile.c, lib/font.h: Delete
12233         font::forget_command_line_font_dirs.
12235         * troff/input.c (push_token): New function.
12236         (handle_first_page_transition): Use push_token().
12237         (process_input_stack): Change handling of a space at the beginning
12238         of the line.
12240 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
12242         * troff/input.c (font_dirs): Delete unused variable.
12244         * eqn/lex.c (do_set): Correct error messages.
12246 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
12248         * troff/input.c (do_define_string): Allow the string name to be
12249         followed immediately by a tab.
12250         (define_character): Likewise.
12252 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
12254         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
12255         be negative.
12257         * troff/input.c (input_iterator::is_file): New virtual function.
12258         (file_iterator::is_file): New function.
12259         (input_stack::end_file): New function.
12260         (input_stack::next_file): Handle the situation where there is no
12261         file on the input stack correctly.  Avoid making two passes over
12262         the input stack.
12263         (next_file): Make the filename optional; in this case call
12264         input_stack::end_file().
12266 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
12268         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
12269         produce a real _ charater when the current font is CW and _
12270         otherwise.
12272         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
12273         expression to work around gcc 2.2 bug.
12275 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
12277         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
12279         * troff/env.c (environment::add_padding): New function.
12280         (environment::add_char): Use add_padding().
12281         (environment::space): Likewise.
12282         (environment::wrap_up_field): Add some padding if there is none
12283         and there's no current tab.
12284         * troff/env.h: Declare environment::add_padding.
12286 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
12288         * pic/pic.y: undef fmod and rand before declaring them.
12290 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
12292         * troff/input.c (main): If the DESC file specifies a font name of
12293         0, then leave the corresponding font position empty.
12295         * nroff.sh: New file.
12296         * Makefile (install.nobin): Install nroff.sh.
12298         * tty/devlatin1/R.proto: Add ao as synonym for de.
12299         * tty/tmac.tty-char: Define ao as o.
12301         * tty/dev{ascii,latin1}/R.proto: Add aq.
12302         * tty/tmac.tty-char: Delete definition of aq.
12304 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
12306         * troff/input.c (init_charset_table): Don't translate 0240.
12307         * ps/tmac.ps: Translate char160 to space.
12308         * dvi/tmac.dvi: Likewise.
12309         * tty/tmac.tty: Likewise.
12311 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
12313         * dvi/tmac.dvi: Add support for all Latin-1 characters.
12315         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
12316         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
12317         \(oe, \(r?, \(r!.
12319         * tty/tmac.tty-char: Add \(ah.
12321         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
12322         No need to define \(FM and \(!/. Conditionalize all character
12323         definitions.
12325         * ps/devps/lgreekmap: Add +h, +f, +p.
12327         * ps/tmac.psnew: New file.
12328         * ps/Makefile: Install tmac.psnew.
12330         * troff/input.c (charinfo_to_node_list): Don't ever interpret
12331         character definitions in compatible mode.
12333         * troff/input.c (remove_character): New function.
12334         (init_input_requests): Bind remove_character to "rchar".
12336         * ps/tmac.psold: New file.
12337         * ps/Makefile: Install tmac.psold.
12338         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
12339         characters into tmac.psold.  Make these definitions unconditional.
12341         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
12343         * ps/tmac.ps: Don't define \('c and \('C.
12345         * ps/devps/textmap: Move Greek characters to...
12346         * ps/devps/symbolchars:
12348 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
12350         * ps/devps/text.enc: Add quotesingle.
12351         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
12352         * tty/tmac.tty-char: Likewise.
12353         * dvi/devdvi/texmi.map: Add +h, +f, +p.
12354         * dvi/devdvi/texi.map: Add Fn.
12355         * dvi/devdvi/msam.map: Add lz.
12356         * dvi/tmac.dvi: Handle Bq, bq, aq.
12358         * pic/lex.c (get_token): Recognize 'th.
12359         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
12361 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
12363         * ps/devps/textmap: Move di, mu, +- to...
12364         * ps/devps/symbolchars:
12366         * macros/tmac.s (@XS): Don't call par@reset or fi.
12367         (XA): Call LP. Turn off adjustment. Reduce line length.
12369         * macros/tmac.s: Initially alias XS to LP.
12370         (XS): Rename to @XS.
12371         (cov*ab-init): Alias XS to @XS.
12373 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
12375         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
12376         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
12377         (token::is_size, token::changes_env): Deleted.
12378         * troff/number.c (parse_term): No need to process \s explicitly.
12379         Call tok.next() only after scale indicator has been processed.
12380         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
12381         \f etc explicitly.
12382         (token::next): Handle \s, \f, \S, \H immediately rather than
12383         returning them as tokens.
12384         (token::operator==, token::description, token::add_to_node_list,
12385         token::process): Remove handling of deleted tokens.
12387         * troff/env.c (environment::add_char): When adding padding
12388         indicator character, call start_line() if necessary.
12390 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
12392         * ps/devps/afmtodit: Don't output 0 kerns.
12394         * ps/devps/afmtodit: Remove directory from name of encoding in
12395         font description file.
12397         * ps/devps/afmtodit: Improve error messages.
12399         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
12401         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
12402         * ps/devps/FontMakefile: Deleted.
12403         * ps/devps/afmname: New file.
12405         * ps/devps/symbol.sed: New file.
12406         * ps/devps/symbol.diff: Deleted.
12407         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
12408         Generate zapfdr.afm from zapfd.afm.
12410         * tty/tmac.tty (tty-char): Prefix definition with ".
12412         * macros/tmac.an (TP): Don't start a diversion if one has already
12413         been started.
12415         * tty/tmac.tty-char: Add Latin-1 characters.
12417         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
12419 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
12421         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
12422         Move declaration of struct horizontal_span.
12424         * tbl/table.c (table::table): Initialize span_list.
12425         (table::~table): Delete span_list.
12427         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
12429         * ps/devps/Makefile: Avoid dependency on GNU make.
12431         * ps/tmac.ps: Check that character does not already exist before
12432         defining it.
12434         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
12435         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
12436         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
12437         files.
12439         * tty/tmac.tty-char: New file.
12440         * tty/Makefile: Install tmac.tty-char.
12441         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
12442         tmac.tty-char.
12444         * tty/tmac.tty: Fix definition of \(34.
12446         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
12447         bracket-drawing characters onto |. Add *o.
12449         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
12450         only if current_field.
12452         * troff/dictionary.c (dictionary::lookup): Free old_table after
12453         rehashing. 
12455 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
12457         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
12458         whose glyphs are identical to glyphs of some Roman character.
12460         * tty/devlatin1/R.proto (bu): Deleted.
12461         * tty/devascii/R.proto (bu): Deleted.
12462         * tty/tmac.tty: Add definition of \(bu.
12464         * eqn/main.c (do_file): Pass FILE as argument.
12465         (main): Automatically load eqnchar.  New options -F and -n.
12466         Pass do_file an opened FILE.
12467         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
12468         No need to include font.h.
12469         * groff.sh: Likewise.  Don't need to use - for standard input.
12470         Prefix files with -- if first file starts with -.
12472         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
12474         * troff/env.c (environment::possibly_break_line): Don't set line
12475         to 0 across call to output_line().  Don't call output_line() until
12476         after discarding nodes after break.
12478 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
12480         * request.h (macro::empty): Declare it.
12481         * input.c (macro::empty): New method.
12482         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
12483         macro is empty.
12485 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
12487         * troff/env.c (environment::start_field): Decrement space_total
12488         when a space is frozen.
12490 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
12492         * macros/tmac.an (R): Delete macro.
12494         * troff/input.c (get_copy, token::next): Support \# (like \" but
12495         newline is ignored).
12497         * troff/input.c (token::next): Fix error message in 'Y' case.
12499 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
12501         * eqn/delim.c (define_extensible_string): Recognize any prefix of
12502         a delimiter name.
12504 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
12506         * c++test.c: Include <osfcn.h>.
12508         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
12509         <errno.h> doesn't.
12511 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
12513         * tbl/table.c (table::divide_span): Don't count column separation
12514         if expand was specified.
12516         * tbl/main.c (process_format): Don't ignore width specs in
12517         continued format.  Give warning for changing equal widths or
12518         column separation in continued format.
12519         (process_data): Set column separation, minimum width, equal
12520         columns at end of table.
12522 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
12524         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
12525         node::add_discretionary_hyphen): Use soft_hyphen_char.
12526         (set_soft_hyphen_char): New function.
12527         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
12529         * Makefile (c++tested): Give more helpful message if test fails.
12531 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
12533         * troff/input.c (init_charset_table): Translate 0240 to
12534         an unbreakable space.
12536         * troff/token.h (token::hyphen_indicator): New function.
12537         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
12538         translation.
12539         * troff/input.c (translate): Allow translation to \%.
12540         * troff/node.c (node::add_char): Handle
12541         TRANSLATE_HYPHEN_INDICATOR.     
12542         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
12544         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
12545         for \(hy.
12547         * tty/devlatin1/R.proto: \(hy and - should print as 055.
12549 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
12551         * groff.c (run_commands): If the last command gets a SIGPIPE send
12552         a SIGPIPE to all children than haven't yet terminated.  When
12553         command terminates, set pid field to -1.
12555 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
12557         * groff.c (main): Pass an appropriate -filename option to gxditview.
12559 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
12561         * Makefile.bd (install): Remove existing program before copying.
12563         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
12564         programs which have Unix counterparts to be installed with
12565         user-specified prefix.
12567         * troff/input.c (exit_troff): Don't check if exit_started.
12568         (exit_request): Don't call exit_troff if exit_started.
12570         * Makefile.bd (install.mm): Rename to install.dwbmm.
12572 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
12574         * driver/input.c (do_file): Add missing break for '#' case.
12576 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
12578         * troff/input.c (input_stack::clear):  Clear past any boundaries and
12579         then add the boundaries back.
12581         * troff/input.c (exit_troff): Return immediately if already
12582         exiting.
12584         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
12585         end macro.
12586         (pg*end-page): If the text has ended and there are no more
12587         footnotes or keeps, exit.
12589         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
12591         * troff/input.c (init_charset_table): Make \(rq transparent by
12592         default.
12594         * macros/tmac.an: Define lq and rq strings.
12596         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
12598 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
12600         * troff/env.c (environment::final_break): New function.
12601         (environment::newline): Set prev_line_interrupted to 2 if
12602         exit_started.
12603         * troff/env.h: Declare environment::final_break.
12604         * troff/input.c (exit_troff): Call environment::final_break()
12605         instead of environment::do_break().
12607         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
12608         doesn't already exist.
12609         * macros/man.local: New file.
12610         * macros/tmac.an: Load man.local.
12611         * macros/man.ultrix: New file.
12613 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
12615         * troff/input.c (exit_groff): Rename to...
12616         (exit_troff): New function.
12618         * troff/div.c (exit_started, done_end_macro,
12619         seen_last_page_ejector): New global variables.
12620         (began_page_in_end_macro): New static variable.
12621         (exit_flag): Deleted.
12622         (top_level_diversion::top_level_diversion): Initialize
12623         last_page_count.
12624         (top_level_diversion): More elaborate test for whether
12625         cleanup_and_exit() should be called.
12626         Set began_page_in_end_macro if the end macro isn't yet finished.
12627         * troff/div.h (top_level_diversion::last_page_count): New data
12628         member.
12629         (top_level_diversion::set_last_page): New function.
12630         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
12631         * troff/env.c (do_break): Zero prev_line_interrupted.
12632         * troff/input.c (exit_flag): Delete declaration.
12633         (LAST_PAGE_EJECTOR): New magic cookie.
12634         (token::next): Handle LAST_PAGE_EJECTOR.
12635         (exit_groff): Set exit_started and done_end_macro instead of
12636         exit_flag.  Call top_level_diversion::set_last_page.  Push a
12637         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
12638         another ejection after setting seen_last_page_ejector.
12640 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
12642         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
12644         * macros/tmac.e (TH): Make sure there's room for the initial
12645         header.
12647         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
12648         Set FVS in points rather than units.
12650 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
12652         * troff/div.c (top_level_diversion::add_trap): Don't consider the
12653         position of empty slots.
12655 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
12657         * ps/devps/S: Fix height and depth of parenrightex.
12658         * ps/devps/symbol.diff: Regenerate.
12660 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
12662         * tmac.e (u): Do underlining as in -mgs.
12664 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
12666         * tty/tty.c (tty_printer::end_page): If overstriking is
12667         suppressed, still turn overstruck horizontal and vertical lines
12668         into +.
12670         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
12671         2.1.
12673         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
12675 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
12677         * Version 1.05 released.
12679 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
12681         * tty/tty.c: Instead of keeping an array of glyphs and then
12682         sorting it, keep a ordered linked list of glyphs for each line.
12684         * driver/driver.h: Include stddef.h.
12686         * tty/tty.c (compare_glyph):
12687         * refer/refer.c (rcompare):
12688         * troff/env.c (compare_ranges): Arguments of qsort comparison
12689         function should be const void *.
12691         * troff/number.c (parse_term):
12692         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
12693         switch statement.
12695         * refer/label.y (consider_authors): Don't access variables
12696         constructed under a condition outside that condition: put braces
12697         round for statement containing declaration; redeclare use of same
12698         variable later.
12700         * pic/pic.y (text_expr): Delete production that allows
12701         parenthesised text_expr.
12702         (expr): Allow a conditional_expr to appear in parentheses.
12703         (conditional_expr): Rename to any_expr.
12705         * mm: Install new version 1.01 from jh.
12707         * lib/font.c (font::get_width): Cache scaled widths.
12708         (font::font): Initialize widths_cache.
12709         (font::~font): Destroy widths_cache.
12710         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
12712 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
12714         * c++test.c, c++test.ref: New files.
12715         * Makefile: Check that the C++ compiler works.
12717         * ps/tmac.pspic (PSPIC): Do a break.
12719         * ps/tmac.ps: Move definition of PSPIC into...
12720         * ps/tmac.pspic: New file.
12721         (PSPIC): Draw box around picture, but make it invisible to grops.
12722         * ps/tmac.ps: Load tmac.pspic.
12723         * ps/Makefile: Install tmac.pspic.
12725 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
12727         * lib/font.c (scale_round): If n is negative,
12728         subtract .5 before truncating floating point result.
12730         * lib/fontfile.c: Include <errno.h>.
12732 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
12734         * driver/input.c (get_char): Inline. Don't update current_lineno.
12735         Change callers to up date current_lineno if necessary.
12736         Use get_char() instead of getc(current_file).
12738 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
12740         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
12742 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
12744         * tty/tty.c (tmac.tty): Define \(rg as (R).
12746 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
12748         * lib/lib.h: New define a_delete.
12749         * Use a_delete instead of delete when deleting an array of objects
12750         without destructors.
12752         * lib/lib.h: Rename adelete to ad_delete.
12753         * Change uses of adelete.
12755 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
12757         * eqn/eqn.y: Include lib.h.
12759         * troff/node.c (grow_font_table): Delete old_font_table.
12761         * mm: Install new version from jh.
12763 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
12765         * tbl/table.h (format_type): Make global instead of local to class
12766         entry_format.  Prefix enumerators with FORMAT_.
12767         * tbl/table.c, tbl/main.c: Corresponding changes.
12768         * refer/token.h (token_type): Make global.  Prefix enumerators
12769         with TOKEN_.
12770         * refer/token.[ch]: Corresponding changes.
12771         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
12773         * troff/div.c (node::set_vertical_size): Don't name argument.
12775 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
12777         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
12778         * lib/lib.h: Define adelete accordingly.
12779         * pic/object.c (graphic_object::graphic_object):
12780         * tbl/main.c (format::~format):
12781         * tbl/table.c (table::~table):
12782         * refer/ref.c (reference::~reference, reference::merge,
12783         reference::insert_field, reference::delete_field): Use adelete.
12785         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
12786         * refer/token.h:
12787         * tbl/table.h: Corresponding changes.
12789         * common.c (common_output::dashed_arc, common_output::dotted_arc):
12790         Ensure total_angle is positive.
12792 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
12794         * refer/ref.c (reference::merge, reference::insert_field,
12795         reference::delete_field): Avoid delete[0].
12797         * refer/token.c (init_special_chars): Move calls to cmupper
12798         outside calls to init_two_char_letter to work around bug in gcc
12799         2.0.
12801 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
12803         * lib/new.c (operator new): Use __builtin_new for g++.
12805         * pic/object.c (graphic_object::~graphic_object):  Don't use
12806         delete [] on 0.
12808         * pic/object.c (output::compute_scale): Initialize max_width and
12809         max_height.
12811 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
12813         * troff/input.c (write_request): Call fflush.
12815         * troff/node.h (class composite_node): Move declaration to node.c
12816         * troff/input.c (charinfo_to_node): Rename to ...
12817         (charinfo_to_node_list): Return node list rather than composite
12818         node.
12819         * troff/node.c (make_composite_node): New function.
12820         (make_node, add_char): Call make_composite_node instead of
12821         charinfo_to_node.
12822         (class composite_node): Add a tfont * member.  Delete font_size
12823         member.
12824         (composite_node::composite_node, composite_node::copy,
12825         composite_node::size): Corresponding changes.
12826         (composite_node::tprint): Provide constant spacing, emboldening
12827         and track kerning as specified in tfont.
12828         (composite_node::width): Change width calculation accordingly.
12829         * troff/env.h (environment::composite): New member.
12830         (environment::is_composite, environment::set_composite): New
12831         functions.
12832         * troff/env.c (environment::environment): Initialize composite.
12833         * troff/input.c (charinfo_to_node): Call
12834         environment::set_composite.
12835         * troff/node.c (make_composite_node, make_glyph_node): Use the
12836         plain version of the tfont if the environment is composite.
12838         * troff/node.c (font_info::get_space_width): Additional argument
12839         giving space_size.  Handle constant space correctly. Scale by
12840         space_size unless constant spaced.
12841         (env_sentence_space_width): New function.
12842         * troff/node.h: Declare it.
12843         * troff/env.h (environment::get_space_size,
12844         environment::get_sentence_space_size,
12845         environment::get_narrow_space_width,
12846         environment::get_half_narrow_space_width): Make inline.
12847         (environment::get_space_width): Make inline.  Just call
12848         env_space_width.
12849         * troff/env.c: Delete definitions for funtions made inline.
12850         (environment::space_newline, environment::space): Use
12851         env_sentence_space_width(). Don't scale by space_size.
12852         * troff/node.h: Move declarations of env*space_width() functions
12853         into env.h.
12855 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
12857         * macros/tmac.s (PS): Don't try to set negative indent.
12859 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
12861         * pic/pic.y: Fix min function.
12863 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
12865         * man/mdate.sh: Clear LANGUAGE.
12867 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
12869         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
12870         * pic/lex.c: New COMMAND keyword.
12871         * pic/pic.y (print_args, print_arg): New rules.
12872         (placeless_element): Use print_args for PRINT.
12873         New COMMAND element.
12875 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
12877         * troff/input.c (terminal): Handle missing argument correctly.
12879         * pic/pic.y (text_expr): New rule.
12881         * pic/pic.y: Implement := operator.
12883 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
12885         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
12886         mdoc.
12888 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
12890         * ps/devps/dingbatsrmap: Include this in the distribution.
12892         * macros/tmac.doc: Replace with new version from 2nd Networking
12893         Release. Fix loading of doc-* files.
12894         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
12895         * macros/tmac.doc.old: New file.  Apply fixes that had been
12896         applied to old tmac.doc.
12897         * macros/tmac.andoc: Check that we're running under groff.
12898         * macros/Makefile: Rework.
12900 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
12902         * tbl/table.h (format_type): 
12903         * refer/token.h (token_type): If NESTED_TYPES is defined, use
12904         typedef to make these types visible at file scope.
12905         * Makefile: Add NESTED_TYPES configuration option.
12907         * troff/div.c (mark): At the top level use the value of
12908         nl_reg_contents rather than the current vertical position.
12910 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
12912         * tty/tty.c: Implement \D for horizontal or vertical lines.
12913         (tty_printer::set_char): Use vec_used+2 as serial number.
12914         Don't allow size of vector to exceed USHRT_MAX-2.
12915         Split off part into...
12916         (tty_printer::add_char): New function.
12917         (tty_printer::draw): New function.
12918         (compare_glyph): Handle equal serial numbers.
12919         (tty_printer::end_page): Handle overstruck characters from \D.
12920         (main, usage): Implement -d option.
12922 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
12924         * tbl/main.c (process_format):
12925         * eqn/text.c (split_text):
12926         * troff/input.c (token::next): Use inner block for declarations
12927         with initializers in switch statement.
12929 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
12931         * pic/common.c (common_output::dash_line): Cope with zero-length
12932         lines.
12934 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
12936         * Version 1.04 released.
12938 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
12940         * macros/tmac.an (TH): Define a macro an-init to define variables
12941         based on command line arguments.
12942         (an-header): Call it.
12944 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
12946         * Makefile (install.mm): Rename to install.dwbmm.
12948         * Makefile: Integrate mm.
12949         * mm: New directory.
12951 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
12953         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
12954         <sys/types.h>.
12956         * pic/troff.c (troff_output::simple_spline,
12957         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
12958         shadowing parameter.
12960         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
12962         * lib/ptable.h: Add explicit casts when converting from unsigned
12963         long to unsigned.
12965         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
12966         * dvi/devdvi/Makefile: Install SA, SB.
12968         * refer/indxbib.c: Add declaration of mktemp.
12970         * refer/lookbib.c: Add declaration of isatty.
12972 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
12974         * pic/lex.c (interpolate_macro_with_args):  While collecting
12975         arguments, keep track of whether we're in a string.
12977 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
12979         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
12980         down with \v, so as to avoid problems with top of page trap
12981         setting no space mode.
12983 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
12985         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
12987 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
12989         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
12990         Improve error message.
12992 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
12994         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
12995         printf("%03o");
12997 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
12999         * groff.c (possible_command::execp): Always use _exit() after a
13000         failed exec.
13002         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
13003         NO_SYS_WAIT_H   configuration options.
13004         * groff.c: Use these options.  Use POSIX-style macros to extract
13005         fields from the status returned by wait().
13007 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
13009         * tbl/table.c (table::compute_separation_factor): Allow the
13010         separation factor to drop to 0.
13012 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
13014         * refer/search.c: Include <errno.h>.
13016 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
13018         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
13020         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
13021         C++. 
13023         * pic/lex.c (input_stack::bol): Move definition out of class body.
13025         * pic/main.c: On MSDOS munge argv[0].
13027         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
13029         * lib/ptable.c (hash_string): Use unsigned long rather than
13030         unsigned.
13031         (next_ptable_size): Use unsigned rather than int.  Give an error
13032         message if we've hit the largest table size.
13033         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
13034         table size.
13036         * pic/object.h (object_spec): Make flags unsigned long.  Declare
13037         flags as const unisgned long rather than as enums.
13039         * pic/output.c: Deleted.
13041         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
13043         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
13044         Add additional argument.
13045         (line_entry::note_double_vrule_on_{left,right}): Set value of
13046         douvle_vrule_on_{right,left} flag according to argument.
13047         (simple_line_entry::simple_print,
13048         simple_line_entry::double_line_print): If adjacent to double vrule
13049         on a corner extend rather than shorten the rule by half the double
13050         vrule sep.
13052         * troff/number.c (parse_term): In checking for overflow, handle the
13053         case where the current horizontal position is negative.
13055 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
13057         * pic/object.c (draw_arrow): Check for object having zero length.
13059 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
13061         * eqn/main.c (do_file): Split off inline equation handling into...
13062         (inline_equation): New function.  Search for starting delimiter
13063         using...
13064         (delim_search): New function. Don't recognize a delimiter that
13065         occurs in the name of an escape sequence, number register, string
13066         etc.
13068 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
13070         * eqn/delim.c (delim_box::compute_metrics): Don't call
13071         define_extensible_string if left is 0.
13072         (delim_box::output):  Don't print the left delimiter if left is 0.
13073         (delim_box::debug_print): Check for left == 0 before calling printf.
13075 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
13077         * troff/Makefile (majorminor.c): Include only digits in
13078         minor_version.
13080 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
13082         * refer/dirnamemax.c: new file.
13083         * refer/genlimits.c: Deleted.
13084         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
13085         Don't check path length.
13086         * refer/Makefile: Add dir_name_max.o; delete genlimits.
13087         * Makefile: Add PATHCONF_MISSING option.
13089         * refer/indxbib.c (get_cwd): New function.
13090         (main): Use get_cwd().
13091         * lib/getcwd.c: New file.
13092         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
13093         GETCWD in SUBFLAGS.
13094         * lib/Makefile: Compile getcwd.o.
13096         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
13097         userdict.
13099         * refer/indxbib.c (main): Check success of mktemp.
13101         * lib/tmpfile.c: New file.
13102         * lib/Makefile: Add tmpfile.c.
13103         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
13104         * ps/ps.h: Delete declaration of mktemp().
13105         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
13106         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
13107         * driver/driver.h: No need now to include errno.h.
13109         * everywhere: Set errno to 0 before calling fopen().
13111         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
13112         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
13113         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
13115 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
13117         * troff/env.h (translate_space_to_dummy): Declare it.
13118         * troff/env.c (environment::space_newline, environment::space):
13119         If translate_space_to_dummy is set then make the width of spaces 0.
13120         * troff/input.c (translate): If the second character of a
13121         translation is a space, translate to unbreakable space.  If the
13122         first character is a space, set or clear translate_space_to_dummy
13123         according to whether the second character is \&.  Weird!
13125 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
13127         * groff.c (run_commands): Don't use non-zero exit code because a
13128         command gets SIGPIPE.
13130         * groff.c, groff.sh: Use -mXps with -TXps.
13132         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
13133         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
13134         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
13135         (ps_printer::special): New specials invis and endinvis.
13136         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
13137         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
13138         (ps_printer::end_page): Check that invis_count == 0.
13139         (ps_printer::invis_count): New member.
13140         (ps_printer::ps_printer): Initialize invis_count to 0.
13142         * troff/env.c (environment::hyphenate_line): Hyphenation
13143         indicator at beginning of word inhibits splitting after -, \(em
13144         etc.
13146         * pic/pic.y (element): Allow another element to follow } without
13147         any intervening separator.
13149 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
13151         * pic/lex.c (get_delimited): Allow tabs before delimiter.
13153 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
13155         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
13156         declaration of wait() in header files.
13157         * Makefile: Get rid of -DHAVE_UNION_WAIT.
13159         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
13161         * lib/lib.h: Declare return type of strerror as char *.
13163         * man/Makefile: Add g flag to sed substitutions.
13164         * Makefile (shgroff, bindist): Likewise.
13166 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
13168         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
13169         * ps/devps/prologue (PBEGIN): Define showpage after pushing
13170         userdict.
13172 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
13174         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
13175         userdict.
13177 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
13179         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
13180         group.
13182 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
13184         * troff/input.c (define_number_reg):  If currently undefined,
13185         don't define it if the argument is an invalid expression.
13187         * Makefile: Ignore return value of `if' commands without `else'
13188         parts.
13190         * Makefile: Split up CPPDEFINES into a series of separate
13191         configuration options.
13193         * troff/input.c (init_registers): Use time_t instead of long
13194         unless LONG_FOR_TIME_T is defined.  Use returned result rather
13195         than passing pointer.
13196         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
13198         * lib/Makefile (fontpath.h): Use gendef.
13200 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
13202         * troff/input.c (input_iterator::shift): Delete argument name.
13203         * troff/node.c (suppress_output_file::really_begin_page,
13204         suppress_output_file::really_transparent_char, node::ascii_print,
13205         node::tprint): Delete names of unused arguments.
13207 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
13209         * refer/label.y (string):  Pass $4 to command_error.
13211 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
13213         * Version 1.03 released.
13215 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
13217         * Makefile: Pass definition of SHELL in SUBFLAGS.
13219         * gendef: New file.
13220         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
13221         ps/Makefile: Use gendef to construct header files that are
13222         constructed from the Makefile.
13224         * macros/Makefile: make all should build stripped version of tmac.e.
13226         * refer/Makefile (clean): Remove y.output.
13228 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
13230         * ps/pfbtops.c (main): Add -v option which prints out a version
13231         number.
13232         * ps/Makefile (pfbtops): Link with libgroff.a.
13234 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
13236         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
13237         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
13239         * refer/lkbib.c (main): Always terminate reference with blank
13240         line.
13241         * refer/lookbib.c (main): Likewise.
13243         * refer/linear.c (file_buffer::load): Check that the file is not a
13244         binary file.
13246         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
13247         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
13248         Delete second inclusion of <sys/param.h>.
13250 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
13252         * troff/token.h (token::special): Deleted.
13254         * tbl/main.c (process_format): Rework so that opt->tab_char is
13255         recognized only when appropriate.
13257         * ps/Makefile (clean): Remove pfbtops.
13259 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
13261         * lib/font.c (text_file::next): Don't return if we have got a
13262         blank line.
13264 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
13266         * refer/refer.c (store_reference): Get hash code from old_table[i]
13267         when rehashing the table.
13269 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
13271         * eqn/box.c (box::top_level): Save size and prev size using \R and
13272         restore it afterwards. Set the size to the size at the beginning
13273         of the line.
13274         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
13275         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
13277         * refer/Makefile (limits.h): Use ./genlimits.
13279 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
13281         * refer/index.c: Delete declarations of stat() and fstat().
13283 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
13285         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
13287 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
13289         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
13291 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
13293         * troff/input.c (token::get_char): Handle \e.
13295         * refer/linear.c: Delete declarations of fstat() and stat().
13297 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
13299         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
13300         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
13302 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
13304         * troff/input.c (do_define_macro): Improve error handling for end
13305         of file while defining macro.
13307 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
13309         * eqn/box.h: Fix declaration of set_gsize.
13310         * eqn/box.c (set_gsize): Make argument const char *.
13311         (gsize): Declare as char *.
13312         * eqn/main.c (main): Don't convert gsize to int.
13313         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
13315         * Version 1.02 released.
13317 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
13319         * macros/tmac.andoc: New file.
13320         * macros/Makefile: Install tmac.andoc.
13322         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
13323         operator new and delete on OP_DELETE_BROKEN not being defined.
13324         * Makefile: Mention OP_DELETE_BROKEN.
13326 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
13328         * Makefile (bindist): Pass SUBFLAGS.
13330 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
13332         * Makefile, groff.c: Pass definitions to groff.c via device.h.
13334         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
13335         parameter.
13337         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
13339         * ps/ps.h, ps/psrm.c: Make comment_table and
13340         header_comment_table local to resource_manager::process_file.
13342         * groff.sh: With -TXps pass -printCommand option to gxditview.
13344         * groff.c (possible_command::print): Implement using
13345         append_arg_to_string.
13347         * xditview: Merge in new implementation with own ChangeLog.
13349 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
13351         * groff.c (main): Implement PRINT_OPTION.
13352         (append_arg_to_string): New command.
13353         (device_table): Set PRINT_OPTION flag for Xps.
13355 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
13357         * troff/groff.h: Rename to troff.h.
13359         * pic/lex.c (lookup_keyword, docmp): New functions.
13360         (get_token): Use new lookup_keyword.
13361         Don't include key.h.
13362         * pic/key.[ch], pic/pic.gperf: Deleted.
13363         * pic/Makefile: Remove gperf stuff.
13365         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
13366         into output.h.
13367         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
13369         * troff/Makefile, troff/node.c: Move definition of
13370         STORE_WIDTH into node.c.
13372         * etc/grog.pl, etc/grog.sh: Support -mdoc.
13374 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
13376         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
13377         dvi/devdvi/texb.map: Add lq and rq.
13378         dvi/devdvi: Regenerate fonts.
13379         * ps/devps/textmap: Add lq and rq.
13380         * ps/devps: Regenerate fonts.
13381         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
13382         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
13384         * pic/object.c (position_rectangle): When checking radius
13385         cope with possiblity that width or height is negative.
13386         (box_object::box_object): Have separate xrad and yrad with
13387         signs matching signs of dim components.
13388         (box_object::{north,south}_{east,west}): Use xrad and yrad.
13389         (box_object::print): With rounded boxes use absolute values
13390         for dim and rad arguments.
13392         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
13393         in fontpath.h.
13395         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
13397         * various files: Add explicit destructors to keep Saber CC +d
13398         happy.
13400 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
13402         * eqn/box.c (box::top_level): Restore fonts correctly after
13403         font changes in line containing inline equation.  Also
13404         restore previous font as well as current font.
13405         * eqn/pbox.h: Define necessary string and register names.
13407         * troff/input.c (token::next): Case 'R' calls do_register.
13408         (do_register): New function.
13410 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
13412         * groff.c, groff.sh: Support Xps device.  Allow each device
13413         to have a pseudo_name and a real_name.
13415         * groff.c (run_commands): Don't print `Broken pipe' messages.
13417         * ps/pfbtops.c: New file.
13418         * ps/Makefile: Add pfbtops.
13420         * troff/number.c (parse_term): Improved error message.
13422 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
13424         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
13426         * Makefile: Integrate refer.
13427         * refer: New directory.
13428         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
13429         man/lkbib.man: New files.
13430         * man/Makefile: Support refer man pages.
13432         * lib/lib.h: Declare is_prime.
13433         * lib/prime.c: New file.
13435         * troff/input.c (macro_source): New function.
13436         (init_input_requests): Bind "mso" to macro_source.
13438         * troff/env.c (environment::possibly_break_line): Maintain
13439         pointer to pointer to node to be split in ndp so as to avoid
13440         using address of freed node.
13442         * troff/env.c (environment::hyphenate_line): Maintain pointer to
13443         pointer to first node to be hyphenated in startp so as to
13444         avoid using address of freed node.
13446         * troff/env.c (class trie, class hyphen_trie): Make the
13447         elements of the trie be of type char not unsigned char.
13448         Declare arguments to be const char* instead of unsigned char *.
13449         
13450         * troff/env.c (hyphenate): Initialize hbuf[0].
13452         * troff/input.c (set_string): Declare p to be char * and cast
13453         *p to unsigned char when necessary.
13455         * troff/input.c (do_define_macro): Declare s to be const
13456         char*. Cast element to unisgned char when necessary, Declare
13457         d to be an int.  Handle EOF better.
13459         * troff/Makefile, troff/input.c: Different scheme for passing
13460         definitions of MACROPATH, HYPHENFILE and DEVICE.
13462 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
13464         * tty/devascii/R.proto: Delete entry for em.
13465         * tty/devlatin1/R.proto: Likewise.
13467 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
13469         * troff/input.c (translate): Stop when we get a space. Treat eof
13470         like newline.
13472         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
13474 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
13476         * tbl/main.c (process_format): A font name following a `f'
13477         modifier that starts with a digit can be only one character long.
13478         Also deal with EOF on the second character of the font name.
13480 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
13482         * troff/input.c (token::next): Turn \~ into an
13483         unbreakable_space_node.
13484         * troff/node.c (unbreakable_space_node): New class.
13485         * troff/node.h: Declare it.
13487 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
13489         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
13490         it's >= 0, before outputting it as a single byte.
13492 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
13494         * lib/font.c: Make font_char_metric::code an int.
13495         (font::get_code): Change return type to int.
13496         (font::load): Allow code to be arbitrary integer.
13497         * lib/font.h (font::get_code): Change return type to int.
13498         (font::number_to_index): Change argument type to int.
13499         * troff/input.c (token::next):  In case 'N', allow any value.
13500         Store value in token::val.
13501         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
13502         (token::get_char, token::add_to_node_list, token::process): Get
13503         number from val.
13504         (charinfo::set_number): Change argument to int.
13505         (charinfo::get_number):  Require that NUMBERED flag be set.
13506         (get_charinfo_by_number): Store numbered characters not between 0
13507         and 255 in a dictionary.
13508         * troff/charinfo.h (get_charinfo_by_number): Change argument type
13509         to int.
13510         (charinfo::number): Change type to int.
13511         (charinfo::set_number): Change type of set_number to int.
13512         * troff/node.c (troff_output_file::put_char_width,
13513         troff_output_file::put_char): Test whether character is numbered
13514         using charinfo::numbered().
13515         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
13516         values of num.
13517         * lib/nametoindex.c: New implementation to cope with arbitrary
13518         number characters.
13520         * troff/input.c (token::operator==): Test val for
13521         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
13522         TOKEN_SIZE.
13524         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
13525         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
13527 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
13529         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
13530         variable.
13532         * all Makefiles: rm targets of cp and >.
13534         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
13535         it.
13537         * eqn/lex.c (def_table): Add dollar.
13539 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
13541         * troff/input.c (do_width): Push back newline before closing delim
13542         like do_bracket.
13544 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
13546         * groff.c (possible_command::prepend_arg): New function.
13547         (main): Prepend device -m option.
13548         * groff.sh: Put device -m options before command-line options.
13550 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
13552         * macros/tmac.an (IP): Quote argument to TP.
13554         * ps/ps.c (main): New option -b, which sets...
13555         (broken_flags): New variable.
13556         (ps_printer::~ps_printer): Incorporate the setup section in the
13557         prolog if (broken_flags & NO_SETUP_SECTION).
13558         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
13559         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
13560         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
13561         ps_printer::print_needed_font_comment,
13562         ps_printer::print_supplied_font_comment,
13563         ps_printer::print_include_font_comments,
13564         ps_printer::lookup_doc_font, ps_printer::download_fonts,
13565         ps_printer::read_download_file, read_document_fonts, add_font,
13566         skip_line, parse_fonts_arg, document_font::document_font,
13567         document_font::~document_font, document_font::download,
13568         ps_output::include_file):  Deleted.
13569         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
13570         rather than %!PS-Adobe-2.0.  Make calls to
13571         resource_manager::need_font for each font that we used. Replace
13572         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
13573         print_supplied_font_comment, print_needed_font_comment by call to
13574         resource_manager::print_header_comments. Output %%Orientation
13575         comment. Output %%Requirements: numcopies comment if ncopies > 1.
13576         Don't output the prolog directly.  Instead call
13577         resource_manager::output_prolog.  Only define #copies when ncopies
13578         > 1.  Delete calls to print_include_font_comments  and
13579         download_fonts.  Add call to resource_manager::document_setup.
13580         (ps_printer::do_file): Call resource_manager::import_file instead
13581         of including it ourselves.
13582         (ps_printer::do_import): Likewise.  Also don't call
13583         merge_import_fonts. Push userdict on the dictionary stack before
13584         and pop it afterwards.
13585         Move declaration of ps_output into ps.h.
13586         * ps/psrm.c: New file implementing resource_manager class.
13587         * ps/ps.h: New file declaring ps_output and resource_manager
13588         classes.
13589         * ps/devps/zapfdr.ps:
13590         * ps/devps/symbolsl.ps:
13591         * ps/devps/prologue:  Use 3.0 conventions.
13592         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
13593         Add default definition of BROKEN_SPOOLER_FLAGS.
13594         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
13595         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
13597 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
13599         * etc/grog.pl: New file.
13600         * Makefile (GROG): New variable.
13601         Add GROG to SUBFLAGS.
13602         * etc/Makefile (GROG): New variable.
13603         (install.nobin): Install $(GROG) rather than grog.sh.
13605 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
13607         * eqn/special.c (special_box::compute_metrics): Make the input and
13608         output strings the same.  Get the new height and depth from the
13609         predefined height and depth registers.  Also make subscript kern
13610         and skew available.
13611         (special_box::compute_subscript_kern, special_box::compute_skew):
13612         New functions.
13614         * eqn/box.c (pointer_box::compute_skew,
13615         simple_box::compute_metrics, box::top_level)
13616         * eqn/text.c (prime_box::compute_metrics,
13617         prime_box::comput_subscript_kern)
13618         * eqn/limit.c (limit_box::compute_metrics):
13619         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
13620         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
13621         negative numbers in `nr' requests with a leading 0.
13623 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
13625         * eqn/special.c: New file.
13626         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
13627         Add new rule for simple.
13628         * eqn/lex.c (token_table): Add SPECIAL.
13629         * eqn/box.h: Declare make_special_box.
13630         * eqn/Makefile: Add special.[co].
13632 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
13634         * ps/devps/prologue: Possibly set packing to true while defining.
13635         Create grops dictionary here.  Initialize local variables before
13636         defining procedures.
13637         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
13638         the dictionary stack. Set strokeadjust and overprint to false if
13639         the relevant operators are defined.
13640         (PEND): New procedure.
13641         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
13642         prologue.  Do everything else in the setup section.
13643         (ps_printer::do_import): Just call PBEGIN and PEND around the
13644         picture. Also push userdict before, and pop it afterwards.
13646 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
13648         * troff/node.c (bracket_node::tprint): Brackets were being printed
13649         1m too low.
13651         * macros/tmac.an (SH, SS): Set fill mode.
13653 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
13655         * troff/div.c (top_level_diversion::begin_page): Set
13656         high_water_mark to 0.
13658 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
13660         * man/mdate.sh: New file.
13661         * man/mdate.c: Deleted.
13662         * man/Makefile: Use mdate.sh instead of mdate.
13663         (mdate): Deleted.
13665         * eqn/lex.c (do_gsize): Supply missing argument to error message.
13667 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
13669         * man/mdate.c: New file.
13670         * man/*.man: Replace modification date by @MDATE@.
13671         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
13672         (mdate): New target.
13674         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
13675         Remove illegal input characters.
13677 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
13679         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
13681 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
13683         * troff/div.c (begin_page): Change behaviour when
13684         !first_page_begun and !break_flag.
13686         * troff/input.c (do_name_test): Return 0 if argument is empty.
13688         * troff/input.c (read_long_escape_name): Require closing ] to be
13689         at same input level as opening [.
13691         * troff/input.c (read_increment_and_escape_name): New function.
13692         (get_copy, process_input_stack): Use this for \n.
13694 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
13696         * troff/div.c (top_level_diversion::begin_page): Ignore the
13697         current value of page_number if !first_page_begun.
13699         * groff.c (main): Fix declaration of buf.
13701         * troff/input.c (do_name_test): New function.
13702         (token::next): Implement \A.
13703         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
13704         (token::description, token::add_to_node_list, token::process):
13705         Handle TOKEN_ESCAPE.
13706         * troff/token.h: New token TOKEN_ESCAPE.
13708 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
13710         * pic/main.c (do_picture): Allow space before and after filename
13711         following `<'.  Check that the filename is not empty.
13713 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
13715         * Version 1.01 released. 
13717         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
13719         * dvi/tmac.dvi: ftr HR to H.
13721         * macros/tmac.e: Round up computation of $r.
13723         * xditview/tmac.X:  Don't give up completely in compatibility mode.
13724         Use \n(.s instead of \n[.s].
13726         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
13727         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
13728         Add u to factors inside \s[...]. Rename frac to dvi-frac.
13729         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
13730         short names in the char definitions.
13732         * ps/tmac.ps: Don't give up completely in compatibility mode.
13733         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
13734         quote in front of \n(.s. Add u to factors inside \s[...].
13736 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
13738         * tty/tmac.tty: Call the nroff request.
13740         * macros/tmac.e ((x, )x):  Better definitions that work properly
13741         in a diversion.
13742         (@0, @1): Helper macros for (x.
13744         * macros/tmac.e ($s, hl): Use \l rather than \D.
13746         * tty/tmac.tty: Make it work better in compatibility mode.
13747         (pchar): Rename to tty-char.
13749         * macros/tmac.e (@E): New macro.
13750         (r, i, b, rb, bi): Use @E.
13752         * macros/tmac.e (@F): Don't use (;...) syntax.
13754         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
13755         it was modified for groff.
13757         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
13759         * macros/tmac.e (<., .>): Removed.
13760         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
13762         * macros/tmac.e: Remove check that groff is being used.
13764         * macros/tmac.e (@C): Change families only if using groff; turn
13765         compatibility mode off while changing familes. Save compatibility
13766         mode before changing families and restore it afterwards.
13768         * macros/tmac.e (@h): Remove test for offset + line length.
13770         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
13771         (lo, th, ac): Define to call @S instead of using als.
13773         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
13774         the ratio of the vertical spacing to the point size in units
13775         expressed as a percentage.  Use these instead of $10r and $10R,
13776         Delete $10r and $10R.
13778         * lib/font.c (font::load): In default computation of space_width,
13779         divide by sizescale.  Use scale_round.
13781         * macros/tmac.an (TP): Don't call `nf'.
13782         (an-do-tag): Don't call `fi'.
13784 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
13786         * troff/input.c (process_input_stack): Handle the case where
13787         spaces at the beginning of an input line are followed by a
13788         newline.
13790 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
13792         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
13793         * groff.sh: Use pic -x with the dvi device.
13795         * dvi/devdvi/FontMakefile (H): Don't use -s.
13797         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
13798         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
13799         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
13800         in FONTS.
13802 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
13804         * ps/psfig.diff: New file.
13805         * ps/tmac.psfig: New file.
13807 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
13809         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
13810         (]-): Don't call ref*do-tl.
13812         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
13814         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
13815         (fn@do-FS): Rename to fn*do-FS.
13817         * troff/input.c (transparent_translate): New function.
13818         (process_input_stack): Apply transparent_translate before calling
13819         diversion::transparent_output(unsigned char).
13821 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
13823         * troff/input.c (do_define_macro): Define the macro before calling
13824         skip_line.
13826         * xditview/Makefile: Add DEVICES variable.  Change install target
13827         to use this.
13829 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
13831         * groff.c (run_commands): Handle the possibility that there are
13832         child processes other than those forked by us.
13834 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
13836         * lib/string.c (string::append): New function.
13837         * lib/stringclass.h: Declare it.
13839 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
13841         * eqn/main.c (main): New option -N which sets
13842         no_newline_in_delim_flag. 
13843         (do_file): If no_newline_in_delim_flag is set don't allow newlines
13844         in delimiters.
13845         * groff.c (main): Pass -N on to eqn.
13846         (help, synopsis): Mention -N.
13847         * groff.sh: Implement -N.
13849 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
13851         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
13852         (]-): Call ref*do-tl if ref*need-tl is non-zero.
13853         (XP): Allow as initializer.
13855 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
13857         * troff/env.c (environment::wrap_up_field): If field_spaces are
13858         non-zero and we have a current_tab, subtract padding from
13859         tab_distance.  If this makes tab_distance <= 0, use the next tab
13860         stop instead.  If there isn't any next tab or it's a left tab,
13861         wrap up the current tab.
13862         (environment::start_field): Initialize tab_precedes_field.
13863         (environment::wrap_up_tab): If there's a current field, update
13864         pre_field_width, field_distance and tab_precedes_field.
13865         * troff/env.h (environment::tab_precedes_field): New member.
13867 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
13869         * ps/ps.c (ps_printer::do_file): New function.
13870         (ps_printer::special): Bind to `file' special.
13871         (ps_printer::do_exec): Set ndefined_styles to 0.
13873 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
13875         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
13876         Avoid stripping first character from the start of unrecognized
13877         escapes.  Use lex_error instead of error to report errors.
13878         * eqn/lex.c (get_token): Rework handling of escapes.
13879         (lex_error): Move declaration into...
13880         * eqn/eqn.h.
13882         * xditview/xditview.c (main): Make -page option work.
13884         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
13886 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
13888         * macros/tmac.s (B2): Correct size of box.
13890 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
13892         * macros/tmac.s (B2): Postpone drawing the box until in the
13893         top-level diversion.
13895         * tty/tmac.tty: Add font translations for C, CR, CW.
13897         * groff.c (synopsis, help): Document -i.
13898         * groff.sh: Implement -i.
13900         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
13901         Simplify the construction of SN.
13903         * troff/number.c (parse_term): Give `|' a higher precedence.
13904         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
13905         accordingly.
13907         * macros/tmac.s (B2): Use par@finish instead of par@reset.
13909 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
13911         * lib/string.c (string::move): New function.
13912         * lib/stringclass.h: Declare it.
13914 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
13916         * troff/env.c (distribute_space): Add optional argument
13917         `force_forward'.
13918         (environment::wrap_up_field): Call distribute_space with
13919         `force_forward' argument of 1.
13921 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
13923         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
13924         Inline it.  Move reallocation into...
13925         (string::grow1): New function.
13926         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
13927         dependencies to include library header files.
13928         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
13930 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
13932         * macros/tmac.s (@NH): Use the same number registers than -ms does
13933         for the heading level counters.  Use the same string that -ms does
13934         for the number for this heading.
13936 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
13938         * lib/new.c (operator new): Cast result of malloc to char *.
13940         * troff/input.c (spring_trap, lookup_request): Add assert that nm
13941         is not null.
13943 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
13945         * groff.c (main): Support -i.
13947 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
13949         * pic/pic.h: Include <osfcn.h>.
13951         * ps/ps.c: Add declaration of mktemp.
13953         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
13954         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
13955         argument as union wait *.
13956         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
13957         argument to union wait *.
13959 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
13961         * tty/tmac.tty: Add definition of \(co.
13963         * pic/object.c (make_arc): Only increase radius when radius
13964         strictly less than d.
13965         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
13966         more than once.
13968         * troff/env.c (environment::environment(symbol),
13969         environment::environment(const environment *)):  Initialize
13970         input_trap_count.
13972 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
13974         * tbl/main.c (main): Add exit(0).
13976         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
13978         * pic/main.c (main):
13979         * eqn/main.c (main):
13980         * tbl/main.c (main):
13981         * etc/soelim.c (main):
13982         * driver/printer.c (printer::~printer):
13983         * troff/node.c (real_output_file::~real_output_file,
13984         real_output_file::flush):  Check for errors on stdout.
13986         * most files: Add 1991 to copyright notice.
13988         * macros/tmac.s: Don't test \n(.x and \n(.y.
13990         * troff/input.c (token::next): Rename `escape_char' label to
13991         `handle_escape_char' and `normal_char' label to
13992         `handle_normal_char'.
13994 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
13996         * groff.c (main, synopsis, help): Support -a option.
13997         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
13998         to trflags while parsing options.
14000 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
14002         * troff/number.c (parse_term): With `m', `M' and `n' scale
14003         indicators, convert scale factor to hunits before scaling.
14005 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
14007         * lib/font.c (scale_round): Better test for overflow when n is
14008         negative.
14010 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
14012         * tbl/main.c (process_format): Add second argument of type
14013         options*. Change callers.  Allow opt->tab_char as well as '\t'
14014         between format items.
14016 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
14018         * macros/tmac.an (PD): With no arguments, make sure register PD is
14019         at least \n[.V].
14020         (TH): Call PD with no argument, instead of setting register PD
14021         directly.
14023 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
14025         * Version 1.00 released.
14027 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
14029         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
14031         * dvi/devdvi/DESC: Mount CW instead of CR.
14033         * dvi/tmac.dvi: Add definition of \(tm.
14035         * dvi/devdvi/texsy.map: Add lh, and rh.
14036         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
14037         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
14039         * dvi/devdvi/FontMakefile: Generate H from cmss10.
14040         * dvi/devdvi/Makefile: Install H.
14041         * dvi/devdvi/H: New file.
14043 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
14045         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
14046         be 0.
14048 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
14050         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
14052         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
14054         * macros/tmac.s (@EN): Handle the case where the equation is empty
14055         but the label is not.
14057 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
14059         * troff/groff.h: New warning category WARN_SPACE.
14060         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
14061         WARN_SPACE to warning_table.
14062         (interpolate_macro): Give a warning of type WARN_SPACE if the name
14063         is longer than two characters and is not defined, but the first
14064         two characters do make a defined name.
14066         * PROBLEMS: New file.
14068         * CHANGES: New file.
14069         * README-0.6, README-1.00: Deleted.
14071         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
14072         * xditview/devX75/Makefile: Make devX75-12.
14073         * xditview/devX100/Makefile: Make devX100-12.
14075         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
14076         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
14078 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
14080         * README-0.7: Rename to README-1.00.
14082         * macros/tmac.pic: New file.
14083         * macros/Makefile (install.nobin): Install tmac.pic.
14085 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
14087         * troff/env.c (hyphen_word): Correct the test for whether the
14088         token is a hyphen.  Reset npos to 0.
14090         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
14092 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
14094         * macros/tmac.s (ds*common-end): Call par*reset.
14095         (PE): Likewise.
14096         (par@reset-indent): Deleted.
14098         * macros/tmac.s (@IP): Divert the label.
14100 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
14102         * xditview/draw.c (setGC): Use a line width of .1m rather than
14103         .04m by default; round rather than truncate value.
14105         * tbl/table.c (class empty_entry): New class.
14106         (empty_entry::empty_entry, empty_entry::line_type): New functions.
14107         (table::add_entry): Represent empty entries by objects of type
14108         empty_entry.
14109         (table_entry::line_type): Return -1.
14110         (table::determine_row_type): Ignore entries with line_type 0.
14111         Treat type -1 as non-lines.
14113 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
14115         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
14116         macros/tmac.s: Rename \(-d to \(Sd.
14118 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
14120         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
14121         * xditview/libXdvi/DviChar.c: Likewise.
14122         * dvi/devdvi/texsy.map: Add `<<', `>>'.
14124 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
14126         * troff/div.c (top_level_diversion::begin_page): Call
14127         init_output() if the_output is 0.
14129 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
14131         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
14132         ESCAPE_c.
14133         (get_copy): Turn \E into ESCAPE_E.
14134         (token::process, asciify): Handle ESCAPE_E.
14136         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
14137         (RD): New macro.
14138         (DS): Implement `.DS R'.
14140 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
14142         * macros/tmac.s (FS): New macro.
14144         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
14146         * macros/tmac.s (cov*tl-init): Remove after first execution
14147         instead of aliasing to @nop.  Call top of page macro explicitly
14148         instead of setting trap; call @init first.  Set pg@top as top of
14149         page macro.
14150         (cov*auto-init): Deleted.  Set cov*tl-init instead of
14151         cov*auto-init as top of page trap. 
14152         (TL, LP): Do a break instead of calling cov*tl-init.
14153         (cov*print): With RP format but no TL, alias FS and FE to @FS and
14154         @FE; in this case also give a warning and always start another
14155         page. No need to set pg@top here.
14156         (cov*tl-init): Rename to cov*first-page-init.
14158         * macros/tmac.s (RP): Do `.pn 0'.
14159         (cov*tl-init): With RP format don't do `.pn 0'.
14161         * macros/tmac.s (pg@cs-top): Set no space mode.
14163         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
14164         (cov*ab-init): Alias TL, AU and AI to these.
14166 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
14168         * macros/tmac.s (@EQ): Move the space before the equation into @EN
14169         (@EN): Do nothing unless \n[dl] is > 0.
14171 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
14173         * pic/object.c (ellipse_object::radius): New function.
14175         * VERSION: Change version to 0.7.
14177         * tbl/table.c (block_entry::do_divert): Declare return type as
14178         void.
14179         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
14181 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
14183         * troff/column.c: New file.
14184         * troff/Makefile: Corresponding changes.
14186         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
14187         Friend of vunits.
14189         * troff/div.c (top_level_diversion::space): If the space causes
14190         the first-page transition and springs a trap, truncate the space
14191         to 0.
14193 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
14195         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
14196         the document.
14198         * pic/troff.c (troff_output::line_thickness,
14199         troff_output::set_fill): Do a horizontal motion to compensate for
14200         the width of the \D escape sequence.
14202 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
14204         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
14205         (not X75).
14207         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
14208         to printf.
14210         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
14211         Supply empty definition.
14212         (text_entry::simple_print, simple_text_entry::simple_print):
14213         Delete declarations.
14214         (table::add_entry): Represent empty entries by objects of type
14215         `simple_entry'.
14217 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
14219         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
14221         * tbl/table.c (left_text_entry::add_tab): New function.
14223         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
14224         initialize like LP.
14226 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
14228         * troff/env.c (environment::start_field): Give an error message if
14229         there is no next tab.
14231 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
14233         * troff/env.c (hyphenate): Skip initial elements with zero
14234         hyphenation code.
14236         * macros/tmac.s (par@init): Keep VS in points rather than units.
14238 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
14240         * pic/main.c (main): Implement `-c' option.
14241         * pic/output.h: Declare make_tpic_output().
14242         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
14243         protected.
14244         (tpic_output): New class.
14245         (tpic_output::tpic_output, tpic_output::set_pen_size,
14246         tpic_output::command, make_tpic_output): New functions.
14248 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
14250         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
14251         if they're not already defined.
14252         * tbl/table.c (init_output): Don't test \n(.g.
14254         * troff/input.c (do_if_request): Delete `g' condition. Recognize
14255         `d', `r' and `c' conditions even in compatibility mode.
14257 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
14259         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
14260         box.
14262 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
14264         * troff/env.h (environment::prev_line_interrupted): New member.
14265         (environment::get_prev_line_interrupted): New function.
14266         * troff/env.c (environment::newline): Set prev_line_interrupted.
14267         (environment::environment(const environment *),
14268         environment::environment(symbol)): Initialize
14269         prev_line_interrupted.
14270         * troff/input.c (process_input_stack): Don't give special
14271         treatment to space and newline at the beginning of the line if the
14272         previous line was interrupted.
14274 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
14276         * eqn/eqn.y: Disallow PRIME by itself.
14277         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
14278         PRIME.
14279         (def_table): Remove definition of '.  Define prime to be `.
14281         * eqn/eqn.y: Split off part of rule `script' into a new rule
14282         `nonsup'.
14284 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
14286         * macros/tmac.s ({, }): New string aliases.
14288 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
14290         * README-0.7: New file.
14292 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
14294         * macros/tmac.s: New file.
14295         * man/groff_ms.man: New file.
14296         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
14297         * Makefile.bd: Similarily.
14298         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
14299         definition of TMAC_S.
14300         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
14301         * macros/TODO: New file.
14303 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
14305         * troff/env.c (right_justify): New function.
14306         (init_env_requests): Bind this to request "rj".
14307         (center_lines): Set right_justify_lines to 0. If we get a bad
14308         integer, center 1 line.
14309         (environment::environment(symbol), environment::environment(const
14310         environment *)): Initialize right_justify_lines.
14311         (environment::get_right_justify_lines): New function.
14312         (init_env_requests): Bind this to number_register ".rj".
14314         * troff/env.c (environment::choose_breakpoint): Implement
14315         hyphenation_margin and hyphenation_space.
14316         (environment::get_hyphenation_space,
14317         environment::get_hyphenation_margin): New functions.
14318         (init_env_requests): Bind these to .hys and .hym.
14319         (hyphenation_space_request, hyphenation_margin_request): New
14320         functions
14321         (init_env_requests): Bind these to hys and hym.
14322         (environment::environment(symbol), environment::environment(const
14323         environment *)): Initialize hyphenation_margin and
14324         hyphenation_space.
14325         * troff/env.h: Corresponding changes to class environment.
14327 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
14329         * troff/div.c (blank_line): Always do a break.
14331         * eqn/box.c (do_text): Turn off escapes while appending text to
14332         string.
14334 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
14336         * troff/input.c (while_break_request, while_continue_request): New
14337         functions.
14338         (init_input_requests): Bind these to "break" and "continue".
14339         (while_depth, while_break_flag): New variables.
14340         (while_request): Update while_depth.  Break out of loop if
14341         while_break_flag is set.
14343 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
14345         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
14346         rather than 0.
14348 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
14350         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
14352         * stringify: New file.
14353         * Makefile (groff.o): Use stringify.
14355         * xditview/tmac.X: Remove definition of \(rn.
14356         * xditview/libXdvi/DviChar.c: Remove radicalex from
14357         Adobe_symbol_map.
14359 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
14361         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
14362         (alphabetic_block_entry::alphabetic_block_entry,
14363         alphabetic_block_entry::divert, alphabetic_block_entry::print):
14364         New functions.
14365         (block_entry::divert): Split off body into ...
14366         (block_entry::do_divert): If the block is alphabetic, subtract 2n
14367         from the line length; also update the span width to dl+2n, and the
14368         alphabetic span width to dl.
14370         * driver/input.c (do_file):  While reading argument to D command,
14371         when expanding buffer, multiply szp by sizeof(int) rather than 2
14372         in the argument to memcpy.
14374         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
14375         width of alphabetic columns.
14377 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
14379         * troff/node.c (lookup_family): Supply second argument to lookup.
14381         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
14382         search, return immediately if v is 0.
14384         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
14385         (troff_output::start_picture): Set this reg.
14386         (troff_output::end_picture): Remove this reg
14387         * eqn/box.c (box::extra_space): Don't produce `\x's if
14388         EQN_NO_EXTRA_SPACE_REG is defined.
14390         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
14391         * eqn/text.c (split_text): Map ' to \(fm when it's the first
14392         character.
14394 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
14396         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
14397         requests.
14399         * troff/div.c (top_level_diversion::top_level_diversion):
14400         Initialize page_number to 0.
14402 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
14404         * groff/troff (environment::environment(const environment *)):
14405         Initialize name to e->name, rather than "anonymous".
14407 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
14409         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
14410         requested_page.  Split middle part into ...
14411         (FindPage): New function.
14412         (SetValues): If we don't yet know the last page, and the requested
14413         page is greater than the current page, call FindPage.
14414         Update the font_map_string before doing this.
14416         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
14417         Translate \(lh and \(rh into left and right double arrows.
14419         * troff/node.c (class hyphen_inhibitor_node): New class.
14420         (hyphen_inhibitor_node::hyphen_inhibitor_node,
14421         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
14422         hyphen_inhibitor_node::type,
14423         hyphen_inhibitor_node::get_hyphenation_type): New functions.
14424         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
14425         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
14426         word.
14428 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
14430         * troff/node.h (dummy_node::get_hyphenation_type,
14431         transparent_dummy_node::get_hyphenation_type):  Declare them.
14432         * troff/node.c: (dummy_node::get_hyphenation_type,
14433         transparent_dummy_node::get_hyphenation_type): New functions.
14435 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
14437         * xditview/libXdvi/draw.c: If M_PI not defined after including
14438         math.h, then define it.
14440         * xditview/Makefile: Add definition of AR. Pass it to the submake
14441         in libXdvi.
14442         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
14444 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
14446         * troff/dictionary.h (object_dictionary::alias): Declare return
14447         value as int.
14448         * troff/dictionary.c (object_dictionary::alias): Return non-zero
14449         if the old name was defined.
14450         * troff/input.c (alias_macro): Give a warning if the old name was
14451         not defined.
14452         * troff/reg.c (alias_reg): Likewise.
14454 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
14456         * troff/input.c (token::next): Delete implementation of \R.
14458         * macros/Makefile: Strip comments from tmac.e while installing it.
14460         * troff/input.c: New variable `nroff_mode'.
14461         (troff_request, nroff_request): New functions.
14462         (init_input_requests): Bind `troff' and `nroff' to troff_request
14463         and nroff_request.
14464         (do_if_request): Compute results of t and n conditions from
14465         nroff_mode.
14467         * text/text.c (split_text): Fix typo in >=.
14469         * eqn/lex.c: Add definition of `==' to def_table.
14471 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
14473         * pic/tex.c (tex_output::start_picture): Change the definitions of
14474         \graph and \graphtemp so that they work properly with Plain TeX.
14476         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
14477         argument to `ar' is not less than the first.
14479         * pic/pic.y: Allow a comma between elements of the variable list
14480         in the argument to `reset'.
14482         * pic/object.c (arc_object::arc_object): Fix computation of
14483         radius.
14485         * eqn/main.c (main): Add exit(0).
14487 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
14489         * troff/div.c (begin_page): Test no_space_mode after doing the
14490         break, but still push the page ejector cookie before doing the
14491         break.  Also set the next page number after doing the break.
14492         
14493         * xditview/xditview.c (NewFile): Don't set the title and icon name
14494         if this is the first file and its name is `-'.
14495         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
14496         the X75 and X100 devices.
14497         (main): If a device has the XT_OPTION flag set and there's exactly
14498         one file argument, pass the driver -xrm and -title options to set
14499         the icon name and window title to the name of the file.
14501         * troff/env.c (environment_switch): If there was an argument but
14502         it wasn't a valid number or name, then pop an environment but
14503         don't give an error message on underflow.
14505         * troff/number.c (start_number): Correct spelling in error message.
14507         * troff/input.c (token::delimiter): Don't print an error message
14508         if err is false.
14510         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
14511         ParseDrawFunction if dw->display_enable is true.
14513 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
14515         * pic/pic.y: Parse text positioning like normal attributes, so as
14516         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
14517         positioning attribute.
14519 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
14521         * tbl/main.c (process_data): When in state START while reading a
14522         text block, don't change to state MIDDLE if c is a newline.
14524 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
14526         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
14527         so as to avoid shadowing parameter.
14529 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
14531         * tbl/table.c (trim_space): Deleted.
14532         (table::add_entry): Don't call trim_space.
14534 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
14536         * VERSION: Change version to 0.6.
14538         * troff/number.c (parse_expr): Make == work.
14540 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
14542         * man/grog.man: New file.
14543         * man/Makefile: Add grog.n to MAN1PAGES.
14544         * etc/grog.sh: New file.
14545         * etc/Makefile: Install grog.sh as grog.
14547 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
14549         * troff/input.c (token::next): Implement \E.
14551 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
14553         * xditview/tmac.X: Change font translations to match tmac.ps.
14555         * troff/input.c (non_empty_name_warning): Don't give a warning if
14556         `\{' terminates the name.
14558 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
14560         * ps/devps/symbol.diff: New file.
14561         * ps/devps/FontMakefile: Mention symbol.diff.
14563 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
14565         * troff/node.c (font_position): Use get_long_name to read the
14566         external_name.
14568         * troff/env.c (environment_switch): If we get a number that's < 0
14569         or >= NENVIRONMENTS, treat it like a name.
14570         Change NENVIRONMENTS to 10.
14572         * troff/groff.h: Remove definition of FONTS_MAX.
14573         * troff/node.h (class font_family): Make map a pointer instead of
14574         an array. Add a map_size member. Make it a class. Make nm const
14575         and public. Make invalidate_fontno a friend.
14576         * troff/node.c: Define font_table_size. Make font_info a pointer
14577         rather than an array.
14578         (class troff_output_file): Allocate font_position dynamically. Add
14579         nfont_positions member.
14580         (troff_output_file::set_font): Grow font_position if necessary.
14581         (troff_output_file::~troff_output_file): Delete font_position.
14582         (troff_output_file::troff_output_file): Allocate font_position.
14583         (grow_font_table): New function.
14584         (troff_output_file::really_begin_page,
14585         troff_output_file:really_copy_page): Use nfont_positions rather
14586         than FONTS_MAX.
14587         (mount_font_no_translate, mount_style): Call grow_font_table if
14588         necessary.
14589         (font_family::font_family): Allocate map.
14590         (font_family::make_definite): Grow map if necessary. Use
14591         font_table_size instead of FONTS_MAX.
14592         (font_family::~font_family): New function.
14593         (invalidate_fontno): Use font_family::map_size.
14594         (get_fontno, env_space_width, env_half_narrow_space_width,
14595         env_narrow_space_width, symbol_fotno, is_good_fontno,
14596         get_bold_fontno, make_glyph_node): Use font_table_size rather than
14597         FONTS_MAX.
14598         (next_available_font_position): Never return 0.
14600 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
14602         * ps/tmac.ps: Add font translations for compatibility with dpost.
14604 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
14606         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
14607         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
14608         Move definitions baseline_sep, shift_down, column_sep,
14609         matrix_side_sep into...
14610         * eqn/box.c: Add them to param_table.
14611         * eqn/pbox.h: Add declarations to pbox.h.
14613         * troff/input.c (set_string): Cast value to unsigned char *.
14615         * troff/token.h (process_input_stack): Declare it static before
14616         declaring it a friend.
14618 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
14620         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
14621         and bottom.
14622         * dvi/devdvi/EX: Regenerate.
14624         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
14625         transparent.
14627 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
14629         * eqn/lex.c: In defaults_table, make definition of `dot' call
14630         `dot_def'.  Don't explicitly make it roman.  Similarily for other
14631         accents.
14633         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
14634         argument.
14635         (for_input::get, for_input::peek): Use this.
14636         (do_for): Add by_is_multiplicative argument.
14637         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
14638         Change semantic value of optional_by to be a double plus a flag
14639         saying whethet the by clause is multiplicative.
14641         * eqn/lex.c (get_delimited_text): Remember location of start of
14642         definition.  Improve error handling when EOF is encountered.
14644         * lib/font.h: Rename handle_x_command to
14645         handle_unknown_font_command.
14646         * lib/font.c (font::load): Call handle_unknown_font_command for
14647         any unknown command in the font description file.  Don't call
14648         handle_x_command. Include the name of the command in the argv.
14649         Improve message for unknown command after kernpairs or charset
14650         command.
14651         * ps/ps.c (ps_font::handle_x_command): Rename to
14652         handle_unknown_font_command.  Remove message about `x download'
14653         command.  Give error message for wrong number of arguments.
14654         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
14655         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
14656         handle_unknown_font_command. Give an error message for wrong
14657         number of arguments.  Rename design_size to designsize.
14658         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
14659         checksum', `designsize' instead of `design_size'.
14661 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
14663         * eqn/*.[chy]: Change underaccent to uaccent.
14665         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
14666         give it the same precedence as ACCENT.
14667         * eqn/other.c (make_underaccent_box): New function.
14668         * eqn/box.h: Declare it.
14669         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
14670         def_table.
14672 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
14674         * pic/pic.y (reset_all): New function. Called in rule for RESET.
14675         (parse_init): Call reset_all.
14676         (define_variable): When defining scale reset only those
14677         pre-defined variables that are scaled.
14678         (defaults_table): Add `scale' as non-scaled value.
14680         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
14681         together with the text; allow any number of positioning words;
14682         allow center as a positioning word.
14684         * pic/object.c (output::compute_scale): Get picture maximum height
14685         and width from variables called maxpswid and maxpsht.
14686         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
14688 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
14690         * pic/object.c (object_spec::make_text): Multiply textht by number
14691         of text items.
14693         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
14694         occur.
14695         (do_sprintf): New function.
14696         (pic.gperf): Add sprintf token.
14697         (text, sprintf): New rules.
14699         * pic/pic.y: `rand()' with no arguments returns a random number
14700         in the range [0,1).
14702         * pic/pic.y: Allow a bare expression to be an attribute: change
14703         precedences to support this.  Change optional_ordinal rule to
14704         optional_ordinal_last to avoid reduce/reduce conflict.
14705         * pic/object.c (object_spec::object_spec): Initialize direction.
14707         * pic/pic.y: Implement ^ operator meaning exponentiation.
14709         * troff/node.h: Add default argument to mount_font.
14710         * troff/node.c (font_position): Read an optional third argument
14711         giving the external_name.
14712         (mount_font): Add optional argument giving the external_name.
14713         (mount_font_not_translate): Have additional argument giving
14714         external name.  Use this name to load the font.  Pass both names
14715         to font_info::font_info.
14716         (font_info::font_info): Have additional argument giving
14717         external_name.
14718         (class tfont): New member external_name.
14719         (font_info::get_tfont): Use external name to construct tfont_spec.
14721 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
14723         * eqn/lex.c (init_table): Add argument giving device.  Define
14724         name of device to be "1".
14725         (do_ifdef): Counts as true if the argument has been defined with
14726         `define'.
14727         * eqn/main.c (main): Call init_table with device argument. Make
14728         device local to main.
14729         * eqn/eqn.h: Change declaration of init_table. Remove declaration
14730         of device.
14732         * pic/lex.c (get_delimited): Allow text to be delimited by
14733         matching {}s.  Don't recognize ending delimiter within a string.
14735         * troff/input.c (get_delim_name): New function.
14736         (token::next): Implement \C.
14738         * lib/font.c (font::load): Grok ---.  Add an alias for each
14739         character based on its code.
14740         (font::get_code_width): Deleted.
14741         * lib/font.h (class font): Declare font::number_to_index().
14742         Remove declaration of font::get_code_width.
14743         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
14744         to indices of named characters.
14745         (font::number_to_index): New function.
14746         * troff/input.c (font::number_to_index): New function.
14747         (get_charinfo_by_number, charinfo::get_number,
14748         charinfo::set_number): New functions.
14749         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
14750         (token::process, token::description, token::get_char,
14751         token::add_to_node_list, token::operator==): Handle
14752         TOKEN_NUMBERED_CHAR.
14753         * troff/charinfo.h: Declare get_charinfo_by_number,
14754         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
14755         charinfo class.
14756         (charinfo::numbered): New function.
14757         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
14758         * troff/env.h (class environment): Remove declaration of ...
14759         * troff/env.c (environment::make_numbered_char_node): Deleted.
14760         * troff/node.c (make_numbered_node): Deleted.
14761         (class numbered_glyph_node): Remove.
14762         (troff_output_file::put_char_width, troff_output_file::put_char):
14763         Handle numbered chars.
14764         (troff_output_file::numbered_char): Removed.
14765         (tfont::get_code_width): Removed.
14766         (make_glyph_node): Don't search special fonts for numbered
14767         characters.
14768         * troff/node.h: Remove declaration of make_numbered_node.
14769         * driver/input.c (do_file): Handle N command.
14770         * driver/printer.h: Add declaration of ...
14771         * driver/printer.c (printer::set_numbered_char): New function.
14772         * dvi/tfmtodit.c (main): Generate unnamed entries.
14773         * ps/devps/afmtodit: Likewise.
14774         * xditview/xtotroff.c (MapFont): Likewise.
14775         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
14777         * tbl/main.c (process_format): If multiple widths are specified
14778         for a column but all the widths are the same, don't give an error
14779         message.
14781         * tbl/table.c (table::do_row): If the current row is all lines and
14782         the stuff doesn't contains a line, mark the top of the row after
14783         printing stuff before the row.  If the current row is not all
14784         lines and the stuff doesn't contain a line, don't unnecessarily
14785         mark the top of the row before printing the stuff.
14786         
14787 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
14789         * troff/groff.h: Remove MAX_PATH.
14790         * troff/input.c (open_file): Dynamically allocate space for the
14791         path.
14792         (open_mac_file, process_macro_file): Corresponding changes.
14794 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
14796         * troff/node.h (class output_file): Make copy_file pure.  Add
14797         vspace method ifdef COLUMN. Add is_printing method.
14798         * troff/node.c: Add class printing_reg. Add class
14799         real_output_file. Derive other output_file classes from
14800         real_output_file; in these classes rename begin_page to
14801         really_begin_page, print_line to really_print_line, copy_file to
14802         really_copy_file, transparent_char to really_transparent_char.
14803         Move output_file::flush to real_output_file. Add printing member
14804         to class output_file.
14805         * troff/div.h: Remove printing member from top_level_diversion.
14806         Add vspace member function to class diversion ifdef COLUMN. Add
14807         some declarations ifdef COLUMN.
14808         * troff/div.c (top_level_diversion::copy_file,
14809         top_level_diversion::transparent_output,
14810         top_level_diversion::output): Don't test printing member before
14811         output.
14812         * troff/input.c: Handle initial variable_space_request ifdef
14813         COLUMN.
14814         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
14815         but comment it out.
14817 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
14819         * troff/div.c (diversion::need): Make any space forced.  If we
14820         sprung a trap, set truncated_space to minus the distance to the
14821         trap and set needed_space to the amount that was needed.
14822         (top_level_diversion::space): A forced space turns no_space_mode
14823         off.
14824         (class constant_vunits_reg): New class.
14825         (init_div_requests): Implement number registers .trunc and .ne
14826         using constant_vunits_reg.
14827         (class truncated_space_reg): Deleted.   
14829         * troff/div.h: Don't have a no_space_mode member in diversion.
14830         Instead have it in top_level_diversion.
14831         * troff/div.c (diversion::diversion): Don't initialize
14832         no_space_mode.
14833         (top_level_diversion::top_level_diversion): Initialize
14834         no_space_mode.
14835         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
14836         (macro_diversion::output): Don't clear no_space_mode.
14838         * troff/input.c (diverted_space_node::reread): Don't call
14839         environment::do_break.  In fill mode, act like a blank line.
14840         (diverted_copy_file_node::reread): Don't call
14841         environment::do_break.
14843         * troff/div.c (blank_line): New function.
14844         * troff/div.h: Declare it.
14845         * troff/input.c (process_input_stack): Call it.
14847         * troff/div.c (truncated_space_reg::get_string): New function.
14848         (init_div_requests): Bind to .trunc.
14849         (space_request, top_level_diversion::space,
14850         top_level_diversion::output, macro_diversion::space,
14851         macro_diversion::output): Update truncated_space.
14852         (macro_diversion::output): Redo calculations when trap sprung.
14853         (macro_diversion::output, macro_diversion::space): No need for
14854         trap_flag.
14856         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
14857         after truncating post line spacing.
14859 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
14861         * ps/devps/prologue (MF, SF): Make them work even if setfont is
14862         defined as a procedure rather than as an operator.
14864 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
14866         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
14868 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
14870         * troff/div.c (top_level_diversion::output): Merge
14871         output_file::print_line and output_file::end_of_line member
14872         functions.
14873         * troff/div.h (class output_file):
14874         * troff/node.c (troff_output_file::print_line,
14875         troff_output_file::end_of_line, output_file::end_of_line,
14876         ascii_output_file::print_line, suppress_output_file::print_line):
14877         Corresponding changes.  
14879 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
14881         * troff/input.c (token::next): Don't give a warning for `\.'.
14883         * troff/env.c (environment::get_center_lines): New function.
14884         (init_env_requests): Bind number register .ce to it.
14885         * troff/env.h: Declare it.
14886         * tbl/table.c (table::init_output): Define reset macro to restore
14887         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
14888         Then do .ce 0.
14889         (table::print): If center option not given, then imply center
14890         option if SAVED_CENTER_REG > 0.
14892 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
14894         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
14895         Troff.ps from DOWNLOAD.
14896         
14897         * troff/Makefile: Change comment in DEFINES to avoid confusing
14898         System V make.
14900         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
14901         code.  Don't try to catch errors with stopped.
14902         (check_line_lengths): New function.
14903         * ps/devps/prologue (EXEC): Deleted.
14904         (EBEGIN, EEND): New procedures.
14906 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
14908         * troff/input.c: Include request.h before node.h.
14909         * troff/node.c: Likewise.
14910         * troff/env.c: Likewise.
14911         * troff/div.c: Likewise.
14912         * troff/node.h (class special_node): Store argument as a macro
14913         rather than a char *.
14914         * troff/node.c (special_node::special_node, special_node::copy):
14915         Grok this.
14916         (special_node::~special_node): Deleted.
14917         (special_node::tprint): Deleted.
14918         (special_node::tprint_start, special_node::tprint_end,
14919         special_node::tprint_char): New functions.
14920         (troff_output_file::special): Deleted.
14921         (troff_output_file::start_special, troff_output_file::end_special,
14922         troff_output_file::special_char): New functions.
14923         * troff/input.c (special_node::tprint): New function.
14924         (do_special): Use macro not char *.
14925         (do_transparent_macro): Deleted.
14926         (token::next): Don't call do_transparent_macro.
14928         * troff/input.c (token::next): Add 'Y' case.
14929         (do_transparent_macro): New function.
14930         * troff/node.c (troff_output_file::special): Handle newlines with
14931         argument using new continuation convention.
14932         * driver/input.c (get_string): Cope with continuation convention.
14933         (do_file): Don't call skip_line after calling get_string(1).
14934         * ps/ps.c (ps_printer::special, ps_printer::do_import,
14935         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
14936         arg.
14937         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
14938         with +.
14940 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
14942         * troff/input.c (asciify): By default, illegal input characters
14943         should return empty string.
14945         * troff/input.c (copy_file): Handle first page transition like title.
14946         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
14948         * troff/input.c (token::next): Improve error message for EOF after
14949         escape character.
14950         (input_char_description): New function.
14951         (get_char_for_escape_name): Use input_char_description.
14952         (token::next): Warn about unrecognized escape sequences.
14953         (warning_table): Add WARN_ESCAPE.
14954         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
14955         accordingly.
14957         * troff/token.h: Remove declaration of process_input_stack.
14959         * troff/input.c: Remove declaration of init_hyphen_requests.
14960         * troff/request.h: Correct spelling in declaration of same.
14962         * troff/input.c (token::next): Check whether escape_char is 0.
14964 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
14966         * groff.c (main, usage, help): Implement -P and -L options.
14967         * groff.sh: Likewise.
14969         * troff/input.c (token::next): Use some gotos to avoid code
14970         duplication.
14972         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
14973         Avoid calling symbol::symbol if name empty.
14975 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
14977         * troff/input.c (init_input_requests): Make \n(.x return the major
14978         version number and \n(.y return the minor version number.
14979         * troff/Makefile: Construct file majorminor.c defining
14980         major_version and minor_version automatically from ../VERSION.
14982         * troff/node.c (class glyph_node): Make operator new and operator
14983         delete public.
14984         (class ligature_node): Similarily.
14986         * troff/input.c (operator==(const macro &, const macro &)): New
14987         function.
14988         (non_interpreted_node::same): Use this.
14989         (string_iterator::string_iterator): Make macro& argument const.
14991         * troff/input.c (input_iterator::get): New function. Don't make
14992         asciify_macro or class non_interpreted_node friends of class
14993         input_iterator.
14994         (non_interpreted_node::interpret): Use input_iterator::get.
14995         (asciify_macro): Likewise.
14997         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
14998         ~non_interpreted_node): Deleted.
14999         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
15000         Deleted.
15002         * troff/symbol.h: Make all symbol member functions const.
15004         * lib/strtol.c: New file.
15005         * lib/Makefile: Add strtol.c.
15006         * Makefile: Define STRTOL as strtol.o to include strtol in
15007         libgroff.a.
15009 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
15011         * pic/troff.c (troff_output::simple_circle): Divide by scale.
15013 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
15015         * troff/input.c (do_special): Use input_level.
15017         * troff/token.h (TOKEN_BACKSPACE): New token.
15018         (token::backspace): New function.
15019         * troff/input.c (token::description, token::next, token::process):
15020         Grok TOKEN_BACKSPACE.
15021         (do_special): Turn TOKEN_BACKSPACE back into \b.
15023         * troff/token.h (token::leader): New function.
15024         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
15026         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
15028         * troff/input.c (do_special): Use token::description in error
15029         message.
15031 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
15033         * troff/input.c (decode_args): Combine quoted and
15034         quote_input_level variables. Make it a for (;;) loop.
15036         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
15038         * troff/input.c (read_long_escape_name): The test for whether to
15039         expand buffer was off by 1.
15040         (read_string): Similarily.
15042 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
15044         * troff/input.c: Use `const int' rather than `static const int'.
15046         * troff/div.h (diversion::copy_file): Declare as pure virtual.
15047         (macro_diversion::copy_file): New function.
15048         * troff/node.h: New class diverted_copy_file_node.
15049         * troff/node.c: Implement it.
15050         * troff/input.c (copy_file): Use diversion::copy_file. Handle
15051         first page transition by pushing a diverted_copy_file_node.
15052         * troff/input.c (token::next, process_input_stack): Don't handle
15053         COPY_FILE_REQUEST.
15055 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
15057         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
15058         whether space widths need adjusting.
15060         * troff/charinfo.h: Generalize translated_to_space to
15061         special_translation so as to allow translation to \&.
15062         * troff/input.c (translate): Allow translation to \&.
15063         (charinfo::*): Corresponding changes.
15064         * troff/node.c (make_node, node::add_char): Corresponding changes.
15065         * troff/node.h (dummy_node::dummy_node): Allow optional first
15066         argument.
15068         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
15069         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
15070         TOKEN_REQUEST.
15071         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
15072         TOKEN_REQUEST with an argument of TITLE_REQUEST.
15073         (token::process): Grok that.
15074         * troff/input.c (copy_file): Handle first page transition like
15075         title by pushing a COPY_FILE_REQUEST cookie.
15076         (token::next, process_input_stack): Grok that.
15077         * troff/node.h (output_file::copy_file): Add x and y arguments.
15078         Make it non-pure.
15079         * troff/div.c (top_level_diversion::copy_file): Supply them.
15080         * troff/node.c (troff_output_file::copy_file): Add x and y
15081         arguments; moveto specified position.  Invalidate font_position
15082         array after copying file.
15083         (output_file::copy_file): New function.
15084         (suppressed_output_file::copy_file, ascii_output::copy_file):
15085         Removed.
15086         * troff/input.c (transparent_file): New function.
15087         (init_input_requests): Bind to "trf".
15088         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
15089         (process_input_stack): Likewise.
15091         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
15093         * troff/node.c (init_node_requests): New number registers .kern
15094         pointing to global_kern_mode, and .lg pointing to
15095         global_ligature_mode.
15097         * troff/node.c (ligature): Don't change it if we get a bad
15098         integer.
15100         * troff/input.c (do_define_string): Don't strip tabs.
15102         * troff/input.c (asciify_macro): Make the string_iterator auto.
15104         * troff/node.c (init_font_requests): Rename to...
15105         (init_node_requests):
15106         * troff/node.h: Change declaration.
15107         * troff/input.c (main): Change call.
15109         * troff/input.c (node::reread, diverted_space_node::reread): New
15110         methods.
15111         (process_input_stack): Call reread rather than
15112         get_diverted_space_node.
15113         * troff/node.c (node::get_diverted_space_node,
15114         diverted_space_node::get_diverted_space_node): Removed.
15115         * troff/node.h: Declare reread methods instead of
15116         get_diverted_space_node methods. Make `n' member private.
15117         * troff/input.c: (token::diverted_space): Removed.
15118         * troff/token.h: Removed declaration.
15119         
15121 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
15123         * eqn/script.c (script_box::compute_metrics): Don't let
15124         SUP_RAISE_FORMAT become negative.
15126         * tbl/table.c (table::do_row): Entries that don't end in the
15127         this row shouldn't make the row non-blank.
15128         
15129         * tbl/table.c (table::make_columns_equal): Only set the width of
15130         columns which are marked as equal.
15131         
15132         * tbl/main.c (process_data): Before issuing excess data error,
15133         if last character was a newline unget it; then get it again after
15134         the error.  Also include the contents of the entry in the message.
15136         * groff.c: New file.
15137         * Makefile: Build groff from groff.c.  Make it possible to use
15138         either groff.sh or groff.c as groff.
15139         * Makefile.bd: Similarily.
15141 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
15143         * groff.sh: Don't delay expansion of $@ in assignment to files.
15144         Remove occurrences of \".
15146 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
15148         * all Makefiles: Simplify and rearrange.
15150         * Makefile: Handle fmod like malloc.
15151         * lib/Makefile: Similarily.
15152         * lib/fmod.c: Remove #ifdef NEED_FMOD.
15154         * Makefile: Rename OPTIMISE to OPTIMIZE.
15156         * groff.sh: Remove assignment to PATH.
15157         * Makefile: Remove SHPATH variable.
15158         * Makefile.bd: Similarily.
15160         * groff.sh: Add -V option to print the pipeline instead of
15161         executing it.
15163 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
15165         * lib/font.c: Split off file searching into ...
15166         * lib/fontfile.c: New file.
15168         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
15170 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
15172         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
15173         Also change misleading comment.
15174         (table::do_vspan): Change similarily misleading comment.
15175         * tbl/main.c (process_data): A format row with an explicit `s'
15176         uses up a data line, even if all the other columns are `_' or `='.
15178         * troff/input.c (token::description): Fix description of
15179         TOKEN_DUMMY and TOKEN_EMPTY.
15181 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
15183         * groff.sh: Fix description of -Z in help message.
15185 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
15187         * pic/object.c (object_spec::make_object): Allow negative and zero
15188         line thicknesses.
15189         * pic/pic.y: Give linethick default value of -1.0.
15190         * pic/troff.c (troff_output::troff_output): Initialize
15191         last_line_thickness to BAD_THICKNESS.
15192         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
15193         (troff_output::line_thickness): Canonicalize negative thicknesses
15194         to RELATIVE_THICKNESS.
15195         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
15196         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
15197         to -1.0.
15198         (tex_output::start_picture): Set pen_size to -2.0.
15200         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
15201         0, then use 0 linewidth.
15202         (ps_printer::ps_printer): Initialize line_thickness to -1.
15204         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
15206         * ps/devps/symbolchars: Remove `or'.
15207         * ps/tmac.ps: Implement \(or with .char.
15209         * ps/devps/symbolchars: Move most characters into textmap.
15210         * ps/devps/textmap: Add names for troff bracket characters. Remove
15211         ul, ru, br, bv.
15213         * ps/devps/TSymbol.ps: Removed.
15214         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
15215         * ps/tmac.ps: Do with .char what TSymbol did.
15216         * ps/devps/download: Remove TSymbol.
15218         * ps/devps/T: Removed.
15219         * ps/devps/Troff.ps: Removed.
15220         * ps/devps/Troff.afm: Removed.
15221         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
15222         * ps/devps/download: Remove Troff.
15223         * ps/devps/FontMakefile: Remove T target.
15224         * ps/devps/DESC-A4: Remove T from font list.
15225         * ps/devps/DESC-letter: Likewise.
15227         * troff/input.c (macro_to_node): Rename to ...
15228         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
15229         character's definition while processing it.
15230         * troff/node.c (node::add_char, make_node): Change calls to
15231         macro_to_node accordingly.
15233         * troff/input.c (token::next): Translate \_ to \(ul.
15235         * tty/devascii/R.proto: Add `|'.
15236         * tty/devlatin1/R.proto: Likewise.
15238 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
15240         * man: Put the version number in all the man pages.
15242 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
15244         * Makefile.bd: New file.
15245         * README.bd: New file.
15247         * VERSION: New file.
15248         * lib/version.c: Removed.
15249         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
15250         in clean target.
15252         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
15253         environment variable.
15255         * all Makefiles: Split install target into install.bin for
15256         binaries, and install.nobin for everything else.
15257         * Makefile: Add bindist target.
15259         * man/afmtodit.man: New file.
15260         * man/Makefile: Add afmtodit.n to MAN1PAGES.
15261         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
15262         in BINDIR.
15263         * ps/Makefile: Pass BINDIR to make install in devps.
15265         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
15266         the space character.
15268         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
15270 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
15272         * ps/ps.c: Redo font downloading.
15273         * ps/devps/download: New file.
15274         * ps/devps/Makefile: Add download to DEVICEFILES.
15275         * ps/devps/afmtodit: Remove -d option.
15276         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
15277         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
15278         * ps/devps/zapfdr.ps: Likewise.
15279         * ps/devps/TSymbol.ps: Likewise.
15281 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
15283         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
15285 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
15287         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
15288         then strip the first line if it starts with %.
15289         * Makefile: Add a comment about this.
15291         * man/tfmtodit.man: New file.
15292         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
15293         * dvi/Makefile: Install tfmtodit in BINDIR.
15295         * dvi/tfmtodit.c (usage): Mention -v option.
15297 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
15299         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
15300         * troff/node.c (troff_output_file::transparent_char): Don't call
15301         flush_tbuf.
15303         * eqn: Add check_tabs method to most box classes.
15304         * eqn/box.c (box::top_level): Call check_tabs.
15306         * eqn/script.c (script_box::output): Use \Z.
15307         * eqn/limit.c (limit_box::output): Use \Z.
15309         * eqn/box.c (box::top_level): Use itoa.
15311 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
15313         * dvi/tmac.dvi: Add font translations for CR, C, TT.
15314         * dvi/devdvi/Makefile: Don't make links to CW.
15316         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
15317         HX, HD.
15318         * xditview/tmac.X: Likewise.
15320         * troff/node.c: Add font translation feature.
15321         (get_font_translation): New function.
15322         (symbol_fontno): Translate the font name.
15323         (mount_font_no_translate): Rename to mount_font to this.
15324         (mount_font): New function.
15325         (font_family::make_definite): Call mount_font_no_translate instead
15326         of mount_font.
15327         (mount_style): Translate the font name.
15328         (font_translate): New function.
15329         (init_font_requests): Bind "ftr" to font_translate.
15331         * ps/devps/prologue (SN): New procedure that rounds a position to
15332         the nearest (pixel + (.25,.25)).
15333         (DL): Use SN to round endpoints.
15335         * lib/version.c: Changed version to 0.5.
15337 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
15339         * Makefile: Move definition of PAGE to the very beginning, so that
15340         people are less likely to miss it.
15342 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
15344         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
15346         * troff/env.c (environment::choose_breakpoint): Make `can't find
15347         breakpoint' error a warning of type WARN_BREAK.  Change message to
15348         `can't break line'.
15349         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
15350         code 040000.
15351         * troff/input.c: Add WARN_BREAK to warning_table.  Include
15352         WARN_BREAK in DEFAULT_WARNING_MASK.
15354         * tty/tmac.tty: Add definition of \(+-.
15356         * groff.sh: Remove `--' option to set command.
15358         * dvi/devdvi/texsy.map: Remove duplicate md entry.
15360         * ps/devps/eqnchar: Better definition of cdot using md.
15361         * dvi/devdvi/eqnchar:  Likewise.
15362         * xditview/devX100/eqnchar:  Likewise.
15363         * xditview/devX75/eqnchar: Likewise.
15364         * eqn/lex.c: Add definition of cdot.
15366 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
15368         * troff/input.c (get_optional_char): New function.
15369         * troff/input.c (set_page_character): Use get_optional_char(),
15370         rather than has_arg() and tok.get_char(1).
15371         * troff/env.c (tab_character, leader_character, hyphen_char,
15372         field_characters): Likewise.
15373         (margin_character): Likewise.  Also always delete the
15374         margin_character_node.
15376         * troff/input.c (token::get_char): Use token::description.
15378         * troff/input.c (has_arg): Don't skip over tab and \}.
15379         * troff/number.c (start_number): Give a warning if the number
15380         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
15382 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
15384         * troff/input.c (empty_name_warning, non_empty_name_warning): New
15385         functions.
15386         (get_name, get_long_name): Use these.  Rename `warn' argument to
15387         `required'.
15389         * troff/node.c (get_fontno): Test that the symbol is not null.
15391         * troff/input.c (token::description): New function.
15392         * troff/number.c (parse_term): Use token::description in `numeric
15393         expression expected' message.
15394         * troff/groff.h: Add WARN_MISSING.
15395         * troff/number.c (start_number): New function.
15396         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
15397         get_incr_number): Use start_number().
15398         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
15399         default.
15400         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
15401         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
15402         token::descripion.
15403         * troff/input.c (token::get_char): Use WARN_MISSING.
15404         * troff/input.c (token::delimiter): Use token::description.
15405         * troff/env.c (environment_switch): Back out Aug 3 change.
15406         * troff/input.c (has_arg): Skip over \}s and tabs but give a
15407         warning.
15408         * troff/token.h (token::tab): New function.
15409         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
15410         * troff/reg.c (alter_format): Likewise.
15411         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
15413 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
15415         * troff (most files): Redo warnings. Divide warnings into various
15416         categories; warning() has an additional first argument indicating
15417         the category it falls into.
15418         * troff/input.c (main): -w now takes an argument. New option -W.
15419         (enable_warning, disable_warning): New functions.
15421         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
15422         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
15424 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
15426         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
15427         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
15428         * xditview/devX75/eqnchar: Likewise.
15429         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
15431         * eqn/other.c: When bar or over applies to a single character
15432         don't produce an overline_box or an underline_box. Instead produce
15433         an accent_box or an underaccent_box, with the accent a line
15434         whose width is accent_width.  New classes underaccent_box,
15435         overline_char_box and underline_char_box.
15436         * eqn/box.h: Move overline_box, underline_box, accent_box class
15437         declarations into eqn/other.c. Add declarations of
15438         make_underline_box, make_overline_box, make_accent_box.
15439         * eqn/eqn.y: Call make_overline_box, make_underline_box
15440         make_accent_box instead of constructors.
15441         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
15443         * eqn/other.c: Add accent_box::~accent_box.
15444         * eqn/box.h: Declare it.
15446         * groff.sh: With -Tps, use eqn -D.
15448         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
15449         rather than \l.
15450         (underline_box::output): Similarily.
15451         (accent_box::output): Use \Z.
15453         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
15454         bit smaller.)
15456 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
15458         * troff/div.c (top_level_diversion::transparent_output(unsigned
15459         char)): Use asciify.
15460         * troff/input.c (asciify): Don't make it static.
15461         * troff/token.h (asciify): Declare it.
15462         
15463         * troff/input.c (get_name, get_long_name, token::get_char,
15464         token::delimiter): Add an extra default argument which says
15465         whether a warning should be printed.
15466         * troff: Pass a non-zero argument to one of these rather than
15467         printing a warning directly.
15469 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
15471         * troff: Consistently use symbol::is_null.
15473         * troff/dictionary.h: Move some inline functions into
15474         dictionary.c.
15476         * troff/request.h: Move inline functions into input.c.
15477         (request_or_macro::invoke): Make it pure.
15479         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
15480         * troff/input.c (init_input_requests): Use class constant_int_reg.
15481         (class compatible_reg): Deleted.
15482         * troff/div.c (init_div_requests): Use class constant_int_reg.
15483         (class last_post_line_extra_space_reg): Deleted.
15485         * troff/env.c (tab_character): Don't change the tab character if
15486         we get an invalid argument.
15487         (hyphen_char): Similarily.
15489         * troff/reg.c (alter_format): Check that nm is not null.
15491         * Makefile, groff.sh: Make it possible to customize the commands
15492         used for printing PostScript and dvi files. Also make it possible
15493         to customize the path used by groff.sh.
15495         * eqn/eqn.y: Make `left' right associative.
15497 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
15499         * pic/pic.h: Added definition of M_SQRT2 for those systems that
15500         don't have it.
15502         * pic/pic.h: Removed definition of INT_MAX.
15504         * troff/node.c (italic_corrected_node::vertical_extent): Omit
15505         `return'.
15507         * troff/input.c (token::next):  Handle \R like \n.
15509 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
15511         * ps/tmac.pc (PSPIC): Simplify.
15513         * troff/env.c (tab_stops::to_string):
15514         * pic/pic.y (object_type_name):
15515         * pic/troff.c (simple_output::line):
15516         * pic/tex.c (tex_output::spline):
15517         * pic/object.c (object_spec::make_object):
15518         * tbl/main.c (process_data):  Add cases to switch statements to
15519         avoid cfront warnings. (Some of these are spurious, since the
15520         switch already has a default case.)
15522         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
15523         `ps-'.  Don't test systat; instead check number of arguments to
15524         ps-bb.
15526 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
15528         * macros/tmac.e: Do not decrease the page offset by 0.5i.
15530         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
15531         Unlink the file as soon as we have opened it, so that we don't
15532         have to bother with signal handlers.
15533         (handler): Deleted.
15534         (fatal_error_exit): Deleted.
15535         (main): Don't call signal.
15537         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
15538         can be ignored.
15539         * dvi/devdvi/Makefile: Use the -k option with S and MI.
15541         * pic/pic.y:  If there is a label, or an nth construction before
15542         the first `.' in the argument to `with', ignore it and generate a
15543         warning.
15544         * pic/lex.c (lex_warning): New function.
15546         * tbl/table.c (table::init_output): In section keep and release
15547         macro, use 0 indent when diverting and the correct indent when
15548         rereading.
15550         * troff/input.c (interpolate_number_format): Do not interpolate
15551         anything if the number register is not defined.
15553         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
15555 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
15557         * ps/devps/prologue (PICTURE): Set components of graphics state to
15558         their default values.
15560         * ps/devps/text.enc: Add trademark
15561         * ps/devps/textmap: Add names for club, spade, heart, diamond,
15562         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
15563         * ps/devps/symbolchars: Add names for summation and product.
15565         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
15566         suchthat. Add pp. Add upper-case letters.
15568         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
15569         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
15570         Upsilon.
15572         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
15573         rA (right angle bracket) to ra.  Introduce names for double-headed
15574         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
15575         * ps/devps/textmap: Likewise for ps device.
15576         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
15577         * tty/devascii/R.proto: Rename lA to la and rA to ra.
15578         * tty/devascii/R.proto: Likewise.
15579         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
15580         \(uA, \(dA.
15581         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
15583         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
15585         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
15586         def_table.
15588 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
15590         * troff/div.c (when_request): Use symbol::is_null rather than
15591         has_arg to determine whether we have an argument.
15592         (change_trap): Remove the trap if we get an invalid number. Give
15593         an error if we don't get at least the macro name.
15594         (diversion_trap): Remove trap if we get an invalid name or number.
15596         * troff/env.c (environment_switch): Pop if we get an invalid
15597         symbol or numeric expression.
15599         * troff/input.c (do_define_macro):  If EOF is encoutered while
15600         defining the macro, do tok.next() before returning.
15602         * troff/token.h (has_arg): Move definition from here, to ...
15603         * troff/input.c (has_arg): ... here
15605         * troff/env.c (space_size): Do nothing if we get an invalid argument.
15606         * troff/input.c (shift): Likewise.
15608         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
15609         for `.c'.
15611         * pic/troff.c (troff_output::start_picture):  Comment out calls to
15612         `..'.
15614         * eqn/main.c (do_file): Subtract 1 from current_lineno if
15615         interpret_lf_args succeeds.
15617         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
15618         \\.  This avoids problems with \$N.
15620         * groff.sh: Pass -C to preprocessors.
15622         * lib/lf.c (interpret_lf_args):  Be more flexible.
15624         * tbl/main.c (main): Add -C option.
15625         (table_input::get): Do not recognize TE if followed by character
15626         other than a space or newline unless -C option given.
15627         (process_input_file): Likewise for lf, TS.
15628         (process_data): Likewise for lf in text blocks.
15630         * eqn/main.c (main): Add -C option.
15631         (do_file): Don't recognize EQ, EN or lf if followed by character
15632         other than space or newline unless -C option given.
15633         * eqn/lex.c (file_input::read_line): Similarily.
15634         * eqn/eqn.h: Declare compatible_flag.
15636         * etc/soelim.c (main): Add -C option.
15637         (interpret_lf_args): Use version in libgroff.
15638         (do_file):
15640         * pic/main.c (main): Add -C option, which sets compatible_flag.
15641         (top_input::get), (top_input::peek):  If -C option not given,
15642         do not recognize .PS/.PE/.PF/.lf if followed by a character
15643         other than space or newline.
15644         * pic/lex.c (file_input::read_line): Similarily.
15645         * pic/pic.h: Add declaration of compatible_flag.
15647 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
15649         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
15651         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
15652         derived from node.  New class space_char_hmotion_node.
15653         * troff/input.c (asciify_macro): New function.
15654         * troff/input.c (init_input_requests): New request `asciify' bound
15655         to asciify_macro.
15656         * macros/mm.diff: New file.
15657         * Makefile:  In install.mm target use `patch' to apply
15658         macros/mm.diff.
15660         * troff/input.c (macro::print_size): Just print the size in bytes.
15662         * troff/div.c (return_request): Correct the argument
15663         interpretation.
15665 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
15667         * troff/node.h (class composite_node): Add sz member.
15668         * troff/node.c (composite_node::size): Return sz.
15669         * troff/input.c (macro_to_node):  Use the initial size in the
15670         environment as the size of the composite_node.
15672         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
15673         default.
15675 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
15677         * troff/div.c (change_trap): If we get a bad number expression,
15678         do nothing.
15680 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
15682         * lib/matherr.c (matherr): Define this only if math.h defines
15683         TLOSS.
15685 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
15687         * troff/div.c (macro_diversion::distance_to_next_trap): If there
15688         no diversion trap return vunits(INT_MAX - vresolution).
15690 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
15692         * troff/input.c (do_zero_width): New implementation that doesn't
15693         use a temporary environment. Use instead:
15694         (token::add_to_node_list): New function.
15695         * troff/env.c (environment::get_prev_char_height),
15696         (environment::get_prev_char_height),
15697         (environment::get_prev_char_skew): New functions.
15698         (environment::get_prev_char): New function.
15699         (environment::get_prev_char_width): Change to use get_prev_char.
15700         (init_env_request): Implement new registers .cht, .cdp, .csk.
15701         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
15702         \Z being processed in a separate environment.
15704 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
15706         * tbl/table.c: Removed TABLE_BOTTOM_REG.
15708         * tbl/table.c (table::init_output): In the section release macro,
15709         give a warning message if the section won't fit on one page.
15711         * tbl/table.c (table::do_top): Emit table keep only if table is
15712         boxed.
15713         (table::do_bottom): Likewise for table release.
15714         (table::table), (table::add_vertical_rule):  Remove reference to
15715         keep member.
15716         * tbl/table.h: Remove keep member.
15718         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
15719         SECTION_RELEASE_MACRO, if there's not enough space before the next
15720         trap to output the diversion, call T# ourselves, set
15721         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
15722         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
15723         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
15724         vertical position and return to it before turning traps on again.
15725         
15726 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
15728         * troff/node.c, troff/node.h: In classes derived from node,
15729         replace prev_char_width method by last_char_node method.
15730         * troff/env.c (environment::get_prev_char_width): Use
15731         node::last_char_node rather than node::get_prev_char_width.
15733         * Makefile: Added comment about -fno-inline on 68030-based
15734         Apollos.
15736         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
15737         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
15738         expressions using sizeof to int.
15739         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
15741         * macros/tmac.e (TS):  Don't move @f back past the current
15742         position.
15744 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
15746         * ps/ps.c (main): Buffer stderr.
15747         * dvi/dvi.c (main): Likewise.
15748         * tty/tty.c (main): Likewise.
15750         * ps/ps.c (ps_printer::do_import): Improve error handling.
15752         * troff/input.c (abort_request): Use asciify.
15754         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
15755         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
15756         type of first argument int rather than char.  This works around a
15757         bug on the 68030 based Apollo using g++ 1.37.1.
15759         * tbl/table.h (class table): Add `keep' member.
15760         * tbl/table.c (table::table): Initialize `keep'.
15761         (table::add_vertical_rule): Set `keep' to 1.
15762         (table::do_top): Only emit table keep macro is `keep' is non-zero.
15763         (table::do_bottom): Likewise for table release macro.
15764         (table::do_row): Emit section keep macro even if the row is 0.
15766 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
15768         * macros/tmac.e (@C): Preserve the font family across the change
15769         in environments.
15771 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
15773         * lib/font.c: Initialize font::hor and font::vert to 1.
15774         (font::load_desc): Check the values of font::hor and font::vert.
15776         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
15777         be included in a C compilation.
15778         (iftoa): Use INT_DIGITS. Include lib.h.
15779         (itoa): Likewise.
15780         (as_string): Likewise.
15781         * tbl/table.c: Removed definition of INT_DIGITS.
15782         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
15783         * troff/input.c (input_input_requests): Likewise.
15784         * ps/ps.c (make_encoding_name): Likewise.
15785         (ps_printer::set_style): Likewise.
15786         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
15788         * tty/devascii/R.proto: Map fm onto '.
15789         * tty/devlatin1/R.proto: Likewise.
15791 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
15793         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
15794         argument to \w is at a different input level.
15796         * tbl/table.c (table::init_output): Define a new macro
15797         REPEATED_VPT_MACRO, like vpt but if in a diversion also
15798         transparently outputs itself.
15799         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
15800         vpt.
15801         (table::do_row): Likewise.
15803         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
15804         TRANSPARENT_STRING_NAME.
15806         * tbl/table.c (table::init_output): In the table release macro
15807         print an error message and don't produce any output if after
15808         issuing the need request the table still will not fit.  Also
15809         remove the diversion after bringing it back.
15811         * tbl/table.c (table::init_output): Define a new macro
15812         REPEATED_MARK_MACRO, like mk but if in a diversion also
15813         transparently outputs itself.
15814         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
15815         is necessary because .TH might not call .T#.
15816         (table::do_top): Likewise TOP_REG.
15817         (table::define_bottom_macro): If TOP_REG is no longer valid, use
15818         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
15819         table header might contain just the two top rules.
15821 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
15823         * troff/div.c: Implement new request `ptr' to print all traps.
15825         * troff/env.c (init_env_requests): Implement `.tabs' reg with
15826         init_string_env_reg.
15827         * troff/env.c (class tab_reg): Deleted.
15829 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
15831         * troff/div.c: New number register .pn returns the number of the
15832         next page as set by the pn request.
15834         * macros/tmac.an: Redid headers and footers.  Number each manual
15835         entry starting from 1 unless \nC is > 0, like Sun.  Added an
15836         optional 5th argument to .TH which specifies the manual name and
15837         appears in the center of the header.  Understand the X, P and D
15838         registers like Sun.
15840 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
15842         * troff/env.c (init_env_requests): New number register `.lt' to
15843         return the title length.
15845         * troff/node.h (class transparent_dummy_node): New class.
15846         * troff/node.c (class transparent_dummy_node): Provide member
15847         functions. 
15848         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
15849         than a dummy_node.
15851         * troff/input.c (token::next): New escape sequence \).
15852         * troff/input.c (get_copy): Recognize \) in copy mode.
15854         * troff/input.c (input_stack::clear): New function.
15855         * troff/input.c (exit_request): Use input_stack::clear.
15857         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
15858         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
15860         * troff/env.c: Move set_page_character to input.c.  Move
15861         page_character to input.c also.
15862         * troff/env.c (title): Split off the reading of the parts of the
15863         title into read_title_parts.
15864         * troff/input.c (read_title_parts): New function.  Check the
15865         input_level when testing whether a token matches the delimiter.
15867         * troff/input.c (exit_request): New function.
15868         * troff/input.c (init_input_requests): Bind ex request to
15869         exit_request rather than exit_groff.
15871         * troff/input.c (exit_groff): Call tok.next() before
15872         process_input_stack().
15874 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
15876         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
15877         * troff/env.h: ditto.
15878         * troff/input.c: ditto.
15880         * troff/env.c (environment::is_empty): Test pending_lines.
15882         * troff/env.c (environment::have_pending_lines): Removed.
15884         * troff/input.c: Add request to flush pending lines from the
15885         environment.
15887         * troff/env.c, troff/env.h: Add automatic widow control feature.
15889         * troff/input.c (exit_groff):  Do process_input_stack() after
15890         do_break() but before setting exit_flag to 2.
15892         * troff/input.c: Remove FLUSH_PENDING_LINES and
15893         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
15894         environment after END_TRAP token seen, but only if there aren't
15895         any more traps still unfinished.
15896         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
15898 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
15900         * troff/env.c: Rename the `retain_size' member of class
15901         pending_output_line to `no_fill'.
15903         * troff/env.c (title): When the line is output, make the
15904         retain_size argument !fill.
15906         * troff/node.h: Add `hyphenated' member to struct breakpoint.
15907         * troff/node.c (space_node::get_breakpoints),
15908         (dbreak_node::get_breakpoints):  Fill this in.
15909         * troff/env.c:  Allow specification of maximum number of
15910         consecutive hyphenated lines.
15912         * troff/env.c (environment::is_empty): Add test for !current_tab.
15914 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
15916         * troff/env.c (environment::hyphenate_line): Don't completely give
15917         up if the word is not to be hyphenated; continue so that breaks
15918         can be made at break_char_node's.
15920         * lib/lib.h: Only define INT_MAX if it's not already defined;
15921         undef INT_MIN if it's already defined.
15923         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
15925         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
15926         This works around a bug in AT&T C++ 2.0 used with an ANSI C
15927         compiler.
15928         
15929         * macros/tmac.an (an-header): Set no-space mode.
15931         * macros/tmac.an (TH): Start a new page if necessary.
15933         * Started using ChangeLog at version 0.4.
15935 Local Variables:
15936 version-control: never
15937 coding: latin-1
15938 End: