Finally fix change 2003-08-26, based on ideas from Chuck Silvers
[s-roff.git] / ChangeLog
blob1345ac5b46a7c1b6d0c6714365c09c27bf0e990d
1 2003-10-13  Werner LEMBERG  <wl@gnu.org>
3         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
4         <chuq@chuq.com>.
6         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
7         directory.
9 2003-10-12  Werner LEMBERG  <wl@gnu.org>
11         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
12         src/roff/troff/input.cc (usage): Updated.
14         * NEWS, doc/groff.texinfo: Updated.
16 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
18         * src/libs/libgroff/searchpath.cpp
19         (search_path::open_file_cautious): New function which also handles
20         `-' as stdin and stdout depending on the access mode.
21         * src/include/searchpath.h (search_path): Updated.
23         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
24         * src/devices/grops/ps.h: Include `searchpath.h'.
25         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
26         Open resource file with `include_search_path.open_file_cautious'.
27         * src/devices/grops/grops.man: Document new `-I' switch.
29         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
30         (main), src/devices/grolj4/lj4.cpp (main),
31         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
33         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
34         Replaced with...
35         (include_search_path): New global variable.
36         (include_path_append): Removed.
37         (main): Use `include_search_path.command_line_dir' to handle `-I'.
38         (do_file): Simplify, using new
39         `include_search_path.open_file_cautious'.
41         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
42         parameter.
43         (main): Pass arguments to `-I' to both troff and devices.
44         Improve handling of `-V'.
45         * src/roff/groff/groff.man: Document changes to -I and -V.
47         * src/roff/troff/input.cpp (include_search_path): New global
48         variable.
49         (next_file, source, ps_bbox_request, transparent_file,
50         process_input_file): Use new
51         `include_search_path.open_file_cautious'.
52         (main) Handle `-I' switch.
53         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
54         Use new `include_search_path.open_file_cautious'.
55         * src/roff/troff/node.h: New extern symbol `include_search_path'.
56         * src/roff/troff/troff.man: Document new `-I' switch.
58 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
60         Support multiple calls of .Lb in LIBRARY section.
62         * tmac/doc-common (doc-in-library-section): New register.
63         (doc-section-library): New string.
64         (Sh): Set `doc-in-library-section'.
65         (Rd): Updated.
66         * tmac/doc-syms (Lb): Insert breaks before and after arguments
67         if in LIBRARY section.
68         * tmac/doc.tmac (doc-save-global-vars): Updated.
69         * NEWS, tmac/groff_mdoc.man: Updated.
71 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
73         * tmac/doc-common (doc-default-operating-system): New variable.
74         (Os): Use it.
76 2003-09-08  Werner LEMBERG  <wl@gnu.org>
78         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
80 2003-08-31  Werner LEMBERG  <wl@gnu.org>
82         * contrib/mom/Makefile.sub: Fix last change to make it really work.
83         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
84         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
85         $(DEVFILES) are not empty.
86         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
88 2003-08-26  Chuck Silvers  <chuq@chuq.com>
90         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
91         with parallel runs of `make'.
93 2003-08-23  Stephen Gildea  <gildea@stop.mail-abuse.org>
95         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
96         insert SORT_SEP.  With certain combinations of sort specifications,
97         refer sorted entries in the wrong order.  In particular, entries
98         with a missing field should be be sorted before all entries that
99         have that field, before refer looks to the next field.
101 2003-08-23  Werner LEMBERG  <wl@gnu.org>
103         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
104         g++ linker is used.  Reported by Mark J. Reed
105         <mark.reed@turner.com>.
107 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
109         Add key character `x' to tbl which makes tbl call a user-defined
110         macro on a table cell.
112         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
113         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
114         `set_modifier' after printing the compatibility request.
115         (set_modifier): Print call to `m->macro' if not empty.
116         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
117         `macro'.
118         (process_format): Implement cases `x' and `X'.
119         * src/preproc/tbl/tbl.man, NEWS: Updated.
121 2003-08-15  Werner LEMBERG  <wl@gnu.org>
123         * doc/groff.texinfo: Minor fixes.
125 2003-08-09  Werner LEMBERG  <wl@gnu.org>
127         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
129 2003-08-07  Werner LEMBERG  <wl@gnu.org>
131         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
132         argument list to nothing if there is no file to match.  Use `ls' as
133         a protection, similar to autoconf.
135         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
136         empty argument lists.
138         * doc/groff.texinfo: Improve documentation how vertical spacing
139         and line breaks interact.
140         Other minor fixes.
142         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
144 2003-08-03  Werner LEMBERG  <wl@gnu.org>
146         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
147         EPS (using eps2eps or similar programs to compute the bounding box).
149 2003-07-24  Werner LEMBERG  <wl@gnu.org>
151         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
152         * doc/texinfo.tex: Updated from texinfo 4.6.
153         * README.CVS: From now on we need texinfo 4.6.
155 2003-07-23  Werner LEMBERG  <wl@gnu.org>
157         Add requests `dei1' and `ami1' for completeness.
159         * src/roff/troff/input.cc (calling_mode): Remove
160         CALLING_DISABLE_COMP.
161         (comp_mode): New enumeration.
162         (do_define_string, define_string, define_nocomp_string,
163         append_string, append_nocomp_string): Updated.
164         (do_define_macro): Add third parameter.
165         (define_macro, define_nocomp_macro, define_indirect_macro,
166         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
167         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
168         functions.
169         (ignore): Updated.
170         (init_input_requests): Add `dei1' and `ami1'.
172         * tmac/trace.tmac: Handle de1 and am1.
173         (de): Improve tracing message.
174         (am): Add missing `do'.
175         (return): Use de1.
177         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
178         Document new requests.
180 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
182         Add option -G to .MPIMG to insert a gap between text and the image.
184         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
185         www-finish-left-ll): Updated.
186         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
187         (MPIMG): Make option -L and -R optional.
188         Implement option -G.
190 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
192         * src/devices/grohtml/post-html.cpp
193         (html_printer::do_file_components): Don't use `stdout' as lvalue
194         since it can be a macro.
196 2003-07-22  Werner LEMBERG  <wl@gnu.org>
198         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
199         the corresponding test in aclocal.m4.
201 2003-07-21  Werner LEMBERG  <wl@gnu.org>
203         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
204         names but RGB values directly.  Otherwise pnmtopng depends on
205         an external file `rgb.txt' which maps colour names to values.
207 2003-07-20  Werner LEMBERG  <wl@gnu.org>
209         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
210         * configure, src/include/config.hin: Regenerated.
212         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
214 2003-07-19  Werner LEMBERG  <wl@gnu.org>
216         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
218 2003-07-18  Werner LEMBERG  <wl@gnu.org>
220         * *.man: Switch to non-compatibility mode temporarily if GNU
221         syntax extensions are used in the particular man page.
223         * PROBLEMS: Add solutions for SGR problems.
225 2003-07-17  Werner LEMBERG  <wl@gnu.org>
227         Don't ignore grotty's command line options if \X'tty: sgr ...' is
228         used to change the drawing scheme.
230         * src/devives/grotty/tty.cpp (bold_flag_option,
231         underline_flag_option, italic_flag_option, reverse_flag_option,
232         bold_underline_mode_option): New global variables.
233         (update_options): New function.
234         (tty_printer::special): Call update_options.
235         (main): Don't set xxx_flag but xxx_flag_option, then call
236         update_options.
238 2003-07-14  Werner LEMBERG  <wl@gnu.org>
240         Make grotty emit proper Unicode box drawing characters for -Tutf8.
242         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
243         values.
244         (hline_char, vline_char): New global variables.
245         (tty_printer::tty_printer): Initialize them.
246         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
247         horizontal and vertical lines.
248         (crossings): New global array.
249         (tty_printer::end_page): Use it to determine the proper crossing
250         character for -Tutf8.
252 2003-07-12  Werner LEMBERG  <wl@gnu.org>
254         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
255         (HTMLDOCFILES): Revert to `pic.html'.
256         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
258 2003-07-11  Werner LEMBERG  <wl@gnu.org>
260         * doc/pic.ms: Improve documentation of absolute coordinates.
261         Document absolute positioning of pictures.
263         * NEWS: Add new pic capability.
265 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
267         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
268         Rewritten.
270 2003-07-07  Werner LEMBERG  <wl@gnu.org>
272         Implement support for dashed and dotted ellipses in pic.  Based on
273         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
275         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
276         common_output::dashed_ellipse, common_output::dotted_ellipse): New
277         functions.  Ellipse arcs are approximated with circle arcs.
278         * src/preproc/pic/common.h (common_output): Updated.
279         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
280         functions.
281         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
283         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
285 2003-07-06  Werner LEMBERG  <wl@gnu.org>
287         Make grotty work on platforms which have unsigned char as the
288         default for char.  Based on a patch by Thomas Klausner
289         <wiz@netbsd.org>.
291         * src/devices/grotty/tty.cpp (schar): New typedef.
292         Updated calls to declare_ptable and implement_ptable.
293         (glyph): Use schar for back_color_idx and fore_color_idx.
294         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
295         (tty_printer::tty_color, tty_printer::tty_printer,
296         tty_printer::color_to_idx, tty_printer::put_color): Updated.
298 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
300         * src/roff/nroff/nroff.sh: Add option -d for completeness.
301         * src/roff/nroff/nroff.man: Updated.
303 2003-07-05  Werner LEMBERG  <wl@gnu.org>
305         * NEWS, tmac/groff_www.man: Updated.
306         * doc/Makefile.sub: Updated.
308 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
310         Implement support for multiple HTML output files.
312         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
313         -j command line option.
315         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
316         global variables.
317         (file): New fields `new_output_file', `require_links',
318         `output_file_name'.
319         (file::file): Updated.
320         (files::set_file_name, files::set_links_required,
321         files::are_links_required, files::is_new_output_file,
322         files::file_name, files::next_file_name): New functions.
323         (header_desc): New fields `no_of_level_one_headings',
324         `header_filename'.
325         (header_desc::header_desc): Updated.
326         (header_desc::write_headings): Handle multiple files.
327         (html_printer::write_header): Save file name in which header occurs.
328         (html_printer::determine_header_level): Possibly split files on
329         level one headings.
330         (html_printer::do_links, html_printer::troff_tag): Updated.
331         (html_printer::insert_split_file, html_printer::do_job_name,
332         html_printer::emit_link, html_printer::write_navigation,
333         html_printer::do_file_components): New functions.
334         (html_printer::~html_printer): Handle multiple files.
335         (main): Handle command line option `-j'.
337         * src/devices/grohtml/grohtml.man: Updated.
339         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
340         which splits file.
342         * tmac/www.tmac (JOBNAME): New macro.
343         * tmac/s.tmac (SH-NO-TAG): New macro.
344         (@SH): Call SH-NO-TAG.
345         (@NH): Updated.
347 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
349         * tmac/groff_mdoc.man: Improve documentation of punctuation
350         characters.
352 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
354         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
356 2003-07-03  Werner LEMBERG  <wl@gnu.org>
358         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
360 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
362         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
363         after `/*' and `*/'.
364         Fix spacing.
365         (Fn, Fo): Reduce indentation in synopsis.
367         * tmac/doc-common (doc-check-depth): New macro.
368         (doc-end-macro, Sh, Ss): Use it.
369         (Cd): Fix behaviour in synopsis.
370         (In): Make it parsed and callable.
371         If not in the synopsis, represent the C header file enclosed in
372         angle brackets.
373         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
374         Use minus, not hyphen.
376         * tmc/groff_mdoc.man: Updated.
378 2003-07-01  Werner LEMBERG  <wl@gnu.org>
380         Integrated grap2graph, contributed by Eric S. Raymond.
382         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
383         New files.
384         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
385         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
387 2003-07-01  Colin Watson  <cjwatson@debian.org>
389         * src/xditview/*.c: Add prototypes, fix return types, add includes.
390         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
392 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
394         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
396 2003-06-31  Werner LEMBERG  <wl@gnu.org>
398         * doc/Makefile.sub (CLEANADD): Remove all files created by
399         running `make groff.{pdf,dvi}'.
401         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
402         src/xditview also.
404 2003-06-30  Werner LEMBERG  <wl@gnu.org>
406         * Makefile.in (SHELL): Define as @SHELL@.
407         (mkinstalldirs): Use $(SHELL).
408         (MDEFINES): Add $(SHELL).
409         * Makefile.comm (SHELL): Removed.
411 2003-06-29  Werner LEMBERG  <wl@gnu.org>
413         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
414         The X11 documentation files use them.
415         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
417 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
419         * tmac/e.tmac (@C): Handle .ad also.
421 2003-06-12  Werner LEMBERG  <wl@gnu.org>
423         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
425         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
426         Assign `n' even here.  It is possible to construct a node
427         immediately following an escape character:
429           .di xx
430           \?\\\?a
431           .br
432           .di
433           .xx
435 2003-06-10  Werner LEMBERG  <wl@gnu.org>
437         * README.WIN32: Removed.
438         * MANIFEST: Updated.
440 2003-06-07  Werner LEMBERG  <wl@gnu.org>
442         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
444 2003-06-05  Werner LEMBERG  <wl@gnu.org>
446         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
447         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
449 2003-06-03  Werner LEMBERG  <wl@gnu.org>
451         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
452         is done by the calling function.
454 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
456         * tmac/X.tmac: Fix definition of `em'.
458 2003-05-22  Werner LEMBERG  <wl@gnu.org>
460         * src/roff/troff/input.cc (return_macro_request): Fix detection of
461         argument.
463 2003-05-18  Werner LEMBERG  <wl@gnu.org>
465         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
466         to make items work which consist only of a tag.
468 2003-05-17  Werner LEMBERG  <wl@gnu.org>
470         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
471         aren't stretched in a tag (this can fail with unformatted boxes).
472         Instead, insert a break and go back one line.
474 2003-05-16  Werner LEMBERG  <wl@gnu.org>
476         * src/roff/troff/input.cc (return_macro_request): If called with
477         argument pop macro twice.  We need this to trace `return'.
479         * tmac/trace.tmac: Handle `return'.
480         Fix typos.
482         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
483         Document.
485 2003-05-15  Larry Kollar  <kollar@alltel.net>
487         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
488         registers `FPS', `FVS', and `FPD'.
490 2003-05-15  Werner LEMBERG  <wl@gnu.org>
492         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
493         correctly.
495 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
497         * tmac/groff_mdoc.man: Slight improvements.
499 2003-05-03  Werner LEMBERG  <wl@gnu.org>
501         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
502         `doc-header-space' after header line if register `cR' is set.
504 2003-05-02  Werner LEMBERG  <wl@gnu.org>
506         * TODO: Updated.
508 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
510         * tmac/doc-common (Nd): Use \[em].
512 2003-05-01  Werner LEMBERG  <wl@gnu.org>
514         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
515         doc-footer-space): Initialize to 0.5i.
516         (doc-setup-page-layout): Don't set doc-header-space and
517         doc-footer-space.
519 2003-04-30  Werner LEMBERG  <wl@gnu.org>
521         * REVISION: Set to 1.
523         * doc/pic.ms: Document possible problems with `figname'.
525 2003-04-29  Werner LEMBERG  <wl@gnu.org>
527 Version 1.19 released
528 =====================
530         * VERSION: Set to 1.19.
531         * REVISION: Set to 0.
532         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
534         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
535         Define charset as `US-ASCII' in html output.
537         * tmac/www.tmac (ULE): Add missing scaling indicator.
539         * win32-diffs: Removed.
541 2003-04-28  Werner LEMBERG  <wl@gnu.org>
543         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
544         `.da' and `.boxa'.
545         Document how to insert discardable whitespace with `.ss'.
547 2003-04-27  Werner LEMBERG  <wl@gnu.org>
549         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
550         work with plain TeX also.
552         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
554 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
556         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
557         Use a loose DTD.
559 2003-04-24  Werner LEMBERG  <wl@gnu.org>
561         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
562         vbox with positive height and zero depth if in TeX mode.
564         * NEWS: Document glyph name changes for grodvi and grolj4.
566 2003-04-23  Werner LEMBERG  <wl@gnu.org>
568         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
569         * doc/pic.ms: Fixed.
571 2003-04-21  Werner LEMBERG  <wl@gnu.org>
573         HP-UX 10.20 has `snprintf' but it isn't declared.
575         * configure.ac: Add declaration test for snprintf.
576         * configure: Regenerated.
577         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
578         * src/include/config.hin: Regenerated.
580 2003-04-19  Werner LEMBERG  <wl@gnu.org>
582         Add keyword `figname' to pic, specifying the name of the picture
583         box in TeX mode.  Based on a patch from William J Poser
584         <wjposer@unagi.cis.upenn.edu>.
586         * src/preproc/pic/pic.y: New token `FIGNAME'.
587         (macro_name): New rule of type <str>.
588         (placeless_element): Handle `FIGNAME'.
589         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
590         * src/preproc/pic/main.cpp (graphname): New global variable.
591         (do_picture): Initialize `graphname'.
592         * src/preproc/pic/pic.h: Updated.
593         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
594         `graphname'.
595         Simplify TeX code.
596         (tex_output::text): Beautify output.
597         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
598         `shaded' and `outlined' unconditionally.
599         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
600         Minor improvements.
602         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
603         greater is necessary.
605 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
607         Add option -r to soelim to avoid emission of `.lf' lines.
608         Add option -t to produces TeX comment lines instead of `.lf' lines.
610         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
611         and `tex_flag'.
612         (usage): Updated.
613         (main): Handle `-r' and `-t'.
614         (set_location): Handle `raw_flag' and `tex_flag'.
615         * src/preproc/soelim/soelim.man, NEWS: Updated.
617 2003-04-17  Werner LEMBERG  <wl@gnu.org>
619         * tmac/hyphenex.sh: Replaced with...
620         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
621         nightmares.
623         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
624         if --quiet is used for the configure script.
625         * configure: Regenerated.
627 2003-04-16  Werner LEMBERG  <wl@gnu.org>
629         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
630         Add `const' to second argument.
631         (html_printer::add_table_end): Add `const' to argument.
632         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
633         `const' to arguments.
634         * src/devices/grohtml/html-text.h: Updated.
636         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
637         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
638         argument.
640         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
641         cast for integer constant.
643         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
644         (writeNbytes): Add `const' to first argument.
645         (writeString): Add `const' to argument.
646         (char_buffer::can_see): Add `const' to third argument.
647         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
648         `const' to argument.
649         * src/preproc/html/pushback.h: Updated.
651         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
652         (include_path_append): Add `const' to argument.
653         (do_file): Updated.
655         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
656         for `value'.
657         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
658         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
659         for `value'.
660         (unicode_decompose_init::unicode_decompose_init): Updated.
661         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
662         for `value'.
663         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
664         * src/roff/troff/input.cc (process_startup_file): Add `const' to
665         argument.
667         * tmac/hyphenex.sh: Make script more portable by using a here
668         document.
670 2003-04-15  Werner LEMBERG  <wl@gnu.org>
672         Renamed all `*.cc' files to `*.cpp'.
673         Updated all configuration files, makefiles, and documentation.
675 2003-04-14  Werner LEMBERG  <wl@gnu.org>
677         * tmac/hyphenex.sh: Slight improvements.
679 2003-04-13  Werner LEMBERG  <wl@gnu.org>
681         * font/devascii/R.proto, font/devcp1037/R.proto,
682         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
683         character slots with unnamed glyphs.
685         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
686         (an-first): New global variable.
687         (an-header): Emit vertical space between multiple man pages.
689 2003-04-11  Werner LEMBERG  <wl@gnu.org>
691         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
692         values.
694 2003-04-10  Werner LEMBERG  <wl@gnu.org>
696         * PROBLEMS: Revised.
698 2003-04-10  Bernd Warken  <bwarken@mayn.de>
700         * doc/webpage.ms: Improved.
702 2003-04-09  Werner LEMBERG  <wl@gnu.org>
704         Add register \n[.height] which returns the value of \H.
705         Add register \n[.slant] which returns the value of \S.
707         * src/roff/troff/env.cc (init_env_requests): Implement.
708         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
709         Document.
711 2003-04-08  Werner LEMBERG  <wl@gnu.org>
713         * tmac/html.tmac: Move some of the data into html-end.tmac.
714         Remove most of the character translations for eqn since html fonts
715         now cover those characters.
716         Load www.tmac.
717         * tmac/html-end.tmac: New file.
718         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
719         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
720         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
722 2003-04-07  Werner LEMBERG  <wl@gnu.org>
724         * man/groff_out.man: Document negative values of `N' if -Thtml is
725         used.
727 2003-04-06  Werner LEMBERG  <wl@gnu.org>
729         * Makefile.comm (depend.temp): Check location of YTABC.
731 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
733         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
734         binary path.
735         (groff_bin_path): Rename to GROFF_BIN_PATH.
736         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
737         * doc/Makefile.in (TROFFBIN): New variable for troff
738         binary path.
739         (GROFFBIN): New variable for groff binary path.
740         (groff_bin_path): Rename to GROFF_BIN_PATH.
741         (TROFF): Use TROFFBIN.
742         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
743         * doc/Makefile.sub (GROFFBIN): New variable for groff
744         binary path.
745         (groff_bin_path): Rename to GROFF_BIN_PATH.
746         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
748         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
749         with INSTALL_SCRIPT.
750         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
751         * Makefile.dev (all): Depend on DEVSCRIPTS.
752         (install_dev): Likewise.
753         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
754         scripts.
755         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
756         (DEVGENSCRIPTS): New variable to hold generated scripts.
758 2003-04-05  Werner LEMBERG  <wl@gnu.org>
760         * src/libs/libdriver/input.cc (IntArray::operator[],
761         IntArray::get_data): Remove meaningless `const' in return value.
763         * README.CVS: New file.
765 2003-04-04  Werner LEMBERG  <wl@gnu.org>
767         Check for stdint.h in C++, not in C.
769         * aclocal.m4 (GROFF_STDINT_H): New function,
770         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
771         AC_CHECK_HEADERS.
772         * configure, src/include/config.hin: Regenerated.
773         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
776         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
777         with a negative value, representing the width of the unbreakable
778         space (only for -Thtml).  grohtml then converts this back to
779         &nbsp; and uses the value of N as its width.
781         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
782         unbreakable_space_node::tprint): Emit `N-<width>'.
783         * src/include/printer.h (printer::set_numbered_char): Make it
784         virtual.
785         Make members `font_table' and `nfonts' protected instead of private.
786         * src/devices/grohtml/post-html.cc
787         (html_printer::set_numbered_char): New member function.
790         * src/libs/libgroff/maxfilename.cc:
791         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
793         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
794         emit word marker.
796 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
798         * man/roff.man: Small fixes.
800 2003-04-03  Werner LEMBERG  <wl@gnu.org>
802         Make groff independent from locale's numeric settings.
804         * configure.ac: Check for `setlocale'.
805         * configure, src/include/config.hin: Regenerated.
807         * src/include/lib.h: Handle HAVE_SETLOCALE.
809         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
810         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
811         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
814         * doc/groff.texinfo: Change dir category to `Typesetting'.
815         (Man font macros): Mention that there is no space between arguments
816         of .BI and friends.
818         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
819         (*printer::change_color, *printer::change_fill_color): Add missing
820         `const'.
822 2003-04-02  Werner LEMBERG  <wl@gnu.org>
824         * src/devices/grohtml/html-table.cc (html_table::emit_col,
825         html_table::is_gap): Compute table widths after converting border
826         positions to avoid rounding errors.
828 2003-04-01  Werner LEMBERG  <wl@gnu.org>
830         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
831         `space_emitted' properly.
833 2003-03-31  Werner LEMBERG  <wl@gnu.org>
835         * src/devices/grohtml/html-table.cc: Fix column width calculation.
836         (html_table::set_linelength): Don't add 1.
837         (html_table::add_indent): Don't subtract 1.
839         * tmac/html.tmac: Set default page offset to zero.
841 2003-03-30  Werner LEMBERG  <wl@gnu.org>
843         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
845         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
846         unbreakable_space_node::tprint): New functions.
847         (troff_output_file): Make space_char_hmotion_mode::tprint and
848         unbreakable_space_node::tprint to friends.
849         * src/roff/troff/node.h: Updated.
851         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
852         in the HTML standard).
854 2003-03-29  Werner LEMBERG  <wl@gnu.org>
856         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
857         Otherwise, the following code
859           .di xxx
860           .ps 10
861           a
862           .br
863           .di
864           x\*[xxx]
866         produces `x a' instead of `xa'.  This is a temporary fix, disabling
867         font changes in diversions for -Thtml.
869         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
870         `HTML-TAG'.
871         (an-do-tag-html): Merge with ...
872         (an-do-tag): This macro.
873         Change code slightly to circumvent grohtml bug.
874         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
876         * src/devices/grohtml/html-table.cc (html_table::emit_col,
877         html_table::is_gap): Round `width' properly.
879         * tmac/html.tmac: Provide some default layout parameters for
880         grohtml.
882         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
883         command.
885 2003-03-28  Werner LEMBERG  <wl@gnu.org>
887         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
889 2003-03-27  Werner LEMBERG  <wl@gnu.org>
891         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
892         defined.
894 2003-03-20  Werner LEMBERG  <wl@gnu.org>
896         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
897         `.vs'.
898         * doc/groff.texinfo: Updated.
900 2003-03-19  Werner LEMBERG  <wl@gnu.org>
902         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
903         TOKEN_END_TRAP>: Reset `have_input'.
905 2003-03-18  Werner LEMBERG  <wl@gnu.org>
907         * src/roff/groff/groff.man: Mention groff_trace man page.
909 2003-03-16  Werner LEMBERG  <wl@gnu.org>
911         * Makefile.in (LIBEXT): New variable to indicate the file extension
912         of library files.  Computed heuristically from $(OBJEXT).
913         (MDEFINES): Add $(LIBEXT).
914         * Makefile.lib, Makefile.comm: Use it.
916         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
917         overlong lines into smaller chunks.
918         (get_binary): New function.
919         (main): Use them.
920         * src/utils/pfbtops/pfbtops.man: Updated.
922 2003-03-15  Colin Watson  <cjwatson@debian.org>
924         * src/roff/groff/groff.man: Minor syntax fix.
926 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
928         * src/devices/grops/ps.cc (ps_printer::media_set,
929         ps_printer::~ps_printer): Handle zero paper width and length.
931 2003-03-13  Werner LEMBERG  <wl@gnu.org>
933         Add options -p and -l to grodvi.
935         * src/devices/grodvi/dvi.cc: Include paper.h.
936         (landscape_flag, user_paper_length, user_paper_width): New global
937         variables.
938         (dvi_printer::begin_page): Emit `papersize' special.
939         Set color after initialization of `cur_h' and `cur_v'.
940         (main): Add options `-l' and `-p'.
941         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
942         * src/devices/grodvi/grodvi.man, NEWS: Updated.
944         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
946 2003-03-12  Werner LEMBERG  <wl@gnu.org>
948         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
949         * man/groff_tmac.man: This man page.
950         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
951         deprecated.
953         * tmac/X.tmac: Don't load pspic.tmac.
955 2003-03-11  Werner LEMBERG  <wl@gnu.org>
957         Make variable `pr' local to libdriver/input.cc.  Based on a patch
958         by Bernd Warken <bwarken@mayn.de>.
960         * src/include/driver.h (pr): Removed.
962         * src/libs/libdriver/input.cc (pr): New global variable.
963         (do_file): Deallocate `pr'.
964         * src/libs/libdriver/printer.cc (pr): Removed.
966         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
967         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
968         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
969         (main): Don't delete `pr'.
971 2003-03-10  Werner LEMBERG  <wl@gnu.org>
973         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
974         * tmac/papersize.tmac: New file.
975         * tmac/troffrc: Include `papersize.tmac'.
976         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
977         * tmac/an-old.tmac: Set LT to LL by default.
979         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
980         doc/groff.texinfo: Updated.
982         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
983         bug which caused all odd iso papers to have wrong dimensions.
985         * src/devices/grops/ps.cc (user_paper_width): New global variable.
986         (main) <'p'>: Set `user_paper_width' also.
987         (ps_printer::media_width, ps_printer::media_height): Use values
988         given with option `-p'.
990 2003-03-09  Werner LEMBERG  <wl@gnu.org>
992         * src/include/nonposix.h: Provide default for SET_BINARY.
994         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
995         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
996         unconditionally.
998         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
999         (main): Treat \r\n as \n.
1001 2003-03-08  Werner LEMBERG  <wl@gnu.org>
1003         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
1004         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
1006 2003-03-07  Werner LEMBERG  <wl@gnu.org>
1008         Added support to access more than 256 glyphs in Type 1 fonts.
1010         * src/devices/grops/ps.cc (subencoding): New structure.
1011         (style): Add `sub' field.
1012         Updated all users.
1013         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
1014         Add `set_subencoding', `get_subfont' and `encode_subfont' member
1015         functions.
1016         Updated all users.
1017         (ps_printer::set_char): Use `set_subencoding'.
1018         (make_subencoding_name): New function.
1019         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
1020         (ps_printer::~ps_printer): Emit subencoding definitions.
1022         * src/devices/grops/psrm.cc (valid_input_table): New array to
1023         properly support EBCDIC.
1024         (white_space): Add `\f'.
1025         (ps_get_line): Change first argument to be of type `string &'.
1026         Updated all callers.
1027         This allows to get lines of arbitrary length.
1028         Use `valid_input_table'.
1029         Remove warning about non-conforming PS line length.  This seems
1030         not to be of great importance -- for example, dvips don't emit
1031         a warning either.
1032         (PS_LINE_MAX): Removed.
1033         (matches_comment): Change first argument to be of type `string &'.
1035         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
1037         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
1038         %AGL_to_unicode, %default_ligatures): New hash tables.
1039         Read all map entries.
1040         Add unencoded characters.
1041         Check for default ligatures if there are no `L' entries.
1042         Print all kern entries.
1043         Print all characters in charset.
1044         * src/utils/afmtodit/afmtodit.man: Updated.
1046         * font/devps/*: Regerated all fonts.
1048         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
1049         of characters, just use `.trin'.  Otherwise the mapping depends
1050         on the font encoding.
1051         * tmac/ps.tmac: Add `fi' and `fl'.
1052         Improve `Fi' and `Fl'.
1053         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
1054         * tmac/Xps.tmac: Fix `em'.
1056         * NEWS: Updated.
1058 2003-03-04  Werner LEMBERG  <wl@gnu.org>
1060         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
1061         `have_input'.
1063 2003-03-03  Werner LEMBERG  <wl@gnu.org>
1065         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
1067         * font/devps/generate/textmap: Remove entry `similarequal'.
1068         * font/devps/symbolmap: Updated.
1070 2003-03-02  Werner LEMBERG  <wl@gnu.org>
1072         * src/libs/libgroff/font.cc (font::load): Fix error message for
1073         bad character type.
1075         * src/devices/grops/grops.man: Improve documentation of the -b
1076         flag.
1078         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
1079         `ascii' and `cp1047'.
1081 2003-03-01  Werner LEMBERG  <wl@gnu.org>
1083         Document composite glyphs and the `composite' request.
1085         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
1087 2003-02-28  Werner LEMBERG  <wl@gnu.org>
1089         * font/devdvi/generate/ec.map: Add some more Unicode entities.
1090         * font/devdvi/*EC: Updated.
1092         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
1093         * tmac/latin1 (latin1-tr): Undo any previous mapping.
1094         * tmac/troffrc: Load `composite.tmac'.
1095         * tmac/Makefile.sub (NORMALFILES): Updated.
1097         * doc/groff.texinfo (Input Encodings): New section.
1098         * NEWS: Updated.
1100 2003-02-27  Werner LEMBERG  <wl@gnu.org>
1102         * doc/texinfo.tex: New version 2003-02-11.06.
1104         * tmac/doc-common (Dt): Don't emit warning for unknown section.
1105         * tmac/groff_mdoc.man: Fix description of `Dt'.
1107 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
1109         * font/devps/prologue.ps: Fix for included Postscript that does
1110         a setpagedevice -- which is now safely ignored.
1112         * NEWS: Updated.
1114         * src/devices/grops/ps.cc: Now sets the page size in the generated
1115         document.  This is done in two ways: Via a %%-comment for gv and
1116         the like, and via a PageSize and setpagedevice for programs that
1117         understands Postscript proper, like ps2pdf.
1119         * src/devices/grops/ps.h: New broken-flag to avoid page size
1120         definition, if required.
1122         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
1124         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
1125         Not really necessary due to the fix in prologue.ps, but cleaner:
1126         Such information does not belong in an .eps file.
1128         * doc/Makefile.sub: See doc/Makefile.in.
1130 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
1132         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
1133         instead of P1 since the latter is broken in some versions of netpbm.
1134         * configure: Updated.
1136 2003-02-26  Larry Kollar  <kollar@alltel.net>
1138         Make man pages more customizable.
1140         * tmac/an-old.tmac (FT): New register holding footer distance from
1141         bottom.
1142         (HF): New string holding the default heading font.
1143         (TH): Handle registers `IN' and `SN' set on the command line.
1144         Use `FT'.
1145         (PT, BT): New strings to customize header and footer lines.
1146         (an-header, an-footer): Use them.
1147         (SH, SS): Use `HF'.
1148         * tmac/groff_man.man: Document changes.
1150         * doc/groff.texinfo: Document man changes.
1151         Document Ultrix extensions of man.
1153 2003-02-26  Werner LEMBERG  <wl@gnu.org>
1155         * src/roff/troff/input.cc (do_width, do_if_request): Reset
1156         `have_input' after changing back to old environment.
1158         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
1159         function up to be defined before first call.  This is necessary to
1160         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
1162         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
1163         the default font directory also.  Based on a patch from James
1164         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
1165         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
1166         * src/utils/afmtodit/afmtodit.man: Document it.
1168         * NEWS: Updated.
1170         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
1172 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
1174         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
1175         (GROFF_PNMTOPS_NOSETPAGE): New macro.
1176         * configure.ac: Use it.
1177         * configure: Regenerated.
1178         * Makefile.in: Updated.
1180         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
1181         (CLEANADD): Add www.tmac-sed.
1182         (pnmtops_nosetpage): Define default.
1183         (install_data): Handle www.tmac-sed and substitute
1184         @PNMTOPS_NOSETPAGE@.
1185         (stamp-sed): Add www.tmac.
1186         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
1187         It now breaks URLs at suitable places.
1188         (www:substring_ok): New register set by...
1189         (www:@test_substring): New macro.
1190         (www:error): New alias to www-error.
1191         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
1192         New macros.
1193         (URL): Use www:url_breaks.
1194         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
1195         (CDS, CDE): New macros.
1197 2003-02-25  Werner LEMBERG  <wl@gnu.org>
1199         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
1200         buffer overflow.
1202 2003-02-24  Werner LEMBERG  <wl@gnu.org>
1204         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
1205         can be negative also.
1207         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
1208         `int16'.
1209         (read_char_table): Avoid negative ascenders.
1210         (output_charset): Add cast.
1211         * font/devlj4/*: Regenerated.
1213         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
1214         possible.
1216         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
1217         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
1218         of `<>'.
1219         * font/devdvi/*: Regenerated.
1221         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
1222         normal width, while the previously used characters (U+2329 and
1223         U+232A) are classified as wide due to canonical equivalence with the
1224         CJK punctuation characters U+3008 and U+3009.
1226         * font/devutf8/R.proto: Updated.
1227         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
1229         * man/groff_char.man: Simplify handling of table traps by
1230         introducing `start block' and `end block' macros.
1231         (Ns, Ne, 2s, 2e, Ds, De): New macros.
1232         (DL): Make it work with Unix troff also.
1233         Fix code values of `la' and `ra'.
1235         * tmac/dvi.tmac: Define `<>' for CW and CWI.
1237 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
1239         * src/devices/grohtml/post-html.cc (element_list::~element_list):
1240         New destructor, fixing a major memory leak.
1242 2003-02-22  Werner LEMBERG  <wl@gnu.org>
1244         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
1245         to be in conformance with Unicode 3.0 and newer.
1247         * font/devlj4/generate/text.map: Add `Eu'.
1248         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
1249         * font/devlj4/S: Regenerated.
1251         * man/groff_char.man: Completely rewritten.
1253         * doc/groff.texinfo: Fix description of request and macro arguments.
1255 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
1257         Valgrind fixes.
1259         * src/devices/grohtml/html-table.cc (html_table::~html_table):
1260         Deallocate `columns' list.
1261         * src/devices/grohtml/post-html.cc (char_block::~char_block):
1262         New destructor.
1263         (text_glob::text_glob_html, text_glob::text_glob_special,
1264         text_glob::text_glob_line, text_glob::text_glob_auto_image,
1265         text_glob::text_glob_tag): Avoid memory leaks.
1266         (text_glob::remember_table): Free memory before reassigning.
1268 2003-02-19  Werner LEMBERG  <wl@gnu.org>
1270         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
1271         alias `hbar'), the Planck constant over two pi.
1273         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
1274         `+e' for position 34.
1275         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
1276         `u2662' and `u2661'.
1277         * font/devdvi/{MI,S}: Regenerated.
1278         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
1279         * font/devlbp/*: Add `hbar' alias.
1280         * font/devlj4/generate/special.map: Ditto.
1281         * font/devlj4/S: Regenerated.
1282         * font/devps/generate/symbolchars: Add `+e'.
1283         * font/devps/generate/textmap: Fix PS name for `-h'.
1284         Add `hbar' alias.
1285         * font/devps/symbolmap: Regenerated.
1287         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
1289         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
1290         `-h', `hbar'.
1291         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
1292         `-h'.
1294         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
1295         `hbar'.
1296         * tmac/tty-char.tmac: Add `+e'.
1298 2003-02-17  Werner LEMBERG  <wl@gnu.org>
1300         Another round trying to really fix problems with `have_input'.
1302         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
1303         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
1305         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
1306         handling if both foreground and background colors are default.
1308         * doc/groff.texinfo (Debugging): Document .lf differences to
1309         AT&T troff.
1311 2003-02-16  Werner LEMBERG  <wl@gnu.org>
1313         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
1314         null-bytes in created string.
1316         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
1317         alias_macro, lookup_request): Improve warning messages.
1319         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
1320         not `strdup'.
1321         Free `last_image_filename'.
1323         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
1324         `buffer'.
1325         (imageList::createPage, imageList::createImage): Use `free', not
1326         `a_delete'.
1327         (imageItem::~imageItem): Free `imageName'.
1328         (addRegDef): Use `strsave', not `strdup'.
1329         (get_resolution): Free `pathp'.
1331 2003-02-15  Werner LEMBERG  <wl@gnu.org>
1333         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
1334         to `dummy'.
1336 2003-02-14  Werner LEMBERG  <wl@gnu.org>
1338         Add memory management for colors to deallocate unnamed colors
1339         properly.
1341         * src/include/color.h (color): New members `free_list' and `next'.
1342         New member functions `new' and `delete'.
1343         Add destructor.
1344         * src/libs/libgroff/color.cc: Implement it.
1346         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
1347         for array size of new operator.
1349         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
1350         redundant comparison.
1352         * src/roff/troff/input.cc (word_space_node::reread,
1353         hmotion_node::reread): Avoid warning about unused parameter.
1354         (reset_output_registers): Remove redundant parameter.
1355         (define_color): Undo change 2003-02-12.
1357         * src/roff/troff/reg.h: Updated.
1359         * src/roff/troff/node.cc (troff_output_file::really_print_line,
1360         output_file::put_filename, real_output_file::really_put_filename,
1361         ascii_output_file::really_print_line,
1362         break_char_node::get_hyphen_list): Avoid warning about unused
1363         parameter.
1364         (suppress_node::tprint): Updated.
1366         * configure.ac: Check declaration for rand() and srand().
1367         * configure: Regenerated.
1369         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
1370         conditionally.
1371         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
1372         and srand().
1374         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
1375         to avoid compiler warnings.
1377         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
1378         unused.
1380         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
1381         is unused.
1382         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
1383         (unused) parameter.
1384         Updated all callers.
1386         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
1387         is unused.
1388         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
1389         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
1391         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
1392         Parameter is unused.
1393         (html_printer::add_table_end): Define parameter conditionally.
1394         * src/devices/grohtml/output.cc (simple_output::special): Parameter
1395         is unused.
1397         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
1398         (lbp_printer::set_char): Last parameter is unused.
1400         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
1402 2003-02-13  Werner LEMBERG  <wl@gnu.org>
1404         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
1405         Make \D'f ...' move horizontally again for backwards compatibility.
1406         Replace it with \D'Fg ...' where appropriate to avoid dependency
1407         on horizontal resolution.
1409         * src/roff/troff/input.cc (do_get_long_name): New function.
1410         (get_long_name): Call it.
1412         (read_draw_node): Handle `\D'Fx ...' by calling ...
1413         (read_color_draw_node): New function.
1415         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
1416         `end'.
1417         Pass it to `do_get_long_name' which is used instead of
1418         `get_long_name'.
1420         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
1421         unnecessary value guard.
1422         (parse_D_command) <'f'>: Add horizontal shift.
1424         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
1425         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1426         (FILL_MAX): Removed.
1428         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1429         Updated.
1431 2003-02-12  Werner LEMBERG  <wl@gnu.org>
1433         * src/roff/troff/input.cc (do_name_test, do_expr_test,
1434         do_zero_width): Push `\n' if closing delimiter is missing.
1436         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
1437         <'F'>: Make \F non-transparent at the beginning of line.
1438         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
1439         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
1440         `have_input'.
1442         (define_color): Free color in case of reassignment.
1444         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
1445         @DefescListEnd): Use @Var, not @var.
1446         Fix all calls.
1448         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
1450         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
1451         `shaded' and `outlined' arrays.
1452         (object_spec::object_spec): Initialize `shaded' and `outlined'.
1453         (graphic_object::set_fill_color, graphic_object::set_outline_color):
1454         Use strsave.
1455         (closed_object::set_fill_color): Ditto.
1456         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
1457         instead of strdup.
1458         (troff_output::reset_color): Use a_delete instead of free.
1459         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
1461 2003-02-11  Werner LEMBERG  <wl@gnu.org>
1463         * doc/groff.texinfo: Improve documentation of `ad'.
1464         Document that \D'f...' is dependent on the horizontal resolution.
1465         * man/groff_diff.man: Improve documentation of \D'f...'.
1467         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
1468         compensating \h'...' for \D'f ...' since the latter no longer moves
1469         current position.
1470         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1472 2003-02-10  Werner LEMBERG  <wl@gnu.org>
1474         Improve error messages for `x F' (and `F') commands.
1476         * src/include/error.h: Add declaration for
1477         `current_source_filename'.
1478         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
1479         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
1480         parameter for source file string.
1481         Updated all callers.
1483         * src/libs/libdriver/input.cc: Add `current_source_filename'.
1484         (remember_source_filename): New function.
1485         (parse_x_command <'F'>, do_file <'F'>): Use it.
1487 2003-02-09  Werner LEMBERG  <wl@gnu.org>
1489         Make grotty not emit warnings about unknown colors more than
1490         necessary.
1492         * src/devices/grotty/tty.cc: Include `ptable.h'.
1493         (TTY_MAX_COLORS): Removed.
1494         (DEFAULT_COLOR_IDX): Defined to -1.
1495         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
1496         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
1497         Change `tty_colors' to be a ptable.
1498         First arg of `put_color' is now `char'.
1499         New functions `make_rgb_string' and `tty_color'.
1500         (tty_printer::tty_printer): Use `tty_color'.
1501         (tty_printer::color_to_idx): Return value is now `char'.
1502         Use `tty_color'.
1504         * src/include/color.h (color): Add `print_color' member function.
1505         * src/libs/libgroff/color.cc (color::print_color): Implement it.
1507 2003-02-08  Werner LEMBERG  <wl@gnu.org>
1509         Valgrind fixes.
1511         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
1512         encoding file.
1514         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
1515         assume that value has been allocated with `new[]', thus use
1516         `a_delete' for deallocation.
1518         * src/libs/libdriver/input.cc (get_integer_arg,
1519         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
1520         where appropriate.
1522         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
1523         * src/libs/libgroff/nametoindex.cc
1524         (character_indexer::named_char_index): Use `new <type>[1]'.
1526         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
1527         <type>[1]'.
1528         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
1529         (split_text): Use `a_delete'.
1531         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
1532         <type>[1]'.
1534         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
1535         harmless memory leak.
1536         (hyphen_trie::read_patterns_file): Initialize `buf'.
1537         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
1538         Initialize `current_fill_color'and `current_glyph_color'.
1539         * src/roff/troff/glyphuni.cc
1540         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
1541         * src/roff/troff/uniuni.cc
1542         (unicode_decompose_init::unicode_decompose_init): Ditto.
1543         * src/roff/troff/uniglyph.cc
1544         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
1546 2003-01-26  Werner LEMBERG  <wl@gnu.org>
1548         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
1549         `access' before calling `unlink'.
1550         (do_file): Handle __EMX__.
1552         * src/include/nonposix.h: Handle __EMX__.
1554         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
1555         (fontpath,tmacpath): Use it.
1556         (MDEFINES): Add it.
1557         Sorted alphabetically.
1559         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
1560         @SEP@.
1561         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
1562         @SEP@.
1564 2003-01-27  Werner LEMBERG  <wl@gnu.org>
1566         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
1567         New files, copied from gnulib.
1568         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
1569         * configure.ac: Updated.
1570         * configure: Regenerated.
1572         * src/include/config.hin: Regenerated.
1573         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
1574         Don't define `strcasecmp' as `strcmp'.
1575         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
1576         Dont define `strncasecmp' as `strncmp'.
1578         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
1579         Removed.
1581 2003-01-26  Werner LEMBERG  <wl@gnu.org>
1583         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
1584         s/unline/unlink/.
1586 2003-01-25  Werner LEMBERG  <wl@gnu.org>
1588         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
1590 2003-01-24  Werner LEMBERG  <wl@gnu.org>
1592         Add US-english hyphenation exceptions (converted from Barbara
1593         Beeton's hyphenation exception log reports which appear irregularly
1594         in TUGBoat).
1596         * tmac/hyphen.us: Updated to latest version.
1597         * tmac/README: Updated.
1598         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
1599         * tmac/troffrc: Load `hyphenex.us'.
1600         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
1601         * doc/groff.texinfo: Updated.
1603 2003-01-23  Werner LEMBERG  <wl@gnu.org>
1605         Improve hyphenation slightly.  This is a first step in redesigning
1606         the hyphenation algorithm to make it more flexible (e.g. allowing
1607         kerns and ligatures between the hyphenation character and the
1608         following character -- while not used normally in English, other
1609         languages like German would benefit).
1611         * src/roff/troff/env.cc (environment::hyphenate_line): Use
1612         assertion instead of if-clause.
1613         Let `get_hyphen_list' return the number of involved characters in
1614         the hyphenation pattern instead of computing it directly (which
1615         often yields too small values).
1616         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
1617         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
1618         parameter.
1620 2003-01-22  Werner LEMBERG  <wl@gnu.org>
1622         Fixing a bug which caused groff to hang if the hyphenation exception
1623         dictionary tried to grow.
1625         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
1626         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
1627         pointer to dictionary.
1629 2003-01-20  Werner LEMBERG  <wl@gnu.org>
1631         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
1632         negative left italic correction.
1633         * src/utils/afmtodit/afmtodit.man: Document it.
1635         * font/devps/generate/Makefile (RFLAG): Add `-m'.
1636         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
1637         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
1639         * NEWS: Updated.
1641 2003-01-16  Werner LEMBERG  <wl@gnu.org>
1643         * NEWS: Updated.
1645 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
1647         * src/preproc/refer/refer.man: Mention REFER environment variable.
1649 2003-01-05  Werner LEMBERG  <wl@gnu.org>
1651         Similar to \[is], the square root glyph (\[sr]) and the square root
1652         extension glyph (\[radicalex]) are now text symbols.  The new
1653         mathematical versions are called \[sqrt] and \[sqrtex],
1654         respectively.
1656         * font/devX*/S: Regenerated.
1657         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
1658         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
1659         * font/devdvi/EX, font/devdvi/S: Regenerated.
1660         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
1661         * font/devlj4/generate/special.map: Add `sqrt'.
1662         * font/devlj4/S: Regenerated.
1663         * font/devps/generate/textmap: Add `sqrt'.
1664         * font/devps/S, font/devps/symbolmap: Regenerated.
1666         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
1667         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
1668         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
1669         overlap horizontally.
1671         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
1672         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
1673         Fix `radicalex'.
1675         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
1676         and `sqrtex' are overlapping glyphs.
1678 2003-01-04  Werner LEMBERG  <wl@gnu.org>
1680         * font/devdvi/generate/texsy.map: Add `is'.
1681         * font/devps/symbolmap: Regenerated.
1682         * font/devdvi/*TC, MI, S: Regenerated.
1684         * tmac/dvi.tmac: Remove `is'.
1686 2003-01-03  Werner LEMBERG  <wl@gnu.org>
1688         `is' is now a text symbol (only relevant for dvi).  The math variant
1689         can be accessed with `integral'.
1691         * font/devX*/S: Regenerated.
1692         * font/devdvi/generate/texex.map: Remove `is'.
1693         * font/devdvi/EX: Updated.
1694         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
1695         * font/devlj4/generate/special.map: Ditto.
1696         * font/devlj4/S: Regenerated.
1697         * font/devps/generate/textmap: Add `integral'.
1698         * font/devps/S: Regenerated.
1700         * tmac/dvi.tmac: Define `is'.
1702         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
1704         * src/preproc/tbl/main.cc (process_format): Fix error message.
1706 2003-01-02  Werner LEMBERG  <wl@gnu.org>
1708         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
1709         * font/devps/textmap: Fix entries for `ne' and `nc'.
1710         * font/devps/symbolmap: Regenerated.
1712         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
1713         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
1714         `38', `58', `78', `-+', `|=', `nc', `ne'.
1716         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
1717         Use `schar' for `aq'.
1718         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
1719         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
1720         * tmac/tty.tmac: Add `ne'.
1722         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
1723         for fallback glyphs.
1725 2002-12-29  Werner LEMBERG  <wl@gnu.org>
1727         Add glyph `|='.
1729         * font/devX*/*: Regenerated.
1730         * font/devdvi/generate/ec.map: Remove `eq'.
1731         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
1732         Assign `|=' to position 39.
1733         * font/devdvi/*EC, S: Regenerated.
1734         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
1735         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
1736         Assign `|=' to position 549.
1737         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
1738         `equalmath'.
1739         Add `uni2243' for `|='.
1741         * tmac/ec.tmac: Add `eq'.
1742         * tmac/dvi.tmac: Add `=~'.
1743         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
1744         `|='.
1746 2002-12-21  Werner LEMBERG  <wl@gnu.org>
1748         * font/devdvi/generate/tc.map: Remove `**'.
1749         * font/devdvi/*TC: Regenerated.
1750         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
1751         `78', `<<', `>>'.
1752         * font/devutf8/NOTES: Updated.
1754         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
1755         Don't give default parameter to `set_macro'.
1756         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
1757         instead of `set_macro'.
1758         (charinfo::setx_macro): Implement it.
1759         (charinfo::set_macro): Don't change `mode'.
1761         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
1762         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
1763         * tmac/dvi.tmac: Define `!=' with `.schar'.
1765 2002-12-20  Werner LEMBERG  <wl@gnu.org>
1767         * font/devX*/S: Regenerated.
1768         * font/devdvi/generate/ec.map: Remove `pl'.
1769         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
1770         * font/devdvi/*{TC,EC}: Regenerated.
1771         * font/devhtml/R.proto: Add `-+'.
1772         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
1773         * font/devlbp/*: Remove `or'.
1774         * font/devlj4/generate/special.map: Remove `or'.
1775         * font/devlj4/S: Regenerated.
1776         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
1777         `seveneighths', `threeeighths'.
1778         Remove `plusmath'.
1779         Replace `minusplus' with `uni2213'.
1780         * font/devps/symbolmap: Regenerated.
1781         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
1782         Add `-+'.
1784         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
1785         function.
1786         * src/roff/troff/node.cc (troff_output_file::put_char_width):
1787         Call glyph_color and fill_color even if tcommand_flag isn't set.
1788         (make_node, node::add_char): Check not ci->is_fallback but
1789         ci->is_normal.
1791         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
1792         * tmac/ec.tmac: Add .rchar entry for `f/'.
1793         Don't remove `12', `14', `34'.
1794         Define `pl' to be always roman.
1795         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
1796         Define `18', `38', `58', `78'.
1797         * tmac/tty.tmac: Add `-+'.
1798         * tmac/dvi.tmac: Define `f/'.
1799         (dvi-frac): Use `f/'.
1800         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
1801         Define `18', `38', `58', `78'.
1803 2002-12-15  Colin Watson  <cjwatson@debian.org>
1805         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
1807 2002-12-10  Werner LEMBERG  <wl@gnu.org>
1809         Add glyph `tno', a textual variant of `no'.
1811         * font/devX*/*: Regenerated.
1812         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
1813         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
1814         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
1815         * font/devdvi/*: Regenerated.
1816         * font/devlbp/*: Add `tno'.
1817         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
1818         * font/devlj4/*: Regenerated.
1819         * font/devps/generate/textmap: Replace `no' with `tno'.
1820         * font/devps/generate/symbolchars: Add `no'.
1821         * font/devps/*: Regenerated.
1823         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
1825         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
1826         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
1828         * NEWS: Updated.
1830         * tmac/dvi.tmac: Replace most `\\' with `\E'.
1831         Add definition for `sd'.
1832         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
1834         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
1836 2002-12-08  Werner LEMBERG  <wl@gnu.org>
1838         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
1839         mode to avoid rounding errors.
1840         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
1842         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
1843         src/roff/troff/troff.man: Improve documentation of -T.
1845 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
1847         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
1848         (run_pipeline) [_WIN32]: Provide working function without `fork'.
1850 2002-12-06  Werner LEMBERG  <wl@gnu.org>
1852         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
1853         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
1854         Scaling Euro.sansserif glyphs down to have the same height as
1855         digits.
1856         Removed unnecessary points; added some extrema.
1858         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1859         Regenerated.
1861 2002-12-04  Werner LEMBERG  <wl@gnu.org>
1863         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
1864         and `Euro.symbol.bold.slanted'.
1865         Improve some glyph offsets and widths.
1866         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1867         Regenerated.
1868         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
1869         typo.
1870         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
1871         direcory.
1873         * tmac/europs.tmac: Updated to new glyph indices.
1874         Use Euro.symbol for font familiy `A'.
1876         * doc/groff.texinfo: Minor improvements.
1878 2002-12-02  Werner LEMBERG  <wl@gnu.org>
1880         * font/devdvi/generate.tc.map: s/%O/%0/.
1881         * font/devdvi/*TC: Regenerated.
1883         * src/roff/troff/div.cc (init_div_requests): Sorted.
1885         * tmac/dvi.tmac: Remove `Ye'.
1886         * tmac/ec.tmac: Remove `Ye'.
1887         Add .rchar entry for `de'.
1889         * man/groff.man, man/groff_diff.man: Document register `.pe'.
1890         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
1891         * NEWS: Updated.
1893 2002-11-30  Werner LEMBERG  <wl@gnu.org>
1895         Add PS font for various Euro glyphs.
1897         * font/devps/generate/freeeuro.sfd: New master font file for
1898         pfaedit.
1899         * font/devps/generate/sfdtopfa.pe: New conversion script for
1900         pfaedit.
1901         * font/devps/generate/Makefile (FONTS): Add `EURO'.
1902         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
1903         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
1904         `freeeuro.sfd'.
1905         * font/devps/EURO: Generated from `freeeuro.afm'.
1906         * font/devps/download: Add `freeuro.pfa'.
1907         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
1908         `freeeuro.pfa'.
1910         * tmac/europs.tmac: New file.
1911         * tmac/ps.tmac: Include `europs.tmac'.
1912         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
1914 2002-11-29  Werner LEMBERG  <wl@gnu.org>
1916         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
1917         * font/devdvi/S: Regenerated.
1918         * font/devhtml/R.proto: Fix `CR' and `ci'.
1919         Add `OK'.
1920         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
1921         Remove `bs'.
1922         * font/devps/symbolmap: Regenerated.
1923         * font/devutf8/R.proto: Fix `CR' and `ci'.
1924         Add `OK'.
1925         * font/devutf8/NOTES: Updated.
1927         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
1928         `ci'.
1929         Add `OK'.
1930         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1932         * tmac/dvi.tmac: Add `lh' and `rh'.
1933         * tmac/Xps.tmac: Fix `lh' and `rh'.
1934         * tmac/X.tmac: Add `OK'.
1935         * tmac/lj4.tmac: Ditto.
1937 2002-11-24  Werner LEMBERG  <wl@gnu.org>
1939         * font/devX*/S: Regenerated.
1940         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
1941         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
1942         * font/devdvi/generate/texsy.map: Remove `or' glyph.
1943         * font/devdvi/S: Regenerated.
1944         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
1945         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
1946         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
1947         `bracketleftbt', `bracketrighttp', `bracketrightex',
1948         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
1949         `braceex', `braceleftex', `bracerightex', `bracerighttp',
1950         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
1951         `rb', and `bv'.
1952         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
1953         * font/devutf8/NOTES: Updated.
1954         * font/devlj4/generate/special.map: Add glyph `braceex'.
1955         * font/devlj4/S: Regenerated.
1957         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
1959 2002-11-14  Werner LEMBERG  <wl@gnu.org>
1961         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
1962         and `vA'.
1963         Fix code for `an'.
1964         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1966         * doc/texinfo.tex: New version from texinfo 4.3.
1967         * doc/groff.texinfo: Updated for texinfo 4.3.
1968         Use @tie{} where appropriate.
1969         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
1970         * font/devdvi/generate/tc.map: Remove `rn'.
1971         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
1972         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
1973         Fix code for `an'.
1974         * font/devX100/*, font/devX100-12/*, font/devX75/*,
1975         font/devX75-12/*: Regenerated.
1977         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
1978         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
1979         Improve definition of `an'.
1980         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
1981         `ru'.
1982         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
1983         * tmac/X.tmac: Add definition for `or'.
1984         * tmac/Xps.tmac: Undo change 2002-11-05.
1985         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
1987 2002-11-11  Werner LEMBERG  <wl@gnu.org>
1989         * src/roff/troff/node.cc (troff_output_file::put_char): Always
1990         call flush_tbuf.
1992 2002-11-10  Werner LEMBERG  <wl@gnu.org>
1994         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
1995         defines a glyph which is searched after the check for fonts declared
1996         with `.special' (and before the check for all mounted special
1997         fonts).  `fschar' defines a glyph for a particular font which is
1998         searched after the check for fonts declared with `.fspecial' (and
1999         before the check for fonts declared with `.special').  `rfschar'
2000         removes glyphs defined with `fschar'.
2002         * src/roff/troff/token.h (char_mode): New enum.
2003         Declare do_define_character.
2004         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
2005         `mode'.
2006         (charinfo::is_fallback): Updated.
2007         (charinfo::is_special): New method.
2008         * src/roff/troff/input.cc (do_define_character): Add and use
2009         optional second parameter used as a prefix for font-specific glyph
2010         names.
2011         (define_character, define_fallback_character): Updated.
2012         (define_special_character): New function.
2013         (init_input_requests): Add `schar'.
2014         (charinfo::charinfo, charinfo::set_macro): Updated.
2015         * src/roff/troff/node.cc: Include `stringclass.h'.
2016         (make_glyph_node): Handle special glyphs defined with `.schar' and
2017         `.fschar'.
2018         (define_font_special_character, remove_font_special_character): New
2019         functions.
2020         (init_node_requests): Sorted.
2021         Add `fschar' and `rfschar'.
2022         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2023         Document new requests.
2025         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
2026         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
2028 2002-11-08  Werner LEMBERG  <wl@gnu.org>
2030         Added new font `SC' (cmtex10) to devdvi.
2032         * devdvi/generate/Makefile (FONTS): Add `SC'.
2033         (SC): New rule.
2034         * devdvi/generate/textex.map: New map file for cmtex.
2035         * devdvi/SC: New.
2036         * devdvi/Makefile.sub (DEVFILES): Updated.
2037         * tmac/dvi.tmac: Add fspecial entries for SC.
2038         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
2039         found before `S' since the font position of `SC' is lower due to the
2040         gaps in DESC's `font' line.
2041         * tmac/ec.tmac: Add a `special' call.
2042         * NEWS: Updated.
2044         * font/devhtml/R.proto: Remove double entry for `ti'.
2045         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
2046         * tmac/tty-char.tmac: Remove entry for `bq'.
2047         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
2048         * tmac/ec.tmac: Don't remove `aq' glyph.
2049         * tmac/X.tmac: Fix entry for `em'.
2050         Add entries for `fo' and `fc'.
2051         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
2053         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
2054         documentation of `special' and `fspecial' requests.
2056 2002-11-05  Werner LEMBERG  <wl@gnu.org>
2058         * font/devascii/R.proto, font/devcp1047/R.proto,
2059         font/devlatin1/R.proto: Remove entry for `.i'.
2060         * font/devdvi/generate/textt.map: Add entry for `ad'.
2061         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
2062         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
2063         We need this for getting kerning values to compose `/l' and `/L'.
2064         * font/devdvi: Regenerated font definition files for CM fonts.
2065         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
2066         * font/devutf8/R.proto: Ditto.
2067         Remove double entry for `ti'.
2069         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
2070         for (groff) ligatures, `la', and `ra'.
2071         Add "'C", "'c", `IJ', and `ij'.
2072         Remove double entry for `ti'.
2073         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
2074         double entries.
2075         Add "'C", "'c", `IJ', and `ij'.
2076         Fix entries for (groff) ligatures, `la', and `ra'.
2078         * tmac/ps.tmac (ps-achar): New macro.
2079         Define "'c" and "'C".
2080         * tmac/tty.tmac: Add entry for `.i'.
2081         * tmac/X.tmac (X-achar): New macro.
2082         Define "'c", "'C", and `:Y'.
2083         Add entries for `IJ' and `ij'.
2084         * tmac/Xps.tmac (Xps-achar): New macro.
2085         Define "'c" and "'C".
2086         Add entries for `IJ' and `ij'.
2087         * tmac/lbp.tmac (lbp-achar): New macro.
2088         Add fallback characters for all groff ligatures and many other
2089         glyphs.
2090         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
2091         Add entries for `/l' and `/L'.
2092         Define "'c" and "'C".
2093         Add entries for `IJ' and `ij'.
2095 2002-11-02  Larry Kollar  <kollar@alltel.net>
2097         * PROBLEMS: Document how to solve Mac OS X compilation problems.
2099 2002-11-02  Werner LEMBERG  <wl@gnu.org>
2101         Adding support for composite glyphs: \[xxx yyy ...] and the
2102         `composite' request.
2104         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
2105         to Unicode-based glyph names.
2106         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
2107         glyph names to groff glyph names.
2108         * src/roff/troff/uniuni.cc: New file for canonically decomposing
2109         Unicode-based glyph names.
2110         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
2111         for handling Unicode glyph names.
2112         * src/roff/troff/input.cc: Include unicode.h.
2113         (composite_glyph_name): New function.
2114         (token::next) <'['>: Handle Unicode glyph names and composite
2115         glyphs.
2116         (composite_dictionary): New dictionary for the `composite' request.
2117         (composite_request): Implement `composite' request.
2118         (init_input_requests): Add `composite'.
2119         Alphabetically sorted.
2120         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
2121         commented out).
2122         (init_env_requests): Alphabetically sorted.
2123         Removed `tas' and `tar' (already commented out).
2124         * src/roff/troff/Makefile.sub: Updated.
2126 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
2128         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
2129         of options.
2131 2002-10-29  Werner LEMBERG  <wl@gnu.org>
2133         Fix computation of .trunc register.  Additionally, its value (and
2134         the value of the .ne register) is now always set before entering the
2135         trap.
2137         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
2138         `needed_space' before calling `space'.
2139         (top_level_diversion::space): Remove special code for 'sp before the
2140         first page.
2141         Call `begin_page' with the discarded space as a parameter.
2142         (top_level_diversion::begin_page): Add optional parameter to set
2143         `truncated_space'.
2144         * src/roff/troff/div.h: Updated.
2146         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
2147         \n[.ne].
2149         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
2150         (LP): Remove superfluous call to `br'.
2151         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
2152         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2154 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2156         * tmac/doc-ditroff: Remove useless switch/variable -rC.
2157         (doc-setup-header): Don't set page register `%'.
2158         * tmac/doc-nroff: Remove variable `C'.
2159         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
2160         (doc-setup-header): Don't set page register `%'.
2161         Don't call `bp'.
2162         * tmac/doc-common (doc-header): Call `ns'.
2163         (doc-paragraph): Protect .sp with .br so that it survives traps
2164         possibly set by the user.
2165         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2167         * tmac/doc*: Replace ' with . for consistency if no effect.
2169 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2171         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
2172         so that it survives traps possibly set by the user.
2174         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
2175         (troff_output_file::set_font): Call flush_tbuf if necessary.
2176         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
2177         flush_tbuf and do_motion only if necessary.
2178         (troff_output_file::start_special,
2179         troff_output_file::put_char_width, troff_output_file::put_char,
2180         troff_output_file::draw): Updated.
2181         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2182         vmotion_node::tprint): Undo change 2002-10-23.
2184 2002-10-25  Werner LEMBERG  <wl@gnu.org>
2186         * tmac/www.tmac (DC): Fix case of overlapping images.
2188 2002-10-23  Werner LEMBERG  <wl@gnu.org>
2190         * src/roff/troff/node.cc (troff_output_file::fill_color,
2191         troff_output_file::glyph_color): Set current color before testing
2192         color_flag.
2193         (troff_output_file::put_char_width, troff_output_file::put_char,
2194         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
2195         before glyph_color.
2196         (troff_output_file::file_color, troff_output_file::glyph_color):
2197         Call do_motion.
2198         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2199         vmotion_node::tprint): Move first, then call fill_color.
2201 2002-10-20  Werner LEMBERG  <wl@gnu.org>
2203         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
2204         possible to use multiple main macro packages.
2206 2002-10-19  Werner LEMBERG  <wl@gnu.org>
2208         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
2209         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
2210         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
2211         is set.
2212         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
2213         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
2215 2002-10-16  Werner LEMBERG  <wl@gnu.org>
2217         * NEWS, doc/webpage.ms: Updated.
2219 2002-10-14  Werner LEMBERG  <wl@gnu.org>
2221         * src/roff/troff/node.cc (troff_output_file::put_char_width,
2222         troff_output_file::put_char, troff_output_file::fill_color,
2223         troff_output_file::glyph_color): Handle case where color pointer
2224         is null.
2226 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
2228         Add the new -r option to grotty.  It is similar to the -i option
2229         except it tells grotty(1) to use the "reverse video" attribute to
2230         render italic fonts.
2232         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
2233         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
2234         (tty_printer::make_underline, tty_printer::put_color,
2235         tty_printer::end_page): Use it.
2236         (main): Add -r switch.
2237         (usage): Updated.
2238         * src/devices/grotty/grotty.man: Document it.
2240 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
2242         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2243         cast to `unsigned char' to properly read patterns with 8bit
2244         characters.
2246 2002-10-08  Werner LEMBERG  <wl@gnu.org>
2248         * REVISION: Increased to 2.
2250 Version 1.18.1 released
2251 =======================
2253 2002-10-08  Werner LEMBERG  <wl@gnu.org>
2255         * doc/webpage.ms, NEWS: Updated.
2257 2002-10-07  Werner LEMBERG  <wl@gnu.org>
2259         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
2260         suppress additional whitespace after the header.
2262         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
2263         with NetBSD.
2265         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
2267 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
2269         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
2270         (Dt): Use it to improve language localization (especially Russian
2271         and French).
2273 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
2275         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
2276         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
2277         drawing commands.
2278         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
2279         curve type.
2280         Call `picurve' for BSPLINE.
2281         (HGPrintElt): Handle BSPLINE.
2282         * src/preproc/grn/README: Document it.
2284 2002-10-03  Werner LEMBERG  <wl@gnu.org>
2286         * src/roff/troff/node.cc (break_char_node::col): New variable.
2287         Updated constructor.
2288         (space_node::tprint, word_space_node::tprint): Call `fill_color'
2289         unconditionally.
2290         (space_node::space_node): Remove assertion.
2291         (break_char_node::add_self): Pass color argument to space node.
2292         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
2293         Ditto.
2294         * src/roff/troff/env.cc (environment::do_break,
2295         environment::add_padding): Ditto.
2297 2002-10-02  Werner LEMBERG  <wl@gnu.org>
2299         Redesigning color support in troff.  Colors are no longer
2300         represented as separate nodes but are now part of glyph nodes and
2301         friends.  This fixes the current formatting misbehaviour due to the
2302         changes introduced on 2002-09-20.  Some extra code is necessary for
2303         proper grotty support: Without adding color variables to
2304         space-related nodes, the background color would be changed too late.
2306         * src/roff/troff/node.h, src/roff/troff/node.cc:
2307         s/current_pagecolor/current_fill_color/.
2308         s/current_glyphcolor/current_glyph_color/.
2309         (glyph_color_node, fill_color_node): Removed.
2310         (node::get_glyph_color, node::get_fill_color): New virtual member
2311         functions.
2312         (space_node::col): New variable.
2313         Updated constructors of space_node and derived classes accordingly.
2314         (hmotion_node::col): New variable.
2315         Updated constructors of hmotion_node and space_char_hmotion_node
2316         accordingly.
2317         (vmotion_node::col): New variable.
2318         Updated constructor accordingly.
2319         (draw_node::gcol, draw_node::fcol): New variables.
2320         Updated constructor accordingly.
2321         (special_node::gcol, special_node::fcol): New variables.
2322         Updated constructors accordingly.
2323         (troff_output_file::put_char, troff_output_file::put_charwidth,
2324         troff_output_file::draw): Set glyph and fill color.
2325         (troff_output_file::start_special): Set glyph and fill color.
2326         Always set current font.
2327         (troff_output_file::fill_color, troff_output_file::glyph_color):
2328         Don't call `do_motion'.
2329         (glyph_node::gcol, glyph_node::fcol): New variables.
2330         Updated constructors of glyph_node and ligature_node accordingly.
2331         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
2332         member functions.
2333         (glyph_node::merge_glyph_node,
2334         kern_pair_node::add_discretionary_hyphen,
2335         node::add_discretionary_hyphen): Updated.
2336         (break_char_node::merge_self): Updated.
2337         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2338         vmotion_node::tprint): Handle color.
2339         (make_glyph_node, make_node, node::add_char): Updated.
2341         * src/roff/troff/env.cc (environment::space_newline,
2342         environment::space, environment::output_line, environment::do_break,
2343         environment::make_tab_node, environment::add_padding, title):
2344         Updated.
2345         (environment_switch, environment_copy): Don't add color nodes.
2347         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
2348         nothing.
2349         (token::next): Updated.
2350         \m and \M now are as transparent as \s.
2351         (process_input_stack, token::add_to_node_list, token::process,
2352         read_draw_node): Updated.
2353         (charinfo_to_node_list): Don't add color nodes.
2355         * doc/groff.texinfo: Updated.
2357 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
2359         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
2360         strings.
2362 2002-09-27  Colin Watson  <cjwatson@debian.org>
2364         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
2366 2002-09-23  Werner LEMBERG  <wl@gnu.org>
2368         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
2369         appropriate.
2370         (DEFAULT_LINEWIDTH_FACTOR): New macro.
2371         (linewidth_factor): New global variable.
2372         (lbp_printer::set_line_thickness): Fix case for size < 0, using
2373         linewidth_factor.
2374         (long_options): Add -w/--linewidth option.
2375         (usage): Updated.
2376         (main): Handle -w option to set linewidth_factor.
2377         (lbp_printer::lbp_printer): Initialize req_linethickness, not
2378         line_thickness.
2380         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
2382 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
2384         Fixed a bug in the line thickness setting code.
2386         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
2387         variable.
2388         (lbp_printer::set_line_thickness): Pass environment as second
2389         parameter.
2390         Implement it actually.
2391         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
2392         and `set_line_thickness, depending on the current font size.
2394 2002-09-21  Werner LEMBERG  <wl@gnu.org>
2396         Some Debian patches.
2398         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
2399         * src/roff/troff/node.cc (bracket_node::copy): Initialize
2400         `list->last'.
2402 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2404         * configure: Regenerated with autoconf 2.54.
2406 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2408         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
2409         glyph_color.
2410         Rename cur_fill_color to fill_color.
2411         * src/roff/troff/env.cc: Updated.
2413 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2415         * src/roff/troff/env.cc (title): Copy color status after processing
2416         title.
2417         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
2418         fill color nodes to reset colors properly.
2420         * tmac/www.tmac (DC): Fix color handling.
2422         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
2423         * doc/groff.texinfo: Fixing documentation of `tl' request.
2424         * doc/webpage.ms: Updated.
2426 2002-09-19  Werner LEMBERG  <wl@gnu.org>
2428         * src/roff/troff/env.cc (environent_switch, environment_copy):
2429         Emit glyph and fill color nodes to initialize colors properly.
2431 2002-09-17  Colin Watson  <cjwatson@debian.org>
2433         * src/roff/troff/env.cc (environment::set_glyph_color,
2434         environment::set_fill_color): Fix typo which prevented \m[] work
2435         correctly.
2437 2002-09-17  Werner LEMBERG  <wl@gnu.org>
2439         Add left and right italic correction to non-slanted PS fonts.  This
2440         is an experimental feature to improve image rendering of grohtml.
2442         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
2443         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
2444         * font/devps/*: All non-slanted fonts regenerated.
2445         * NEWS: Updated.
2447 2002-09-16  Werner LEMBERG  <wl@gnu.org>
2449         Add a site-specific font directory.
2451         * Makefile.in (localfontdir, legacyfontdir): New variables.
2452         (fontpath): Use them.
2453         (MDEFINES, uninstall_dirs): Updated.
2454         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
2455         Remove `FONTPATH' and `MACROPATH'.
2457         * src/roff/troff/troff.man, NEWS: Updated.
2458         * doc/groff.texinfo (Font Directories): New section.
2459         Other minor fixes.
2461         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
2462         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
2463         src/preproc/grn/grn.man: Minor fixes.
2465         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
2466         Remove unused variable.
2468 2002-09-11  Werner LEMBERG  <wl@gnu.org>
2470         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
2471         * man/groff_out.man: Fix documentation of 'N'.
2473 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
2475         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
2476         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
2477         set.
2478         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
2479         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
2480         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
2481         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
2482         PRE_TAG>: Call `begin' with `FALSE'.
2484 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2486         * src/libs/libgroff/string.cc (string::extract): Fix position of
2487         terminating null byte.
2489 2002-09-08  Werner LEMBERG  <wl@gnu.org>
2491         Add global option `nospaces' to tbl so that leading and trailing
2492         spaces in data items are ignored.
2494         * src/libs/libgroff/string.cc (string::remove_spaces): New member
2495         function to remove leading and trailing spaces.
2496         * src/include/stringclass.h: Updated.
2498         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
2500         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
2501         option.
2502         Fix typo in error messages.
2503         (process_data): Implement `nospaces' option.
2504         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
2506 2002-09-07  Werner LEMBERG  <wl@gnu.org>
2508         * src/include/config.hin: Add `HAVE_ISATTY'.
2509         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
2510         `fname' member.
2511         * src/libs/libgroff/tmpname.cc: Include `time.h'.
2512         * src/libs/libdriver/input.cc (Char): Add `operator==' and
2513         `operator!=' for `char'.
2514         * doc/groff.texinfo: Replace @ifnottex block for top node with
2515         @ifhtml block.
2517 2002-09-06  Werner LEMBERG  <wl@gnu.org>
2519         * doc/Makefile.in (.texinfo.html): Add -I switch.
2520         * doc/groff.texinfo: Add @ifnottex block for top node to make
2521         translation to HTML work.
2523 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
2525         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
2526         (get_papersize, determine_vertical_offset): Removed.
2527         (char_buffer::do_image): Always specify letter size.
2528         (main): Updated.
2529         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
2530         -sPAPERSIZE.
2532 2002-09-05  Werner LEMBERG  <wl@gnu.org>
2534         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
2535         default indentation.
2537 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
2539         * src/preproc/html/pre-html.cc (imageList::createPage): Use
2540         -sPAPERSIZE for gs.
2541         (generateImages): Clean up push-back buffer.
2543 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2545         * doc/groff.texinfo: Minor fixes.
2547 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2549         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
2550         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
2551         (gsPaper): Removed.
2552         (determine_vertical_offset): Use LETTER_LENGTH.
2553         (createPage): Moved to ...
2554         (imageList::createPage): This.
2555         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
2556         (imageList::getMaxX): New function.
2557         (createImage): Moved to ...
2558         (imageList::createImage): This.
2559         (imageList::createImages): New function.
2560         (generateImages): Read `maxx' directly.
2561         Updated.
2562         (scanArguments): Don't specify `gsPaper' for `-o'.
2563         (makeTempFiles): Call `xtmpfile' with the last argument set to
2564         `TRUE'.
2566 2002-08-24  Werner LEMBERG  <wl@gnu.org>
2568         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
2569         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
2570         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
2571         * src/preproc/html/pushback.cc: Include nonposix.h.
2572         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
2573         conditionally.
2575 2002-08-23  Werner LEMBERG  <wl@gnu.org>
2577         Use $(OBJEXT) for the object file extension.
2579         * Makefile.comm (.SUFFIXES): Add .obj.
2580         (.cc.obj, .c.obj): New implicit rules.
2581         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
2582         (MDEFINES): Add EXEEXT and OBJEXT.
2583         * */Makefile.sub: s/.o/.$(OBJEXT)/.
2585 2002-08-22  Werner LEMBERG  <wl@gnu.org>
2587         * INSTALL: Mention texinfo 4.2 as a prerequisite.
2589 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2591         * src/devices/grohtml/post-html.cc (colType): Make enum global to
2592         the file.
2593         (html_printer::update_min_max, html_printer::add_table_end): New
2594         methods.
2595         (html_printer::lookahead_for_tables): Use them.
2596         Reset page offset correctly.
2597         (html_printer::~html_printer): Add creation of creator comment up.
2599 2002-08-20  Werner LEMBERG  <wl@gnu.org>
2601         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
2602         * man/groff_tmac.man: Fix typos.
2603         * man/groff_font.man: Minor reordering.
2604         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
2605         * contrib/groffer/groffer.man: Fix typos.
2607 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
2609         Avoid endless loops while scanning for tables.
2611         * src/devices/grohtml/post-html.cc (list::insert): Set
2612         ptr->right->left.
2613         (html_printer::next_horiz_pos): Add `text_glob' argument; update
2614         all callers.
2615         Return immediately if that argument is NULL.
2616         (html_printer::calc_nf): Don't test if `g' is NULL.
2617         (html_printer::lookahead_for_tables): Use
2618         `glyphs.move_right_get_data'.
2619         Don't test if `g' is NULL.
2621 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
2623         A better fix, replacing fix 2002-08-15, for increasing SIZE.
2625         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
2626         a pointer.
2627         (char_block::char_block): Allocate `buffer'.
2628         (char_buffer::add_string): Use it.
2630 2002-08-15  Werner LEMBERG  <wl@gnu.org>
2632         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
2633         src/devices/grodvi/grodvi.man: Document default line thickness.
2635 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
2637         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
2638         8192.
2640 2002-08-14  Werner LEMBERG  <wl@gnu.org>
2642         * doc/webpage.ms: Updated.
2644 2002-08-09  Werner LEMBERG  <wl@gnu.org>
2646         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
2647         unbreakable space.
2649 2002-08-08  Aaron Campbell  <aaron@monkey.org>
2651         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
2652         (&& -> &).
2654 2002-08-08  Werner LEMBERG  <wl@gnu.org>
2656         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
2657         tok.next().
2658         (read_gray): Ditto.
2659         Don't push back a space but a newline onto the stack.
2661 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
2663         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
2664         inadvertently.
2666         * src/devices/grohtml/post-html.cc (html_printer::end_font,
2667         html_printer::start_font): Handle them.
2668         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
2669         reset bold and tt.
2670         (html_text::do_bold): Don't reset italic and tt.
2671         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
2672         * font/devhtml/DESC.proto: Add those fonts.
2673         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
2675 2002-08-07  Werner LEMBERG  <wl@gnu.org>
2677         * MORE.STUFF: Added gpresent.
2679         * tmac/trace.tmac: Show nesting level by a corresponding amount of
2680         whitespace before printing the logging message.
2682 2002-07-31  Colin Watson  <cjwatson@debian.org>
2684         * src/devices/grohtml/html-table.cc (html_table::finish_row):
2685         Initialize `n' to zero.  This fixes a segfault on ARM.
2687 2002-07-30  Werner LEMBERG  <wl@gnu.org>
2689         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
2691 2002-07-29  Werner LEMBERG  <wl@gnu.org>
2693         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
2694         final semicolon.
2696 2002-07-28  Colin Watson  <cjwatson@debian.org>
2698         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
2699         `.ps'.
2700         (html_printer::html_printer): Initialize `pointsize'.
2702 2002-07-26  Werner LEMBERG  <wl@gnu.org>
2704         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
2705         gnu.png.
2706         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
2707         (gnu.eps): Add -rle switch to pnmtops.
2708         (distfiles): Add gnu.eps and gnu.png.
2710 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
2712         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
2713         Add `operator!='.
2715 2002-07-24  Werner LEMBERG  <wl@gnu.org>
2717         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
2718         ' \+' but '  *' for sed.
2719         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
2721 2002-07-23  Werner LEMBERG  <wl@gnu.org>
2723         * doc/groff.texinfo: Document `papersize' keyword.
2724         * NEWS, man/groff_font.man: Updated.
2726 2002-07-23  Colin Watson  <cjwatson@debian.org>
2728         Extend papersize keyword to accept more than a single entry.  The
2729         first valid will be used.
2731         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
2732         (font::scan_papersize): Really skip final newline.
2733         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
2735 2002-07-23  Werner LEMBERG  <wl@gnu.org>
2737         * configure.ac: Test for isatty.
2738         * configure: Regenerated.
2739         * src/include/posix.h: Check HAVE_ISATTY.
2740         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
2741         * src/utils/lookbib/lookbib.cc: Include posix.h.
2742         Don't declare isatty.
2744 2002-07-21  Werner LEMBERG  <wl@gnu.org>
2746         * NEWS: Add `output' request.
2748         * REVISION: Increased to 1.
2750 Version 1.18.0 released
2751 =======================
2753 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
2755         Allow internal glyph indices > 0xFF in grohtml for input characters.
2757         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
2758         as parameter.
2759         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
2760         Updated all callers.
2761         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
2762         (html_printer): Updated.
2764 2002-07-19  Werner LEMBERG  <wl@gnu.org>
2766         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
2767         * font/devutf8/R.proto: Adding some missing glyphs.
2768         * font/devutf8/NOTES: Updated.
2770         * tmac/dvi.tmac: Add more composite glyphs.
2771         * tmac/html.tmac: Updated.
2773         * man/groff_char.man: Add `sum' and `product' entities.
2775         * NEWS: Updated.
2777 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
2779         Improved table, tab, and indenting support.
2781         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
2782         string_iterator::suppress_newline_flag): Removed.  Updated all
2783         function which have used it.
2785         * src/roff/troff/env.cc: Include `input.h'.
2786         (environment::add_node): Accept 0 as parameter.
2787         (environment::add_html_tag): Add `force' parameter.
2788         Updated all callers.
2789         (environment::add_html_tag_tabs): Ditto.
2790         For the moment, support left-aligned tabs only.
2791         (environment::make_html_tag): New function.
2792         (fill, no_fill): Set .br html tag additionally.
2793         (environment::newline): Emit `eol.ce' or `eol' tag for html.
2794         (environment::add_html_tag_eol): Removed.
2795         (tab_stops::distance_to_next_tab): Add variant for handling 
2796         nextpos'.
2797         (environment::distance_to_next_tab): Ditto.
2798         Updated all callers.
2799         (environment::handle_tab): Handle tabs for html.
2800         
2801         * src/roff/troff/env.h: Updated.
2803         * src/roff/troff/div.cc: Updated all callers of
2804         `environment::add_html_tag'.
2806         * src/devices/grohtml/html-table.cc,
2807         src/devices/grohtml/html-table.h: New files.
2809         * src/devices/grohtml/html-text.cc (html_text): New members
2810         `blank_para' and `start_space'.
2811         (html_text::issue_tag): Don't emit TABLE_TAG.
2812         Handle indentation for PRE_TAG and P_TAG.
2813         (html_text::end_tag): Updated.
2814         (html_text::table_is_void, html_text::issue_table_begin,
2815         html_text::issue_table_end): Removed.
2816         (html_text::do_push): Simplified.
2817         [DEBUGGING]: Small fix.
2818         (html_text::push_para): Add new parameter for indentation; updated
2819         all callers.
2820         Handle PRE_TAG.
2821         (html_text::do_indent, html_text::do_table, html_text::done_table,
2822         html_text::is_in_table): Removed.
2823         (html_text::do_pre): Handle P_TAG also.
2824         (html_text::shutdown): Handle p->indent.
2825         (html_text::check_emit_text): Simplified.
2826         (html_text::do_emittext): Reset `blank_para'.
2827         (html_text::do_para): Add new parameter for indentation; updated
2828         all callers.
2829         (html_text::remove_indent): New function.
2830         (html_text::do_space): Handle verbatim text properly.
2831         (html_text::ever_emitted_text, html_text::starts_with_space,
2832         html_text::remove_para_align): New functions.
2833         (html_text::dump_stack_element, html_text::dump_stack): Updated.
2835         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
2836         Updated.
2838         * src/devices/grohtml/post-html.cc: Include html-table.h.
2839         (INDENTATION): Removed.
2840         (text_glob): Added many `is_<foo>' functions.
2841         Added table description `tab'.
2842         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
2843         member functions.
2844         (list): Add `insert' and `move_to' member functions.
2845         (page): Add `insert_tag' member function.
2846         (page::dump_page) [DEBUG_TABLES]: Improved.
2847         (html_printer): Add `table' and `max_linelength' elements.
2848         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
2849         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
2850         `remove_tabs', `remove_courier_tabs'.
2851         (html_printer::emit_raw): Handle indentation.
2852         (html_printer::do_center, html_printer::write_header): Updated.
2853         (html_printer::is_courier_until_eol): Check for tag.
2854         (html_printer::do_linelength): Handle max_linelength.
2855         (html_printer::do_page_offset, html_printer::do_indentation): Handle
2856         fill_on.
2857         (html_printer::do_tempindent): Updated.
2858         (html_printer::do_indentedparagraph): Removed.
2859         (html_printer::do_indent): Simplified.
2860         (html_printer::do_eol): Use `ever_emitted_text'.
2861         (html_printer::do_flush, html_printer::do_links): Don't call
2862         done_table.
2863         (html_printer::do_break): Handle end_tempindent.
2864         (html_printer::troff_tag): Get argument.
2865         Don't handle `.ip'.
2866         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
2867         (html_printer::flush_page): Call `lookahead_for_tables'.
2868         Don't call `done_table'.
2869         (html_printer::add_to_sbuf): Always call do_indent.
2871         * src/devices/grohtml/Makefile.sub: Updated.
2873         * tmac/an-old.tmac (TP): Don't handle html device specially.
2874         (an-do-tag-html): New function which will be used instead of
2875         `an-do-tag' if html device is used.
2877         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
2879         * tmac/s.tmac (@IP): Don't handle html device specially.
2880         (@IP-html): New function which will be used instead of `@IP' if
2881         html device is used.
2883         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
2884         is a hack which will eventually vanish again.
2885         (PIMG): Handle `-C' option correctly if not html.
2886         (HR): Use HTML-NS.
2888 2002-07-17  Werner LEMBERG  <wl@gnu.org>
2890         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
2892 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
2894         * contrib/pic2graph/pic2graph.*: Use convert(1).
2895         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
2897 2002-07-14  Bernd Warken  <bwarken@mayn.de>
2899         * tmac/groff_trace.man: New file.
2900         * tmac/Makefile.sub: Updated.
2901         * NEWS: Updated.
2903 2002-07-13  Werner LEMBERG  <wl@gnu.org>
2905         * src/roff/groff/groff.man: Add some cross references.
2907 2002-07-12  Werner LEMBERG  <wl@gnu.org>
2909         * src/roff/troff/input.cc (substring_request): Add warnings for
2910         string indices out of range.
2912 2002-07-11  Werner LEMBERG  <wl@gnu.org>
2914         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
2915         * font/devdvi/*EC: Regenerated.
2917 2002-07-10  Bernd Warken  <bwarken@mayn.de>
2919         * man/groff_char.man: Updated and extended.
2921 2002-07-10  Werner LEMBERG  <wl@gnu.org>
2923         * src/roff/troff/input.cc (length_macro): Renamed to...
2924         (length_request): This.
2925         Move call of `tok.next()' to the very end, otherwise the register
2926         value hasn't been updated yet.
2927         (init_input_requests): Updated.
2929 2002-07-09  Werner LEMBERG  <wl@gnu.org>
2931         * src/roff/troff/input.cc (substring_macro): Renamed to...
2932         (substring_request): This.
2933         (init_input_requests): Updated.
2934         * src/roff/troff/request.h: Updated.
2936 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
2938         * src/roff/grog/grog.sh: Fix typo.
2940 2002-07-08  Werner LEMBERG  <wl@gnu.org>
2942         * win32-diffs: Updated.
2944         Handle `papersize' keyword properly in DESC.
2946         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
2947         type.
2948         Updated all callers.
2949         * src/libs/libgroff/paper.cc: Add four more paper formats used by
2950         grolj4.
2951         * src/include/paper.h: Updated.
2953         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
2954         Other minor C syntax fixes.
2955         (papersize, paperlength, paperwidth): Renamed to `user_*'.
2956         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
2957         members.
2958         (lbp_printer::lbp_printer): Pass three arguments.
2959         Set paper dimensions properly.
2960         (make_printer, main): Updated.
2961         (handle_unknown_desc_command): Fix error messages.
2962         (main): Handle papersize keyword in DESC properly.
2964         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
2965         `user_paper_size'.
2966         (lbp_printer::lbp_printer): Pass an argument.
2967         Set paper_size properly.
2968         (handle_unknown_desc_command): Removed.
2969         (make_printer, main): Updated.
2970         * src/devices/grolj4/grolj4.man: Minor documentation fix.
2972         * man/groff_font.man, NEWS: Updated.
2974 2002-07-07  Werner LEMBERG  <wl@gnu.org>
2976         Integrated eqn2graph, contributed by Eric S. Raymond.
2978         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
2979         files.
2980         * Makefile.in, NEWS: Updated.
2982 2002-06-04  Werner LEMBERG  <wl@gnu.org>
2984         Changing the substring request to make it fit better with other
2985         string manipulation functions in other programming languages:
2986         Index 0 is now the first character in the string, and index -1
2987         indicates the last character.  Since this request didn't work
2988         properly anyway in the last release, it doesn't harm too much to
2989         change the syntax.
2991         * src/roff/troff/input.cc (substring_macro): Use loops to get
2992         the real string length (ignoring COMPATIBLE_SAVE and
2993         COMPATIBLE_RESTORE) and offsets.
2994         Implement change described above.
2996         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
2997         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
2999         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
3001 2002-06-03  Werner LEMBERG  <wl@gnu.org>
3003         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
3004         COMPATIBLE_RESTORE are completely ignored.
3006         * src/roff/troff/input.cc (char_list::set, char_list::get): New
3007         functions.
3008         (macro): `length' field renamed to `len'.
3009         Added new field `empty_macro' (1 if macro is empty), to be used
3010         instead of checking `len'.
3011         Updated all callers.
3012         (macro::empty): Updated.
3013         (macro::length, macro::set, macro::get): New functions.
3014         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3015         Set `empty_macro'.
3016         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
3017         COMPATIBLE_RESTORE pairs.
3018         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3019         * src/roff/troff/request.h: Updated.
3021         * doc/groff.texinfo: Document .chop's behaviour better.
3023 2002-06-02  Werner LEMBERG  <wl@gnu.org>
3025         * doc/pic.ms: Fix documentation for the addition of positions.
3027         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
3029 2002-06-29  Werner LEMBERG  <wl@gnu.org>
3031         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
3033         * src/roff/troff/input.cc (have_string_arg): New global variable.
3034         (read_mode): New enumeration.
3035         (read_escape_name): Use it.  Update all calls.
3036         (read_long_escape_name): Use it.  Update all calls.
3037         Set have_string_arg if appropriate.
3038         (get_char_for_escape_name): Add parameter for handling space
3039         character.
3040         (interpolate_string_with_args, decode_string_args): New functions.
3041         (get_copy, token::next): Call it if necessary.
3042         (interpolate_string): Fix error message.
3044         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3045         Document it.
3047 2002-06-24  Bernd Warken  <bwarken@mayn.de>
3049         * man/groff_tmac.man: Updated and extended.
3051 2002-06-24  Werner LEMBERG  <wl@gnu.org>
3053         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
3055 2002-06-23  Werner LEMBERG  <wl@gnu.org>
3057         * doc/pic.ms: Improve documentation of composite block objects.
3059 2002-06-22  Werner LEMBERG  <wl@gnu.org>
3061         * src/roff/troff/input.cc (init_registers): Add three registers
3062         `seconds', `minutes', and `hours' to hold the current time.
3064         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3065         Updated.
3067 2002-06-20  Werner LEMBERG  <wl@gnu.org>
3069         Make \X accept both `\ ' and `\~', converting them to single space
3070         characters.
3072         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
3073         (token::unstretchable_space): New inline function.
3074         * src/roff/troff/input.cc (token::next, token::delimiter,
3075         token::description, token::add_to_node_list, token::process): Handle
3076         TOKEN_UNSTRETCHABLE_NODE.
3077         (encode_char): Handle tok.stretchable_space and
3078         tok.unstretchable_space.
3080         * NEWS, doc/groff.texinfo: Document it..
3082 2002-06-19  Werner LEMBERG  <wl@gnu.org>
3084         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
3086         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
3087         keyword to enable/disable SGR output.
3088         (tty_printer::change_fill_color): New function.
3089         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
3091         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
3092         call.
3094 2002-06-18  Werner LEMBERG  <wl@gnu.org>
3096         Add a `color' request and a `.color' register to control usage of
3097         colours.
3099         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
3100         (color_flag): This (which is the inverse).
3101         (activate_color): New function.
3102         (main, init_input_requests): Updated.
3103         * src/roff/troff/troff.h, src/roff/troff/node.cc
3104         (troff_output_file::fill_color, troff_output_file::glyph_color):
3105         Updated.
3107         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3108         Document the changes.
3110 2002-06-17  Colin Watson  <cjwatson@debian.org>
3112         Circumvent bug in autoconf 2.53 regarding top_builddir.
3114         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
3115         * Makefile.in, doc/Makefile.in:
3116         s/@top_builddir@/@groff_top_builddir@/.
3117         * configure: Regenerated (with autoconf 2.53).
3119 2002-06-17  Werner LEMBERG  <wl@gnu.org>
3121         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
3122         `paperwidth' and `paperlength' for the `papersize' keyword.
3124 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
3126         * src/devices/grops/grops.man: Add info about Type 42 fonts.
3128 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
3130         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
3131         html_printer::do_linelength, html_printer::do_pageoffset,
3132         html_printer::do_indentation, html_printer::do_tempindent,
3133         html_printer::do_break, html_printer::begin_page): Clear indented
3134         text.
3135         * tmac/html.tmac: Disable hyphenation.
3137 2002-06-15  Werner LEMBERG  <wl@gnu.org>
3139         Don't produce HTML files if utility programs are missing.
3141         * Makefile.in (make_html, make_install_html): New variables.
3142         (MDEFINES): Updated.
3144         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
3145         utility programs.
3146         * configure.ac: Use it.
3147         * configure: Regenerated.
3149         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
3150         (HTMLEXAMPLESFILES): This new variable.
3151         (EXAMPLESIMAGEFILES): Renamed to...
3152         (HTMLEXAMPLEIMAGEFILES): This.
3153         (CLEANADD): Add HTMLEXAMPLEFILES.
3154         (all): Use `make_html'.
3155         (html): New target.
3156         (install_data): Use `make_install_html'.
3157         Move html stuff to...
3158         (install_html): This new target.
3159         (uninstall_sub): Updated.
3161 2002-06-14  Bernd Warken  <bwarken@mayn.de>
3163         * src/roff/grog/Makefile.sub (grog): Renamed to...
3164         (grog.old): This.
3165         (grog): New rule to always install grog.sh as grog.
3167 2002-06-08  Bernd Warken  <bwarken@mayn.de>
3169         * src/roff/grog/grog.pl: Fix typo.
3171 2002-06-07  Werner LEMBERG  <wl@gnu.org>
3173         * doc/groff.texinfo: Add more info on .tr arguments.
3175 2002-06-05  Werner LEMBERG  <wl@gnu.org>
3177         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3179         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
3180         * configure: Regenerated.
3182 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3184         * src/roff/troff/symbol.cc (table_sizes): Add more values.
3186         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
3188 2002-06-04  Werner LEMBERG  <wl@gnu.org>
3190         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
3191         is not initialized at the time we need it in case `--prefix' hasn't
3192         been set.  Check for `ac_default_prefix' also.
3193         Test for `papersize' keyword also and generalize allowed whitespace.
3194         * configure: Regenerated.
3196         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
3197         `paperlength'.
3199         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
3200         with...
3201         (src_version, src_revision): New variables to avoid overwriting
3202         from parent make process.
3203         (version.cc): Updated.
3205         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
3206         (linebuf, linebufsize): New global variables.
3207         (sys_fatal): Use `fatal' to abort properly.
3208         (get_line): New function.
3209         (get_resolution): Use it.
3210         Improve error messages.
3211         (get_papersize): Check `papersize' also.
3212         Use `get_line'.
3213         Improve error messages.
3215 2002-06-03  Werner LEMBERG  <wl@gnu.org>
3217         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
3218         should be removed only if builddir is not srcdir.
3219         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
3220         (clean): Depend on `mostlyclean'.
3221         (distclean): Depend on `clean'.
3222         (realclean, extraclean): Depend on `distclean'.
3223         (.y.cc, .y.o): Simplified.  The output files are no longer written
3224         to srcdir but to builddir.
3225         * Makefile.in (MDEFINES): Add `version' and `revision'.
3226         (uninstall_dirs): Fix order of directories.
3227         * doc/Makefile.sub (version, revision): Removed.
3228         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
3229         Added `HTMLDOCFILES'.
3230         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
3231         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
3232         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
3233         as prefix.
3235         * doc/texinfo.tex (\authortt): New macro.
3236         (\shortcontt): Define.
3237         (\titlepage): Set \tt to \authortt while defining \authorfont.
3238         (\appendixbox): New macro.
3239         (\chapmacro, \appendixentry): Use \appendixbox to get even
3240         indentation for letters.
3241         (\summarycontents): Set \tt.
3242         (\internalpagesize): Add two arguments for real paper width and
3243         height as needed by pdfTeX.
3244         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
3245         Updated.
3246         (\tempdima, \tempdimb): New temporary dimensions.
3247         (\pagesizesyyy): Updated.
3249 2002-06-02  Werner LEMBERG  <wl@gnu.org>
3251         Adding a new keyword `papersize' to the DESC file format (similar
3252         but not completely identical to grolbp's extension).  grops now has
3253         a -p command line option to override `papersize'.  Finally, grolbp
3254         has been adapted to the new syntax.
3256         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
3257         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
3258         elements.
3259         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
3260         (CCSRCS): Add `paper.cc'.
3262         * src/include/font.h (font): Add `papersize' element.
3263         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
3264         (font::scan_papersize): New function.
3265         (font::load_desc): Use it for handling `papersize' keyword.
3266         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
3268         * src/devices/grops/ps.cc: Include paper.h.
3269         (user_paper_length): New global variable.
3270         (ps_printer): Use paper length as initializer.
3271         (make_printer): Updated.
3272         (main): Handle new `-p' option.
3273         * src/devices/grops/grops.man: Updated.
3275         * src/devices/grolbp/lbp.cc: Include paper.h.
3276         s/papersizes/lbp_papersizes/.
3277         (set_papersize): Use new `papersizes' array.
3278         (handle_unknown_desc_command): Don't handle `papersize'.
3279         (main): Use `font::scan_papersize' for handling `-p' option.
3280         * src/devices/grolbp/grolbp.man: Updated.
3282         * man/groff_font.man: Document `papersize'.
3283         * NEWS: Updated.
3285 2002-05-30  Werner LEMBERG  <wl@gnu.org>
3287         * src/devices/grops/TODO: Updated.
3288         * src/devices/grops/grops.man: More info on paper formats.
3289         * man/groff_font.man: Document `paperheight' and `paperwidth'.
3291 2002-05-29  Werner LEMBERG  <wl@gnu.org>
3293         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
3294         to list only if srcdir != currdir.
3295         (distfiles): New target.
3297         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
3298         (NOMAKEDIRS): New variable.
3299         (DISTDIRS): Use it.
3301 2002-05-26  Werner LEMBERG  <wl@gnu.org>
3303         Add .output request, similar to \! at top-level.
3305         * src/roff/troff/input.cc (transparent): Remove unused declaration.
3306         (output_request): New function.
3307         (init_input_requests): Add it.
3308         Sorted.
3309         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3310         Document it.
3312         * Makefile.in (MDEFINES): Add INSTALL_INFO.
3313         (prepare_examples): Fix typo.
3314         * doc/groff.texinfo (@direntry): Fix it.
3316 2002-05-25  Werner LEMBERG  <wl@gnu.org>
3318         Including the doc subdir into groff's Makefile system.
3320         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
3321         * configure.ac: Use it.
3322         Generate `doc/Makefile'.
3323         * configure: Regenerated.
3325         * Makefile.in (infodir, INSTALL_INFO): New variables.
3326         (MDEFINES, uninstall_dirs): Updated.
3327         (OTHERDIRS): Add `doc'.
3328         * Makefile.comm (CLEANDIRADD): New variable.
3329         (mostlyclean): Use it.
3331         * doc/Makefile.sub, doc/Makefile.in: New files.
3332         * doc/Makefile: Removed.
3334         * NEWS, INSTALL: Updated.
3336 2002-05-24  Werner LEMBERG  <wl@gnu.org>
3338         * doc/homepage.ms: Renamed to ...
3339         * doc/webpage.ms: This.
3340         Use `.NHR'.
3342 2002-05-23  Werner LEMBERG  <wl@gnu.org>
3344         Integrating the `mom' macro package, contributed by Peter Schaffter
3345         <df191@ncf.ca>.
3347         * contrib/mom/*: New subdirectory tree.
3348         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
3349         be used for documentation files.
3350         (MDEFINES, uninstall_dirs): Use them.
3351         (OTHERDIRS): Add contrib/mom.
3352         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
3353         @HTMLDOCDIR@.
3354         * MANIFEST, NEWS: Updated.
3356 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
3358         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
3359         if at outer level; at start-up we are at outer level.
3361         * src/roff/troff/input.cc (do_suppress): Implement it.
3362         Simplify \O[3].
3364         Add option -p to show progress information.
3365         pre-grohtml will now render only one page at a time, reducing the
3366         size of needed disk resources enormously.
3368         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
3369         (imagePageName): New global variable.
3370         (psPageName, show_progress, currentPageNo): New global variables.
3371         (html_system): Close saved stderr and stdout handles.
3372         (write_end_image): Accept a parameter to control \O escape.
3373         (write_start_image): Adapted to new \O meaning.
3374         (char_buffer::write_upto_newline): Updated.
3375         (createAllPages): Replaced with...
3376         (createPage): This new function to create a single page for images.
3377         It uses `psselect' from the psutils package.
3378         (removeAllPages): Removed.
3379         (createImage): Updated.
3380         Handle progress display.
3381         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
3382         (scanArguments): Add option -p.
3383         (makeTempFiles): Updated to create temp files for psPageName and
3384         imagePageName.
3385         (removeTempFiles): Removed.
3386         (main): Updated.
3388         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
3389         html_printer::write_header): Append `\0' to `buffer'.
3390         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
3391         (main): Handle -p.
3392         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
3393         Handle `text_emitted'.
3394         (html_text::table_is_void): Slightly rewritten.
3395         (stop): New external symbol.
3396         (html_text::do_push) [DEBUGGING]: Use it and simplify.
3397         (html_text::shutdown): Call `dump_stack'.
3398         (html_text::do_space): Rewritten.
3399         * src/devices/grohtml/grohtml.man: Document -p and the need of
3400         `psselect'.
3402         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
3403         new \O syntax.
3404         Call \O[0] if `ps4html' is active.
3405         * tmac/s.tmac (@EQ, @EN): Handle html better.
3406         (@TS, TE): Ditto.
3407         * tmac/html.tmac: Don't use black for background colour.
3409         * src/roff/troff/node.cc: Include `div.h'.
3410         (troff_output_file::really_print_line): Don't use `is_on'. 
3411         (troff_output_file::word_marker, troff_output_file::flush_tbuf
3412         troff_output_file::check_charinfo,
3413         troff_output_file::put_char_width, troff_output_file::put_char,
3414         troff_output_file::determine_line_limits, troff_output_file::draw,
3415         real_output_file::begin_page, glyph_color_node::tprintf,
3416         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
3417         Use `is_on'.
3418         (troff_output_file::really_on): Call `do_motion'.
3419         (suppress_node::tprint): Use `get_page_number' instead of `%'
3420         register.
3421         Call `reset_output_registers' conditionally on `is_on'.
3423         * doc/groff.texinfo: Document new syntax of \O.
3424         * NEWS, man/groff_diff.man: Updated.
3426 2002-05-22  Werner LEMBERG  <wl@gnu.org>
3428         * MORE.STUFF: Add info about David Frey's deroff implementation.
3429         Mention troff.org.
3431 2002-05-16  Werner LEMBERG  <wl@gnu.org>
3433         Pic's `with' attribute now accepts positions.
3435         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
3436         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
3437         conflicts.
3438         (object_spec): Add rule for `WITH' and `position'.
3439         (relative_path): Give `corner' the precedence of `CHOP'.
3440         * src/preproc/pic/object.h (path): New members `pos' and
3441         `is_position'.
3442         * src/preproc/pic/object.cc: Updated initializers of `path'.
3443         (path::follow): Handle `is_position'.
3445         * doc/pic.ms: Completely updated grammar description.
3446         Many typographical improvements.
3448 2002-05-15  Werner LEMBERG  <wl@gnu.org>
3450         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
3451         code of x in range 0-127) also.
3452         * doc/groff.texinfo, man/groff_diff.man: Updated.
3454         Added keywords `north', `south', `east', and `west' for corners
3455         in pic.
3457         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
3458         and WEST.
3459         (yylex): Handle them.
3460         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
3461         (corner): Handle them.
3463 2002-05-14  Werner LEMBERG  <wl@gnu.org>
3465         * src/devices/grops/grops.man: Clarify handling of `download' file.
3467 2002-05-11  Werner LEMBERG  <wl@gnu.org>
3469         Adding `warnscale' and `spreadwarn' requests, based on a patch from
3470         Jeffrey Friedl <jfriedl@yahoo.com>.
3472         * src/roff/troff/input.cc (spread_limit, warn_scale,
3473         warn_scaling_indicator): New global variables.
3474         (warnscale_request, spreadwarn_requests): New functions.
3475         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
3476         (init_input_requests): Updated.
3477         (error_type): Add `OUTPUT_WARNING'.
3478         (do_error): Handle it.
3479         (output_warning): New warning function which shows output location.
3480         * src/roff/troff/env.h (spread_limit): New external variable.
3481         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
3482         `output_warning'.
3483         (distribute_space): Emit warning if added space is larger than
3484         `spread_limit'.
3485         (environment::possibly_break_line): Emit warning if a line can't
3486         be adjusted on both sides.
3488         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
3490 2002-05-08  Werner LEMBERG  <wl@gnu.org>
3492         * src/roff/troff/node.cc (special_node::special_node): Use
3493         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
3494         \X''\% crashes, for example.
3496         * doc/groff.texinfo: Document \! and \? used at top-level.
3498 2002-05-06  Werner LEMBERG  <wl@gnu.org>
3500         * src/preproc/pic/pic.man: Fix some keyword syntax.
3501         Other minor typographical fixes.
3503         * src/roff/groff/groff.man: Fix typos.
3505 2002-05-04  Werner LEMBERG  <wl@gnu.org>
3507         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
3508         (ShortOpt[]): This to avoid problems with refer.
3510         * doc/pic.ms: Fix typo.
3511         Fix pic grammar description.
3513         * tmac/an-old.tmac (ne): Use de1, not de.
3515 2002-05-03  Werner LEMBERG  <wl@gnu.org>
3517         * doc/groff.texinfo: Finished separation of glyphs and characters.
3518         Don't use the string `Appendix' for appendix headers (both in
3519         the text and the table of contents).
3520         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
3521         directories.
3523         Use registers LL and LT (similar to -ms) for controlling the
3524         length of title and line, respectively, in the -man and -mdoc
3525         macro packages.
3527         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
3528         (doc-setup-page-layout): Use \n[LL] and \n[LT].
3529         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
3530         (TH): Use \n[LL].
3531         (an-header, an-p-footer): Use \n[LT].
3532         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
3533         doc/groff.texinfo: Document it.
3535 2002-05-02  Werner LEMBERG  <wl@gnu.org>
3537         * doc/fdl.texi: New file.
3538         * doc/groff.texinfo: Include it.
3539         Define and use @copying.
3540         Starting with separating glyph, symbol, and character.
3542 2002-04-27  Werner LEMBERG  <wl@gnu.org>
3544         * Makefile.in (EXEEXT): Set it.
3545         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
3546         programs.
3548         * src/include/nonposix.h: Define GS_NAME.
3549         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
3551         Some preliminary changes for EMX support under OS/2.
3553         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
3554         __EMX__ similar to __MSDOS__.
3555         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
3557 2002-04-25  Werner LEMBERG  <wl@gnu.org>
3559         * doc/groff.texinfo: Integrated groff_out.man.
3560         Some macro fixes.
3562 2002-04-23  Werner LEMBERG  <wl@gnu.org>
3564         * man/groff_out.man: Minor fixes.
3566 2002-04-23  Werner LEMBERG  <wl@gnu.org>
3568         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
3569         correct page references.
3570         Fixed many index entries.
3572 2002-04-23  Bernd Warken  <bwarken@mayn.de>
3574         * man/roff.man: Enlarged.
3576 2002-04-22  Werner LEMBERG  <wl@gnu.org>
3578         * doc/groff.texinfo: More examples, other fixes.
3580 2002-04-20  Werner LEMBERG  <wl@gnu.org>
3582         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
3583         will now form a chain, e.g.
3585           .pi foo
3586           .pi bar
3588         is now the same as
3590           .pi foo | bar
3592         This is for compatibility with plan 9's troff.
3594         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
3595         with UNIX troff.
3596         * NEWS: Updated.
3598         * doc/groff.texinfo: Add documentation of remaining requests and
3599         registers.
3601 2002-04-19  Werner LEMBERG  <wl@gnu.org>
3603         * doc/groff.texinfo: Add documentation of remaining escapes.
3605         * font/devdvi/generate/tc.map: Remove entry for `sr'.
3606         * font/devdvi/*TC: Regenerated.
3608 2002-04-18  Werner LEMBERG  <wl@gnu.org>
3610         * src/roff/troff/input.cc (token::next): Make \H behave consistently
3611         if not in compatibility mode, i.e., increment relative to the
3612         previous height.
3613         * doc/groff.texinfo: Updated accordingly.
3615 2002-04-17  Werner LEMBERG  <wl@gnu.org>
3617         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
3619 2002-04-16  Bernd Warken  <bwarken@mayn.de>
3621         * src/roff/groff/groff.man: Improve documentation of -P option.
3622         Other minor fixes.
3624 2002-04-15  Werner LEMBERG  <wl@gnu.org>
3626         Add new escape \F to switch font family.
3628         * src/roff/troff/input.cc (token::next): Handle \F.
3629         * src/roff/troff/env.cc (environment::set_family): Handle
3630         `interrupted' flag.
3631         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3632         Document it.
3634 2002-04-14  Werner LEMBERG  <wl@gnu.org>
3636         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
3637         spaces in tags.
3639 2002-04-13  Werner LEMBERG  <wl@gnu.org>
3641         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
3642         \m[] and \M[], respectively.
3644         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
3645         (symbol::symbol): Handle NULL string and empty string differently.
3646         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
3647         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
3648         Add optional parameter.
3649         Updated calling functions.
3650         (get_copy, do_glyph_color, do_fill_color, token::next): Use
3651         `symbol::is_empty'.
3652         * src/roff/troff/env.cc (environment::set_font): Ditto.
3654         * src/preproc/pic/troff.cc (troff_output::set_fill,
3655         troff_output::reset_color: Updated.
3657         * tmac/www.tmac: Updated.
3659         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
3660         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
3661         Updated.
3663         * tmac/Xps.tmac: Remove some redundant code.
3665         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
3666         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
3667         man/groff_out.man, man/groff.man, man/groff_diff.man,
3668         src/roff/groff/groff.man: Replace \f[P] with \f[].
3670 2002-04-13  Bernd Warken  <bwarken@mayn.de>
3672         * src/include/printer.h, src/libs/libdriver/printer.cc
3673         (printer::change_fill_color): New member function.
3674         * src/libs/libdriver/input.cc (parse_D_command): Use it.
3676 2002-04-12  Werner LEMBERG  <wl@gnu.org>
3678         * doc/groff.texinfo: Completed pass on gtroff reference.
3680 2002-04-11  Werner LEMBERG  <wl@gnu.org>
3682         * doc/groff.texinfo: More fixes.
3684 2002-04-11  Bernd Warken  <bwarken@mayn.de>
3686         * src/include/color.h: Decorate with `const'.
3687         Use `size_t'.
3688         Include `stddef.h'.
3689         * src/libs/libgroff.color.cc: Decorate with `const'.
3690         Use `size_t'.
3691         (color::color): Initialize members.
3692         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
3693         command according to the documentation.
3695         * man/groff_out.man: Updated.
3696         Minor fixes.
3698 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
3700         * src/preproc/html/pre-html.cc (write_start_image): Remove
3701         redundant output.
3702         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
3704         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
3705         \C'hy' caused an assertion failure.
3707         * src/roff/troff/env.cc (environment::environment): Initialize
3708         `emitted_node'.
3709         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
3711 2002-04-10  Werner LEMBERG  <wl@gnu.org>
3713         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3714         Document pvs request and .pvs register.
3716 2002-04-09  Werner LEMBERG  <wl@gnu.org>
3718         * doc/groff.texinfo: Improve and fix documentation of diversions
3719         and environments.
3721 2002-04-08  Werner LEMBERG  <wl@gnu.org>
3723         * doc/groff.texinfo: Fix documentation of drawing functions.
3724         Other minor fixes.
3726 2002-04-07  Werner LEMBERG  <wl@gnu.org>
3728         * doc/groff.texinfo: Better documentation of double quotes as
3729         arguments.
3730         Other minor fixes.
3732 2002-04-06  Werner LEMBERG  <wl@gnu.org>
3734         * man/groff_font.man: Document names of special characters better.
3735         * doc/groff.texinfo: Minor improvements.
3737         * tmac/lbp.tmac: Load latin1.tmac.
3738         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
3740         * font/devX*/*: Regenerated (all chars > 0x80 removed).
3742 2002-04-05  Werner LEMBERG  <wl@gnu.org>
3744         * tmac/tty.tmac: Don't use shc request.
3745         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
3746         * NEWS: Updated.
3748         * man/groff_diff.man: Minor fixes.
3750         * font/devlbp/*: Remove all `charXXX' entities.
3752         * src/libs/libgroff/font.cc (font::~font): Deallocate
3753         `special_device_coding'.
3754         (font::load): Use `new' for allocating `special_device_coding'.
3755         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
3756         Removed unused member.
3758 2002-04-05  Werner LEMBERG  <wl@gnu.org>
3760         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
3761         (resource_manager::do_begin_binary,
3762         resource_manager::do_begin_data): Use it.
3764         * doc/texinfo.tex: Updated to version 4.2.
3766         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
3767         (token::zero_width_break): New inline function.
3768         * src/roff/troff/input.cc (token::next): Use it.
3769         (token::description): Updated.
3770         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
3771         (token::add_to_node_list, token::process): Use it.
3772         * NEWS, doc/groff.texinfo: Updated.
3774         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
3775         * tmac/tty.tmac: Add missing backslash.
3777 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
3779         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
3780         `.ps' register instead of `.s' to handle fractional point sizes.
3781         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
3782         limit_box::output): Ditto.
3783         * src/preproc/eqn/other.cc (size_box::compute_metrics,
3784         size_box::output): Ditto.
3785         * src/preproc/eqn/over.cc (over_box::compute_metrics,
3786         over_box::output): Ditto.
3787         * src/preproc/eqn/script.cc (script_box::compute_metrics,
3788         script_box::output): Ditto.
3789         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
3790         sqrt_box::output): Ditto.
3792 2002-04-03  Michael Selway  <mas@ssl.co.uk>
3794         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
3795         Fix typo.
3797 2002-04-03  Werner LEMBERG  <wl@gnu.org>
3799         * doc/homepage.ms: Reduce title size.
3800         * doc/groff.texinfo: Fix documentation of .t register.
3801         Fix handling of colon.
3802         Fix `\' vs. `\\'.
3804         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
3805         only if page length is positive to avoid a loop.
3807         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
3808         tbl.
3810 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
3812         * src/include/nonposix.h, src/roff/groff/pipeline.c:
3813         s/__CYGWIN32__/__CYGWIN__/.
3815 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
3817         * doc/gnu.xpm: New image contributed by Emily Mulley.
3818         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
3819         (homepage.html): Be dependent on gnu.eps.
3820         * doc/homepage.ms: Updated to new image.
3822         * src/devices/grohtml/post-html.cc (html_printer): New member
3823         `sbuf_prev_hpos'.
3824         (html_printer::flush_sbuf, html_printer::set_char): Set it.
3825         (html_printer::sbuf_continuation): Use it.
3827 2002-03-28  Werner LEMBERG  <wl@gnu.org>
3829         * src/libs/libgroff/getopt.c: Updated to latest version.
3831         * tmac/README: More on hyphen.tex license.
3833 2002-03-26  Larry Kollar  <kollar@alltel.net>
3835         * doc/groff.texinfo: Add documentation of most missing requests.
3837 2002-03-25  Werner LEMBERG  <wl@gnu.org>
3839         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
3840         of `+-', `mu', and `di', respectively.
3842         * font/devascii/R.proto, font/devutf8/R.proto,
3843         font/devlatin1/R.proto, font/devhtml/R.proto,
3844         font/devcp1047/R.proto, font/devlpb/*: Add them.
3845         * font/devps/generate/textmap: Ditto.
3846         * font/devps/*: Regenerated.
3847         * font/devlj4/generate/text.map: Add them.
3848         * font/devlj4/*: Regenerated.
3849         * font/devdvi/generate/tc.map: Use them.
3850         * font/devdvi/generate/texsy.map: Add them.
3851         * font/devdvi/*: Regenerated.
3852         * font/devX*/*: Regenerated.
3854         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
3855         tmac/tty-char.tmac: Updated.
3857         * NEWS, man/groff_char.man: Updated.
3859 2002-03-24  Werner LEMBERG  <wl@gnu.org>
3861         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
3862         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
3863         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
3864         we use `.fchar' in dvi.tmac.
3865         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
3866         * tmac/Xps.tmac: Simplify some char definitions.
3867         Add definition for \[f/].
3868         * man/groff_char.man: Updated for new X.tmac.
3870         * tmac/README: New file.
3872 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
3874         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
3875         internal .y.o rule took precendence over the .y.cc rule, compiling
3876         the yacc files with gcc instead of g++.
3878 2002-03-23  Werner LEMBERG  <wl@gnu.org>
3880         * tmac/dvi.tmac: Add replacement font for `CB'.
3882         * tmac/doc.tmac: s/request/macro/ in messages.
3883         (doc-generic-macro): Improve error message.
3884         * tmac/groff_mdoc.man: Minor improvements.
3886 2002-03-22  Werner LEMBERG  <wl@gnu.org>
3888         * doc/groff.texinfo: Document possible conflict between `tr' and
3889         `char' requests.
3891 2002-03-21  Werner LEMBERG  <wl@gnu.org>
3893         Improve handling of hyphenation patterns.  It is now possible to
3894         use most of TeX's pattern files unmodified.  To make the process
3895         more flexible, a new request `hpfcode' has been added which
3896         provides a character code mapping for the `hpf' request.  See
3897         comment before hpf_getc() for more details.
3899         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
3900         functions.
3901         (read_patterns_file): Additional parameter for exception dictionary.
3902         Extended to recognize \pattern, \hyphenation, and \endinput.
3903         (do_hyphenation_patterns_file): Updated.
3904         * src/roff/troff/env.h (hpf_code_table): New extern.
3906         * src/roff/troff/input.cc (hpf_code_table): New array.
3907         (init_hpf_code_table, hyphenation_patterns_file_code): New
3908         functions.
3909         (hyphenation_code): Handle translation from `trin' correctly.
3910         (main, init_input_requests): Updated.
3911         (charinfo::set_translation): Handle hyphenation code also.
3913         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
3914         inline function.
3916         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
3917         char' is used for offsets in hyphenation exceptions.
3919         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
3921         * NEWS, man/groff_diff.man, man/groff.man: Document it.
3923 2002-03-20  Larry Kollar  <kollar@alltel.net>
3925         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
3926         requests.
3928 2002-03-18  Werner LEMBERG  <wl@gnu.org>
3930         * tmac/html.tmac: Fix serious typo.
3932 2002-03-17  Larry Kollar  <kollar@alltel.net>
3934         * doc/groff.texinfo: Add documentation for `writec' request.
3936 2002-03-17  Werner LEMBERG  <wl@gnu.org>
3938         Added request `hpfa' to append hyphenation patterns.
3940         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3941         parameter `append'.
3942         (hyphenation_patterns_file): Renamed to...
3943         (do_hyphenation_patterns_file): This.
3944         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
3945         functions.
3946         (init_hyphen_requests): Updated.
3947         * NEWS, man/groff.man, man/groff_diff.man: Document it.
3949 2002-03-16  Werner LEMBERG  <wl@gnu.org>
3951         Added request `writec' in analogy to `tmc'.
3953         * src/roff/troff/input.cc (write_request): Renamed to...
3954         (do_write_request): This.
3955         Added one parameter.
3956         (write_request, write_request_continue): New functions.
3957         (init_input_requests): Updated.
3958         * NEWS, man/groff.man, man/groff_diff.man: Document it.
3960         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
3961         5-10000pt.
3962         * NEWS: Document it.
3964 2002-03-15  Werner LEMBERG  <wl@gnu.org>
3966         * man/groff.man: Add writem request.
3968         Add request `trin' (translate input) to make `.asciify' work
3969         correctly.  This is necessary since `charXXX' entity names are no
3970         longer hardcoded in font definition files.
3972         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
3973         `translate_input' members.
3974         (charinfo::set_asciify_code, charinfo::get_asciify_code,
3975         charinfo::set_translation_input): New methods.
3976         (charinfo::set_translation): Add third argument.
3977         * src/roff/troff/input.cc (charinfo:set_translation): Set
3978         `asciify_code'.
3979         (do_translate): Add second argument.
3980         (translate_input): New function.
3981         (init_input_requests): Updated.
3982         * src/roff/troff/node.cc (glyph_node::asciify,
3983         composite_node::asciify): Use `get_asciify_code'.
3985         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
3987         * NEWS, man/groff.man, man/groff_diff.man: Updated.
3989 2002-03-14  Larry Kollar  <kollar@alltel.net>
3991         * doc/groff.texinfo: Improve documentation of .RS and .RE.
3993 2002-03-14  Werner LEMBERG  <wl@gnu.org>
3995         Add a new request `sizes' similar to the `sizes' command in DESC
3996         files.
3998         * src/roff/troff/env.cc (override_sizes): New function.
3999         (init_env_requests): Use it.
4000         * src/roff/troff/token.h: Export `read_string'.
4001         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4003 2002-03-12  Werner LEMBERG  <wl@gnu.org>
4005         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
4007 2002-03-10  Werner LEMBERG  <wl@gnu.org>
4009         * tmac/pspic.tmac: Add support for -Tdvi.
4010         * tmac/dvi.tmac: Include pspic.tmac.
4011         * src/devices/grodvi/grodvi.man: Document it.
4012         * NEWS: Updated.
4014         * font/devlj4/generate/Makefile: Fix URL of metric files.
4016 2002-03-09  Werner LEMBERG  <wl@gnu.org>
4018         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
4020 2002-03-09  Larry Kollar  <kollar@alltel.net>
4022         * tmac/groff_ms.man: Add documentation for RS and RE macros.
4024 2002-03-08  Werner LEMBERG  <wl@gnu.org>
4026         * doc/groff.texinfo: Fixes for texinfo 4.1.
4028 2002-03-07  Werner LEMBERG  <wl@gnu.org>
4030         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
4031         included.
4032         Handle CYGWIN properly.
4034 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
4036         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
4037         * tmac/lbp.tmac: Add some font translations.
4039 2002-03-02  Werner LEMBERG  <wl@gnu.org>
4041         * font/devcp1047/R.proto, font/devlatin1/R.proto,
4042         font/devhtml/R.proto: Remove `charXXX'  entries.
4043         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
4044         where appropriate.
4046         * font/devlj4/generate/text.map: Remove `charXXX' entries.
4047         * font/devlj4/*: Regenerated all font definition files.
4048         * tmac/lj4.tmac: Load latin1.tmac.
4050         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
4051         from 2000-06-17: LJ4 metric files are *not* text files.
4053         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
4054         register to test for EBCDIC.
4056 2002-03-01  Werner LEMBERG  <wl@gnu.org>
4058         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
4059         files (as grops already does).
4060         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
4061         files.
4062         * src/devices/grops/grops.man: Document comment lines in encoding
4063         files.
4065         * tmac/cp1047.tmac: New file.
4066         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
4067         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
4068         * tmac/Makefile.sub (NORMALFILES): Updated.
4070         * tmac/ec.tmac: Don't load latin1.tmac again.
4072         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
4073         font/devps/generate/dingbats.map,
4074         font/devps/generate/dingbats.rmap, font/devps/text.enc,
4075         font/devps/generate/Makefile (symbolmap): Add header comment.
4076         * font/devps/generate/textmap: Ditto.
4077         Remove `charXXX' entries.
4078         * font/devps/symbolmap: Regenerated.
4079         * font/devps/*: Regenerated all font definition files.
4081 2002-02-28  Werner LEMBERG  <wl@gnu.org>
4083         Add color support to grodvi (for drawing colors are currently
4084         translated to gray values).
4086         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
4087         (dvi_printer): Add `cur_color' member.
4088         (dvi_printer::set_color): New function.
4089         (draw_dvi_printer): Remove `fill'.
4090         (draw_dvi_printer::fill_next): Pass environment as parameter.
4091         Update code for new color support translated to gray.
4092         (dvi_printer::set_char): Updated.
4093         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
4094         changes crossing the page border.
4095         (dvi_printer::draw): Updated.
4096         Remove cases `f' and `F'.
4097         * tmac/dvi.tmac: Add color definitions.
4098         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4100         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
4101         used incorrectly.
4103         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
4104         versions of autoconf.
4105         * configure: Updated.
4107         * doc/homepage.ms: Use `.blm'.
4108         * tmac/www.tmac (www-depth): New auxiliary variable.
4109         (www-pop-level): Don't issue HTML tag.
4110         (ULS, ULE, LI): Use absolute indentation.
4112         * src/devices/grops/ps.cc (ps_printer::begin_page,
4113         ps_printer::end_page): Switch forth and back to default color while
4114         starting a new page.
4116 2002-02-27  Werner LEMBERG  <wl@gnu.org>
4118         Add EC and TC fonts to devdvi.
4120         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
4121         * font/devdvi/generate/cork.map: Renamed to...
4122         * font/devdvi/generate/ec.map: This.
4123         Remove entry for `aq'.
4124         * font/devdvi/generate/tc.map: New file.
4125         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
4126         EC and TC fonts.
4127         (FONTS): Updated.
4128         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
4129         * font/devdvi/Makefile.sub (DEVFILES): Updated.
4130         * tmac/ec.tmac: New file.
4131         * tmac/Makefile.sub (NORMALFILES): Updated.
4132         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4133         * man/groff_char.man: Check `ECFONTS' register.
4135         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
4137 2002-02-26  Werner LEMBERG  <wl@gnu.org>
4139         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
4140         * font/devdvi/generate/cork.map: Add 'y and 'Y.
4141         * font/devdvi/*: Updated.
4142         * tmac/dvi.tmac: Formatting.
4144         Add font `HBI' for the dvi output.
4145         Add support for font families `T' and `H'.
4147         * font/devdvi/HBI: New file.
4148         * font/devdvi/B: Renamed to ...
4149         * font/devdvi/TB: This.
4150         * font/devdvi/BI: Renamed to ...
4151         * font/devdvi/TBI: This.
4152         * font/devdvi/I: Renamed to ...
4153         * font/devdvi/TI: This.
4154         * font/devdvi/R: Renamed to ...
4155         * font/devdvi/TR: This.
4156         * font/devdvi/H: Renamed to ...
4157         * font/devdvi/HR: This.
4158         * font/devdvi/Makefile.sub (DEVFILES): Updated.
4159         * font/devdvi/generate/Makefile (HBI): New rule.
4160         (FONTS): Updated.
4161         (R, I, B, BI, H): Renamed to ...
4162         (TR, TI, TB, TBI, HR): This, respectively.
4163         (srcdir): Fixed.
4164         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4165         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
4166         Add `styles' and `family' keywords.
4167         * tmac/dvi.tmac: Alias `H' to `HR'.
4168         Add some fspecial requests for italic fonts.
4169         Add TR and TI as special.
4170         Add support for `_' with font CWI.
4172         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
4173         operator `:'.  Until now, the expression `0:1' would return 2
4174         instead of 1.
4176 2002-02-25  Werner LEMBERG  <wl@gnu.org>
4178         * man/groff_char.man: Added some missing PS glyph names (from the
4179         Adobe Glyph List).
4180         * font/devps/generate/textmap, font/devps/symbolmap: Add
4181         `arrowupdn'.
4183         * doc/groff.texinfo: Minor additions and fixes.
4184         * man/groff_diff.man: Remove documentation of fp request.  This
4185         is already covered in the original troff manual.
4186         Updated to be consistent with other doc files.
4187         * NEWS: Updated.
4189 2002-02-24  Werner LEMBERG  <wl@gnu.org>
4191         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
4192         TTYDEVDIRS.
4193         Define new variable OTHERDEVDIRS (containing `font/devlj4
4194         font/devlbp' if not EBCDIC).
4195         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
4196         (OTHERDEVDIRS): New variable.
4197         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
4198         * configure: Regenerated.
4200         * NEWS, src/devices/grotty/grotty.man: Updated.
4202 2002-02-23  Werner LEMBERG  <wl@gnu.org>
4204         * src/roff/troff/input.cc (do_overstrike, do_bracket,
4205         get_line_arg): Honour input level.
4207         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
4209         * font/*/*: Implement it in all font files.
4210         * font/devps/generate/textmap, font/devps/generate/symbolchars,
4211         * font/devps/symbolmap: Updated.
4212         * font/devlj4/generate/text.map: Updated.
4213         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
4214         * font/devdvi/generate/texmi.map: Updated.
4216         * font/devutf8/R.proto: Remove all `charXXX' entries.
4217         * font/devutf8/NOTES: Updated.
4219         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
4220         version 4.1.0.
4222         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
4224         * NEWS, man/groff_char.man: Updated.
4226 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
4228         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
4230 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4232         * src/roff/grog/grog.pl: Fix computation of $refer.
4234 2002-02-19  Werner LEMBERG  <wl@gnu.org>
4236         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
4237         `snprintf' and `vsnprintf'.
4239         * src/include/htmlindicate.h: Renamed to...
4240         * src/include/htmlhint.h: This.
4241         * src/include/Makefile.sub: Updated.
4242         * src/preproc/eqn/main.cc: Updated.
4244 2002-02-18  Werner LEMBERG  <wl@gnu.org>
4246         * man/roff.man, man/groff_out.man, man/groff.man,
4247         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
4248         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
4250         * win32-diffs: Updated.
4252 2002-02-17  Werner LEMBERG  <wl@gnu.org>
4254         * doc/Makefile (clean): Add *.eps.
4255         (MEMACROS): Removed.
4256         (TFLAG): New variable.
4257         (TROFF): Use it.
4258         Add -ww.
4259         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
4260         (.me.dit): Fixed.
4261         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
4263         * tmac/www.tmac: Use dummy diversion while resetting and disabling
4264         `.tl'.
4265         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
4266         unstripped.
4267         * src/roff/troff/troff.man: Fix order of parameter description.
4269         * NEWS: Updated.
4271 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
4273         Simplify image handling for grohtml.
4274         Fix <p> bug.
4276         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
4277         comment out.
4278         (html_text::dump_stack): Don't emit newline while debugging.
4279         (html_text::do_push) [DEBUGGING]: Print more info.
4280         (html_text::check_emit_text): Fix handling of <p>.
4281         * src/devices/grohtml/html.h: Updated.
4282         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
4283         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
4284         send its data to stderr also.
4285         Update all callers.
4286         (simple_output::space_or_newline) [DEBUGGING]: Removed.
4287         * src/devices/grohtml/post-html.cc (html_printer::do_links,
4288         html_printer::html_printer): Remove `DEBUGGING' conditionals.
4290         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
4291         Removed.
4292         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
4293         is_inline_image): Removed.
4294         (html_begin_suppress, html_end_suppress): Don't take a parameter.
4295         (graphic_start, graphic_end): Removed.
4296         * src/include/htmlindicate.h: Updated.
4297         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
4298         (macroset_template): New global variable.
4299         (makeFileName): Use `macroset_template'.
4300         (write_end_image): Don't take a parameter.
4301         Don't emit newline.
4302         (write_start_image: Don't emit newline.
4303         (char_buffer::write_upto_newline): Updated.
4304         (char_buffer::skip_to_newline): Renamed to ...
4305         (char_buffer::skip_until_newline): This.
4306         Fix code.
4307         (char_buffer::write_file_troff, char_buffer::write_file_html):
4308         Simplified.
4309         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
4310         (removeAllPages): Remove `DEBUGGING' conditionals.
4311         (addRegDef, dump_args): New functions.
4312         (char_buffer::do_html, char_buffer::do_image): Handle
4313         `www-image-template' command line variable.
4314         Add more debugging code.
4315         (addps4html): Removed.
4316         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
4318         * src/preproc/eqn/main.cc: Include `ctype.h'.
4319         (suppress_html): Removed.
4320         (do_file): Updated.
4321         (inline_equation): Use `html_begin_suppress' and
4322         `html_end_suppress'.
4323         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
4324         (troff_output::start_picture, troff_output::finish_picture):
4325         Updated.
4326         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
4327         (process_input_file): Updated.
4329         * src/roff/troff/div.cc (page_number): Set page number only if the
4330         `ps4html' register isn't defined.
4331         * src/roff/troff/input.cc (image_no): New external variable.
4332         (do_suppress): Use it.
4333         * src/roff/troff/node.h (suppress_node::image_id): New member.
4334         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
4335         (suppress_node::suppress_node): Initialize `image_id' member.
4336         (suppress_node::same): Handle `image_id' also.
4337         (suppress_node::copy): Updated.
4338         (last_image_id): New global variable.
4339         (suppress_node::tprint): Use it.
4341         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
4342         HTML-IMAGE-END.
4343         * tmac/pspic.mac (PSPIC): Fix html support.
4344         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
4345         * tmac/www.tmac (www-image-template): Set up.
4346         (HTMLINDEX): Renamed to...
4347         (HX): This.
4348         (BODYCOLOR): Renamed to...
4349         (BCL): This.
4350         (BACKGROUND): Renamed to...
4351         (BGIMG): This.
4352         (URL): Change order of parameters for consistency.
4353         (MAILTO): Renamed to...
4354         (MTO): This.
4355         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
4356         (IMG, PIMG, MPIMG): This.
4357         (HTML-H-BEGIN, HTML-H-END): Renamed to...
4358         (HnS, HnE): This.
4359         (LINKS): Renamed to...
4360         (LK): This.
4361         (LINE): Renamed to...
4362         (HR): This.
4363         (NO-AUTO-RULE): Renamed to...
4364         (NHR): This.
4365         (HTML-TL): Renamed to...
4366         (HTL): This.
4367         (UL-BEGIN, UL-END): Renamed to...
4368         (ULS, ULE): This.
4369         (DROPCAP): Renamed to...
4370         (DC): This.
4371         (TS, TE, EQ, EN): Provide default definitions.
4372         (www-make-unique-name): Updated.
4373         (HTML-IMAGE-INLINE): Fix typo.
4374         * tmac/groff_www.man: Updated.
4376         * doc/Makefile (homepage.html): Add option -r to grohtml.
4377         Use shortened image name.
4378         * doc/groff.texinfo: Updated info on grohtml strings and macros.
4379         * doc/homepage.ms: Updated and extended.
4381 2002-02-14  Werner LEMBERG  <wl@gnu.org>
4383         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
4385         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
4386         SGR_BACK_DEFAULT_COLOR): Replaced with ...
4387         (tty_printer::put_color): Use it.
4388         (ttr_printer::end_page): Simplify.
4390 2002-02-13  Werner LEMBERG  <wl@gnu.org>
4392         * tmac/groff_tmac.man: Moved to...
4393         * man/groff_tmac.man: This place.
4394         * tmac/Makefile.sub, man/Makefile.sub: Updated.
4396 2002-02-12  Werner LEMBERG  <wl@gnu.org>
4398         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
4399         $(COMPILE.c) to not include groff's assert.h.
4401         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
4402         variable.
4403         * NEWS, src/drivers/grotty/grotty.man: Document it.
4405 2002-02-11  Werner LEMBERG  <wl@gnu.org>
4407         * src/libs/snprintf/snprintf.c: Updated to latest version
4408         (2002-02-11).
4410         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
4411         test whether there is `.]' also.
4412         Don't check for spaces after `.['.
4413         * src/roff/grog/grog.sh: Do the same.
4415 2002-02-10  Werner LEMBERG  <wl@gnu.org>
4417         Illegal -> Invalid.
4419         * src/libs/libgroff/illegal.cc: Renamed to ...
4420         * src/libs/libgroff/invalid.cc: This.
4421         (illegal_char_table): Renamed to ...
4422         (invalid_char_table): This.
4423         * src/libs/libgroff/Makefile.sub: Updated.
4424         * win32-diffs: Updated.
4426         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
4427         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
4428         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
4429         font::load), src/preproc/eqn/main.cc (read_line, main),
4430         src/preproc/eqn/lex.cc (file_input::read_line),
4431         src/preproc/pic/lex.cc (file_input::read_line,
4432         simple_file_input::get, simple_file_input::peek),
4433         src/preproc/pic/main.cc (top_input::get, top_input::peek),
4434         src/preproc/pic/pic.man, src/preproc/refer/main.cc
4435         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
4436         do_bib), src/preproc/tbl/main.cc (table_input::get),
4437         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
4438         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
4439         do_zero_width, read_request, encode_char, ps_get_line,
4440         transparent_file, get_char_for_escape_name, transparent_translate,
4441         asciify, input_char_description, read_string, set_string),
4442         src/roff/troff/env.cc (environment::add_html_tag),
4443         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
4445         * src/include/lib.h: Updated.
4447         * src/preproc/eqn/eqn.cc: Removed.
4449         * NEWS: Updated.
4451         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
4453 2002-02-09  Werner LEMBERG  <wl@gnu.org>
4455         * doc/gnu.xpm: New image.
4456         * doc/Makefile (DOCS): Add homepage.ps.
4457         Add rules for converting xpm->png and xpm->eps.
4458         Use `gnu.{xpm,eps}' as image names.
4459         * doc/homepage.ms: Updated.
4461 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
4463         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
4464         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
4465         Remove calls to `B1' and `B2'
4466         (PNG-IMAGE): New macro for inclusion of images in PNG format.
4467         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
4468         auxiliary variables for MARGIN-PNG-IMAGE.
4469         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
4470         auxiliary macros for MARGIN-PNG-IMAGE.
4471         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
4472         the margin.
4473         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
4474         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
4475         (DROPCAP): New macro to produce dropcap characters.
4476         (www-do-image): Renamed back to...
4477         (HTML-DO-IMAGE): This.
4478         Updated all callers.
4480         * doc/Makefile (gnubw.eps): Updated.
4481         * doc/homepage.ms: Updated.
4483 2002-02-08  Werner LEMBERG  <wl@gnu.org>
4485         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
4486         Added `linethick' to table in section `Style Variables'.
4488 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
4490         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
4492 2002-02-07  Werner LEMBERG  <wl@gnu.org>
4494         Adding options -C (compatibility mode) and -c (grotty's old output
4495         scheme) to nroff.
4497         * src/roff/nroff/nroff.sh: Implement it.
4498         Remove `-Wall'.
4499         * NEWS, src/roff/nroff/nroff.man: Updated.
4501         * PROBLEMS: Document bison 1.32 bug.
4503         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
4505         * src/roff/troff/node.cc (make_tfont): Define it earlier.
4506         * src/roff/troff/div.h: Add prototype for `end_diversions'.
4507         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
4508         * src/roff/troff/env.h: Add prototype for `title'.
4510         Adding EBCDIC support to grotty.
4512         * src/devices/grotty/tty.cc (CSI): New macro.
4513         (SGR_*, tty_printer::put_color): Use it.
4515 2002-02-06  Werner LEMBERG  <wl@gnu.org>
4517         Implementing color support in grotty.  The new switch -c activates
4518         the old drawing scheme, disabling color at the same time.  The new
4519         switch `-i' selects italic instead of underlining (SGR only).
4521         * src/devices/grotty/tty.cc (putstring): New define instead of
4522         `fputs'.  Updated all callers.
4523         (old_drawing_scheme): New global variable.
4524         (COLOR_CHANGE): New enum value.
4525         (SGR_*): New defines containing color handling escape sequences.
4526         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
4527         (glyph): New members `back_color_idx' and `fore_color_idx'.
4528         (glyph::order): Add COLOR_CHANGE.
4529         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
4530         `is_underline', `is_bold', `cu_flag', `tty_colors'.
4531         New methods `make_underline', `make_bold', `color_to_idx',
4532         `change_color', `put_color'.
4533         (cu_flag): Moved into `tty_printer' class.
4534         (tty_printer::tty_printer): Initialize colors.
4535         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
4536         tty_printer::draw, tty_printer::end_page): Handle colors also.
4537         (main): Add options `-c' and `-i'.
4538         (usage): Updated.
4539         * NEWS, src/devices/grotty/grotty.man: Updated.
4541         * src/include/errarg.h (errarg): Add support for `unsigned int'.
4542         * src/libs/libgroff/errarg.c: Implement it.
4544         * src/include/printer.h (printer): Add `change_color' method
4545         (currently used by grotty only).
4546         * src/libs/libdriver/printer.cc: Implement it.
4547         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
4548         call to `pr->change_color'.
4550         * src/roff/troff/node.cc (troff_output_file::fill_color,
4551         troff_output_file::glyph_color): Call `do_motion'.
4553         * tmac/tty.tmac: Add color definitions.
4555         * src/roff/groff/groff.man: Minor fixes.
4557 2002-02-05  Bernd Warken  <bwarken@mayn.de>
4559         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
4560         it.  This is a preparation for future changes.
4562 2002-02-05  Werner LEMBERG  <wl@gnu.org>
4564         * src/roff/troff/input.cc (process_input_stack): Fix the case
4565         where leading spaces are followed by \f or \s; previously, an
4566         incorrect space width has been used.
4568         * doc/roff.man (quoted_char): Fix argument.
4569         (comment): Define string.
4571 2002-02-04  Larry Kollar  <kollar@alltel.net>
4573         * doc/groff.texinfo: More fixes.
4575 2002-02-04  Werner LEMBERG  <wl@gnu.org>
4577         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
4578         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
4579         `restore_compatibility' before `output_string' -- the LINE_STRING
4580         register now already contains proper switches from and to
4581         compatibility mode.
4583         * man/groff_char.man: Add Euro symbol.
4584         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
4585         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
4586         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
4587         Other minor fixes.
4589         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
4590         texinfo->pdf.
4591         (.texinfo.html): Add support for texinfo->html.
4593 2002-02-03  Werner LEMBERG  <wl@gnu.org>
4595         Added three new requests `ds1', `as1', and `ami'.  The former two
4596         are equivalent to `ds' and `as' with the difference that
4597         compatibility mode is saved on entry, switched off during string
4598         expansion, and restored on exit.  The latter is the pendant to `dei'
4599         for `am'.
4601         (do_define_string): Use `define_mode' and `calling mode'.
4602         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
4603         end of string, respectively.
4604         (define_string, append_string): Use `calling_mode'.
4605         (define_nocomp_string, append_nocomp_string,
4606         define_string_indirect): New functions.
4607         (init_input_requests): Updated.
4608         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4610         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
4611         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
4612         mm macro package accesses this string register directly.
4613         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
4615         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
4616         compatibility mode.
4618 2002-02-02  Larry Kollar  <kollar@alltel.net>
4620         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
4622 2002-01-31  Werner LEMBERG  <wl@gnu.org>
4624         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
4626 2002-01-31  Bernd Warken  <bwarken@mayn.de>
4628         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
4629         * man/groff_out.man: Revised and updated.
4631 2002-01-30  Bernd Warken  <bwarken@mayn.de>
4633         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
4634         out the unused `{' and `}' commands.  Undefined by default.
4635         (IntArray): Make `data' private.
4636         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
4637         new methods instead.
4638         (skip_line_D, skip_to_end_of_line): New functions.
4639         (get_D_fixed_args): Use `skip_line_D'.
4640         Changed to handle dummy odd arguments by ...
4641         (get_D_fixed_args_odd_dummy): This new function.
4642         (get_D_variable_args): Split some code into ...
4643         (get_possibly_integer_args): This new function.
4644         (send_draw): Use more `const'.
4645         (delete_current_env): New function.
4646         (position_to_end_of_args): Use `size_t'.
4647         Updated.
4648         (send_draw): Updated.
4649         (parse_D_command): Handle `c', `C', and `t' better.
4650         Updated.
4651         (do_file): Updated.
4653 2002-01-29  Werner LEMBERG  <wl@gnu.org>
4655         * NEWS: Revised.
4656         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
4657         @Def...ListEnd which replaces @Def...x.  This is necessary to get
4658         proper HTML output -- see the comment in the file for more
4659         information.
4660         Updated all calls.
4662 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
4664         Fixes to make color changes of 2002-01-21 work with grohtml.
4666         * src/devices/grohtml/post-html.cc (style): Updated.
4667         (html_printer): Remove unused methods.
4668         (html_printer::do_font, html_printer::draw, html_printer::set_char,
4669         html_printer::special): Updated.
4670         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
4671         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
4672         Added some debugging code.
4673         (html_text::start_tag): Updated.
4674         (html_text::do_push): New method.
4675         (html_text::push_para): Call it.
4676         Add method for handling color.
4677         (html_text::do_color): Updated.
4678         (html_text::shutdown): Handle color.
4679         * src/devices/grohtml/html-text.h (tag_definition): New member
4680         `col'.
4681         Updated.
4683 2002-01-28  Werner LEMBERG  <wl@gnu.org>
4685         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
4687 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
4689         Add two switches -a and -g to control the antialiasing bits for
4690         text and graphics, respectively.
4692         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
4693         `-g'.
4694         * src/devices/grohtml/grohtml.man: Document them.
4695         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
4696         New macros.
4697         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
4698         (setupAntiAlias): New function.
4699         (createAllPages): Updated.
4700         (scanArguments): Handle `-a' and `-g'.
4701         (main): Call `setupAntiAlias'.
4702         * NEWS: Updated.
4704 2002-01-27  Werner LEMBERG  <wl@gnu.org>
4706         * doc/groff.texinfo (Def*): Call index function after deffn.
4708         * tmac/html.tmac: Call `nroff' request.
4710 2002-01-26  Larry Kollar  <kollar@alltel.net>
4712         * tmac/groff_ms.man: Add some omissions.
4714 2002-01-25  Larry Kollar  <kollar@alltel.net>
4716         * tmac/groff_ms.man: Typographical improvements.
4718 2002-01-25  Werner LEMBERG  <wl@gnu.org>
4720         * doc/groff.texinfo: Updated version and copyright.
4721         * src/devices/grops/grops.man: Updated.
4723         * tmac/groff_tmac.man: Fix `ig' macro.
4725         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
4726         nroff mode.
4727         Use `.ne' unconditionally everywhere.
4728         (TS): Only insert some vertical space.  Doing a page break is no
4729         longer necessary due to the redefinition of the `ne' request.
4731         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
4732         warning for unknown subcommands but parse and pass them to the
4733         device driver.
4735 2002-01-24  Werner LEMBERG  <wl@gnu.org>
4737         * tmac/groff_www.man, NEWS: Fix typos.
4739 2002-01-21  Werner LEMBERG  <wl@gnu.org>
4741         Complete revision of color support:
4743           Adapt programs to the new libdriver/input.cc.
4745           Color spaces are no longer converted to RGB but transferred as-is
4746           in the troff intermediate output format.
4748           Handle default color gracefully.  troff now supports a `default'
4749           color (which can't be changed).
4751           grops will now use the proper color space functions if available.
4753           Update pic.
4755         Note that currently grohtml doesn't handle colors properly.  This
4756         has to be fixed.
4758         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
4759         (ui_to_a): New function.
4760         * src/include/lib.h: Updated.
4762         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
4763         (color): Simplified; removed all `double' members and methods.
4764         A new array `components' now holds the color parameters.
4765         (color::is_default, color::get_components): New methods.
4766         (color::operator==, color:operator!=): New.
4767         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
4768         to make access to the `components' array more comprehensible.
4769         * src/libs/libgroff/color.cc: Implement new color support.
4770         (atoh): Small fixes.
4771         (color::read_encoding): Simplified for new troff intermediate color
4772         output format.
4773         (default_color): New global variable.
4775         * src/roff/troff/input.cc (default_symbol): New global variable.
4776         (lookup_color): Use it.
4777         (default_black): Removed.
4778         (do_glyph_color, do_fill_color): Simplified.
4779         (define_color): Handle default color.
4780         Improve warnings.
4781         (do_if_request): Handle default color.
4782         * src/roff/troff/env.cc (environment::environment): Initialize
4783         colors with `default_color'.
4784         * src/roff/troff/node.cc (troff_output_file::put): Add method
4785         for `unsigned int'.
4786         (troff_output_file::hex): Removed.
4787         (troff_output_file::fill_color, troff_output_file::glyph_color):
4788         Updated to include/color.h and libdriver/input.cc.
4790         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
4791         fill color properly (identically to the outline color).  \D'f...'
4792         doesn't work any more.
4793         All function calls to it updated.
4795         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
4796         Updated.
4797         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
4798         Updated.
4800         * src/devices/grops/ps.cc (ps_output::put_color): New method.
4801         (ps_printer::sbuf_color): Make a real member instead of pointer.
4802         (ps_printer::fill_color, ps_printer::output_color): Removed.
4803         (ps_printer::ps_printer): Updated.
4804         (ps_printer::set_char): Ditto.
4805         (ps_printer::set_color): Use various color schemes.
4806         Use `put_color' method.
4807         (ps_printer::flush_sbuf): Don't set color.
4808         (ps_printer::fill_path): Take `environment' as parameter.
4809         Simplify color handling.
4810         (ps_printer::set_line_thickness): Renamed to ...
4811         (ps_printer::set_line_thickness_and_color): This (and updated).
4812         (ps_printer::set_color): Change second parameter from `complete'
4813         to `fill' which better describes what it does.
4814         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
4815         and text in the right order.
4816         Updated.
4817         Remove branches for `f' and `F'; this is handled by
4818         libdriver/input.cc.
4819         * src/devices/grops/ps.h: Updated.
4820         * font/devps/prologue (FL): Redefined.
4821         ({F,C}r,k,g: New color functions (with and without filling).
4823         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
4824         * man/groff_diff.man, man/groff.man, man/groff_out.man,
4825         doc/groff.texinfo, NEWS: Updated.
4827 2002-01-20  Bernd Warken  <bwarken@mayn.de>
4829         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
4830         in this file for what has been changed.
4832 2002-01-19  Werner LEMBERG  <wl@gnu.org>
4834         * test-groff: Fix GROFF_FONT_PATH.
4835         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
4836         is read before .TH or .Dd is parsed.
4838 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
4840         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
4841         quadrant boundaries.
4843 2002-01-18  Werner LEMBERG  <wl@gnu.org>
4845         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
4846         applied last patch.
4848 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
4850         * tmac/doc.common: Initialize %I register for the %I macro to
4851         avoid (harmless) warning.
4852         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
4853         when in the SYNOPSIS section.
4855 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
4857         * src/preproc/pic/lex.cc (get_token): Fix typo.
4859 2002-01-17  Werner LEMBERG  <wl@gnu.org>
4861         * devices/grops/ps.cc: Fix incorrectly applied last patch.
4863 2002-01-17  Larry Kollar  <kollar@alltel.net>
4865         * tmac/groff_ms.man: Completely rewritten.
4867 2002-01-16  Werner LEMBERG  <wl@gnu.org>
4869         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
4871 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
4873         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
4874         fill colors.
4875         (ps_printer::draw): Ditto.
4877 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
4879         * tmac/groff_mdoc.man: Minor fixes.
4881 2002-01-13  Werner LEMBERG  <wl@gnu.org>
4883         * man/groff_out.man: Some fixes.
4885 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
4887         * doc/pic.ms: Fix typos.
4889 2002-01-12  Werner LEMBERG  <wl@gnu.org>
4891         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
4893 2002-01-10  Werner LEMBERG  <wl@gnu.org>
4895         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
4896         symbols.
4897         * NEWS: Updated.
4899 2002-01-09  Bernd Warken  <bwarken@mayn.de>
4901         * man/groff_out.man: Revised.
4902         * man/roff.man: Minor fixes.
4903         * src/roff/troff/troff.man: Some reordering.
4905 2002-01-09  Werner LEMBERG  <wl@gnu.org>
4907         * tmac/an-old.tmac: Add dummy macros for equation support.
4909 2002-01-07  Werner LEMBERG  <wl@gnu.org>
4911         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
4913         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
4914         man pages.
4915         * tmac/groff_man.man: Small improvements.
4917 2002-01-07  Bernd Warken  <bwarken@mayn.de>
4919         * man/groff_diff.man: Revised.
4921 2002-01-06  Werner LEMBERG  <wl@gnu.org>
4923         * tmac/www.tmac: Remove extraneous backslash.
4925 2002-01-06  Bernd Warken  <bwarken@mayn.de>
4927         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
4929 2002-01-05  Werner LEMBERG  <wl@gnu.org>
4931         Integrated groffer, contributed by Bernd Warken.
4933         * contrib/groffer/*: New.       
4934         * Makefile.in, NEWS: Updated.
4936 2002-01-04  Werner LEMBERG  <wl@gnu.org>
4938         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
4939         registers defined in macro packages.
4940         Revising the ms part.
4942 2002-01-04  Larry Kollar  <kollar@alltel.net>
4944         * doc/groff.texinfo: Add documentation for ms macros.
4946 2002-01-02  Werner LEMBERG  <wl@gnu.org>
4948         First step in adding PS support for the Euro symbol.  `eu' is the
4949         official Euro logo, `Eu' is a font-specific glyph variant.
4951         * font/devps/text.enc: Add `Euro' at position 9.
4952         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
4953         * font/devps/symbolmap: Regenerated.
4955         * NEWS: Updated.
4957 2002-01-02  Bernd Warken  <bwarken@mayn.de>
4959         * man/roff.man: Revised.
4961 2002-01-01  Bernd Warken  <bwarken@mayn.de>
4963         * src/roff/groff/groff.man: Completely rewritten.
4965 2001-12-31  Werner LEMBERG  <wl@gnu.org>
4967         * doc/Makefile: Updated.
4969 2001-12-30  Werner LEMBERG  <wl@gnu.org>
4971         * tmac/www.tmac: Make all names of internal macros/registers/strings
4972         lowercase, and prepend `www-'.
4973         Other minor changes.
4974         * src/roff/troff/troff.man: Add preprocessor string at BOF.
4976 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
4978         Implement option `-b' in grohtml to set the HTML background colour.
4980         * src/devices/grohtml/post-html.cc (default_background): New global
4981         variable.
4982         (html_printer::html_printer): Initialize `background' to
4983         `default_background'.
4984         (main): Implement option `-b'.
4985         (usage): Updated.
4986         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
4987         of `-b' option.
4988         * src/devices/grohtml/grohtml.man: Updated.
4989         * doc/Makefile (.ms.html): Use `-b'.
4990         * tmac/html.tmac: Don't set background color.
4992         Add new grohtml tag `.html-tl'.
4994         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
4995         member variable.
4996         (title_desc::title_desc): Updated.
4997         (html_printer::troff_tag): Handle `.html-tl'.
4998         (html_printer::write_title): Use `with_h1'.
4999         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
5000         (HTML-TL): New macro.
5002         Add support for unordered lists in HTML.
5004         * tmac/www.tmac (www-level): New auxiliary register.
5005         (www-level1, www-level2, www-level3): New auxiliary strings.
5006         (www-push-level, www-pop-level): New auxiliary macros
5007         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
5009         Miscellaneous.
5011         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
5012         (DEFAULT_VERTICAL_OFFSET): Removed.
5013         (IMAGE_BOARDER_PIXELS): Set to 0.
5014         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
5015         (vertical_offset): Initialize with 0.
5016         (gsPaper): New global variable.
5017         (get_resolution): Scan for and return unsigned int.
5018         (get_papersize): New function to get paper length from devps/DESC.
5019         (determine_vertical_offset): New function.
5020         (createAllPages): Produce gray-level images and use proper page
5021         length.
5022         (createImage): Use `-quiet' option of pnmcrop.
5023         (addZ): Fix passing of `-Z'.
5024         (scanArguments): Fix handling of `-o'.
5025         (main): Call `determine_vertical_offset'.
5026         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
5027         code for `l'.
5029         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
5030         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
5031         glyph descenders properly.
5033         * doc/homepage.ms: Include `gnubw.eps'.
5034         * doc/Makefile (gnubw.eps): New rule.
5035         (homepage.html): Depend on `gnubw.eps'.
5037 2001-12-25  Werner LEMBERG  <wl@gnu.org>
5039         * src/roff/troff/input.cc (default_black): Fix return value.
5041 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
5043         * tmac/doc-common (Dt): Change output of architecture strings.
5044         Do some syntax cleanup.
5045         * tmac/groff_mdoc.man: Updated.
5047 2001-12-23  Werner LEMBERG  <wl@gnu.org>
5049         Adding an `itc' request (input line trap accepting \c).
5051         * src/roff/troff/env.h (environment): New member
5052         `continued_input_trap'.
5053         Make `do_input_trap' a friend function instead of `input_trap'.
5054         * src/roff/troff/env.cc (environment::environment,
5055         environment::copy): Updated.
5056         (environment::newline): Implement it.
5057         (do_input_trap): New function.
5058         (input_trap): Call `do_input_trap'.
5059         (input_trap_continued): New function.
5060         (init_env_requests): Updated.
5061         * src/roff/troff/TODO: Updated.
5063         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
5064         `.it'.
5066         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
5068 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
5070         * tmac/doc-common, tmac/doc-syms: Small updates.
5072 2001-12-22  Colin Watson  <cjwatson@debian.org>
5074         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
5076 2001-12-22  Bernd Warken  <bwarken@mayn.de>
5078         * MANIFEST: New file.
5080 2001-12-22  Werner LEMBERG  <wl@gnu.org>
5082         * src/preproc/grn/grn.man: Updated.
5084 2001-12-22  Solar Designer  <solar@openwall.com>
5086         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
5087         (DBRead): Use it.
5089 2001-12-19  Werner LEMBERG  <wl@gnu.org>
5091         Implement a fallback character request `.fchar'.
5093         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
5094         (is_fallback): New inline function.
5095         * src/roff/troff/input.cc (do_define_character): New function.
5096         (define_character): Call `do_define_character'.
5097         (define_fallback_character): New function.
5098         (init_input_requests): Add `fchar'.
5099         (charinfo::charinfo): Updated.
5100         (charinfo::set_macro): New argument to set `fallback' flag.
5101         * src/roff/troff/node.cc (make_glyph_node, make_node,
5102         node::add_char): Check `fallback' flag.
5103         * NEWS, man/groff_diff.man, man/groff_man: Updated.
5105 2001-12-16  Werner LEMBERG  <wl@gnu.org>
5107         * groff.texinfo: Document exact search algorithm for glyphs.
5109 2001-12-15  Werner LEMBERG  <wl@gnu.org>
5111         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
5112         the left side of $(MANPAGES) rule to make it always non-empty.
5114 2001-12-14  Werner LEMBERG  <wl@gnu.org>
5116         * src/roff/troff/input.cc (default_black): Define default color
5117         `black' if not yet defined.
5119 2001-12-13  Werner LEMBERG  <wl@gnu.org>
5121         Implement new string-valued register `.fn' to return the current
5122         real (internal) font name.
5124         * env.cc (environment::get_font_name_string): New function.
5125         (init_env_requests): Add `.fn' register.
5126         * env.h (environment): Updated.
5127         * node.cc (font_info): Make `get_font_name' a friend.
5128         (get_font_name): New function.
5129         * node.h: Updated.
5131         * man/groff_diff.man, man/groff.man, NEWS: Updated.
5133 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5135         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
5137 2001-12-12  Werner LEMBERG  <wl@gnu.org>
5139         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
5141 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
5143         * man/groff_diff.man: Adding documentation for \O.
5145 2001-12-10  Werner LEMBERG  <wl@gnu.org>
5147         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
5148         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
5150 2001-12-09  Werner LEMBERG  <wl@gnu.org>
5152         * man/roff.man: Revised.
5153         * src/roff/groff/groff.man: Replace man page references with a
5154         pointer to roff.man.
5156 2001-12-09  Bernd Warken  <bwarken@mayn.de>
5158         * man/roff.man: Completely rewritten.
5160 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5162         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
5164 2001-12-05  Werner LEMBERG  <wl@gnu.org>
5166         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
5167         longer used.
5168         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
5169         order of initializers.
5170         * NEWS: Updated.
5172 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
5174         * doc/groff.texinfo: Fix documentation of \O.
5176         * src/devices/grohtml/html-text.cc (html_text::do_indent,
5177         html_text::do_table, html_text::do_emittext, html_text::do_para):
5178         Use `const' for first argument.
5179         (html_text::do_table): Use cast.
5180         * src/devices/grohtml/html-text.h: Updated.
5181         * src/devices/grohtml/output.cc (simple_output::put_string): Add
5182         method for `const string &s'.
5183         * src/devices/grohtml/html.h: Updated.
5184         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
5185         (ANCHOR_TEMPLATE): Modified.
5186         (manufacture_headings): New global variable to handle `-h' option.
5187         (is_subsection): Removed.
5188         (char_buffer::add_string): Add `const' to first argument.
5189         Protect against invalid string argument.
5190         Add method for `const string &s'.
5191         (text_glob): Completely redesigned.
5192         (page): Use `const' for strings and remove string length variable.
5193         (page::add_html): Removed.
5194         (page::add_end_encode): New member function.
5195         (to_unicode): Moved upwards.
5196         (title_desc, header_desc): Updated.
5197         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
5198         definition.
5199         (html_printer::is_bold, html_printer::make_bold): New member
5200         functions.
5201         (html_printer::end_of_line): Updated.
5202         (generate_img_src, html_printer::do_auto_image,
5203         html_printer::do_title, html_printer::write_header,
5204         html_printer::determine_header_level, html_printer::do_heading,
5205         html_printer::do_linelength, html_printer::do_pageoffset,
5206         html_printer::do_indentation, html_printer::do_tempindent,
5207         html_printer::do_indentedparagraph, html_printer::do_break,
5208         html_printer::flush_sbuf, get_html_translation,
5209         html_printer::begin_page, html_printer::special): Rewritten to get
5210         rid of static string length limit.
5211         (html_printer::troff_tag): Added `.no-auto-rule'.
5212         (html_printer::flush_globs): Small fix.
5213         (html_printer::determine_space): Don't compute `space_width'.
5214         (html_printer::translate_to_html): Renamed to ...
5215         (html_printer::emit_html): This (with updates).
5216         (html_printer::write_header): Implement `-h' option.
5217         (html_printer::draw): Remove commented-out code.  Handle `F'
5218         command.
5219         (html_printer::add_char_to_sbuf): Removed.
5220         (html_printer::add_to_sbuf): Rewritten.
5221         (html_printer::sbuf_continuation): Fixed.
5222         (html_printer::seen_backwards_escape, reverse,
5223         html_printer::remove_last_char_from_sbuf): Removed.
5224         (char_translate_to_html, str_translate_to_html): Removed.
5225         (html_printer::overstrike): New function member.
5226         (html_printer::set_char): Use it.
5227         (html_printer::do_body): New function member.
5228         (html_printer::~html_printer): Use it.
5229         (main): Handle `-h' option.
5230         (usage): Updated.
5231         * src/devices/grohtml/grohtml.man: Document -h switch.
5233         * src/preproc/html/pre-html.cc: Include searchpath.h
5234         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
5235         (get_resolution): New function.
5236         (checkImageDir): Use `0777' permissions in mkdir()
5237         (write_start_image): Rewritten to use `\O[5...]'.
5238         (createImage, generateImages): Updated.
5239         (main): Handle `F' and `h' options.
5240         Use `get_resolution'.
5242         * src/roff/troff/input.cc (begin, end, image): Removed.
5243         (do_suppress): Take parameter.
5244         Handle modified syntax of `\O'.
5245         (token::next): Updated.
5246         (init_markup_requests): Removed.
5247         (main): Updated.
5249         * src/roff/troff/div.h: Add declaration for begin_page().
5251         * tmac/color-html.tmac: Removed.  Contents moved to...
5252         * tmac/html.tmac: Here.  Set background color.
5253         * tmac/color.tmac: Removed.  Contents moved to...
5254         * tmac/ps.tmac: Here.
5255         * tmac/www.tmac: Remove the title command when generating images
5256         for html.
5257         (NO_AUTO_RULE): New macro.
5258         (HTML_DO_IMAGE): Use revised `\O' escapes.
5259         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
5261 2001-12-02  Werner LEMBERG  <wl@gnu.org>
5263         * tmac/groff_mdoc.man: Fix typo.
5265 2001-12-01  Colin Watson  <cjwatson@debian.org>
5267         * man/roff.man: Fix typo.
5269 2001-11-29  Werner LEMBERG  <wl@gnu.org>
5271         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
5272         stdlib.h.
5274         * src/roff/troff/input.cc (read_draw_node): Emit error message if
5275         more than one argument to \D'f ...'.
5277         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
5279 2001-11-28  Werner LEMBERG  <wl@gnu.org>
5281         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
5282         loaded only once.
5284         * tmac/groff_man.man: Minor cosmetic fix.
5286 2001-11-27  Werner LEMBERG  <wl@gnu.org>
5288         * src/roff/groff/groff.man, tmac/groff_tmac.man,
5289         tmac/groff_www.man: s/mwww/www/.
5291 2001-11-26  Werner LEMBERG  <wl@gnu.org>
5293         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
5294         * configure: Regenerated.
5295         * win32-diffs: Updated.
5297         * tmac/groff_mwww.tmac: Renamed to ...
5298         * tmac/groff_www.tmac: This.
5299         * tmac/mwww.tmac: Removed.
5300         * NEWS, tmac/Makefile.sub: Updated.
5302 2001-11-21  Werner LEMBERG  <wl@gnu.org>
5304         * doc/groff.texinfo: Improve documentation of the `\v' escape.
5305         Fix explanation of `\D' and `rt'.
5307 2001-11-20  Werner LEMBERG  <wl@gnu.org>
5309         * tmac/an-old.tmac (an-header): Set header length equal to page
5310         width.
5311         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
5312         minor fixes.
5313         * NEWS: Small fix.
5315 2001-11-19  Werner LEMBERG  <wl@gnu.org>
5317         * NEWS, man/Makefile.sub: Updated.
5319 2001-11-19  Bernd Warken  <bwarken@mayn.de>
5321         * man/ditroff.man: New file.
5323 2001-11-17  Werner LEMBERG  <wl@gnu.org>
5325         * man/groff_differences.man: Renamed to ...
5326         * man/groff_diff.man: This.  Updated.
5327         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
5329         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
5330         * src/preproc/html/pushback.cc: This.  Updated.
5331         * src/preproc/html/pushbackbuffer.h: Renamed to ...
5332         * src/preproc/html/pushback.h: This.
5333         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
5334         Updated.
5336         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
5337         * src/libs/libgroff/htmlhint.cc: This.
5338         * src/libs/libgroff/Makefile.sub: Updated.
5340         * tmac/an-old.tmac (an-end): Fix page length.
5342 2001-11-16  Werner LEMBERG  <wl@gnu.org>
5344         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
5345         * man/Makefile.sub: Include groff_differences.man.
5346         * VERSION: Set to 1.18.
5347         * REVISION: Set to 0.
5349 2001-11-16  Bernd Warken  <bwarken@mayn.de>
5351         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
5352         the second dot (or ending macro name) to end a macro.
5353         * doc/groff.texinfo: Doc fix.
5355 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
5357         * tmac/doc-common (doc-header): Handle very long document titles
5358         better.
5360 2001-11-16  Werner LEMBERG  <wl@gnu.org>
5362         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
5364 2001-11-15  Werner LEMBERG  <wl@gnu.org>
5366         * src/roff/troff/troff.man: Revised and split into troff.man and...
5367         * man/groff_differences.man: New file.
5368         * NEWS: Updated.
5370 2001-11-13  Werner LEMBERG  <wl@gnu.org>
5372         * tmac/an-old.tmac (TS, TE): New macros for table support.
5374 2001-11-12  Werner LEMBERG  <wl@gnu.org>
5376         * src/include/lib.h: Provide a fix for emx to not include
5377         groff-getopt.h.
5379 2001-10-27  Werner LEMBERG  <wl@gnu.org>
5381         * src/roff/troff/input.cc (substring_macro): Fix computation of
5382         boundary values.
5384 2001-10-20  Werner LEMBERG  <wl@gnu.org>
5386         Undo change from 2001-08-28.
5388         * src/roff/troff/input.cc (have_input): New global variable.
5389         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
5390         in compatibility mode.
5391         (process_input_stack): Use it.
5393 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
5395         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
5396         being handled as end-of-sentence characters,
5398 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
5400         * src/roff/troff/input.cc (file_iterator): New members
5401         `suppress_newline_flag' and `seen_escape'.
5402         (file_iterator::next_file): Updated.
5403         (file_iterator::fill): Use it.
5404         (string_iterator): New member `suppress_newline_flag'.
5405         (string_iterator::fill): Set it.
5406         (get_color_element): Use MAX_COLOR_VAL.
5407         * src/roff/troff/env.cc (environment): Remove `need_eol'.
5408         (no_fill): Don't set `env->ignore_next_eol'.
5409         (environment::newline): Handle `eol' tag properly.
5410         Emit `eol.ce'.
5411         (environment::add_html_tag): Set `env->ignore_next_eol'.
5412         Don't handle `.ce'.
5413         * src/roff/troff/env.h (environment): Updated.
5415         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
5416         member function.
5417         (html_printer::outstanding_eol): New member function.
5418         (html_printer::do_title): Use new functions.
5419         (html_printer::troff_tag): Test `id_eol_ce'.
5421 2001-10-10  Werner LEMBERG  <wl@gnu.org>
5423         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
5424         files work with -C also.
5426 2001-10-05  Werner LEMBERG  <wl@gnu.org>
5428         * doc/pic.ms: Minor fix.
5429         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
5430         as a valid command line switch.
5431         * src/devices/grohtml/post-html.cc (main): Ditto.
5432         (usage): Updated.
5433         * src/devices/grohtml/grohtml.man: Updated.
5434         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
5436 2001-10-04  Werner LEMBERG  <wl@gnu.org>
5438         Implementing color support in troff, pic, grops, and grohtml.  These
5439         changes are based on a major patch provided by Gaius Mulley
5440         <gaius@glam.ac.uk>.
5442         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
5443         definitions with both hex values and fractions.
5445         New escapes: \m and \M for drawing and background color,
5446         respectively.  This corresponds to the troff output commands `m'
5447         and `DF'.
5449         groff and troff accept command line switch `-c' to disable color
5450         output (which is automatically disabled in compatibility mode).
5452         New scaling indicator `f' for fractions (1f = 65536u).
5454         New conditional operator `m' to test for defined colors with `if'
5455         and `ie'.
5457         New keywords `color' (or `colour', `colored', `coloured'), `outline'
5458         (or `outlined'), and `shaded' added to pic.
5460         * src/include/color.h: New file.
5461         * src/include/driver.h: Include it.
5462         * src/include/printer.h: Include color.h.
5463         (environment): New members `col' and `fill'.
5464         (printer): Remove `adjust_arc_center' member function.
5465         * src/include/Makefile.sub: Updated.
5467         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
5468         `env.fill'.
5469         Handle `m' and `DF' troff commands.
5470         * src/libs/libgroff/color.cc: New file.
5471         * src/libs/libgroff/Makefile.sub: Updated.
5473         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
5474         (stop): Removed.
5475         (createImage): Fix computation of `y2'.
5476         Use `pnmcrop' also.
5477         (buffer::write_file_html): Remove calls to `stop'.
5479         * src/preproc/pic/common.h (common_output): New abstract function
5480         members `set_color', `reset_color', `get_last_filled', and
5481         `get_outline_color'.
5482         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
5483         (object_spec): Add members `shaded' and `outlined'.
5484         * src/preproc/pic/output.h (output): `command' is now abstract.
5485         New function members `set_color', `reset_color', `get_last_filled',
5486         and `get_outline_color'.
5487         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
5488         `outline[d]', and `shaded'.
5489         * src/preproc/pic/object.cc (output::command): Removed.
5490         (output::set_location): Moved to output.h.
5491         (graphic_object): Add protected members `outline_color' and
5492         `color_fill'.
5493         Add member functions `set_outline_color', `get_outline_color', and
5494         `set_fill_color'.
5495         (closed_object): Add member function `set_fill_color'.
5496         Add member `color_fill'.
5497         (graphic_object::print_text): Use `out->set_color' and
5498         `out->reset_color'.
5499         (box_object::print, ellipse_object::print, circle_object::print,
5500         line_object::print, spline_object::print, arc_object::print): Ditto.
5501         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
5502         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
5503         `SHADED', making them `%left'.
5504         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
5505         * src/preproc/pic/tex.cc (tex_output): New dummy function members
5506         `set_color', `reset_color', `get_last_filled', and
5507         `get_outline_color'.
5508         * src/preproc/pic/troff.cc (simple_output): New abstract function
5509         members `set_color', `reset_color', and `get_last_filled'.
5510         (simple_output::polygon, simple_output::circle,
5511         simple_output::ellipse): Use `get_last_filled'.
5512         (troff_output): New members `last_filled' and `last_outlined'.
5513         New function members `set_color', `reset_color', `get_last_filled',
5514         and `get_outline_color'.
5515         (troff_output::finish_picture): Use `reset_color'.
5516         (troff_output::set_fill): Test `last_filled'.
5517         * src/preproc/pic/pic.man: Updated.
5519         * src/roff/groff/groff.cc (main): Implement `-c' option.
5520         (synopsis, help): Updated.
5521         src/roff/groff/groff.man: Updated.
5523         * src/roff/troff/troff.h: Include color.h.
5524         (warning_type): Add WARN_COLOR.
5525         * src/roff/troff/env.h (environment): New members
5526         `{cur,prev}_{glyph,fill}_color'.
5527         New member functions `get_{prev_,}{glyph,fill}_color'.
5528         * src/roff/troff/env.cc: Initialize and implement them.
5529         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
5530         Replace `NULL' with `0' everywhere for consistency.
5531         (lookup_color, default_black, do_glyph_color, do_fill_color,
5532         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
5533         define_color): New functions.
5534         (token::next): Implement \M and \m escapes.
5535         (do_if_request): Implement `m' operator.
5536         (usage): Updated.
5537         (main): Implement `-c' option.
5538         (init_markup_requests): Add `defcolor' request.
5539         (warning_table): Add `color' warning.
5540         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
5541         classes.
5542         * src/roff/troff/node.cc (troff_output_file): New members
5543         `current_{page,glyph}color'.  New member functions `put_hex',
5544         `glyph_color', and `fill_color'.
5545         (glyph_color_node::*, fill_color_node::*): Implement it.
5546         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
5547         (parse_term): Add support for `f'.
5548         * src/roff/troff/troff.man: Updated.
5550         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
5551         entry for `F'.
5552         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
5553         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
5555         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
5556         (tag_definition): Use `void *' for arg1.
5557         (html_text): New member functions `do_color' and `done_color'.
5558         Use `void *' for second parameter of `push_para' member function.
5559         New `push_para' member function with a single parameter.
5560         Use `char *' for parameter of `issue_table_begin' member funtion.
5561         New `issue_color_begin' member function.
5562         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
5563         COLOR_TAG.
5564         (html_text::issue_color_begin): New function.
5565         (html_text::issue_table_begin): Use `char *' for parameter.
5566         (html_text::start_tag, html_text::shutdown,
5567         html_text::check_emit_text): Updated.
5568         (html_text::push_para): Use `void *' for second parameter.
5569         Add same function with only one parameter.
5570         (html_text::do_*): Updated.
5571         (html_text::do_color, html_text::done_color): New functions.
5572         * src/devices/grohtml/post-html.cc (style): New member `col'.
5573         Mew member `style' with 6 parameters.
5574         (style::style, style::operator==): Updated.
5575         (html_printer::do_font): Use it.
5576         (html_printer::draw): Add dummy entry for `F'.
5577         (html_printer::set_char): Updated.
5578         * src/devices/grohtml/grohtml.man: Updated.
5580         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
5581         trailing zeroes removed.
5582         (ps_printer): New members `sbuf_color', `fill_color', and
5583         `output_color'.
5584         Removed member `fill'.
5585         New member function `set_color'.
5586         (ps_printer::ps_printer, ps_printer::set_char): Updated.
5587         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
5588         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
5590         * tmac/color-html.tmac, tmac/color.tmac: New files.
5591         * tmac/troffrc: Include them.
5592         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
5593         * tmac/Makefile.sub: Updated.
5595         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
5596         man/groff.man: Updated.
5597         * font/devps/prologue.ps: Define FC and CO functions.
5599 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
5601         Fix incorrect cropping of images and incorrect handling of special
5602         characters.  Fix handling of file names in \O.
5604         * src/include/geometry.h: New file.
5605         * src/libs/libgroff/geometry.cc: New file.
5606         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
5607         to `geometry.cc'.
5608         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
5609         initial spaces.
5610         (do_suppress): Updated.
5611         * src/roff/troff/node.cc: Include geometry.h.
5612         (troff_output_file::flush_tbuf): Fixed parameters to
5613         `check_output_limits'.
5614         (troff_output_file::check_charinfo): Ditto.
5615         (troff_output_file::determine_line_limits): Add support for `Da'
5616         and `Dl' commands.
5618         * src/devices/grohtml/post-html.cc (str_translate_to_html):
5619         Add new parameter `is_special' to decode special characters from
5620         escape sequences.
5621         (html_printer::do_title, html_printer::do_heading,
5622         html_printer::do_indentedparagraph,
5623         html_printer::translate_to_html, html_printer::special): Updated.
5625 2001-10-03  Werner LEMBERG  <wl@gnu.org>
5627         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
5628         Fix entry for config.h.
5629         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
5630         * tmac/troffrc: Translate nonbreakable space character to `\~'.
5631         * src/preproc/eqn/eqn.man: Document -d command line option.
5633 2001-09-27  Werner LEMBERG  <wl@gnu.org>
5635         * man/groff.man: Use
5637           .ev xxx
5638           .na
5639           .nh
5640           <table>
5641           .ev
5643         instead of the old code (`.ad .hy' after the table) to suppress
5644         incorrect hyphenation for grohtml output.
5646 2001-09-22  Werner LEMBERG  <wl@gnu.org>
5648         * man/groff_font.man, man/groff_out.man: Minor fixes.
5650 2001-09-20  Werner LEMBERG  <wl@gnu.org>
5652         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
5653         Arnold Robbins <arnold@skeeve.com>).
5655 2001-09-09  Werner LEMBERG  <wl@gnu.org>
5657         * configure: Regenerated with autoconf 2.52.
5659         * doc/groff.texinfo: Complete revision of indices.
5661 2001-09-07  Werner LEMBERG  <wl@gnu.org>
5663         * doc/Makefile (clean): Updated to delete all indices.
5665 2001-09-05  Werner LEMBERG  <wl@gnu.org>
5667         * src/roff/troff/troff.man: Remove superfluous line.
5669         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
5670         given on the command line (or rather, if only the default warnings
5671         are set).
5673 2001-09-03  Werner LEMBERG  <wl@gnu.org>
5675         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
5676         use .ne for TTY devices.
5678 2001-08-31  Werner LEMBERG  <wl@gnu.org>
5680         * src/roff/troff/token.h, src/roff/troff/input.cc:
5681         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
5683 2001-08-28  Werner LEMBERG  <wl@gnu.org>
5685         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
5686         * src/roff/troff/input.cc (token::next): Return
5687         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
5688         compatibility mode.
5689         (token::description): Updated.
5690         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
5691         (token::add_to_node_list, token::process): Ignore
5692         TOKEN_TRANSPARENT_ESCAPE.
5694 2001-08-27  Werner LEMBERG  <wl@gnu.org>
5696         * tmac/an-old.tmac: Fix `S' string.
5698 2001-08-26  Werner LEMBERG  <wl@gnu.org>
5700         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
5702 2001-08-25  Werner LEMBERG  <wl@gnu.org>
5704         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
5705         backslashes).
5706         Many other minor fixes.
5708         * configure.ac: Add message at end to inform how to compile
5709         xditview.
5710         * configure: Regenerated.
5712 2001-08-24  Werner LEMBERG  <wl@gnu.org>
5714         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
5715         Updated to latest version of libc.
5717 2001-08-23  Werner LEMBERG  <wl@gnu.org>
5719         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
5720         Autoconf 2.50 and newer can handle this.
5721         * configure: Regenerated.
5723 2001-08-21  Werner LEMBERG  <wl@gnu.org>
5725         * doc/pic.ms: Fix typo.
5726         * src/preproc/tbl/tbl.man: Document case of global options.
5728 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5730         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
5731         handling of `CR' font.
5733 2001-08-20  Werner LEMBERG  <wl@gnu.org>
5735         Use a config.h file.
5737         * src/include/lib.h: Include config.h.
5738         * All C files: Ditto (if necessary).
5739         * All C++ source and header files: Include lib.h first (if
5740         necessary).
5742         * src/include/config.hin: New file (autogenerated by autoheader).
5743         * stamp-h.in: New file.
5744         * configure.ac: Updated.
5745         * aclocal.m4: Add third parameters to AC_DEFINE macros.
5746         (GROFF_ARRAY_DELETE): Simplified.
5747         * Makefile.sub (DISTCLEANFILES): Updated.
5748         Added targets for remaking config.status, config.hin, config.h,
5749         stamp-h.in, and stamp-h.
5750         * configure: Regenerated.
5752 2001-08-19  Werner LEMBERG  <wl@gnu.org>
5754         * NEWS: Updated.
5756 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
5758         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
5759         (do_sprintf): Use snprintf().
5761 2001-08-18  Werner LEMBERG  <wl@gnu.org>
5763         * src/libs/snprintf/*: Added an snprintf module written by Mark
5764         Martinec.
5765         * src/libs/libgroff/Makefile.sub: Updated.
5766         * configure.ac: Add test for snprintf().
5767         * Makefile.in: Updated.
5768         * configure: Regenerated.
5770         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
5771         uses snprintf().
5773 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
5775         * tmac/doc.tmac (Ex): New implementation.
5776         * tmac/doc-common, tmac/groff_tmac.man: Updated.
5778 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
5780         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
5781         argument.
5782         * tmac/groff_tmac.man: Updated.
5784 2001-08-13  Werner LEMBERG  <wl@gnu.org>
5786         * src/preproc/tbl/tbl.man: Minor documentation update.
5788 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5790         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
5791         * configure.ac: Add declaration test for gettimeofday().
5792         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
5793         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
5794         * configure: Regenerated.
5796 2001-08-11  Werner LEMBERG  <wl@gnu.org>
5798         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
5799         * configure.ac: Add declaration test for strcasecmp().
5800         * Makefile.in: Updated.
5801         * configure: Regenerated.
5802         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
5803         this is necessary because groff's mkstemp.cc is C++.
5804         Add declaration conditionally for strcasecmp().
5806 2001-08-10  Werner LEMBERG  <wl@gnu.org>
5808         Integrated pic2graph, contributed by Eric S. Raymond.
5810         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
5811         files.
5812         * Makefile.in, NEWS: Updated.
5814         * src/preproc/tbl/tbl.man: Revised.
5816 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
5818         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
5820 2001-08-09  Werner LEMBERG  <wl@gnu.org>
5822         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
5823         requests.
5825 2001-08-08  Paul Eggert  <eggert@twinsun.com>
5827         * Makefile.sub (configure): Depend on configure.ac, not
5828         configure.in.
5829         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
5831 2001-08-07  Werner LEMBERG  <wl@gnu.org>
5833         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
5834         fixes.
5836 2001-08-06  Werner LEMBERG  <wl@gnu.org>
5838         * src/roff/troff/troff.man: Improve documentation of -E option.
5840 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5842         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
5843         Simplified.
5845 2001-07-27  Werner LEMBERG  <wl@gnu.org>
5847         * src/preproc/refer/refer.cc: Undo last change.
5848         * src/devices/grohtml/post-html.cc: Ditto.
5850 2001-07-26  Werner LEMBERG  <wl@gnu.org>
5852         * src/preproc/refer/refer.cc: Include `lib.h'.
5853         * src/devices/grohtml/post-html.cc: Ditto.
5855 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
5857         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
5858         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
5859         * Makefile.in: Comment updated.
5860         * configure: Regenerated.
5862 2001-07-25  Werner LEMBERG  <wl@gnu.org>
5864         * src/preproc/pic/pic.cc: Removed.
5865         * src/preproc/pic/pic_tab.h: Removed.
5866         * src/preproc/refer/label.cc: Removed.
5868         * doc/Makefile (.ms.html): Don't use a file name extension in
5869         argument to grohtml's -I option.
5870         * Makefile.in (dist): Remove CVS directories.
5871         Call `distfiles' target.
5873         * src/devices/grohtml/grohtml.man: Add information about valid
5874         versions of pnmtopng.
5875         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
5876         name instead of number.
5878 2001-07-24  Werner LEMBERG  <wl@gnu.org>
5880         * doc/groff.texinfo: Minor fixes.
5882 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
5884         * doc/Makefile (.ms.html): Put image files into a subdirectory.
5885         (clean): Updated.
5887 2001-07-20  Werner LEMBERG  <wl@gnu.org>
5889         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
5890         * src/libs/libgroff/mkstemp.cc: New file.
5891         * src/libs/libgroff/mksdir.cc: New file.
5892         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
5893         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
5894         * src/libs/libgroff/Makefile.sub: Updated.
5895         * src/include/lib.h: Add mksdir() prototype.
5896         * src/include/posix.h: Define S_IXUSR if not yet defined.
5898         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
5899         (createAllPages): Use mksdir() instead of current code.
5900         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
5901         (main): [!HAVE_MKSTEMP]: Removed.
5903         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
5904         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
5905         macros.
5906         * configure.ac: Add tests for stdint.h, sys/time.h, and
5907         gettimeofday().
5908         Call new GROFF_xxx macros.
5909         * configure: Regenerated.
5910         * Makefile.in: Comments updated.
5912 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
5914         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
5915         instead of current code.
5916         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
5917         * src/roff/groff/groff.cc (possible_command::insert_args): New
5918         function.
5919         (main): Use it for predriver handling instead of insert_arg().
5921 2001-07-19  Werner LEMBERG  <wl@gnu.org>
5923         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
5924         groff also.
5926         * src/include/posix.h: Define S_IWUSR if not yet defined.
5928 2001-07-18  Werner LEMBERG  <wl@gnu.org>
5930         * NEWS: Updated.
5932 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
5934         * tmac/groff_mdoc.man: Document new -width and -column syntax.
5935         Some other minor fixes.
5936         * tmac/an-old.tmac: Add `AT' and `UC' macros.
5938 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
5940         Replace call to `troff' with `groff -Z' to make it aware of
5941         GROFF_BIN_PATH.
5943         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
5944         (troff_command, command_prefix): Removed.
5945         (alterDeviceTo): Use groff.
5946         (addZ): New function.
5947         (char_buffer::do_html): Use it.
5948         (scanArguments): Use TROFF_COMMAND.
5949         (findPrefix): Removed.
5950         (main): Updated.
5951         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
5953 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
5955         * doc/pic.ms: Documentation fixes.
5957 2001-07-17  Werner LEMBERG  <wl@gnu.org>
5959         Replace atexit() with global destructor.
5961         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
5962         (xtmpfile_list_init): New global structure to deallocate
5963         xtmpfile_list on exit.  Its destructor inherits most code from
5964         remove_tmp_files().
5965         (remove_tmp_files): Deleted.
5966         (add_tmp_file): Simplified.
5968 2001-07-16  Werner LEMBERG  <wl@gnu.org>
5970         Replace strdup() with strsave().
5972         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
5973         (set_papersize): Use strsave() and a_delete.
5974         (main): Use strsave().
5975         * src/preproc/html/pre-html.cc (make_message, createAllPages,
5976         removeAllPages): Use strsave() and a_delete.
5978         * configure.ac: Remove test for strdup.
5979         * Makefile.in: Comment updated.
5980         * configure: Regenerated.
5982 2001-07-15  Werner LEMBERG  <wl@gnu.org>
5984         * win32-diffs: Updated.
5986 2001-07-14  Werner LEMBERG  <wl@gnu.org>
5988         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
5989         removing the old one.
5990         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
5992 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5994         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
5996 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
5998         Merge -xwidth into -width.  Add -xwidth functionality to -column
5999         also.
6001         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
6002         avoid warning.
6003         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
6004         string immediately following a leading dot starts with a valid mdoc
6005         argument.
6006         Add similar code to the -column branch.
6007         (doc-Bl-usage): Updated.
6008         * groff_mdoc.man: s/-xwidth/-width/.
6010 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
6012         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
6013         running into centered or non-formatted text.
6015 2001-07-11  Werner LEMBERG  <wl@gnu.org>
6017         Introduce short and long prefixes to have the selection at run-time
6018         whether there is a 8+3 limit for names of temporary files.
6020         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
6021         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
6022         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
6023         variables.
6024         (temp_init): New global structure to initialize above three
6025         variables.
6026         (xtmptemplate): Use two parameters for long and short prefix.
6027         Simplify code use above three variables.
6028         (xtmpfile): Use long and short prefixes as parameters.
6029         * src/include/lib.h: Updated.
6031         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
6032         with ...
6033         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
6034         (createAllPages, makeTempFiles): Updated.
6036 2001-07-09  Werner LEMBERG  <wl@gnu.org>
6038         * REVISION: Increased to 3.
6040 Version 1.17.2 released
6041 =======================
6043 2001-07-07  Werner LEMBERG  <wl@gnu.org>
6045         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
6046         to size_t.
6048 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
6050         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
6051         Fix synopsis.
6052         * tmac/groff_mdoc.man: Fix synopsis.
6054 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
6056         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
6057         Restore `doc-Pa-font'.
6059 2001-07-04  Werner LEMBERG  <wl@gnu.org>
6061         * src/utils/indxbib/dirnamemax.c: Moved to ...
6062         * src/libs/libgroff/maxfilename.cc: Here.
6063         s/dir_name_max/file_name_max/.
6064         Add copyright.
6065         * src/include/lib.h: Add file_name_max.
6066         * src/utils/indxbib/indxbib.cc: Updated.
6067         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
6068         Updated.
6070         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
6071         as empty.
6072         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
6074         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
6075         REGION_TEMPLATE): New macros.
6076         (createAllPages, makeTempFiles): Use them.
6077         Include `nonposix.h'.
6078         (html_system): New function.
6079         (createAllPages, createImage): Use it.
6080         Use EXE_EXT.
6082         * tmac/www.tmac: Fix typos.
6084 2001-07-03  Werner LEMBERG  <wl@gnu.org>
6086         * tmac/www.tmac: Disable hyphenation in normal text only if output
6087         device is html.
6088         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
6089         * tmac/groff_mwww.man, NEWS: Updated.
6091 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
6093         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
6094         image location.
6096 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
6098         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
6099         doc-display-ps-stack): Implement font and font size stack for
6100         displays.
6102 2001-07-02  Werner LEMBERG  <wl@gnu.org>
6104         * REVISION: Increased to 2.
6105         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
6107         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
6108         beginning of a line.
6109         * src/groff/grog/grog.sh: Ditto.
6111 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
6113         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
6114         make it portable.
6116 2001-06-27  Werner LEMBERG  <wl@gnu.org>
6118         Fix problems with preprocessor string for `man' program.
6120         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
6121         Updated/added copyright.
6122         Moved Emacs's local variable to identify nroff mode to the end of
6123         the file; add local variable if missing.
6125 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
6127         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
6128         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
6129         * configure: Regenerated.
6131 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
6133         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
6134         * configure: Regenerated.
6136 2001-06-24  Werner LEMBERG  <wl@gnu.org>
6138         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
6139         but www.tmac.
6140         * doc/pic.ms: Fix typos.
6142 Version 1.17.1 released
6143 =======================
6145 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
6147         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
6148         * configure: Updated.
6150 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
6152         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
6153         image names.
6154         * src/roff/troff/dic.cc (blank_line): Add html tag.
6156 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
6158         * src/roff/troff/input.cc (do_suppress): Fix typo.
6160 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
6162         Added two new options (-D and -I) to specify image names and a
6163         subdirectory to place the images in.
6165         Change syntax from \\Ox to \\O[x].
6167         * src/devices/grohtml/post-html.cc (main): Add options.
6168         (usage): Updated.
6169         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
6170         Use `NULL' instead of `0' for null string pointers.
6171         (MAX_RETRIES): New macro.
6172         (lengthOfintToStr, intToStr, make_message): New functions.
6173         (makeFileName): Make function static.
6174         Implement -D and -I options.
6175         (checkImageDir): New function.
6176         (write_end_image, write_start_image): Use new syntax of \O.
6177         (createAllPages, removeAllPages): Implement -D and -I options.  Use
6178         make_message().
6179         (createImage): Use make_message().
6180         (addps4html): Add guard for malloc().
6181         (usage, scanArguments): Updated.
6182         (makeTempFiles): Use mkstemp().
6183         (removeTempFiles): Use unlink().
6184         (findPrefix): Add guard for malloc().
6185         (main): Updated.
6186         * src/roff/troff/input.cc (get_delim_file_name): New function to
6187         parse \O.
6188         (do_suppress): Updated to parse new syntax.
6189         * src/devices/grohtml/grohtml.man: Updated.
6190         * tmac/www.tmac: Updated to new syntax.
6192         * NEWS: Updated.
6194 2001-06-15  Werner LEMBERG  <wl@gnu.org>
6196         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
6198         * src/devices/grohtml/grohtml.man: Minor improvements.
6200 2001-06-14  Werner LEMBERG  <wl@gnu.org>
6202         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
6204 2001-06-11  Werner LEMBERG  <wl@gnu.org>
6206         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
6207         line to specify preprocessor options -- mandb 2.3.1 only recognizes
6208         the former.
6209         * src/preproc/grn/grn.man: Add proper '\" string.
6211 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
6213         * test-groff: Don't use PATH but GROFF_BIN_PATH.
6215 2001-06-08  Werner LEMBERG  <wl@gnu.org>
6217         Updated to autoconf 2.50.
6219         * configure.in: Renamed to...
6220         * configure.ac: This.
6221         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
6222         (GROFF_OS390): Updated.
6223         * configure: Regenerated.
6225 2001-05-18  Werner LEMBERG  <wl@gnu.org>
6227         * src/roff/troff/env.c, src/roff/troff/env.h,
6228         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
6229         from 2000-12-21.
6231 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
6233         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
6235 2001-05-16  Werner LEMBERG  <wl@gnu.org>
6237         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
6238         less than or equal zero; set it to 1 then.
6239         * src/roff/troff/node.h (node::node): Initialize `last'.
6241 2001-05-08  Werner LEMBERG  <wl@gnu.org>
6243         * tmac/an-old.tmac: Make predefined strings work in compatibility
6244         mode.
6245         Add troff version guard.
6246         * tmac/doc.tmac: Simplify version guard.
6248 2001-05-07  Werner LEMBERG  <wl@gnu.org>
6250         The .ns and .rs requests are now honoured not only in the top-level
6251         but in all diversions (similar to UNIX troff).
6253         This change is based on a patch from Tadziu Hoffmann
6254         <hoffmann@usm.uni-muenchen.de>.
6256         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
6257         (top_level_diversion): Remove `no_space_mode' member.
6258         * src/roff/troff/div.cc (diversion::diversion,
6259         top_level_diversion::top_level_diversion): Updated.
6260         (macro_diversion::output): Reset `no_space_mode'.
6261         (no_space, restore_spacing): Use `curdiv' unconditionally.
6262         (space_request, blank_line): Check `curdiv->no_space_mode'.
6263         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
6264         `curdiv' unconditionally.
6265         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6266         Updated.
6268 2001-05-06  Werner LEMBERG  <wl@gnu.org>
6270         Added two new requests `de1' and `am1' which are similar to `de' and
6271         `am' with the difference that compatibility mode is saved on entry,
6272         switched off during macro execution, and restored on exit.
6274         * src/roff/troff/input.h: Added two new special characters
6275         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
6276         * src/roff/troff/input.cc (input_iterator): Added two member
6277         functions `save_compatible_flag' and `get_compatible_flag'.
6278         (input_stack): Ditto.
6279         (string_iterator): Ditto.  Also add private member
6280         `saved_compatible_flag'.
6281         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
6282         (calling_mode): New enumeration.
6283         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
6284         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
6285         (define_macro, define_indirect_macro, append_macro, ignore): Use
6286         `calling_mode'.
6287         (define_nocomp_macro, append_nocomp_macro): New functions.
6288         (init_input_requests): Updated.
6289         (do_request): Rename local variable `saved_compatible_flag' to
6290         `old_compatible_flag'.
6291         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6293         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
6294         public and trap-invoked macros.  As a consequence, the man macros
6295         work in compatibility mode also.
6297 2001-05-06  Solar Designer  <solar@openwall.com>
6299         * Makefile.in: Use $(mandir).
6301 2001-05-06  Alexios Zavras  <zvr@pobox.com>
6303         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
6305 2001-05-05  Werner LEMBERG  <wl@gnu.org>
6307         Added `.ns' number register: Returns 1 in no-space mode (if in
6308         top-level diversion), 0 otherwise.
6310         * src/roff/troff/div.cc (no_space_mode_reg): New class.
6311         (init_div_requests): Updated.
6312         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6313         Document it.
6315 2001-05-04  Werner LEMBERG  <wl@gnu.org>
6317         * src/roff/nroff/nroff.man: Improved documentation (especially
6318         locales).
6320 2001-05-02  Werner LEMBERG  <wl@gnu.org>
6322         Added `brp' request: This is \p as a request.
6324         * src/roff/troff/env.cc (environment::do_break): Add parameter
6325         `spread'.
6326         (do_break_request): New function (was `break_request').
6327         (break_request): Calls `do_break_request'.
6328         (break_spread_request): New; calls `do_break_request'.
6329         (init_env_requests): Updated.
6330         * src/roff/troff/env.h: Updated.
6331         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6333         * REVISION: Increased to 1.
6334         * win32-diffs: Updated.
6336 2001-05-01  Werner LEMBERG  <wl@gnu.org>
6338         * tmac/an-old.tmac: Fix minor compatibility mode issue.
6339         * tmac/troffrc-end: Make it really work in compatibility mode.
6341 2001-04-27  Werner LEMBERG  <wl@gnu.org>
6343         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
6344         stdlib.h.
6346 2001-04-22  Werner LEMBERG  <wl@gnu.org>
6348         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
6349         latest versions from glibc CVS archive.
6351         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
6352         <c.zeelenberg@hccnet.nl>.
6354 2001-04-21  Werner LEMBERG  <wl@gnu.org>
6356         * configure.in: Move check for mkstemp() to...
6357         * aclocal.m4 (GROFF_MKSTEMP): This new function.
6358         * configure: Regenerated.
6360         * src/include/groff-getopt.h: Don't use variable names in
6361         declarations.
6363         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
6364         * src/devices/grohtml/Makefile.sub,
6365         src/devices/grohtml/post-html.cc: Updated.
6367 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
6369         * configure.in: Add special check for mkstemp().
6370         * src/libs/libgroff/tmpfile.cc: Use it.
6371         * src/utils/indxbib/indxbib.cc: Ditto.
6372         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
6373         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
6374         `const'.
6376 2001-04-20  Bruce Lilly  <blilly@erols.com>
6378         `Version_string' as C++ object was not visible to linker from C
6379         object files.
6380         Add `const' to `Version_string'.
6382         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
6383         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
6384         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
6385         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
6386         (scanArguments), src/preproc/refer/refer.cc (main),
6387         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
6388         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6389         (main), src/devices/grohtml/post-html.cc (main),
6390         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
6391         (main), src/utils/hpftodit/hpftodit.cc (main),
6392         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
6393         (main), src/utils/lkbib/lkbib.cc (main),
6394         src/utils/addftinfo/addftinfo.cc (main): Implement it.
6396         * src/roff/groff/pipeline.c: Add _UWIN.
6397         * src/include/nonposix.h: Ditto.
6399 2001-04-20  Werner LEMBERG  <wl@gnu.org>
6401         * src/include/lib.h: Use HAVE_STRERROR.
6402         * src/roff/groff/pipeline.c: Ditto.
6403         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
6404         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
6405         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
6406         * win32-diffs: Updated.
6407         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
6409 2001-04-19  Werner LEMBERG  <wl@gnu.org>
6411         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
6412         instead of hardwired `"troff"'.
6413         (char_buffer::read_file): Remove unused variables.
6414         (char_buffer::write_file_troff): Ditto.
6415         (char_buffer::write_file_html): Ditto.
6416         (generateImages): Ditto.
6417         (abs): Removed.
6418         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
6420         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
6422         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
6423         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
6424         index_search_item::search1): Ditto.
6425         * src/roff/troff/node.h (width_list): Reorder members.
6426         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
6427         (lookup_warning): Ditto.
6428         (prepend_string): Commented out.
6429         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
6430         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
6431         * src/preproc/tbl/main.cc (process_format): Ditto.
6432         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
6433         compiler warnings.
6434         * src/preproc/pic/pic.cc: Updated.
6435         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
6436         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
6437         * src/preproc/refer/command.cc (execute_command): Ditto.
6438         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
6439         * src/preproc/refer/token.cc (lookup_token): Ditto.
6440         * src/preproc/soelim/soelim.cc: Ditto.
6441         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
6442         (isHexDigit): Commented out.
6443         (pushBackBuffer::isString): Remove unused variable.
6444         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
6445         warning.
6446         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
6447         resource_manager::read_resource_arg, read_one_of, parse_extensions):
6448         Ditto.
6449         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
6450         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
6451         lookup_paper_size): Ditto.
6452         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
6453         (text_glob, element_list): Reorder members.
6454         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
6455         compiler warning.
6456         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
6457         return value to `void'.
6458         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
6459         of initializers.
6460         * src/devices/grohtml/html.h (simple_output::check_newline,
6461         simple_output::space_or_newline, simple_output::enable_newlines):
6462         Add return value.
6463         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
6464         compiler warnings.
6465         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
6466         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
6467         output_ligatures, output_charset, read_map): Ditto.
6468         * src/utils/lookbib/lookbib.cc (main): Ditto.
6469         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
6470         (do_file): Fix typo (`=' -> `==').
6471         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
6472         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
6474 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
6476         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
6477         Fix usage of GROFF_BIN_PATH.
6478         * src/roff/nroff/nroff.man: Updated.
6480 2001-04-18  Werner LEMBERG  <wl@gnu.org>
6482         * NEWS: Fixing typos.
6483         Updated.
6485 Version 1.17 released
6486 =====================
6488 2001-04-17  Werner LEMBERG  <wl@gnu.org>
6490         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
6491         directory, not in $(srcdir).
6493 2001-04-16  Werner LEMBERG  <wl@gnu.org>
6495         * doc/groff.texinfo: More info on conditionals.
6497 2001-04-15  Werner LEMBERG  <wl@gnu.org>
6499         * doc/groff.texinfo: Added some info about groff internals.
6501         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
6502         about missing special character only if the name is non-null.
6504 2001-04-14  Werner LEMBERG  <wl@gnu.org>
6506         Removing the grohtml-old device driver which is now obsolete.
6508         * src/devices/grohtml-old/*: Removed.
6509         * font/devhtml-old/*: Removed.
6510         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
6511         Remove comments.
6512         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
6513         * test-groff (PATH): Updated.
6514         * tmac/Makefile.sub (NORMALFILES): Updated.
6515         * tmac/an-old.tmac: Remove special code for html-old device.
6516         Replace `html-or-html-old' register with `an-html'.
6517         * tmac/eqnrc: Updated.
6518         * tmac/html-old.tmac: Removed.
6519         * tmac/troffrc, tmac/troffrc-end: Updated.
6520         * tmac/www.tmac: Remove special code for html-old device.
6521         Replace `html-or-html-old' register with `www-html'.
6523         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
6524         src/libs/libgroff/htmlindicate.cc (graphic_end),
6525         include/htmlindicate.h, src/preproc/grn/*.cc,
6526         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
6527         single argument for consistency with rest of source code.
6529         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
6531 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
6533         * src/roff/troff/troff.man: Fixing typos.
6535 2001-04-13  Werner LEMBERG  <wl@gnu.org>
6537         * doc/pic.ms: Fixing many font switches.
6538         * doc/groff.texinfo: Fixes, additions.
6539         * MORE.STUFF: Updated.
6541 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
6543         * src/devices/grohtml/grohtml.man: Updated manual page regarding
6544         simple anchor.
6545         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
6546         cropping of images.
6547         (removeTempFiles): New function to tidy up temporary files.
6548         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
6549         Many fixes to do with the new inline suppress node and image regions
6550         are much tighter.
6551         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
6552         (generate_img_src): New function.
6553         (html_printer::do_auto_image): Utilizes it.
6554         (do_heading, do_title): Include inline images within their contents.
6555         (html_printer::begin_page): Tidied up comments that are issued to
6556         the html output file.
6557         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
6558         than courier.
6559         (text_glob::is_br): New method used by do_heading.
6560         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
6561         equivalent diversion.
6562         * src/include/html-strings.h: Altered image tags to reflect the
6563         inline image node.
6564         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
6565         parameter.
6566         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
6567         it is already inside a pic image.  Only emit tags if the argument
6568         `-Tps:html' is present.
6569         * src/preproc/tbl/main.cc: Changes to reflect additional
6570         `html_end_suppress' parameter.
6571         * src/roff/troff/env.cc: Only emit eol tag if a node has been
6572         emitted since the last eol tag was written.
6573         * src/roff/troff/env.h: New boolean `emitted_node'.
6574         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
6575         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
6576         * src/roff/troff/node.cc (check_charinfo): New method. 
6577         (troff_output_file::determine_line_limits): Alterations to limit
6578         checking.
6579         * tmac/www.tmac: Changes to reflect new suppress nodes.
6580           
6581 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
6583         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
6584         Escape the html_glyph in the buffer.
6585         (str_translate_to_html): Output the unescaped escaped_char.
6586         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
6587         `frame=void', not `frame=none'.  Add `border=0'.
6589 2001-04-12  Werner LEMBERG  <wl@gnu.org>
6591         * PROBLEMS: Add some words on how to avoid wrapper macros.
6593 2001-04-11  Blake McBride  <blake@florida-software.com>
6595         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
6597 2001-04-11  Werner LEMBERG  <wl@gnu.org>
6599         * font/devlbp/Makefile.sub (CLEANADD): Set it.
6600         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
6601         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
6602         * Makefile.sub (DISTCLEANFILES): Here.
6604         * libs/libgroff/new.cc: Include `nonposix.h'.
6605         * win32-diffs: Updated.
6607 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
6609         Added skeleton macro for defunct macros.
6611         Updated documentation.
6613         When inside displays, an empty input line warning should be
6614         suppressed.  If another macro call is put inside a display,
6615         all subsequent empty lines found in that display caused a
6616         warning to be emitted.
6618         * tmac/doc.tmac (doc-defunct-macro): New macro.
6619         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
6620         (doc-restore-global-vars): Fixed typo.
6621         (doc-empty-line): Check the `doc-display-depth' register to
6622         determine whether we are inside display or not.
6624         * tmac/doc-common: Removed `Or' and `Sf' registers.
6625         Moved obsolete `Ds' macro to doc.tmac.
6627         * tmac/groff_mdoc.man: Bump document date.
6628         Document `.Vt' under ``Variable Types''.
6629         Removed documentation for obsolete `.Or' macro.
6631 2001-04-10  Werner LEMBERG  <wl@gnu.org>
6633         * NEWS: Updated.
6634         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
6636 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
6638         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
6639         (usage): Add stream argument. Don't exit.
6640         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
6641         Write --version output to stdout, not stderr.
6642         (usage): Add stream argument. Don't exit.
6643         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
6644         (usage): Add stream argument. Don't exit.
6645         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
6646         constants.
6647         (usage): Add stream argument. Don't exit.
6648         (main): Write --help output to stdout, not stderr.
6649         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
6650         (usage): Add stream argument. Don't exit.
6651         * src/devices/grops/ps.cc (main): Accept --help and --version.
6652         (usage): Add stream argument. Don't exit.
6653         * src/devices/grotty/tty.cc (main): Accept --help and --version.
6654         (usage): Add stream argument. Don't exit.
6655         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
6656         (main): Accept --help and --version.
6657         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
6658         (main): Accept --help and --version.
6659         * src/preproc/html/pre-html.cc (usage): Add stream argument.
6660         (scanArguments): Accept --help and --version.
6661         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
6662         (main): Accept --help and --version.
6663         * src/preproc/refer/refer.cc (main): Accept --help and --version.
6664         (usage): Add stream argument. Don't exit.
6665         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
6666         exit.
6667         (main): Accept --help and --version.
6668         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
6669         (main): Accept --help and --version.
6670         * src/roff/groff/groff.cc (main): Accept --help and --version.
6671         (synopsis): Add stream argument.
6672         (help): Write --help output to stdout, not stderr.
6673         (usage): Add stream argument. Don't exit.
6674         * src/roff/grog/grog.pl: Accept --help and --version.
6675         (help): New sub.
6676         * src/roff/grog/grog.sh: Accept --help and --version.
6677         * src/roff/nroff/nroff.sh: Accept --help and --version.
6678         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
6679         (usage): Add stream argument. Don't exit.
6680         (main): Accept --help and --version.
6681         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
6682         (usage): New function with stream argument, doesn't exit.
6683         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
6684         (usage): New function with stream argument, doesn't exit.
6685         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
6686         (usage): Add stream argument. Don't exit.
6687         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
6688         (main): Accept --help and --version.
6689         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
6690         exit.
6691         (main): Accept --help and --version.
6692         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
6693         (main): Accept --help and --version.
6694         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
6695         (usage): Add stream argument. Don't exit.
6697 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
6699         Fix indentation in SYNOPSIS.
6701         Updated to include changes of latest BSD mdoc version (basically,
6702         the only change is that `.Fn' and `.Fc' put a final semicolon after
6703         a function declaration in the SYNOPSIS section).
6705         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
6706         (doc-in-synopsis-section): New variable.  Updated all related
6707         functions.
6708         (doc-indent-synopsis-active): New register.
6709         (Nd, Fn, Fo): Use it.
6710         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
6711         `.Cd' with long argument line produces indented wrapped lines. 
6712         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
6713         undesirable line break to be output.
6714         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
6715         `.rs'.
6716         (Fn, Fc): Add final `;' to output.
6717         (doc-save-global-vars, doc-restore-global-vars): Updated.
6718         * tmac/doc-common: Remove `Ex' register.
6719         Updated.
6720         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
6721         copyright.
6723 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
6725         * tmac/doc.tmac (Cd): Simplify code.
6726         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
6728 2001-04-06  Werner LEMBERG  <wl@gnu.org>
6730         Implement continuous underlining for nroff mode.  To do that, a new
6731         request in the ditroff language has been added: `x u N' (N is 0
6732         or 1).
6734         \X and \Y are now transparent to end-of-sentence recognition.
6736         * src/include/printer.h (printer): Add `type' parameter to `special'
6737         method.
6738         * src/libs/libdriver/printer.cc (printer::special): Updated.
6739         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
6741         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
6742         specials of type `p'.
6743         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
6744         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
6745         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
6746         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
6747         (glyph::order): New method.
6748         (tty_printer::add_char): Use it.
6749         (tty_printer::special): New method.
6750         (tty_printer::end_page): Implement it.
6752         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
6753         * src/roff/troff/node.cc (special_node::special_node): Add parameter
6754         to set `no_init_string'.
6755         (special_node::tprint_start): Use it.
6756         (special_node::same, special_node::copy): Updated.
6757         (special_node::ends_sentence): New method.
6758         (troff_output_file::start_special): Add parameter to include
6759         inititialization of special conditionally.
6761         * src/roff/troff/env.h (environment): New member `underline_spaces'.
6762         * src/roff/troff/env.cc (do_underline_special): New function.
6763         (environment::set_font): Use it.
6764         (do_underline): Use it.  This was `underline()'.
6765         (underline): Call `do_underline()'.
6766         (continuous_underline): New function which calls `do_underline()'.
6767         (environment::newline): Use `do_underline_special()'.
6768         (init_env_requests): Updated.
6770         * NEWS, man/troff_out.man: Updated.
6772 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
6774         * font/devutf8/R.proto: Fix code of 'shc'.
6776 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
6778         Many fixes.  Diag lists can now be nested also; additionally,
6779         `-compact' and `-offset' are supported.
6781         * tmac/doc.tmac (doc-have-indent): Replaced with ...
6782         (doc-list-have-indent-stackXXX): A new register stack.
6783         (doc-have-diag-list): Removed.
6784         (Bl): Use `doc-list-have-indent-stackXXX'.
6785         (El): Updated.
6786         (doc-diag-list): Use `doc-compact-list-stackXXX'.
6787         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
6788         (doc-set-vertical-and-indent): Ditto.
6789         (doc-next-list-depth): Removed.
6790         (doc-increment-list-stack): Updated.
6791         (doc-decrement-list-stack): Use `doc-list-depth' instead of
6792         `doc-next-list-depth'.
6793         (doc-end-list, doc-end-column-list): Don't use
6794         `doc-increment-list-stack'.
6795         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
6796         (doc-save-global-vars, doc-restore-global-vars): Updated.
6797         * tmac/doc-common: Updated.
6798         * tmac/groff_mdoc.man: Updated.
6799         * NEWS: Fix typo.
6801 2001-04-02  Werner LEMBERG  <wl@gnu.org>
6803         * src/devices/grotty/grotty.man: Fix grammatical error.
6805 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
6807         Remove .Ld from mdoc package; replace it with special handling of
6808         `...'.
6810         * tmac/doc-common: Remove `Ld' register.
6811         Uncomment `doc-volume-ds-*' strings.
6812         Remove `doc-operating-system-default'.
6813         (Os): Updated.
6814         * tmac/doc-syms (Ld): Removed.
6815         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
6816         `...' specially.
6817         * NEWS: Updated.
6819         * tmac/groff_mdoc.man: Many fixes and updates.
6821 2001-03-29  Werner LEMBERG  <wl@gnu.org>
6823         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
6824         Bond <tkb@tkb.mpl.com>.
6825         * tmac/www.tmac: Save compatibility mode.
6827 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
6829         * tmac/groff_mdoc.man: Many fixes.
6831 2001-03-28  Werner LEMBERG  <wl@gnu.org>
6833         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
6834         isn't recognized.
6836 2001-03-27  Werner LEMBERG  <wl@gnu.org>
6838         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
6839         diversion.  This fixes overlong tags.
6841 2001-03-26  Werner LEMBERG  <wl@gnu.org>
6843         * doc/groff.texinfo: Fixed and improved documentation of fonts.
6844         * tmac/doc-syms: Fix error messages.
6845         * tmac/an-old.tmac: Remove incorrect double backslashes.
6847 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
6849         * tmac/Makefile.sub: Strip mdoc.local also
6850         * tmac/strip.sed: Fixed.
6852 2001-03-24  Werner LEMBERG  <wl@gnu.org>
6854         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
6855         selecting the font size.
6856         * tmac/groff_mdoc.man, NEWS: Document it.
6858 2001-03-23  Werner LEMBERG  <wl@gnu.org>
6860         * src/roff/troff/div.cc (save_vertical_space): Add default argument
6861         to `sv' request.
6862         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
6863         argument to restore previous font family.
6864         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
6866         * doc/groff.texinfo: More fixes and additions (mainly for font
6867         manipulating commands).
6869         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
6870         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
6871         * tmac/Makefile.sub, NEWS: Updated.
6873 2001-03-23  Werner LEMBERG  <wl@gnu.org>
6875         Replaced mdoc implementation.  The new version is `state of the
6876         art', using almost all new features of groff 1.17 -- it won't run
6877         with older versions.
6879         * tmac/doc.tmac: Completely rewritten.
6880         * tmac/doc-common: Ditto.
6881         * tmac/doc-nroff: Ditto.
6882         * tmac/doc-ditroff: Ditto.
6883         * tmac/doc-syms: Ditto.
6884         * tmac/mdoc.local: New file.
6885         * tmac/groff_mdoc.samples.man: Replaced with ...
6886         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
6887         * tmac/strip.sed: Updated.
6888         * tmac/Makefile.sub: Updated.
6889         * INSTALL: Updated.
6891         * tmac/groff_man.man: Add `man.local' to the FILES section.
6893 2001-03-22  Werner LEMBERG  <wl@gnu.org>
6895         * doc/groff.texinfo: Added many @noindent.
6896         Replaced @end_Example -> @endExample.
6897         Added info whether registers are r/o.
6898         Many other additions and fixes.
6900 2001-03-21  Werner LEMBERG  <wl@gnu.org>
6902         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
6903         in makeinfo of texinfo 4.0) to be used in @Def* macros.
6904         Improved @Def* macros: Now the exact syntax of request, register,
6905         and escapes is shown.
6906         Added macros for parentheses and brackets to be used in @Def*.
6907         Many fixes and improvements of the documentation.
6909 2001-03-20  Werner LEMBERG  <wl@gnu.org>
6911         * doc/groff.texinfo: Added new index: `st' (for strings).
6912         Added macros @Defstr(x).
6913         Added macro @Example (adding @group).
6914         Other minor improvements.
6916 2001-03-19  Werner LEMBERG  <wl@gnu.org>
6918         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
6919         `rq' for requests.  `fn' is no longer used.
6920         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
6921         Removed @Deffn(x).
6923         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
6924         number with name of man page.
6926 2001-03-19  Larry Kollar  <kollar@alltel.net>
6928         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
6929         consistency.
6931 2001-03-19  Werner LEMBERG  <wl@gnu.org>
6933         * man/groff_font.man: Document `prepro', `postpro', and `print'.
6934         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
6935         * src/devices/grohtml/grohtml.man: Fixing typos.
6937 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
6939         * tmac/s.tmac (@IP): Pass `.ip' html tag.
6940         * tmac/groff_mwww.man: Remove .LINE macro
6941         * tmac/www.tmac (LINE): Add `.ti'.
6943         * src/devices/grohtml/post-html.cc (html_printer): New member
6944         `indent'.
6945         (html_printer::emit_raw): Use it.
6946         (html_printer::do_linelength): Ditto.
6947         (html_printer::do_pageoffset): Ditto.
6948         (html_printer::do_indentation): Ditto.
6949         (html_printer::do_tempindent): Ditto.
6950         (html_printer::do_break): Ditto.
6951         (html_printer::begin_page): Ditto.
6952         (html_printer::do_indentedparagraph): New function.
6953         (html_printer::troff_tag): Handle `.ip'.
6954         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
6955         Add `<td width=...>' handling.
6956         (html_text::do_table): Add parameter.
6957         (html_text::do_indent): Updated.
6958         * src/devices/groohtml/html-text.h: Updated.
6960 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
6962         Introduced simple html tables to implement indentation.
6964         * src/devices/grohtml/html.h (word, word_list): New structures.
6965         (simple_output): Use it.
6966         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
6967         (html_printer): Improve indentation handling.
6968         (html_printer::emit_raw): Set `in_table' element.  Handle
6969         indentation if set.
6970         (html_printer::write_header): Move conditional downwards.
6971         Don't allow whitespace in tags.
6972         (html_printer::do_linelength): Handle line length and indentation
6973         conditionally.
6974         (html_printer::do_pageoffset): Handle indentation conditionally.
6975         (html_printer::do_indentation): Ditto.
6976         (html_printer::do_tempindent): New function member.
6977         (html_printer::do_fill): Take care of indentation.
6978         (html_printer::do_flush): Finish table.
6979         (html_printer::do_links): Ditto.
6980         (html_printer::do_break): New function for handling `.br' and `.ti'.
6981         (html_printer::troff_tag): Use it.
6982         Handle `.ti'.
6983         (html_printer::flush_globs): Fix.
6984         (html_printer::flush_page): Finish table.
6985         (html_printer::html_printer): Fix error message.  Set up
6986         `linelength'.
6987         (html_printer::add_to_sbuf): Remove special handling of character
6988         code 255.
6989         (to_unicode): Remove `stop()'.
6990         (html_printer::write_title): Cleanup.
6991         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
6992         (html_printer::~html_printer): Flush text and end the line.
6993         Use `put_string()'.
6994         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
6995         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
6996         emission of tags.
6997         (html_text::start_tag): Disable newlines.
6998         (html_text::table_is_void): New function.
6999         (html_text::issue_table_begin): Ditto.
7000         (html_text::issue_table_end): Ditto.
7001         (html_text::push_para): Better table handling.
7002         (html_text::do_indent): New function.
7003         (html_text::do_table): Ditto.
7004         (html_text::done_table): Ditto.
7005         (html_text::do_tt): Handle PRE_TAG.
7006         (html_text::is_in_table): New function.
7007         (html_text::check_emit_text): Handle tables.
7008         (html_text::do_emittext): Use `nl()'.
7009         (html_text::do_para): Handle table.
7010         (html_text::remove_def): New function.
7011         * src/devices/grohtml/output.cc (word, word_list): Implement
7012         methods.
7013         (simple_output::end_line): Flush last word.
7014         (simple_output::simple_comment): Ditto.
7015         (simple_output::begin_comment): Recoded.
7016         (simple_output::end_comment): Ditto.
7017         (simple_output::comment_arg): Removed.
7018         (simple_output::check_newline): Improve test and flush last word.
7019         (simple_output::space_or_newline): Improved.
7020         (simple_output::write_newline): Replaced with...
7021         (simple_output::nl): This.
7022         (simple_output::put_raw_char): Flush last word.
7023         (simple_output::check_space): Removed.
7024         (simple_output::put_translated_string): Ditto.
7025         (simple_output::put_string): Simplified.
7026         (simple_output::put_number): Updated.
7027         (simple_output::put_float): Ditto.
7028         (simple_output::put_symbol): Removed.
7029         (simple_output::enable_newlines): Add `check_newline()'.
7030         (simple_output::flush_last_word): New function.
7032         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
7033         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
7035         * tmac/s.tmac (@PP, @IP): Add html conditional code.
7036         * tmac/an-old.tmac (TP): Ditto.
7038 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
7040         * mdate.sh: Make it POSIX compliant.
7042 2001-03-09  Werner LEMBERG  <wl@gnu.org>
7044         Added the `return' request to end a macro immediately.  It simply
7045         pops iterators from the input stack until a macro iterator is found.
7047         * src/roff/troff/input.cc (input_iterator::is_macro,
7048         macro_iterator::is_macro): New member.
7049         (input_return_boundary): New class to signal an immediate return
7050         to while_request().
7051         (input_stack::add_return_boundary, input_stack::is_return_boundary):
7052         New functions.
7053         (input_stack::clear): Use it.
7054         (input_stack::pop_macro): New function.
7055         (while_request): Use `is_return_boundary()'.
7056         (return_macro_request): New function.
7057         (init_input_requests): Use it.
7059         * src/roff/troff/TODO: Updated.
7060         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7062 2001-03-08  Werner LEMBERG  <wl@gnu.org>
7064         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
7065         cleanup.
7067 2001-03-07  Werner LEMBERG  <wl@gnu.org>
7069         Make `\B' more rigid.
7071         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
7072         parameter.
7073         (get_number_rigidly): New function.
7074         * src/roff/troff/input.cc (do_expr_test): Use it.
7075         * src/roff/troff/token.h: Updated.
7077         * src/roff/troff/request.h: Fix typo (init_html_request ->
7078         init_markup_request).
7080 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
7082         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
7083         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
7084         are now `.begin', `.end', `.image'.
7086         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
7087         (html_printer::add_to_sbuf): Changing type of `code' parameter.
7088         Use add_char_to_sbuf().
7089         (to_unicode): New function.
7090         (char_translate_to_html): Changing type of `ch' parameter.
7091         Use `to_unicode()'.
7092         (html_printer::~html_printer): Comment out doctype string.
7093         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
7094         instead of `.html-end'.
7095         (write_start_image): Use `.begin' and `.image' instead of
7096         `.html-begin' and `.html-image'.
7097         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
7098         (html_begin): Renamed to ...
7099         (begin): This.
7100         (html_end): Renamed to ...
7101         (end): This.
7102         (html_image): Renamed to ...
7103         (image): This.
7104         (init_html_requests): Renamed to ...
7105         (init_markup_requests): This.
7106         * tmac/www.tmac: Updated.
7108 2001-02-28  Bram  <bram@avontuur.org>
7110         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
7111         constructor.
7113 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
7115         * doc/meref.me: Fixing some typos.
7117 2001-02-16  Werner LEMBERG  <wl@gnu.org>
7119         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
7120         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
7121         * src/roff/troff/node.h: Updated.
7123 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
7125         * tmac/groff_tmac.man: Fix typo.
7127 2001-02-16  Werner LEMBERG  <wl@gnu.org>
7129         Fixing a bug which prevented proper end-of-sentence recognition
7130         between an `unformatted' box and the following text.  As a
7131         consequence, vertical line distances are no longer preserved in
7132         boxes after a call to `.unformat' -- because boxes aren't
7133         line-oriented (contrary to diversions), this doesn't make sense
7134         anyway.
7136         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
7137         value.
7138         (vertical_size_node::set_unformat_flag): New method.
7139         * src/roff/troff/node.hh: Updated.
7140         * src/roff/troff/input.cc (word_space_node::reread,
7141         hmotion_node::reread): Reset `unformat' flag after usage.
7142         (unformat_macro): Append only if `set_unformat_flag()' returns
7143         non-zero.
7144         * src/roff/troff/troff.man: Updated.
7146 2001-02-15  Werner LEMBERG  <wl@gnu.org>
7148         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
7149         documentation of `asciify' and `unformat' requests.
7151 2001-02-13  Werner LEMBERG  <wl@gnu.org>
7153         Redesigned the `unformat' request.  It is no longer connected with
7154         `asciify' but rather uses new `reread()' methods if the `unformat'
7155         flag is set.  Additionally, the handling of space characters after
7156         unformatting has been fixed so that they retain their width.
7158         * src/roff/troff/node.h (width_list): New structure to store
7159         original widths of spaces.
7160         (node): Added `unformat' member.
7161         Replaced `num_spaces' variable with `orig_width' list.
7162         * src/roff/troff/node.cc (*node::asciify,
7163         asciify_reverse_node_list): Removed `unformat_only' flag and related
7164         code.
7165         (word_space_node::asciify, word_space_node::word_space_node): Use
7166         `orig_width'.
7167         (word_space_node::~word_space_node): New destructor.
7168         (word_space_node::copy): Updated to handle `orig_width'.
7169         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
7170         (*node::merge_space): Update `orig_width' list if necessary.
7171         (*node::set_unformat_flag): New methods to set the `unformat' flag.
7172         * src/roff/troff/enc.cc (environment::space_newline): Use
7173         `width_list'.
7174         (environment::space): Added method to handle space width and
7175         sentence space width as parameters.  Use `width_list'.
7176         (environment::make_tab_node): Updated.
7177         * src/roff/troff/env.h: Updated.
7178         * src/roff/troff/input.cc (word_space_node::reread,
7179         unbreakable_space_node::reread, hmotion_node::reread): New methods
7180         to handle nodes specially if `unformat' flag is set.
7181         (do_asciify_macro): Renamed back to ...
7182         (asciify_macro): This.
7183         (unformat_macro): New implementation to simply set the `unformat'
7184         flag.
7186         * MORE.STUFF: Added more info about deroff.
7188 2001-02-08  Werner LEMBERG  <wl@gnu.org>
7190         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7191         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
7192         and `add_self()' methods to avoid hyphenation.  For example, the
7193         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
7194         soft hyphen after `foo'.  Now the hyphen list is correctly
7195         `foo<ignore><ignore>bar'.
7197 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
7199         * tmac/groff_tmac.man: Fix `BIR' macro.
7201 2001-02-04  Werner LEMBERG  <wl@gnu.org>
7203         A new escape sequence `\:', inserting a zero-width break point.
7205         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
7206         * src/roff/troff/input.cc (get_copy, token::next, asciify):
7207         Implement it.
7208         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
7209         method.
7210         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
7211         and `asciify()' methods.
7212         * src/roff/troff/node.cc (space_node::space_node): Updated.
7213         (space_node::asciify): Handle `was_escape_colon'.
7214         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7216         Handle `\~' similar to other comparable requests.
7218         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
7219         label.
7220         (token::next): Move creation of an unbreakable_space_node to...
7221         (token::add_to_node_list): Here.
7223         Fix a bug which sometimes prevented hyphenation of words connected
7224         with `\~' or `\ ' (and other escape sequences handled as
7225         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
7226         (after a call to the `unformat' request).
7228         * src/roff/troff/env.h (environment::possibly_break_line,
7229         environment::hyphenate_line): Introducing `start_here' parameter.
7230         * src/roff/troff/env.cc (environment::space_newline,
7231         environment::space): Use it.
7232         (environment::possibly_break_line, environment::hyphenate_line):
7233         Implement it.
7234         * src/roff/troff/input.cc (process_input_stack): Use it.
7235         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7236         space_char_hmotion_node, overstrike_node): Add
7237         `get_hyphenation_type()' method.
7238         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
7239         if `unformat_only' is active.
7241 2001-01-30  Werner LEMBERG  <wl@gnu.org>
7243         Implemented new read-only number register `.linetabs' which
7244         returns 1 if in line-tabs mode, 0 otherwise.
7246         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
7247         * src/roff/troff/env.cc (get_line_tabs): New function.
7248         (init_env_requests): Use it.
7249         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7251         * VERSION, REVISION: Changing to 1.17.0.
7253 2001-01-28  Werner LEMBERG  <wl@gnu.org>
7255         Fixed a bug which prevented hyphenation of words which are finished
7256         with `\)'.
7258         * src/roff/troff/token.h (token): Add enum type
7259         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
7260         * src/roff/troff/input.cc (token::next, token::description,
7261         get_line_arg, token::add_to_node_list, token::process): Use it.
7263 2001-01-27  Werner LEMBERG  <wl@gnu.org>
7265         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
7266         * src/roff/troff/div.cc (do_divert): Use it.
7268         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
7270 2001-01-25  Werner LEMBERG  <wl@gnu.org>
7272         Adding the `linetabs' request.  If set, tab distances are not
7273         computed relative to the input line but relative to the output line.
7275         * src/roff/troff/env.h (environment): New member `line_tabs'.
7276         * src/roff/troff/env.cc (line_tabs_request): Implement request.
7277         (environment::environment, environment::copy): Updated.
7278         (environment::distance_to_next_tab): Use `line_tabs'.
7279         (init_env_requests): Register request.
7280         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
7281         fixes.
7283 2001-01-24  Werner LEMBERG  <wl@gnu.org>
7285         Introducing a new read-only register `.int' which is set to a
7286         positive value if the last output line is interrupted (i.e., if it
7287         contains `\c').
7289         * src/roff/troff/env.cc (init_env_requests): Add it.
7290         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7292 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
7294         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
7295         * src/preproc/html/pre-html.cc (findPrefix): New function which
7296         generates the troff executable name via the system prefix.
7297         * src/preproc/eqn/main.cc: Modified warning message.
7299 2001-01-23  Werner LEMBERG  <wl@gnu.org>
7301         troff's `box' and `boxa' requests didn't preserve temporary
7302         indentation.
7304         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
7305         `saved_target_text_length' members.
7306         * src/roff/troff/div.cc (do_divert): Use them.
7308         Tabs (but not yet leaders and fields) are now handled correctly by
7309         `asciify' request.
7311         * node.h (hmotion_node): Add field `was_tab'.
7312         * env.cc (environment::make_tab_node): Set it.
7313         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
7315         Added new request `unformat' which will, contrary to `asciify',
7316         preserve font information after unformatting (i.e., only nodes
7317         dealing with horizontal space are converted back to input
7318         characters).
7320         * input.cc (asciify_macro): Renamed to ...
7321         (do_asciify_macro): this, having a new parameter `unformat_only'.
7322         (asciify_macro, unformat_macro): New; using do_asciify_macro.
7323         (init_input_requests): Added `unformat'.
7324         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
7325         parameter to control asciification process.
7326         * node.h (*_node::asciify): Ditto.
7327         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7329 2001-01-20  Werner LEMBERG  <wl@gnu.org>
7331         * doc/groff.texinfo: Minor improvement of `.in' documentation.
7333 2001-01-18  Werner LEMBERG  <wl@gnu.org>
7335         * tmac/ps.tmac: Remove call of psold.tmac.
7336         * tmac/psold.tmac: Comment updated.
7337         * tmac/psnew.tmac: Removed since no longer needed.
7338         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
7340         * font/devutf8/R.proto: Adding `shc' glyph.
7341         * font/devutf8/NOTES: Updated.
7343         * test-groff: Updated.
7345 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7347         First cut of the new html device driver.  Changes to pre-html and
7348         the new grohtml are too numerous to be documented here.
7350         Stuff related to `html' has been renamed to `html-old' and `html2'
7351         stuff has been renamed to `html' (including directories).  The new
7352         html device driver is therefore invoked as `-Thtml'.
7354         Added new `\O' escape to suppress output (needed by html driver).
7356         Added functions and code to pass info about input-level commands
7357         (`.in', `.fl', etc.) to html driver.
7359         Three new functions (.html-begin, .html-end, and .html-image) for
7360         better html handling: `html-begin' will execute the remaining line
7361         if at the outermost nesting level, increasing an internal counter.
7362         `html-end' does the same but decreases the internal counter.
7363         `html_image' puts its arguments into a special node (suppress_node)
7364         to define an image region.
7366         The `output' request has been removed.
7368         * tmac/html-tags.tmac: Removed.
7369         * tmac/arkup.tmac: Updated and renamed to ...
7370         * tmac/www.tmac: New file.
7371         * tmac/markup.tmac Updated and renamed to ...
7372         * tmac/mwww.tmac: New file.
7373         * tmac/Makefile.sub: Updated.
7374         * tmac/an-old.tmac: Updated.
7375         * tmac/eqnrc: Updated.
7376         * tmac/groff_man.man
7377         * tmac/groff_markup.man: Updated and renamed to ...
7378         * tmac/groff_mwww.man: New file.
7379         * tmac/groff_tmac.man: Updated.
7380         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
7381         * tmac/html.tmac: Updated and renamed from html2.tmac.
7382         * tmac/pspic.tmac: Updated html support.
7383         * tmac/s.tmac: Added html output support.
7384         * tmac/troffrc, tmac/troffrc-end: Updated.
7386         * Makefile.in, doc/Makefile: Updated.
7387         * doc/groff.texinfo: Added info about new `\O' escape.
7388         * doc/homepage.ms: Use `MAILTO' macro.
7390         * font/devhtml/DESC.proto: Add `C' font.
7391         * font/devhtml/Makefile.sub: Updated.
7392         * font/devhtml/R.proto: Minor fixes.
7393         * font/devhtml-old/Makefile.sub: Updated.
7395         * src/devices/grohtml-old/Makefile.sub: Updated.
7397         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
7398         method.
7399         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
7400         graphic_start): Add `inline' parameter.  Update.
7401         (html_end_suppress, graphic_end): Update.
7403         * src/include/html-strings.h: New file.
7404         * src/include/htmlindicate.h: Comments updated.
7405         * src/include/printer.h: Updated.
7407         * src/preproc/eqn/main.cc (do_file, main): Updated.
7408         * src/preproc/pic/troff.cc (troff_output::start_picture,
7409         troff_output::finish_picture): Updated.
7410         * src/preproc/tbl/main.cc (process_input_file): Updated.
7412         * src/roff/groff/groff.cc (main): Updated.
7413         Pass device arguments to predrivers also.
7414         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
7415         * src/roff/troff/env.h (environment): Updated.
7416         New elements `need_eol' and `ignore_next_eol' (for html output).
7417         * src/roff/troff/env.cc (environment::environment): Add initializers
7418         for `need_eol' and `ignore_next_eol'.
7419         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
7420         functions.
7421         (point_size, fill, no_fill, center, right_justify, line_length,
7422         indent, temporary_indent, break_request, handle_tab): Use
7423         `add_html_tag()'.
7424         (set_tabs): Use `add_html_tag_tabs()'.
7425         (environment::add_html_tag): Updated.
7426         (environment::do_break): Updated.
7427         * src/roff/troff/div.cc (space_request, flush_output): Use
7428         `environment::add_html_tag()'.
7429         * src/roff/troff/input.cc: Updated.
7430         New variable `html_level' to indicate nested `html-begin' requests.
7431         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
7432         (non_interpreted_char_node, token_node, non_interpreted_node): Add
7433         `force_tprint()' method.
7434         (token::next): Handle `\O'.
7435         (do_suppress): Implement it.
7436         (html_begin, html_end, html_image): New functions.
7437         (init_output_requests): Renamed to ...
7438         (init_html_requests): this.
7439         (main): Use it.
7440         (macro::append_str, macro::append_unsigned, macro::append_int): New
7441         methods.
7442         New variable `output_low_mark_miny' to limit minimal value of y.
7443         (reset_output_registers): Use it.
7444         (output_request): Removed.
7445         (get_output_registers): New function.
7446         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
7447         (*_node): Added `force_tprint()' if necessary.
7448         (special_node): New elements `tf' and `get_tfont()'.
7449         (suppress_node): New class.
7450         * src/roff/troff/node.cc:
7451         New global variables `image_no' and `suppress_start_page'.
7452         (real_output_file): New method `is_on()'.
7453         (troff_output_file): New method `start_special(tfont)'.
7454         (troff_output_file::really_print_line): Use `tprint' conditionally.
7455         (real_output_file::print_line): Updated.
7456         (real_output_file::on): Updated.
7457         (*_node): Added `force_tprint()'.
7458         (special_node::special_node): Initializer updated.
7459         (special_node::same, special_node::copy, special_node::tprint_start):
7460         Updated.
7461         (get_reg_int, get_reg_str): New functions.
7462         (suppress_node::*): New methods.
7463         New global variables last_position, last_image_filename;
7464         (min): New inline function.
7465         * src/roff/troff/reg.h, src/roff/troff/request.h,
7466         src/roff/troff/troff.h: Updated.
7468 2001-01-13  Werner LEMBERG  <wl@gnu.org>
7470         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
7471         documentation of `asciify' request.
7473 2001-01-12  Werner LEMBERG  <wl@gnu.org>
7475         * src/roff/troff/input.cc: Move definition of special characters
7476         like `ESCAPE_TILDE' to ...
7477         * src/roff/troff/input.h: New file.
7478         * src/roff/troff/Makefile.sub (HDRS): Add it.
7480         Extending the .asciify request to `unformat' space characters also.
7482         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
7483         to count input space characters.
7484         Update constructors to take care of it.
7485         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
7486         `ESCAPE_SPACE' instead of normal space.
7487         (word_space_node::asciify): New method.
7488         (unbreakable_space_node::asciify): New method.
7489         (word_space_node::merge_space): New method.
7490         * src/roff/troff/env.cc (environment::space_newline,
7491         environment::space): Add code to initialize `num_spaces' (using the
7492         constructor of `word_space_node').
7493         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7494         Document it.
7496 2001-01-09  Werner LEMBERG  <wl@gnu.org>
7498         * man/groff_char.man: Use table header traps only conditionally.
7500 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
7502         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
7504 2001-01-08  Werner LEMBERG  <wl@gnu.org>
7506         Introducing the `box' and `boxa' requests which are similar to
7507         `di' resp. `da' but omitting a partially filled line (which is
7508         restored after ending the diversion).
7510         * src/roff/troff/div.h (diversion): Add elements to save partially
7511         filled line.
7512         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
7513         partially filled line.
7514         (divert, divert_append): Updated.
7515         (box, box_append): New functions.
7516         (init_div_requests): Use them.
7517         * src/roff/troff/env.h (environment): do_divert() is now a friend.
7518         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7520         * doc/groff.texinfo: Fix documentation of `lf' request.
7522 2000-12-25  Werner LEMBERG  <wl@gnu.org>
7524         * src/roff/troff/troff.man, NEWS: Document `writem' request.
7526 2000-12-21  Werner LEMBERG  <wl@gnu.org>
7528         Ignore `ss' request if in compatibility mode.
7530         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
7531         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
7532         * src/roff/troff/env.cc (space_size): Use it.
7534         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
7535         `ss' request in nroff mode.
7537         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
7538         changes.
7540 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
7542         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
7544 2000-12-13  Werner LEMBERG  <wl@gnu.org>
7546         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
7547         * src/preproc/eqn/neqn.man: Small fixes and additions.
7549 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
7551         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
7552         Fixing typo.
7554         * src/preproc/eqn/neqn.man: New file.
7556         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
7557         negative' warning.
7559         * tmac/e.tmac: Add `T&' macro.
7560         Fix `indent cannot be negative' warning.
7561         * tmac/s.tmac: Fix `indent cannot be negative' warning.
7563 2000-12-07  Werner LEMBERG  <wl@gnu.org>
7565         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
7567 2000-12-06  Werner LEMBERG  <wl@gnu.org>
7569         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
7570         `alloca' symbol .
7572         * MORE.STUFF: Added info about deroff for djgpp.
7574         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
7575         documentation of -rcR switch.
7577 2000-12-03  Werner LEMBERG  <wl@gnu.org>
7579         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
7580         if -rcR=1 (which is now the default in nroff mode), a single, very
7581         long page is created instead of multiple pages: All `ne' and `wh'
7582         requests are put into conditionals; a new macro `an-end' is added to
7583         be called with `em'.
7585         Some other minor cleanups.
7587         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
7589 2000-12-02  Werner LEMBERG  <wl@gnu.org>
7591         Fixing a bug which prevented hyphenation in words followed
7592         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
7594         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
7595         Adding possibly_break_line().
7596         * src/roff/troff/env.h (environment): Make possibly_break_line()
7597         public.
7599         Make `\~' usable in .tr request.
7601         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
7602         (token): Add stretchable_space().
7603         * src/roff/troff/input.cc (token::next, token::delimiter,
7604         token::description, process_input_stack, do_translate,
7605         add_to_node_list, token::process): Use it.
7606         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
7607         for adjusting the space.
7608         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
7609         for stretchable space.
7610         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
7611         (make_node): Add code for stretchable space.
7612         * src/roff/troff/env.cc (environment::add_char): Use it.
7613         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
7614         (get_copy, token::next, transparent_translate, asciify): Use it.
7616         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
7617         doc/groff.texinfo: Updated.
7618         * man/groff.man: Small reorderings.
7620 2000-11-23  Werner LEMBERG  <wl@gnu.org>
7622         * NEWS: Fixes.
7623         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
7624         option.
7625         * src/roff/troff/input.cc (main): Add `config_macro_path' and
7626         `safer_macro_path' to -M option.
7627         * src/roff/troff/troff.man: Fixes.
7629 2000-11-22  Werner LEMBERG  <wl@gnu.org>
7631         Use safer path (except for config files) if -U isn't specified.  Add
7632         a special macro path (without home and current directory) for config
7633         files.  Add home directory to unsafe path for consistency.  Don't
7634         include the home directory in the font path.
7636         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
7637         `macro_path'.
7638         * src/include/macropath.h: Add `config_macrp_path'.
7639         * src/libs/libgroff/fontfile.cc: Fix font path.
7640         * src/roff/troff/input.cc (process_startup_file): Use
7641         `config_macro_path'.
7642         (main): Select unsafe path if -U is given.
7644         * src/preproc/eqn/main.cc (main): Fixing search path for
7645         configuration file.
7646         * src/preproc/eqn/eqn.man: Updated.
7648         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
7649         Updated.
7651         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
7652         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
7653         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7654         src/devices/grotty/grotty.man: Updated.
7656         * Makefile.in: Fix comments.
7658 2000-11-17  Werner LEMBERG  <wl@gnu.org>
7660         * tmac/safer.tmac: Empty file added (again) for compatibility
7661         reasons.
7662         * tmac/Makefile.sub: Updated.
7664 2000-11-16  Werner LEMBERG  <wl@gnu.org>
7666         * src/devices/grodvi/dvi.cc (main),
7667         src/devices/grohtml2/post-html.cc (main),
7668         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7669         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7670         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7671         (main), src/preproc/html2/pre-html.cc (main),
7672         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7673         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7674         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7675         (main), src/utils/hpftodit/hpftodit.cc (main),
7676         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
7677         (main), src/utils/lookbib/lookbib.cc (main),
7678         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
7679         (main): Use stdout for -v.
7680         * src/roff/groff/groff.cc (run_commands),
7681         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
7682         to make direct printing to stdout possible.
7683         * src/roff/groff/pipeline.h: Updated.
7685         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
7686         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
7687         * src/utils/afmtodit/afmtodit.man: Updated.
7689         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
7690         (version): New function.
7691         (usage): Updated.
7692         * src/utils/addftinfo/addftinfo.man: Updated.
7694         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
7695         Fixing copyright dates.
7697         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
7698         replacing it.
7700         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
7701         version_string.
7703         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
7705 2000-11-15  Werner LEMBERG  <wl@gnu.org>
7707         In all programs, make -v return immediately with exit status 0 to
7708         be compliant with the GNU standard.
7710         * src/devices/grodvi/dvi.cc (main),
7711         src/devices/grohtml2/post-html.cc (main),
7712         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7713         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7714         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7715         (main), src/preproc/html2/pre-html.cc (main),
7716         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7717         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7718         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7719         (main): Implement it.
7720         * NEWS: Updated.
7722         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
7723         and postprocessors to the -v option.
7725         * src/roff/grog/grog.pl: Implement -v.
7726         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
7727         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7729         * src/roff/nroff/nroff.sh: Implement -v.
7730         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
7731         * src/roff/nroff/nroff.man: Updated.
7732         
7733         * src/preproc/eqn/main.cc (main): Fix comment typo.
7735         * MORE.STUFF: Added info about djgpp port of grap.
7737 2000-11-14  Werner LEMBERG  <wl@gnu.org>
7739         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
7740         mode (or rather, implemented non-compatibility mode).
7741         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7743         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
7744         replacing it -- we don't find gxditview otherwise.
7745         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
7747         * src/preproc/pic/depend: Removed.  Unnecessary.
7749         Implemented dummy keyword `solid' in pic for compatibility with
7750         AT&T pic.
7752         * lex.cc (lookup_keyword): Added `solid'.
7753         * pic.y: Added SOLID with dummy rule.
7754         * pic.cc, pic_tab.h: Regenerated.
7755         * doc/pic.ms: Updated.
7757 2000-11-13  Werner LEMBERG  <wl@gnu.org>
7759         For security reasons, don't use the current directory but the home
7760         directory while searching and scanning troffrc and troffrc-end.
7761         Similarly, replace the current directory with the home directory
7762         in the font path.
7764         * Makefile.in (fontpath, tmacpath): Remove current directory.
7766         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
7767         two parameters `add_home' and `add_current'.
7768         (search_path::~search_path, search_path::command_line_dir,
7769         search_path::open_file): Remove tests for `dirs' being zero.
7770         * src/include/searchpath.h: Adjust.
7771         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
7772         `safer_macro_path'.
7773         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
7775         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
7776         * src/roff/troff/input.cc: Use `mac_path', initialized with
7777         `macro_path'.
7778         (process_startup_file): Set `mac_path' to `safer_macro_path'.
7779         * src/roff/troff/env.cc: Use `mac_path'.
7781         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
7783         * NEWS, man/roff.man, src/roff/troff/troff.man,
7784         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
7785         Updated.
7787 2000-11-12  Werner LEMBERG  <wl@gnu.org>
7789         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
7791         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
7792         * configure.in: Fix typo in comment.
7793         * configure: Regenerated.
7795         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
7796         copyright dates.
7798 2000-11-08  Werner LEMBERG  <wl@gnu.org>
7800         Add system tmac directory (/usr/local/lib/groff/site-tmac).
7802         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
7803         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
7804         $(systemtmacdir).
7805         Use @libdir@.
7806         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
7807         * tmac/Makefile.sub (install_data): Create
7808         $(systemtmacdir) and $(localtmacdir).
7809         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
7810         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
7811         NEWS, doc/groff.texinfo: Updated and minor fixes.
7813         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
7814         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
7815         $(systemtmacdir) since the wrapper files are platform-dependent.
7817 2000-11-01  Werner LEMBERG  <wl@gnu.org>
7819         * doc/groff.texinfo: Fix typo.
7821 2000-10-26  Werner LEMBERG  <wl@gnu.org>
7823         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
7824           tmac.doc.old -> doc-old.tmac
7825           tmac.an.old  -> an-old.tmac
7827         * tmac/tmac.*: Moved to ...
7828         * tmac/*.tmac: this.
7829         * tmac/man.local: Fix comment.
7830         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
7831         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
7832         Added some `FILES' sections.  More use of @...@ directives.  Other
7833         minor updates.
7834         * arch/djgpp/README, font/devutf8/NOTES: Updated.
7835         * doc/homepage.ms, doc/groff.texinfo: Updated.
7836         * man/groff.man, man/roff.man: Updated.
7837         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
7838         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7839         src/devices/grotty/grotty.man: Updated.
7840         * src/preproc/pic/pic.man: Updated.
7841         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
7842         instead of -mdoc.old.
7843         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
7844         * src/roff/nroff/nroff.man: Updated.
7845         * NEWS: Updated.
7847         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
7849         * tmac/mm.diff: Removed -- it has no use now since the mm package
7850         is part of groff.
7852         * tmac/*: Removed trailing spaces.
7854         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
7855         the tmac subdirectory also).
7857         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
7858         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
7859         stuff since it is no longer needed.
7861         * README, PROBLEMS: Updated.
7863 2000-10-25  Werner LEMBERG  <wl@gnu.org>
7865         Invert current behaviour: Search first FOOBAR.tmac, then
7866         tmac.FOOBAR.
7868         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
7869         (open_mac_file, macro_source): Implement it.
7870         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
7871         doc/groff.texinfo, NEWS: Document it.
7873         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
7874         Small documentation improvements.
7876         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
7877         subdirectory also).
7879         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
7881 2000-10-24  Werner LEMBERG  <wl@gnu.org>
7883         Add local tmac directory (groff/site-tmac).
7885         * Makefile.in: Add $(localtmacdir).
7886         (uninstall_dirs): Add $(localtmacdir).
7887         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
7888         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
7889         in $(localtmacdir).  Create $(localtmacdir).
7890         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
7891         Updated and minor fixes.
7893         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
7895         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
7897 2000-10-23  Werner LEMBERG  <wl@gnu.org>
7899         Move hyphen.us to tmac directory.
7901         * src/roff/troff/hyphen.us: Removed.
7902         * src/tmac/hyphen.us: Added.
7903         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
7905         Change installation structure for data files from .../groff/... to
7906         .../groff/<version><revision>/... to be conform with other GNU
7907         programs.
7909         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
7910         doc/Makefile: Implement it.
7911         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
7912         * configure: Updated.
7913         * arch/djgpp/README, font/devutf8/NOTES: Use it.
7914         * NEWS: Document it.
7915         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
7916         @MACRODIR@ instead of hard-coded directories.
7918 2000-10-22  Werner LEMBERG  <wl@gnu.org>
7920         Implement $GROFF_BIN_PATH environment variable (which defaults to
7921         $bindir) used for child programs of groff and similar wrappers.
7923         * gendefs.sh: Improve documentation.
7924         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
7925         src/preproc/eqn/Makefile.sub (neqn),
7926         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
7927         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
7928         $GROFF_BIN_PATH.
7929         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
7930         $GROFF_PATH__ (the latter for communication with troff).
7931         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
7932         set.
7933         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
7934         doc/groff.texinfo: Document it.
7936         * doc/groff.texinfo: Improve documentation of troff's -a option.
7938 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
7940         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
7941         non-intrusive eol marker.
7942         (troff_output_file::determine_line_limits): New function.
7943         (troff_output_file::draw): Use it.
7944         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
7945         output_pending_lines() instead of output_line().
7946         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
7947         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
7948         createImage): Small fixes.
7949         
7950 2000-10-14  Werner LEMBERG  <wl@gnu.org>
7952         Replace tmac.safer with a real secure solution.
7954         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
7955         system_request, pipe_output): Disable requests if in safer mode.
7956         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
7957         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
7958         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
7959         doc/groff.texinfo, src/roff/groff/groff.man,
7960         src/roff/troff/troff.man, arch/djgpp/README: Updated.
7962         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
7963         (resource_manager::output_prolog): Replace setenv() with putenv().
7965 2000-10-09  Werner LEMBERG  <wl@gnu.org>
7967         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
7968         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
7969         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
7970         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
7971         compilation errors with some compilers.  It seems that this code
7972         is no longer necessary -- if yes, it is easy to add some #ifdef's
7973         for that particular old-fashioned compiler.
7975         * MORE.STUFF: Added info about Meta-tbl.
7977         * doc/groff.texinfo: Added more info about `.if "..."..."'.
7979 2000-10-07  Werner LEMBERG  <wl@gnu.org>
7981         Adding a new escape sequence \B'...': If the string between
7982         the delimiters is a valid numeric expression, return the character
7983         `1', and `0' otherwise.  This is an analogon to \A.
7985         * src/roff/troff/input.cc (do_expr_test): Implement it.
7986         (token::next): Use it.
7987         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
7989         * tmac/tmac.trace: Made independent from escape character.
7991 2000-10-06  Werner LEMBERG  <wl@gnu.org>
7993         Adding a new request .dei: define indirect.  The first and second
7994         parameter of .dei are taken from string registers instead directly;
7995         this very special request is needed to make tmac.trace independent
7996         from the escape character (which might even be disabled).
7998         * src/roff/troff/input.cc (do_define_macro): Implement it.
7999         (define_macro_indirect): New function.
8000         (init_input_requests): Use it.
8002         Adding two requests .ecs and .ecr: Save and restore the escape
8003         character.  These two requests are needed to make tmac.trace
8004         independent from the escape character (which might even be
8005         disabled).
8007         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
8008         Implement it.
8009         (init_input_requests): Use it.
8011         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8013 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
8015         Adding a new option -P and new environment variable GROPS_PROLOGUE
8016         to grops, selecting a different prologue file (minor modifications
8017         by WL).
8019         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
8020         src/devices/grops/ps.cc (main): Implement it.
8021         * src/devices/grops/grops.man, NEWS: Document it.
8023 2000-09-22  Werner LEMBERG  <wl@gnu.org>
8025         * INSTALL: Add info about selecting paper format.
8027 2000-09-21  Werner LEMBERG  <wl@gnu.org>
8029         * src/roff/troff/input.cc (main): Fixing compiler warning.
8030         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
8031         strings.h from the former to the latter.
8032         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
8033         stuff from the former to the latter.
8035 2000-09-11  Werner LEMBERG  <wl@gnu.org>
8037         Implementing two new requests .tm1 and .tmc: The former is similar
8038         to .tm but can output leading spaces; its syntax is similar to
8039         defining a string, i.e., a `"' can be used to mark the beginning of
8040         the string to be written to stderr: `.tm1 " test'.  The latter is
8041         similar to .tm1 but doesn't write out a final newline character.
8043         * src/roff/troff/input.cc (terminal1, terminal_continue,
8044         do_terminal): New functions.
8045         (init_input_requests): Use them.
8046         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8048 2000-09-09  Werner LEMBERG  <wl@gnu.org>
8050         * tmac/groff_mdoc.samples.man: Small fixes.
8052 2000-09-08  Werner LEMBERG  <wl@gnu.org>
8054         * tmac/groff_mdoc.man: Fixing typo.
8056 2000-09-02  Werner LEMBERG  <wl@gnu.org>
8058         Implementing a .nop request which does nothing.
8060         * src/roff/troff/input.cc (nop_request): New function.
8061         (init_input_requests): Use it.
8062         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8064 2000-09-01  Werner LEMBERG  <wl@gnu.org>
8066         * doc/groff.texinfo: Added some comments.
8068 2000-08-30  Werner LEMBERG  <wl@gnu.org>
8070         * src/roff/troff/TODO: Updated.
8072 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8074         * doc/groff.texinfo: Fix comment how to compile the DVI file.
8076 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
8078         * font/devps/generate/Makefile (SHELL): Define explicitly to
8079         "/bin/sh", for non-Unix platforms.
8080         (extraclean): Use a more portable "" quoting instead of a
8081         backslash (which doesn't work on DOS/Windows).
8082         
8083         * font/devlj4/generate/Makefile (extraclean): Ditto.
8085         * font/devdvi/generate/Makefile (extraclean): Ditto.
8087 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8089         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
8090         src/roff/troff/troff.man: Document Eli's latest changes.
8092 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
8094         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
8095         macro file names of the form NAME.tmac as well as tmac.NAME.
8097 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8099         * src/include/posix.h: Remove definition of FILENAME_MAX.
8101         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
8102         `sys_fatal' and `stop' function().
8104         * test-groff: Updated.
8106 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
8108         Added the new troff command .output <arg> to suppress output (while
8109         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
8110         registers (for passing the output dimensions to the output device).
8112         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
8113         parameter.
8114         * src/roff/troff/node.h, src/roff/troff/node.cc
8115         (troff_output_file::really_print_line,
8116         ascii_output_file::really_print_line,
8117         supress_output_file::really_print_line): Use `width' parameter.
8118         (troff_output_file::really_on, troff_output_file::really_off,
8119         output_file::on, output_file::off, real_output_file::on,
8120         real_output_file::off, real_output_file::really_on,
8121         real_output_file::really_off): New functions.
8122         (real_output_file:public output_file): New variable `output_on'.
8123         (real_output_file::begin_page, real_output_file::copy_file,
8124         real_output_file::transparent_char, real_output_file::print_line):
8125         Use it.
8126         (real_output_file::print_line): Use check_output_limits.
8127         * src/roff/troff/reg.h, src/roff/troff/request.h,
8128         src/roff/troff/input.cc (assign_registers): New function to remove
8129         two `goto's.
8130         (do_ps_file): Use it.
8131         (check_output_limits, reset_output_registers, output_request,
8132         init_output_requests): New functions.
8133         (init_input_requests): Updated.
8135         Added new grohtml2 device and html2 preprocessor (coding
8136         not yet finished) which will eventually replace grohtml.
8138         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
8139         Updated.
8140         * src/include/htmlindicate.h, src/include/htmlindicate
8141         (html_begin_suppress, html_end_suppress): New functions.
8142         * src/preproc/tbl/main.cc: Use it.
8143         * src/roff/groff/groff.cc: Add support for html2 device (which will
8144         automatically invoke the html2 preprocessor).
8145         * src/roff/troff/input.cc (is_html2): New variable.
8146         * src/roff/troff/troff.h, src/roff/troff/env.h,
8147         src/roff/troff/env.cc (environment::add_html_tag): New function
8148         (uses `is_html2').
8149         (environment::do_break): Use it.
8150         * font/devhtml2/*: New files.
8151         * src/devices/grohtml2: New device.
8152         * src/preproc/html2: New preprocessor.
8153         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
8155 2000-08-23  Werner LEMBERG  <wl@gnu.org>
8157         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
8159 2000-08-22  Werner LEMBERG  <wl@gnu.org>
8161         * src/include/lib.h: Provide a fix for IRIX to not include
8162         groff-getopt.h.
8164 2000-08-18  Werner LEMBERG  <wl@gnu.org>
8166         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
8167         since some non-GNU sed programs can't handle null regexps.
8168         * configure, src/preproc/eqn/Makefile.sub,
8169         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
8171         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
8172         bug (string.h and strings.h are both needed according to latest
8173         POSIX standard).
8175         * MORE.STUFF: Added info about unroff and troffcvt.
8177 2000-08-08  Werner LEMBERG  <wl@gnu.org>
8179         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
8180         used before -ms.
8182         * tmac/tmac.man.old: Remove unused number register.
8184         * tmac.doc: Minor documentation fix.
8186 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8188         * src/roff/groff/pipeline.c (is_system_shell):
8189         Fix typo: "monocased_shell" no longer exists.
8191 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8193         Remove FILENAME_MAX limits.
8195         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
8196         that the argument length is less than FILENAME_MAX.
8197         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
8198         Use struct hack to allocate and free file name.
8199         (struct xtmpfile_list): fname is now part of the structure,
8200         not a pointer to another string.
8202 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
8204         * src/include/posix.h: Add a default value for FILENAME_MAX.
8206 2000-08-06  Paul Eggert  <eggert@twinsun.com>
8208         Add support for new BSD-style man pages (with ".Dd" instead of
8209         ".TH"), so that "groff -man" understands both styles, even
8210         when running "groff -man" on a host whose system man page
8211         macros don't support ".Dd".
8213         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
8214         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
8215         in case the system man macros don't define Dd or TH.
8217         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
8218         * tmac/tmac.an: New one-line file.
8219         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
8221 2000-08-06  Werner LEMBERG  <wl@gnu.org>
8223         * src/roff/troff/troff.man: Fixing typos.
8225 Version 1.16.1 released
8226 =======================
8228 2000-07-31  Werner LEMBERG  <wl@gnu.org>
8230         Preparing release 1.16.1.
8232         * REVISION: Revision number set to 1.
8233         * MORE.STUFF: Added info about port to DOS.
8234         * NEWS, win32-diffs: Updated.
8236         * src/include/nonposix.h: Remove first line -- this file is used
8237         in C also.
8239         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
8240         link to it.
8242 2000-07-30  Werner LEMBERG  <wl@gnu.org>
8244         * doc/texinfo.tex: Update to latest version.
8246 2000-06-28  Paul Eggert  <eggert@twinsun.com>
8248         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
8249         commands that fail.  Don't assume that "export a=b" is valid shell
8250         syntax.  This is needed for Solaris 2.5.1.
8252         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
8253         comment about missing Solaris headers.
8255         * PROBLEMS: Add section about problems with Sun Make and VPATH.
8257 2000-06-25  Werner LEMBERG  <wl@gnu.org>
8259         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
8260         SET_BINARY().
8262         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
8264         * win32-diffs: Updated.
8265         * README.WIN32: Added CRs to make all Windows editors happy.
8267         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
8268         src/roff/groff/pipeline.c).
8270 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
8272         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
8273         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
8275 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
8277         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
8278         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
8279         are binary files.
8280         (main): Support non-Posix systems with several different styles of
8281         slash characters in file names.
8283         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
8284         (main) [SET_BINARY]: Switch stdin into binary mode.
8286         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
8287         (main): Support file names with several possible slash-type
8288         characters, as given by DIR_SEPS[] in nonposix.h.
8289         (main) [__MSDOS__]: If renaming the temporary index file fails
8290         because it has more than one dot in its trunk, replace the dot
8291         with an underscore and try again.
8292         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
8293         Newline.
8294         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
8296         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
8297         (File::File): Open the input file in binary mode.  Strip CR
8298         characters from each CR-LF pair.
8299         (xbasename): Support file names with several possible slash-type
8300         characters, as given by DIR_SEPS[] in nonposix.h.
8302         * src/include/Makefile.sub (HDRS): Add nonposix.h.
8304         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
8305         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
8306         [!_POSIX_VERSION]: Define for traditional Unix systems.
8307         (real_output_file::real_output_file): Remove the MSVC-specific
8308         call to popen, use instead POPEN_WT, appropriately defined on
8309         nonposix.h.  #include nonposix.h.
8310         (real_output_file::~real_output_file): Remove the MSVC-specific
8311         call to pclose, a suitable macro is now defined on nonposix.h.
8312         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
8313         and WEXITSTATUS instead of assuming traditional Unix
8314         interpretation of the status returned by pclose.
8316         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
8317         call to popen, use POPEN_RT instead (appropriately defined on
8318         nonposix.h).  #include nonposix.h.
8319         (ps_bbox_request): Open the PostScript file in binary mode.
8320         Close the file after processing it.
8321         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
8322         nonposix.h.
8324         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
8325         A version of run_pipeline that doesn't use `fork'.
8326         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
8327         (system_shell_name, system_shell_dash_c)
8328         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
8329         the ugliness of testing DOS/Windows file names for equality, and
8330         support both stock shells and ports of Unix shells.
8332         * src/roff/groff/groff.cc: #include nonposix.h.
8333         (BSHELL): Definition moved to nonposix.h.
8334         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
8335         instead of a literal "-c".
8336         (xbasename): Support file names with several possible slash-type
8337         characters, as given by DIR_SEPS[] in nonposix.h.
8338         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
8339         of literal strings.
8341         * src/preproc/soelim/soelim.cc: #include nonposix.h.
8342         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
8344         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
8345         pic_tab.h.
8347         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
8349         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
8350         eqn_tab.h.
8352         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
8354         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
8355         P_tmpdir is defined, use it instead of the literal "/tmp".
8356         (remove_tmp_files, add_tmp_file): New functions.
8357         (xtmpfile): Record temporary files and register an atexit function
8358         to delete them explicitly, instead of relying on the OS to do
8359         that, which doesn't work on non-Unix systems.
8361         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
8362         (search_path::search_path): Use PATH_SEP instead of a literal
8363         colon.
8364         (search_path::command_line_dir): Ditto.
8365         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
8366         to support non-Posix systems.
8368         * src/libs/libbib/search.cc: #include nonposix.h.
8369         (search_list::add_file): Open the file in binary mode.
8371         * src/libs/libbib/linear.cc: #include nonposix.h.
8372         (file_buffer::load): Remove \r characters preceding \n from the
8373         loaded buffer.
8375         * src/libs/libbib/index.cc: #include nonposix.h.
8376         (make_index_search_item): Open index_filename in O_BINARY mode.
8377         (index_search_item_iterator::get_tag): Ditto.  Remove \r
8378         characters before \n characters.
8379         (index_search_item::check_files): Open files in binary mode.
8380         (index_search_item::munge_filename): Support DOS-style file names
8381         with backslashes and drive letters, use IS_ABSOLUTE.
8383         * src/devices/grops/ps.cc: #include nonposix.h.
8384         (main) [SET_BINARY]: Switch stdout to binary mode.
8386         * src/devices/grolj4/lj4.cc: #include nonposix.h.
8387         (main) [SET_BINARY]: Switch stdout to binary mode.
8389         * src/devices/grolbp/lbp.cc: #include nonposix.h
8390         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
8392         * src/devices/grodvi/dvi.cc: #include nonposix.h.
8393         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
8394         nonposix.h).
8395         (main) [SET_BINARY]: Switch stdout to binary mode.
8396         [_MSC_VER]: Remove an explicit call to _setmode.
8398         * src/include/nonposix.h: New file.
8400         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
8401         operation when building with DJGPP.
8402         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
8403         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
8404         ENVSETUP.
8406         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
8407         MS-DOS.
8408         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
8409         etc. can include a semi-colon on DOS/Windows.
8410         (depend.temp): Use depend1.temp instead of depend.temp1, to
8411         prevent files from overerwiting each other on 8+3 filesystems.
8413         * gendef.sh (t): Change definition to work with DOS/Windows.
8415         doc/groff.texinfo: Apart of some typo corrections, I also changed
8416         some index entris, to make them more non-ambiguous, and also put
8417         @ignore around some parts that are not yet written, to allow the
8418         Info output be readable.
8420 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
8422         Replaced specific checks for function declarations with a generic
8423         routine taken from GNU bfd.
8425         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
8426         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
8427         * configure.in: Use it.
8428         * src/devices/grolbp/lbp.cc, src/include/lib.h,
8429         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
8430         src/roff/groff/groff.cc: Use it.
8431         * Makefile.in, configure: Updated.
8433 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
8435         * src/devides/grolbp/lbp.h: Removed unused variables.
8437 2000-05-31  Keith Thompson  <kst@sdsc.edu>
8439         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
8440         strncasecmp().
8442 2000-05-31  Werner LEMBERG  <wl@gnu.org>
8444         * aclocal.m4 (GROFF_SRAND): New function to test the return value
8445         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
8446         * configure.in: Use it.
8447         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
8448         * configure, Makefile.in: Updated.
8450         * configure.in: Add test for strncasecmp().
8451         * src/include/lib.h: Use it.
8453 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
8455         * src/preproc/grn/Makefile.sub: Add MLIB.
8457 2000-05-29  Nix  <nix@esperi.demon.co.uk>
8459         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
8461 2000-05-29  Werner LEMBERG  <wl@gnu.org>
8463         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
8465         * PROBLEMS: Small update.
8467         * src/devices/grolbp/lbp.cc: Various small fixes.
8469 2000-05-28  Keith Thompson  <kst@sdsc.edu>
8471         * src/roff/nroff/nroff.sh: Fix main loop syntax.
8473         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
8475 2000-05-25  Werner LEMBERG  <wl@gnu.org>
8477         * man/roff.man: Removed unused macro.
8479 2000-05-24  Werner LEMBERG  <wl@gnu.org>
8481         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
8482         This is needed e.g. if you do
8483         `make distclean; ./configure; make dist'.
8485 Version 1.16 released
8486 =====================
8488 2000-05-23  Werner LEMBERG  <wl@gnu.org>
8490         Adding font CWI (constant width italic) to devdvi.
8492         * font/devdvi/CWI: New file.
8493         * font/devdvi/generate/Makefile: Add generating rule.
8494         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
8495         tmac/tmac.dvi: Use it.
8496         * NEWS: Announce it.
8498         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
8499         * font/devlj4/generate/Makefile: Cosmetic changes only.
8501         * man/groff.man: Removed most of the redundant description of
8502         special characters (which is in groff_char.man).  Added font
8503         translation CB->CR for devdvi.  Other minor fixes.
8505         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
8506         (registered) symbols.
8508 2000-05-22  Werner LEMBERG  <wl@gnu.org>
8510         * doc/Makefile: Added rule for creating info files.
8512         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
8513         AMS font metrics.
8514         * font/devdvi/generate/Makefile: Fixed dependencies.
8516         * font/devps/*: Regenerated.  Heavy changes for Bookman and
8517         NewCentury Schoolbook!
8518         * font/devps/generate/afmname: Will now run with GNU awk.
8519         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
8520         * font/devps/generate/Makefile: Cosmetic changes only.
8522 2000-05-21  Werner LEMBERG  <wl@gnu.org>
8524         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
8525         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
8526         `.SS' now produces a heading with a smaller size than `.SH'. 
8527         Completely formatted.
8528         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
8530         * man/groff.man: Improved table appearance.  Use of `eo' request
8531         to reduce number of doubled backslashes in macro definitions.
8532         Replacing `\e' with `\(rs'.  Other minor fixes.
8534         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
8535         to have correct line number.
8537         * INSTALL: Small improvement.
8539 2000-05-20  Bernd Warken  <bwarken@mayn.de>
8541         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
8542         WL).
8544 2000-05-19  Bernd Warken  <bwarken@mayn.de>
8546         * man/groff.man: Complete update (with a lot of corrections by WL).
8548 2000-05-18  Werner LEMBERG  <wl@gnu.org>
8550         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
8552         * font/*/*: Implement it.
8553         * man/groff_char.man, NEWS: Document it.
8555         * src/include/unix.h: Removed.  It isn't used.
8557         * doc/groff.texinfo: Slight improvements.
8559 2000-05-17  Werner LEMBERG  <wl@gnu.org>
8561         * README, win32-diffs: Small fixes and improvements.
8563 2000-05-16  Werner LEMBERG  <wl@gnu.org>
8565         * FDL: New file (the Free Documentation License version 1.1).
8567         * doc/groff.texinfo: Added many start-up values for gtroff.
8568         Some structural improvements of the source code.
8570 2000-05-15  Werner LEMBERG  <wl@gnu.org>
8572         * src/roff/troff/input.cc: Added small comment about troffrc-end.
8573         * src/roff/troff/troff.man: Added info about troffrc-end.
8575 2000-05-14  Werner LEMBERG  <wl@gnu.org>
8577         * Makefile.in (EXTRADIRS): Fix typos.
8578         (dist): Handle deletion of old .tar.gz file correctly.
8579         (DISTDIRS): Include all tty output devices.
8581         * doc/groff.texinfo: Adding more cross references; countless other
8582         fixes.
8584 2000-05-13  Werner LEMBERG  <wl@gnu.org>
8586         * MORE.STUFF: Added Robert Marks's utilities.
8588 2000-05-12  Werner LEMBERG  <wl@gnu.org>
8590         Added win32 port contributed by Blake McBride
8591         <blake@florida-software.com>.
8593         * README.WIN32, win32-diffs: New files.
8594         * NEWS: Updated.
8596         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
8597         (tmove, tmove2): Added parentheses to avoid compiler warnings.
8598         (change): Removed unused variables.
8600         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
8601         (savebounds): Changed return value from `int' to `void'.
8602         * src/preproc/grn/hdb.cc: Ditto.
8604         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
8605         final backslash in comment to avoid compiler warning.
8607         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
8609         * doc/groff.texinfo: More fixes.
8611 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
8613         * tmac/tmac.doc: Documentation fix.
8615 2000-05-11  Werner LEMBERG  <wl@gnu.org>
8617         * doc/groff.texinfo: Reading the source code shows up a lot of
8618         omissions and incorrect data...  More conversion to @Deffn macros.
8620 2000-05-10  Werner LEMBERG  <wl@gnu.org>
8622         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
8623         dependency.
8625         * src/roff/troff/request.h: Removing unused `no_break_flag'.
8627 2000-05-09  Werner LEMBERG  <wl@gnu.org>
8629         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
8630         improvements.
8632         * doc/groff.texinfo: Extended history section.  More conversion to
8633         @Deffn macros.  More .tr documentation.
8635 2000-05-07  Werner LEMBERG  <wl@gnu.org>
8637         * doc/groff.texinfo: Completed tab section.  Added info about
8638         fields.
8640 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
8642         * PROBLEMS: Describe configure script fix for OS/390 Unix.
8644 2000-05-05  Werner LEMBERG  <wl@gnu.org>
8646         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
8647         LaTeX 2e).
8648         * NEWS: Document it.
8650         * man/troff.man: Minor optical improvements.
8652 2000-05-03  Werner LEMBERG  <wl@gnu.org>
8654         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
8656         * font/*/*: Implement it.
8657         * man/groff_char.man, NEWS: Document it.
8659 2000-05-02  Werner LEMBERG  <wl@gnu.org>
8661         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
8662         expansion.
8663         * NEWS: Document the three new man pages.
8665         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
8666         * configure: Updated.
8668         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
8670 2000-05-01  Werner LEMBERG  <wl@gnu.org>
8672         Added grap support to grog.
8674         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
8675         * src/roff/grog/grog.man: Document it.
8677         * doc/groff.texinfo, NEWS: Add info about grap support.
8679         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
8680         (with slight fixes by me).
8682         * tmac/groff_tmac.man: New file documenting tmac mechanism.
8683         * tmac/Makefile.sub: Add groff_tmac.man.
8684         * man/roff.man: New file giving overview of roff system.
8685         * man/troff.man: A short reference of troff.
8686         * man/Makefile.sub: Add roff.man and troff.man.
8688 2000-04-30  Werner LEMBERG  <wl@gnu.org>
8690         Added grap support to groff.
8692         * src/roff/groff/groff.cc: Implement it.
8693         * src/roff/groff/groff.man: Document it.
8695         * src/devices/grotty/grotty.man: Add cp1047 device.
8696         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
8697         Ditto.
8698         * src/roff/groff/groff.man: Ditto.
8699         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
8700         * doc/groff.texinfo: Ditto.
8702         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
8703         for cp1047.
8705 2000-04-29  Werner LEMBERG  <wl@gnu.org>
8707         * man/groff_char.man: Add `pc' glyph.
8708         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
8709         * tmac/tmac.tty: Add `pc' glyph.
8710         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
8711         we use cp1047 output device.
8713         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
8714         there are still hardcoded latin1->unicode values in utf8's font
8715         definition files.
8716         * configure: Updated.
8717         * NEWS: Minor clarification.  Updated.
8719         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
8720         Unix.
8722 2000-04-28  Werner LEMBERG  <wl@gnu.org>
8724         Adding EBCDIC code page 1047.
8726         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
8727         font/devcp1047/DESC.proto: New files.
8729         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
8730         either ascii/latin1 or cp1047.
8731         * Makefile.in: Use it.
8732         * configure: Updated.
8734         Replacing and/or adding `md' (mathdot) glyph with `pc'
8735         (periodcentered) in all text fonts.
8737         * font/*/*: Change it.
8739 2000-04-27  Werner LEMBERG  <wl@gnu.org>
8741         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
8743         * configure.in: Add check for strings.h.
8744         * src/include/driver.h: Use HAVE_STRINGS_H.
8745         * src/devices/grolbp/lpb.cc: Remove string.h.
8747         * src/include/groff-getopt.h: New file.  It will be used instead of
8748         getopt.h (to be included in lib.h) to avoid endless problems with
8749         picky C++ compilers.
8750         * src/include/lib.h: Use groff-getopt.h.
8751         * src/include/Makefile.sub: Updated.
8753         * configure: Updated.
8754         * Makefile.in: Updated.
8756         * NEWS: Mention EBCDIC support.
8758 2000-04-26  Werner LEMBERG  <wl@gnu.org>
8760         * TODO: Some additions.
8762 2000-04-25  Werner LEMBERG  <wl@gnu.org>
8764         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
8765         of mso request.
8767 2000-04-23  Werner LEMBERG  <wl@gnu.org>
8769         * src/roff/troff/troff.man: Minor fixes.
8771 2000-04-22  Werner LEMBERG  <wl@gnu.org>
8773         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
8774         `.T' string register and the incompatible definition of the `.T'
8775         number register (compared to Unix troff).
8777         * man/groff_char.man: Add some missing characters.
8778         * font/devutf8/NOTES: Update.
8780 2000-04-21  Werner LEMBERG  <wl@gnu.org>
8782         * src/include/htmlindicate.h, src/include/lib.h,
8783         src/include/posix.h: Fix copyright.
8785         * src/include/Makefile.sub: Update.
8787 2000-04-20  Werner LEMBERG  <wl@gnu.org>
8789         * src/roff/troff/input.cc (input_char_description): Removing
8790         superfluous space char.
8792         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
8794         * doc/groff.texinfo: Document EBCDIC.
8796 2000-04-19  Werner LEMBERG  <wl@gnu.org>
8798         Introducing `shc' as the glyph name for the soft hyphen character.
8800         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
8801         font/devlatin1/R.proto: Use it.
8803         * NEWS: Updated.
8805 2000-04-18  Werner LEMBERG  <wl@gnu.org>
8807         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
8808         dependency on ASCII order.
8810 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
8812         * src/libs/libgroff/illegal.c: Added EBCDIC table.
8813         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
8815         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
8816         to increase portability.
8818 2000-04-15  Werner LEMBERG  <wl@gnu.org>
8820         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
8821         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
8822         the generic `\n' if under OS/390 Unix.
8824         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
8826         * configure: Regenerated.
8828 2000-04-14  Werner LEMBERG  <wl@gnu.org>
8830         * doc/groff.texinfo: More conversions to @Deffn.
8832 2000-04-12  Werner LEMBERG  <wl@gnu.org>
8834         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
8835         with `:'.
8837         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
8839 2000-04-10  Werner LEMBERG  <wl@gnu.org>
8841         * doc/groff.texinfo: More conversions to @Deffn.
8843 2000-04-08  Werner LEMBERG  <wl@gnu.org>
8845         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
8846         Updated to latest version (glibc 2.1.3).
8848 2000-04-07  Werner LEMBERG  <wl@gnu.org>
8850         * doc/Makefile (clean): Include more index files.
8851         Add rule texinfo->dvi.
8853 2000-04-05  Werner LEMBERG  <wl@gnu.org>
8855         * doc/groff.texinfo: Added new index `op' for operators.  More
8856         info on end of sentence characters.  More use of @Deffn.
8858 2000-03-30  Werner LEMBERG  <wl@gnu.org>
8860         * */*.man: Adding a note that a whitespace can be inserted between
8861         a command line option and its parameter -- we are using GNU getopt.
8863         * src/roff/groff/groff.man: Add example of `-m mandoc'.
8865 2000-03-28  Werner LEMBERG  <wl@gnu.org>
8867         Correct anachronism of calling the man macro file with `-man'
8868         instead of `-m man' etc.
8870         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
8871         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
8872         load tmac.<package>.
8874         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
8876         * NEWS: Updated.
8878         * doc/groff.texinfo: Updated.
8880         * tmac/groff_man.man: Copyright added.
8882 2000-03-27  Werner LEMBERG  <wl@gnu.org>
8884         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
8885         typeset the request resp. escape name with a tt font -- due to a
8886         bug in texinfo.tex it is necessary to use the `-e' switch with
8887         texi2dvi.
8889         Improving info about usage of groff units.
8891         Other minor fixes.
8893 2000-03-20  Werner LEMBERG  <wl@gnu.org>
8895         * doc/groff.texinfo: Added section about man macro package
8896         (I've basically taken groff_man.man).  Introducing new indices `ma'
8897         for macros/strings and `gl' for glyph names.  Other minor fixes.
8899         * tmac/groff_man.man: Fixed some typos.
8901 2000-03-19  Werner LEMBERG  <wl@gnu.org>
8903         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
8904         Other minor fixes.
8906         * doc/texinfo.tex: New file.
8908 2000-03-18  Werner LEMBERG  <wl@gnu.org>
8910         * doc/groff.texinfo: Improved section on number registers.  Other
8911         minor updates.
8913 2000-03-16  Werner LEMBERG  <wl@gnu.org>
8915         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
8916         synopsis.
8918         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
8919         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
8920         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
8921         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
8923         * src/preproc/grn/grn.man: Better synopsis; added copyright.
8925         * src/roff/grog/grog.man: Updated copyright date.
8927 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
8929         * configure.in: Added test for strdup.
8931         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
8932         is available.
8934         Replaced dynamic allocation of arrays `[...]' with `new' operator.
8936         Other minor fixes.
8938 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
8940         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
8942 2000-03-11  Werner LEMBERG  <wl@gnu.org>
8944         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
8945         compilers silent.
8946         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
8947         * src/include/lib.h: Remove some spaces.
8949 2000-03-10  Werner LEMBERG  <wl@gnu.org>
8951         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
8952         initializers from arguments (some compilers don't like this).
8954 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
8956         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
8957         used by pic and eqn to tell grohtml where the graphic regions start
8958         and end.
8959         * src/libs/libgroff/Makefile.sub: Use it.
8960         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
8961         graphic_start() and graphic_end() from htmlindicate.cc.
8963 2000-03-09  Werner LEMBERG  <wl@gnu.org>
8965         * tmac/tmac.safer: Will now work correctly in compatibility mode.
8966         * tmac/groff_man.man: More fixes.
8968 2000-03-08  Werner LEMBERG  <wl@gnu.org>
8970         * doc/Makefile: Added texput.log to the `clean' target.
8971         * doc/groff.texinfo: Added info about delimiters for escapes.
8973 2000-03-08  Bernd Warken  <bwarken@mayn.de>
8975         * src/preproc/pic/pic.man: Add info on conversion of pic images to
8976         other graphic formats.
8978 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
8980         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
8981         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
8982         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
8983         files.
8985 2000-03-07  Werner LEMBERG  <wl@gnu.org>
8987         * doc/groff.texinfo: Spelling fixes.
8989 2000-03-06  Werner LEMBERG  <wl@gnu.org>
8991         * tmac/groff_man.man: Completely revised to cover everything in
8992         tmac.an.
8994         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
8995         Other minor fixings.
8996         * src/roff/troff/env.cc (environment_copy): Improve error message and
8997         fix itoa->i_to_a.
8998         * src/roff/troff/TODO: Updated.
9000         * doc/Makefile: Bug fixes -- this is still provisional, though...
9002         * tmac/eqnrc: Small fixes.
9004 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
9006         Adding a request `evc' to copy environments.
9008         * src/roff/troff/env.cc (environment::copy, environment_copy):
9009         Implement it.
9010         * src/roff/troff/env.h: Add prototype.
9012 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
9014         Adding strsep() -- Solaris 8 doesn't have it.
9016         * configure.in: Test it.
9017         * src/devices/grolbp/lbp.cc: Add code.
9019 2000-03-05  Werner LEMBERG  <wl@gnu.org>
9021         * src/roff/troff/div.cc (macro_diversion::output,
9022         top_level_diversion::output): Fixing an incompatibility with
9023         original troff: \x'0' updates the .a register also.  Thanks to
9024         <Andries.Brouwer@cwi.nl> for pointing this out.
9025         * doc/groff.texinfo: Document it.
9027         * Makefile.in: Create Makefile.dep if necessary before calling the
9028         submake process to avoid warning about nonexistent file.
9030         * NEWS, PROJECTS: Updated.
9032 2000-03-04  Werner LEMBERG  <wl@gnu.org>
9034         * tmac/troffrc: Add tmac.lbp.
9036 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
9038         * tmac/tmac.lbp: New file.
9039         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
9040         command.
9042 2000-03-03  Werner LEMBERG  <wl@gnu.org>
9044         * Makefile.in: Fixing $(subdir).
9046         * README, NEWS: Small fixes.
9048         * test-groff: Adding path to grolbp.
9050         * configure.in: The (new) file src/xditview/Imakefile.in will be
9051         also configured -- it is now possible to build gxditview in a
9052         directory different from $srcdir.
9054 2000-03-02  Blake McBride  <blake@florida-software.com>
9056         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
9058         * MORE.STUFF: Added website of bell labs and info about plot2dev.
9060 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
9062         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
9063         files.
9065 2000-02-29  Werner LEMBERG  <wl@gnu.org>
9067         Adding GNU getopt to the groff distribution.
9069         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
9070         New files.
9071         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
9072         * aclocal.a4: Remove GROFF_GETOPT function.
9073         * configure.in, Makefile.in, PROBLEMS: Update.
9074         * src/include/lib.h: Replace getopt tests with getopt.h.
9075         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
9077         * doc/groff.texinfo: Further checking/updating.  Adding more index
9078         entries.
9080         * man/groff_out.man: Fix nroff mode activation (for emacs).
9081         * man/groff_font.man: Add missing ligature.
9083 2000-02-28  Werner LEMBERG  <wl@gnu.org>
9085         * doc/groff.texinfo: Further checking/updating.  Adding more index
9086         entries.
9088         * src/devices/grolbp/grolbp.man: Added a comment line at the
9089         beginning of the file (similar to shell scripts) which indicates
9090         that `tbl' should be used as a preprocessor.
9092 2000-02-27  Blake McBride  <blake@florida-software.com>
9094         Adapting groff to MS Visual C++ 6.0 compiler (tested with
9095         Windows NT 4.0).  Uses _MSC_VER define where necessary.
9097         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
9098         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
9099         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
9100         src/include/lib.h, src/libs/libgroff/errarg.cc,
9101         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
9102         src/preproc/refer/label.y, src/preproc/refer/label.cc,
9103         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
9104         src/roff/troff/div.cc, src/roff/troff/env.cc,
9105         src/roff/troff/input.cc, src/roff/troff/node.cc,
9106         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
9107         if_to_a() to avoid name clashes.
9108         * src/include/posix.h: Don't use unistd.h.
9109         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
9110         clause for integrating non-Unix xtmpfile() code.
9111         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
9112         structure; use "rt" for popen() in pipe_source(); add getpid()
9113         dummy function.
9114         * src/roff/troff/node.cc: Use special versions of popen() in
9115         real_output_file() and pclose() in ~real_output_file().
9117 2000-02-27  Werner LEMBERG  <wl@gnu.org>
9119         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
9120         LBP-8 series laser printers).  This code has been contributed by
9121         Francisco Andrés Verdú <pandres@dragonet.es>.
9123         * src/devices/grolbp/*: The grolbp output device.
9124         * font/devlpb/*: The font description files.
9125         * Makefile.in: Add grolpb and devlbp subdirectories.
9127         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
9128         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
9129         typographic fixes.
9131         * doc/groff.texinfo: Further checking/updating.  Adding more index
9132         entries.
9134         * NEWS: Updated.
9136         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
9138         * man/groff_font.man: Adding info about obsolete DESC keywords.
9139         * src/devices/grolj4/grolj4.man: Documenting additional DESC
9140         keywords.
9142 2000-02-26  Werner LEMBERG  <wl@gnu.org>
9144         * src/preproc/grn/grn.man: Added info about the gremlin file format
9145         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
9147 2000-02-25  Werner LEMBERG  <wl@gnu.org>
9149         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
9150         friends to be non-integer.
9152         * src/preproc/grn/grn.man: Document it.
9154         * doc/groff.texinfo: Further checking/updating.  Adding more index
9155         entries.
9157 2000-02-24  Werner LEMBERG  <wl@gnu.org>
9159         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
9160         line thicknesses to be integer multiples of this value.
9162         * src/preproc/grn/grn.man: Commenting out the -s option -- the
9163         corresponding code doesn't work (yet).
9165         * doc/groff.texinfo: Further checking/updating.  Adding more index
9166         entries.
9168 2000-02-23  Werner LEMBERG  <wl@gnu.org>
9170         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
9171         specify line thickness instead of base units.  The new default
9172         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
9173         thick lines respectively.
9175         Removed unused variable `prevval'.
9177         * src/preproc/grn/grn.man: Updated.
9179 2000-02-22  Werner LEMBERG  <wl@gnu.org>
9181         * src/preproc/grn/main.cc: Slight formatting.
9183         * src/roff/groff/groff.man: Formatting fix.
9184         * src/preproc/grn/grn.man: Ditto.
9186         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
9188         * doc/groff.texinfo: Further checking/updating.
9190 2000-02-21  Werner LEMBERG  <wl@gnu.org>
9192         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
9194         * test-groff: Added grn subdir to path.
9196         * doc/groff.texinfo: Some restructing and other small improvements.
9198         * src/roff/groff/groff.cc (help): Fixed info string.
9200 2000-02-20  Werner LEMBERG  <wl@gnu.org>
9202         * doc/meref.me: Fix description of .GS request.
9204         * src/roff/troff/troff.man: Fixing typo.
9206         Adding the `grn' preprocessor for gremlin graphic files.
9208         * src/preproc/grn/*: This is the Berkeley distribution written by
9209         David Slattengren and Barry Roitblat, adapted to groff by Daniel
9210         Senderowicz and Werner Lemberg.
9212         * doc/grnexampl.{me,g}: A sample for grn.
9214         * Makefile.in: Added subdirectory entry for grn.
9216         * src/roff/groff/groff.cc: Added support for grn.  It can be now
9217         called with the switch `-g'.
9219         * src/roff/groff/groff.man: Updated.
9221         * src/roff/grog/grog.{man,pl,sh}: Updated.
9223         * NEWS: Updated.
9225 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
9227         * src/include/lib.h: Added xtmptemplate and made xtmpfile
9228         parametrically polymorphic.
9230         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
9231         and the alterations to xtmpfile.
9232         xtmpfile can be requested to return the filename created
9233         and asked not to unlink the temp file.  The default behaviour
9234         if parameters are absent is exactly the same as before.
9236 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
9238         A new request `length' is available which returns the length of a
9239         string in a number register:
9241         * src/roff/troff/input.cc (length_macro): Implement it.
9242         * src/roff/troff/input.cc (init_input_requests): Register it.
9244 2000-02-11  Werner LEMBERG  <wl@gnu.org>
9246         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
9247         of the `substring' request.
9249         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
9250         request.
9252         * src/roff/troff/TODO, NEWS: Updated.
9254 2000-02-09  Werner LEMBERG  <wl@gnu.org>
9256         * src/roff/groff/groff.man: Added an example.
9258 2000-02-06  Werner LEMBERG  <wl@gnu.org>
9260         I've considerably modified the directory structure of the
9261         distribution to get a more vertical layout.  For example, the number
9262         of top level directories has been reduced from 42 to 6.
9264         As a consequence, many changes, especially to the makefiles, were
9265         necessary:
9267         * The makefile variables `top_builddir' and `top_srcdir' have been
9268         introduced.  Virtually all relative paths have been replaced with
9269         absolute ones using these two variables.
9271         * Dependencies (in the files `Makefile.dep') are no longer part of
9272         the distribution.  Instead, they are created during a `make install'
9273         in the build directory.
9275         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
9276         make `top_srcdir' and `top_builddir' absolute.
9278         Some other changes:
9280         * Man pages now depend on the files `VERSION' and `REVISION'.
9282         * The added shell script `mkinstalldirs' will replace `mkdir' in
9283         almost all cases.
9285         * VERSION: Version number increased to 1.16.
9287 2000-02-04  Werner LEMBERG  <wl@gnu.org>
9289         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
9291         * Makefile.in: Removed $(tmac_m) since it is no longer needed
9292         (after an update of the mm stuff).
9294         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
9296 2000-02-03  Werner LEMBERG  <wl@gnu.org>
9298         The .psbb request will now also accept Mac PS images (i.e. using LF
9299         as the EOL character).
9301         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
9302         (with slight modifications).
9303         * troff/input.cc (do_ps_file): Use it.
9305         * test-groff: Add grohtml and grolj4 output devices to PATH.
9307 2000-01-30  Werner LEMBERG  <wl@gnu.org>
9309         * NEWS, MORE.STUFF: Updated.
9311 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
9313         Add the `srand' command to pic.
9315         * pic/lex.cc, pic/pic.y: Implement it.
9316         * pic/pic.man: Document it.
9317         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
9319 2000-01-30  Werner LEMBERG  <wl@gnu.org>
9321         Add a new request `.psbb'.  This does exactly what the external
9322         program psbb did.  It scans a PostScript image file for a
9323         %%BoundingBox comment and extracts the bounding box values (in
9324         PostScript units) which are then stored in the four new (read-only)
9325         number registers `llx', `lly', `urx', and `ury'.
9327         This will allow the usage of the .PSPIC macro without worrying
9328         about unsafe behaviour of groff, i.e., it will work without the
9329         `-U' switch of groff.
9331         * troff/input.cc: Implement it.
9332         * tmac/tmac.pspic: Use it.
9333         * troff/troff.man, grops/grops.man, NEWS: Document it.
9334         * psbb/*, Makefile.in: Remove it since it is no longer needed.
9336         This is bloody C code simply adapted from psbb.c!  Any improvements
9337         welcome.
9339 2000-01-29  Werner LEMBERG  <wl@gnu.org>
9341         * man/groff_font.man: Minor clarifications.
9343         * NEWS: Updated.
9345 2000-01-28  Werner LEMBERG  <wl@gnu.org>
9347         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
9349 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
9351         * man/groff_font.man: Brought up to date regarding tcommand
9352         extensions.
9353         * libgroff/font.cc: Handle everything after `--' as a comment
9354         in the font files.
9355         * devps/*: Added comment delimiter inside devps font files.
9357 2000-01-28  Werner LEMBERG  <wl@gnu.org>
9359         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
9360         \fC...\fP (which now works as expected).
9362         * troff/troff.man: Fix typo.
9364 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
9366         Completed the pass_filenames implementation in troff.
9368         * libdriver/input.cc: Will read the new `F' tcommand.
9369         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
9370         * troff/input.cc: Use it.
9372 2000-01-26  Werner LEMBERG  <wl@gnu.org>
9374         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
9375         font will now be updated even if an invalid font is selected.
9377 2000-01-24  Werner LEMBERG  <wl@gnu.org>
9379         * doc/homepage.ms: Updated for new tmac.arkup.
9381         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
9383         * tmac/tmac.arkup: Cleanup.
9385         Added `\&' to .HTML macro to `leave vertical mode', so to say.
9387         Removed obsolete .LINK macro completely.
9389         The macros .URL, .FTP, and .MAILTO now accept a third argument which
9390         will be immediately appended to the second argument (to be used with
9391         punctuation, for example).
9393         Disabled .CDFTP macro temporarily for security reasons.
9395         * tmac/groff_markup.man: Complete revision for latest changes in
9396         tmac.arkup -- note that it does not yet format correctly with
9397         grohtml :-(
9399 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
9401         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
9402         * devutf8/R.proto: Add mappings for wp, lh, rh.
9403         * devutf8/NOTES: Updated.
9405 2000-01-23  Werner LEMBERG  <wl@gnu.org>
9407         * doc/groff.texinfo: Updated version/copyright info.
9409 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
9411         Added support for two new directives in device descriptions:
9412         `pass_filenames' (to pass the input file name to the output device)
9413         and `use_charnames_in_special' (to support e.g. accented characters
9414         in the `X' request).
9416         * include/font.h, troff/charinfo.h: Declare it.
9418         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
9420         * devhtml/DESC: Use it.
9422         * troff/input.cc: New function encoded_char.
9424         * troff/token.h: Add test for `specialness'.
9426 2000-01-21  Werner LEMBERG  <wl@gnu.org>
9428         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
9429         mistake from the list of files to be installed.
9431 2000-01-18  Werner LEMBERG  <wl@gnu.org>
9433         * README: Added info how to apply patches.
9435 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
9437         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
9439 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9441         * troff/input.cc: Add support for troffrc-end.
9443         * tbl/main.cc: Altered to issue table-start and table-end special
9444         characters if using the html device.
9446         * devhtml/*: Modified font files to incorporate html encoding of
9447         characters.
9449         * tmac/groff_markup.man: New file documenting tmac.arkup.
9451         * tmac/troffrc-end: New file.  This is invoked after all user
9452         specified macros.  Currently used by the html device to include
9453         tmac.html.  Thus no need for users to specify -mhtml anymore.
9455         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
9456         (MAN7): Add groff_markup.man.
9458         * tmac/tmac.an, tmac/tmac.html: Small html updates.
9460         * tmac/troffrc: tmac.arkup will now be called for the html device.
9462         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
9463         extra device specific information about fonts.
9465         * doc/homepage.ms: New file.  It is an example how an HTML home page
9466         could look like with grohtml.
9468         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
9470 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
9472         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
9473         of Im, Re.
9475         * devutf8/NOTES: Updated.
9477 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
9479         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
9480         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
9481         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9482         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
9483         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
9484         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
9485         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
9486         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
9487         warnings.
9489         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
9491 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
9493         grolj4: Paper size will be searched case-insensitively.
9495         * include/lib.h: Add check for strcasecmp().
9496         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
9497         * configure.in: Check for strcasecmp().
9499 2000-01-11  Werner LEMBERG  <wl@gnu.org>
9501         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
9502         `REVISION'.
9504 2000-01-10  Werner LEMBERG  <wl@gnu.org>
9506         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
9507         revision scheme.
9509         Add a new read-only register, `.Y', which contains the groff
9510         revision.
9512         * troff/input.cc (init_input_requests): Define it.
9513         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
9514         * doc/groff.texinfo, troff/troff.man: Document it.
9516         * libgroff/Makefile.sub (version.cc): Add definition of
9517         `Version_string[]', consisting of `<major>.<minor>.<revision>'
9518         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
9519         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
9520         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
9521         troff/input.cc, pfbtops/pfbtops.c: Use it.
9523 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
9525         Add a revision scheme to the groff package.
9527         * REVISION: New file.
9528         * libgroff/Makefile.sub (version.cc): Use it to define
9529         `revision_string[]'.
9530         * grops/psrm.cc: Use revision_string (converted to an unsigned
9531         integer) in constructor of resource_manager.
9533 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
9535         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
9536         files.
9537         * Makefile.in (DEVDIRS): Add devutf8.
9538         * grotty/tty.cc: Include device.h.
9539         (glyph): Change type of `code' to `unsigned int'.
9540         (tty_printer): New field is_utf8.  Constructor takes device argument.
9541         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
9542         (tty_printer::add_char): Change type of first arg to `unsigned int'.
9543         (tty_printer::put_char): New function.
9544         (tty_printer::end_page): Use put_char() instead of ::putchar().
9545         (make_printer): Pass device to tty_printer constructor.
9546         * nroff.sh: Determine default device by calling 'locale'.  As a
9547         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
9548         Recognize UTF-8 locales.
9549         * tmac/eqnrc: Recognize utf8 like latin1.
9550         * tmac/troffrc: Device utf8 needs tmac.tty.
9552 2000-01-07  Werner LEMBERG  <wl@gnu.org>
9554         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
9556 2000-01-07  Paul Eggert  <eggert@twinsun.com>
9558         Add a new predefined writeable number register, `year',
9559         which contains the current year.
9561         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
9562         * tmac/tmac.s: Use it.
9563         * troff/input.cc (init_registers): Initialize it.
9565 2000-01-06  Werner LEMBERG  <wl@gnu.org>
9567         * PROBLEMS: Fixed typo.
9569 2000-01-04  Paul Eggert  <eggert@twinsun.com>
9571         * PROBLEMS: Add Y2k advice for the yr number register.
9573 2000-01-03  Paul Eggert  <eggert@twinsun.com>
9575         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
9577 2000-01-02  Werner LEMBERG  <wl@gnu.org>
9579         * tmac/tmac.arkup: Slight modification of macros to provide better
9580         appearance for non-HTML formats.
9582 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
9584         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
9585         does not automatically translate to malloc(n) on all OSes
9586         (e.g., SunOS) so do it explicitly.  Also, check the returned
9587         value.
9589 2000-01-01  Werner LEMBERG  <wl@gnu.org>
9591         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
9593         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
9594         expects this variable
9596 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
9598         * doc/Makefile: Added instructions to create HTML and text
9599         versions of some files.
9601 1999-12-31  Werner LEMBERG  <wl@gnu.org>
9603         * Updated INSTALL.gen.
9605         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
9606         better resp. correctly with non-HTML devices.
9608 Version 1.15 released
9609 =====================
9611 1999-12-28  Werner LEMBERG  <wl@gnu.org>
9613         * NEWS, VERSION: Changed to 1.15
9615 1999-12-27  Paul Eggert  <eggert@twinsun.com>
9617         * nroff/nroff.man: -S is safer, not safe.
9619         * groff/groff.cc (main): Use `safer', not `safe', in variable
9620         names.  This does not change the behavior.
9622         * troff/input.cc (main): Likewise.
9624         * nroff/nroff.sh: Likewise.
9626         * troff/input.cc (prepend_string): New function.
9627         (main): Prepend -msafer, so that we check macro libraries for
9628         safety.
9630         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
9632 Version 1.14 released
9633 =====================
9635 1999-12-26  Werner LEMBERG  <wl@gnu.org>
9637         * NEWS, VERSION: Changed to 1.14.
9639 1999-12-24  Werner LEMBERG  <wl@gnu.org>
9641         * refer/refer.cc: Fixing the last fix.
9643 Version 1.13 released
9644 =====================
9646 1999-12-23  Werner LEMBERG  <wl@gnu.org>
9648         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
9649         number disappear.
9651         * NEWS: Updated.
9653         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
9655         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
9656         document conventions, the version number must be a real.
9658 Version 1.12.1 released
9659 =======================
9661 1999-12-22  Werner LEMBERG  <wl@gnu.org>
9663         * VERSION: Changed to 1.12.1.
9665 1999-12-22  Alan Rooks  <arooks@istar.ca>
9667         * refer/refer.cc (do_file): Slight modification to satisfy the
9668         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
9669         UnixWare 7.1.
9671 1999-12-20  Werner LEMBERG  <wl@gnu.org>
9673         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
9674         notices.
9676         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
9677         list of unsafe requests.
9679         * pic/pic.man: Fixed a typo.
9681         * man/groff_out.man: Fixed a typo.
9683 1999-12-18  Werner LEMBERG  <wl@gnu.org>
9685         * Makefile.in: Doc fixes.
9687 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
9689         * groff/groff.cc: Missing `U' option added to getopt().
9691         * troff/troff.man: Missing `U' option added to synopsis.
9693 Version 1.12 released
9694 =====================
9696 1999-12-14  Werner LEMBERG  <wl@gnu.org>
9698         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
9699         to the synopsis.
9701         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
9702         with the more appropriate terms `safer' and `unsafe'.
9704         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
9705         sys_nerr and sys_errlist[].
9707         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
9709         * pic/pic.y, pic/pic.cc: Added check for fmod().
9711 1999-12-13  Werner LEMBERG  <wl@gnu.org>
9713         * VERSION: Changed to 1.12.
9715         Here some patches from various sources; most of them taken from
9716         the Debian distribution.
9718         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
9719         tmac/Makefile.sub: New files copied directly from the NetBSD
9720         distribution.  Probably, some additional adaptation later on is
9721         necessary...
9723         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
9724         of unsafe requests.
9726         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
9727         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
9728         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
9729         (`-S') is now the default.
9731         * README, NEWS: Updated.
9733 1999-12-09  Werner LEMBERG  <wl@gnu.org>
9735         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
9737         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
9739 1999-12-06  Werner LEMBERG  <wl@gnu.org>
9741         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
9742         grief than relief today.  Additionally, it is against the GNU
9743         coding standards.
9745         * configure: Recreated.
9747 1999-12-05  Werner LEMBERG  <wl@gnu.org>
9749         * configure.in: Added GROFF_LIBM.
9751         * configure: Recreated.
9753         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
9754         necessary.
9756         * Makefile.in: Added definition of $(LIBM).
9758         * Makefile.comm (LIBM): Removed.
9760         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
9762 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
9764         * doc/Makefile: Added rule for generation pic.html.
9766         (clean): Files produced by grohtml will be removed also.
9768         * doc/pic.ms: Small fix.
9770         * tmac/tmac.html: Fixed suppression of headers.
9772 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
9774         * tmac/tmac.html: Fixing horizontal arrows.
9776         Turning off hyphenation.
9778         * tmac/tmac.an: Improved support for grohtml; better indentation,
9779         no footers/headers.
9781 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
9783         * tmac/tmac.arkup: Added CDFTP macro
9785         * tmac/tmac.html: All headers are turned off for ms, me, and mm
9786         macros.
9788         * tmac/troffrc: Some additions for HTML stuff.
9790 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
9792         * tmac/tmac.html: Small changes.
9794 1999-09-26  Werner LEMBERG  <wl@gnu.org>
9796         * doc/groff.texinfo: Minor fixes.
9798 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
9800         * devhtml/TR: Changed spacewidth to 3.
9802         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
9804         * tmac/tmac.html: Moved markup macros to tmap.arkup.
9806         * tmac/tmac.arkup: New file.
9808         * grohtml/ChangeLog: New file.
9810 1999-09-16  Werner LEMBERG  <wl@gnu.org>
9812         * doc/groff.texinfo (Common Features): Added Copying chapter.
9813         Changed format to @smallbook.
9815 1999-09-15  Werner LEMBERG  <wl@gnu.org>
9817         * NEWS: Added info about groff.texinfo.
9819         * doc/groff.texinfo: Will now compile (using texi2dvi) without
9820         warning messages.
9822 1999-09-14  Werner LEMBERG  <wl@gnu.org>
9824         * groff/groff.man: More updates.
9826 1999-09-13  Werner LEMBERG  <wl@gnu.org>
9828         * doc/groff.texinfo: New file.  This manual is still very
9829         rudimentary.  It has been originally contributed by Trent
9830         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
9831         additions by me.
9833         * INSTALL: Added information about the `doc' subdir
9835         * troff/troff.man: Minor fixes.
9837         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
9838         reordered options.
9840         * troff/input.cc (usage): Added missing `-ffam' to usage message.
9842         * Makefile.in (dist): groff-$(version).tar.gz must be removed
9843         also, otherwise it is included itself in another call of `make
9844         dist'.
9846         * groff/groff.cc (synopsis): Removed superfluous space.
9848         * PROJECTS, PROBLEMS, NEWS: Updated.
9850         * VERSION: Updated to 1.12beta.
9852         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
9854         * README: Updated: Included documentation about CVS repository,
9855         mailing lists, and daily snapshots.
9857         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
9859 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
9861         * tmac/tmac.an: If the tag didn't fit into the space that the
9862         macro `TP' specifies, the rest of the tag went into the space for
9863         the next line.
9865 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
9867         * grolj4/lj4.cc: Added duplex printing (option `-d').
9869         * grolj4/grolj4.man: Document duplex printing.
9871 1999-09-12  Werner LEMBERG  <wl@gnu.org>
9873         * doc/Makefile (pic.ps): Fixed rule which caused problems with
9874         non-GNUish sed programs.
9876         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
9877         definition.
9879         * configure.in (LIBS): Added `-lc'
9881         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
9883         * pic/tex.cc (solid_arc): Casting M_PI to double.
9885         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
9887         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
9888         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
9889         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
9891         * groff/groff_man.man: New file.  This manual page was originally
9892         written for the Debian GNU/Linux system by Susan G. Kleinmann
9893         <sgk@debian.org>.
9895         * eqn/list.cc (list_box::compute_metrics,
9896         list_box::compute_sublist_width): Removed variable declaration to
9897         avoid shadowing warnings.
9899         * grops/psrm.cc (resource_manager::process_file): Ditto.
9901         * tfmtodit/tfmtodit.cc (main): Ditto.
9903         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
9904         to avoid shadowing warnings.
9906         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
9907         shadowing loop variable.
9909         * groff/groff.man, troff/troff.man: Added doc about grohtml.
9911 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
9913         New grohtml frontend to convert groff input to html.
9915         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
9917         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
9919         * tmac/eqnrc: Added html device.
9921         * tmac/tmac.html: New file.
9923         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
9924         (troff_output::start_picture, troff_output::finish_picture),
9925         tbl/main.cc (process_input_file):
9926         Surrounded output with `graphics_start' and `graphics_end' so that
9927         the html driver can identify non-text portions.
9929         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
9930         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
9931         grotty/tty.ps (tty_printer::set_char): Additional parameter
9932         `name'.
9934         * include/printer.h: Class printer: New function
9935         set_char_and_width; new variables (is_char_named, is_named_set,
9936         named_command, named_char_s, named_char_n) to hold information
9937         about named characters -- needed by the html driver.
9939         * libdriver/printer.cc (printer::set_ascii_char,
9940         printer::set_special_char): Use set_char_and_width.
9942         * devhtml/*: New device files for html driver.
9944         * grohtml/*: New driver grohtml.
9946 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
9948         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
9949         default strings.
9951 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
9953         * libgroff/string.cc (search): Small fix to test against NULL
9954         pointer.
9956 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
9958         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
9959         \b'abc') were stacked in reverse order when processed in a
9960         diversion.
9962         * troff/node.h: Added `*last' to struct `node' to make the above
9963         fix work.
9965         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
9966         The default scale for the 'f' and 't' graphics functions were 'm'
9967         rather than 'u' (i.e., no scaling).
9969 1999-09-11  Peter Miller  <peterm@jna.com.au>
9971         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
9972         do_file), soelim/soelim.man: Added `-I file' option to soelim,
9973         defining include paths.
9975         * soelim/soelim.cc (include_path_append): New function.
9977 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
9979         * tbl/main.cc (process_options): Unix (at least Documenter's
9980         Workbench) tbl allows arbitrary non-alpha characters between
9981         options.
9983 1999-09-11  Paul Eggert  <eggert@twinsun.com>
9985         Y2k fixes.  Don't assume that the current year precedes 2000.
9987         * doc/meref.me: Add \n(y2, \n(y4.
9989         * tmac/doc-common (Yr): New number register.
9990         (Dd): Don't assume current year precedes 2000.
9992         * tmac/tmac.e (td): Likewise.
9993         (y2, y4): New number registers.
9995         * pic/pic.man: Update reference for pic paper to May, 1991
9996         version.
9998 1999-09-11  Werner LEMBERG  <wl@gnu.org>
10000         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10001         Removed quotation marks which prevented correct expansion of
10002         $(tmac_wrap).
10004         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
10006 1999-09-10  Werner LEMBERG  <wl@gnu.org>
10008         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
10009         `config.cache'.
10011         * Removed configure.old.
10013 1999-08-31  Werner LEMBERG  <wl@gnu.org>
10015         * VERSION: Updated to 1.11.1
10017 1999-05-27  Werner LEMBERG  <wl@gnu.org>
10019         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
10021         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10022         added quotations around $(tmac_wrap) to avoid syntax error if
10023         variable is empty.
10025         * configure: Newly generated using autoconf 2.13.
10027         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
10029 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
10031         * README, PROJECTS, NEWS, INSTALL, VERSION, 
10032         doc/Makefile. doc/pic.ms, groff/groff.man:
10033         Prepare for 1.11 release.  No code changes.
10034         Documentation for pic added (doc/pic.ms).
10036 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
10038         * Version 1.10 released.
10040 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
10042         * afmtodit/afmtodit.pl: Avoid comment on first line.
10044 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
10046         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
10047         * configure.in: Call it.
10049         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
10050         (distfiles): Doesn't depend on config.log or config.cache.
10052 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
10054         * grog/grog.sh: Use print "" rather than print in END rule.
10056 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
10058         * tbl/main.cc (process_data): Don't give error for excess data
10059         entries that are comments.
10061 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
10063         * tbl/main.cc (process_data): Fix case where new for-scope rules
10064         silently change meaning of code.
10066 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
10068         * troff/env.cc (hyphenate): Loop over all consecutive sequences
10069         of non-zero hyphenation codes.
10071 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
10073         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
10075 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
10077         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
10079 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
10081         * tmac/tmac.andoc: Make it work in compatibility mode.
10083         * refer/token.h (token_info::is_range_sep): New function.
10084         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
10085         * refer/ref.cc (reference::output): More sophisticated check for
10086         multiple pages.
10088         * devps/prologue.ps (MANUAL): New procedure.
10089         * grops/ps.cc (main): New -m option.
10090         (usage): Include -m.
10091         (ps_printer::~ps_printer): Implement -m.
10093         * aclocal.m4 (GROFF_G): New macro.
10094         * configure.in: Call it.
10095         * Makefile.in (g): Provided by configure.
10097         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
10099         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
10100         translations.
10102         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
10103         (tmac_m, tmac_s): Deleted.
10104         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
10105         tmac_s_prefix): New variables.
10106         (MDEFINES): Change accordingly.
10107         * Makefile.comm (.man.n): Use new TMAC_* variables.
10108         * configure.in (GROFF_TMAC): Call.
10109         * aclocal.m4 (GROFF_TMAC): Define.
10110         * tmac/Makefile.sub (stamp_wrap): New target.
10111         (install_data, uninstall_sub): Handle macro wrapping.
10113 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
10115         * tbl/main.cc (main): Ignore -T option.
10117 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
10119         * devlj4/generate/special.map: Add definition of \(nb.
10121         * tmac/tmac.dvi: Add definition of \(nb.
10123         * troff/dictionary.c (dictionary::dictionary): association::v gets
10124         initialized by association::association.
10126         * tmac/Makefile.sub: Avoid using temporary files when installing.
10128         * troff/env.cc (environment::set_font): Make bad font number a
10129         warning.
10131         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
10133         * Makefile.in (datadir): Use share rather than lib.
10135         * groff/groff.cc (basename): Rename to xbasename.
10137 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
10139         * Makefile (CCLIBS): Don't use.
10140         * Makefile.ccpg: Likewise.
10142         * acgroff.m4: Rename to...
10143         * aclocal.m4: Modify extensively for autoconf 2.
10144         * configure.in: Likewise.
10145         * Makefile.in: Likewise.
10147         * groff/pipeline.c (const): Declare as empty if __STDC__ not
10148         defined.
10149         (xstrsignal): Check for definition of NSIG. Conditionalize
10150         on SYS_SIGLIST_DECLARED.  Make return type const.
10152 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
10154         * troff/input.cc (interpolate_macro): Rephrase missing space
10155         warning.
10157 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
10159         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
10160         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
10161         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
10162         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10163         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
10164         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
10165         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
10166         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
10167         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
10168         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
10169         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
10170         Fix 'for' scoping.
10172 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
10174         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
10175         string_iterator.
10176         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
10177         file.
10178         (macro_iterator::macro_iterator): Add additional argument.
10180 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
10182         * troff/div.cc (vertical_size::vertical_size): In place of integer
10183         specifying line spacing use cunits specifying post vertical
10184         space.
10185         (macro_diversion::output, top_level_diversion::output): Likewise.
10186         * troff/div.h: Change declarations accordingly.
10187         * troff/env.cc (pending_output_line): Replace ls field by post_vs
10188         field.
10189         (pending_output_line::pending_output_line,
10190         pending_output_line::output, environment::output,
10191         environment::output_line, environment::output_title,
10192         environment::hyphenate_line):  In place of
10193         integer specifying line spacing use cunits specifying post vertical
10194         space.
10195         (environment::environment): Add post_vertical_spacing and
10196         prev_post_vertical_spacing arguments.
10197         (environment::get_post_vertical_spacing): New function.
10198         (environment::total_post_vertical_spacing): New function.
10199         (environment::post_vertical_spacing): New function.
10200         (init_env_requests): Initialize pvs request and .pvs register.
10201         * troff/env.h: Change declarations.
10203 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
10205         * tmac/tmac.pspic: Immediately remove the temporary file.
10207 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
10209         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
10210         height is specified.
10212 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
10214         * tbl/table.c (struct vertical rule, class table_entry): Use int
10215         not short for start_row and end_row.
10217 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
10219         * troff/input.cc (trapping_blank_line, blank_line_macro): New
10220         functions.
10221         (diverted_space_node::reread, process_input_stack): Call
10222         trapping_blank_line() rather than blank_line().
10223         (init_input_requests): Bind "blm" to blank_line_macro().
10225         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
10227 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
10229         * troff/env.cc (environment::possibly_break_line): Require that
10230         width total excluding width of final space node be greater than
10231         the target text length.
10233 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
10235         * troff/node.cc (kern_pair_node::vertical_extent): New function.
10237 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
10239         * troff/node.cc (charinfo_node): New class.
10240         (glyph_node, composite_node): Derive from charinfo_node.  Change
10241         member functions accordingly.
10243 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
10245         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
10247 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
10249         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
10251         * devps/generate/textmap (notsubset): Add.
10253         * tmac/tmac.a4: New file.
10255 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
10257         * pic/main.cc (had_parse_error): New variable.
10258         (do_picture, do_whole_file): Set had_parse_error if yyparse()
10259         returns non-zero.
10260         (main): Return 1 if had_parse_error is true.
10262 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
10264         * grolj4/lj4.cc (main): Avoid use of strtoul.
10266 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
10268         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
10269         iso_8859_1 or $LESSCHARSET is latin1.
10271 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
10273         * hpftodit: New directory.
10274         * Makefile.in (CCPROGDIRS): Add hpftodit.
10275         * devlj4/generate: New directory.
10277 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
10279         * configure.in: Don't use AC_VFORK.
10280         * groff/pipeline.c (run_pipeline): Use fork() always.
10282 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
10284         * grops/ps.cc (main): Use %1 not %s in error message for -w.
10286         * Makefile.in (CCPROGDIRS): Add grolj4.
10287         (DEVDIRS): Add devlj4.
10288         * grolj4, devlj4: New directories.
10289         * tmac/troffrc: Handle lj4.
10290         * tmac/tmac.lj4: New file.
10292 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
10294         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
10296 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
10298         * troff/input.cc (do_if_request): At end of second string, switch
10299         environments before getting next token.
10301 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
10303         * devps/psstrip.sed: Split rule that strips whitespace on either
10304         side of delimiters.
10306 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
10308         * troff/node.h (font_family::make_definition): Add return value to
10309         declaration.  * troff/symbol.h (symbol::operator==,
10310         symbol::operator!=): Likewise.
10312 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
10314         * groff/groff.cc (main, help, synopsis): Handle -S.
10315         (possible_command::insert_arg): New function.
10317         * tmac/tmac.safer: New file.
10318         * tmac/msafer.man: New file.
10319         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
10321 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
10323         * pic/pic.h, pic/main.cc (safer_flag): New variable.
10324         * pic/pic.y (placeless_element): Avoid unsafe operations if
10325         `safer_flag' is set.
10326         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
10328 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
10330         * eqn/lex.cc (get_token): Put call to add_context() in block to
10331         work around Sun C++ 4.0 bug.
10333         * include/stringclass.h (operator +): Use ?: instead of `if' to
10334         work around Sun C++ 4.0 bug.
10336 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
10338         * tbl/main.cc (process_format): Accept - as a synonym for the _
10339         key letter.
10341         * libbib/index.cc (minus_one): Don't declare as const.
10343 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
10345         * troff/input.cc (get_char_for_escape_name): Push back a newline.
10347 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
10349         * troff/input.cc (write_macro_request): New function.
10350         (init_input_requests): Bind write_macro_request to writem.
10352 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
10354         * tmac/tmac.s (@EN): Turn filling back on even if there was no
10355         equation.
10357         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
10359         * tmac/tmac.s (@TS): Renamed from TS.
10360         (TS): Call LP then TS again.
10361         (cov*ab-init): Alias @TS to TS.
10363         * tmac/tmac.s: Allow QP or RS to initialize.
10365         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
10366         Move initializations of PS and LL here.
10367         (par@init): Don't initialize HY.  Avoid changing environment 0.
10368         (par*env-init): Don't all par@reset.
10370 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
10372         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
10374 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
10376         * Makefile.in (MDEFINES): Add LDFLAGS.
10377         (LDFLAGS): Add definition line.
10379 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
10381         * troff/input.cc (get_optional_char): Split off error check into...
10382         (check_missing_character): New function.
10383         * troff/token.h: Declare it.
10384         * troff/env.cc (margin_character): Don't call get_optional_char.
10385         Only call tok.next() after making the node.
10387         * include/lib.h (getopt): Make 2nd argument char *const *.
10389 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
10391         * nroff/conftest.sh: Deleted.
10393 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
10395         * pic/make-dos-dist: Deleted.
10397 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
10399         * devps/psstrip.sed: Strip comments before stripping trailing
10400         white space.
10402 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
10404         * Version 1.09 released.
10406 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
10408         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
10410 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
10412         * libgroff/font.cc (font::load_desc): Fix typo in error message.
10414 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
10416         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
10417         about returning without a value.
10419         * troff/charinfo.h (charinfo::get_special_translation): Cast
10420         TRANSLATE_NONE to int.
10422         * refer/token.cc (lookup_token, store_token): Remove bogus loop
10423         test.  Fix test so that it works with n unsigned.
10425         * pic/pic.y (defaults_table): Fully bracket initializer.
10426         * pic/lex.cc (lookup_keyword): Likewise.
10427         * eqn/lex.cc (token_table, def_table): Likewise.
10428         * eqn/box.cc (param_table): Likewise.
10429         * troff/input.cc (warning_table): Likewise.
10430         * libgroff/font.cc (table): Likewise.
10431         * grops/ps.cc (ps_printer::special): Likewise.
10432         * grops/psrm.cc (resource_manager::process_file): Likewise.
10433         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
10434         * refer/command.cc (command_table): Likewise.
10435         * addftinfo/addftinfo.cc (param_table): Likewise.
10437         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
10438         about temp's being unused.
10439         (unused): New function.
10441         * groff/pipeline.cc: Declare c_fatal.
10443         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
10444         uchar.
10446         * libbib/index.cc (index_search_item::load): Prevent compiler
10447         warnings about fd_closer's being unused.
10448         (unused): New function.
10450 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
10452         * troff/input.cc (copy_mode_error): Make `prefix' static.
10453         Fix typo.
10455         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
10456         defined.
10457         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
10458         HAVE_CC_OSFCN_H and modify accordingly.
10460         * troff/input.cc (init_charset_table): radicalex overlaps
10461         horizontally.
10463         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
10464         udodo!hans@relay.NL.net).
10465         * groff/configure.in: Call it.
10467         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
10468         * groff/configure.in: Call it.
10469         * include/lib.h: Conditionalize declaration of pclose.
10471         * troff/div.cc (last_page_number): New global variable.
10472         (top_level_diversion::begin_page): Exit if we just printed the
10473         last page.
10474         * troff/div.h (last_page_number): Declare it.
10475         * troff/input.cc (parse_output_page_list): Set last_page_number.
10477         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
10478         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
10479         tmac/tmac.X: Likewise.
10480         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
10481         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
10483 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
10485         * tmac/doc-ditroff (hK): Remove groff specific code which
10486         prevented page-breaks between separate manual entries.  If this is
10487         the first page, don't set the page number to 1.
10489         * acgroff.m4 (GROFF_POSIX): New macro.
10490         * configure.in: Use it.
10492         * troff/node.cc (class real_output_file,
10493         real_output_file::real_output_file,
10494         real_output_file::~real_output_file): Conditionalize use of
10495         popen/pclose on POPEN_MISSING.
10496         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
10497         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
10498         (pipe_source): Similarily.
10500         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
10502         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
10503         presence of declarations by trying to compile example with
10504         conflicting declarations.  (gcc only gives a warning for missing
10505         declarations.)
10507 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
10509         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
10510         (from Ulrich Lauther).
10512 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
10514         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
10516 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
10518         * indxbib/indxbib.cc (write_hash_table): Add code for case where
10519         pointers and ints have different sizes.
10521 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
10523         * tmac/tmac.s (par*env-init): Call par@reset.
10525 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
10527         * tmac/tmac.s (@IP): Switch to a new environment when diverting
10528         tag.
10529         (par*push-tag-env, par*pop-tag-env): New macros.
10531 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
10533         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
10534         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
10536         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
10537         comment.  Include <time.h>.
10539 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
10541         * grops/ps.cc (is_small_h, is_small_v): Deleted.
10542         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
10543         lines.
10545 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
10547         * troff/input.cc (read_request): Only print a prompt if reading
10548         from the terminal.  Also clearerr on EOF if reading from the
10549         terminal.  Declare isatty.
10551 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
10553         * refer/label.y: Rename map_t to map_func and extractor_t to
10554         extractor_func.
10556 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
10558         * include/assert.h: Don't use volatile.
10559         * libgroff/assert.cc: Likewise.
10561 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
10563         * troff/input.cc (abort_request): Look at character in tok before
10564         calling get_copy().
10566 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
10568         * troff/troff.h (NO_RETURN): Deleted.
10569         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
10570         * troff/input.cc (exit_troff): Likewise
10572         * Makefile.in: Remove `Making ...' messages since GNU make now
10573         gives these. 
10575         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
10577 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
10579         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
10580         to constant 1 inch.
10582 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
10584         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
10586 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
10588         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
10589         MARK_REG if there was no left delimiter.
10591 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
10593         * pic/troff.cc (troff_output::text): Set line thickness to
10594         relative before outputting text.
10596         * tmac/tmac.e (@k): Don't zero ?T.
10597         ((z): Likewise.
10599 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
10601         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
10603 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
10605         * troff/input.cc (decode_args): Warn about unquoted tabs (from
10606         Paul Eggert).
10608 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
10610         * troff/input.cc (ignoring): New variable.
10611         (ignore): Set ignoring during call to do_define_macro.
10612         (do_define_macro): Clear ignoring before interpolating terminating
10613         macro.
10614         (copy_mode_error): New function.
10615         (get_char_for_escape_name, read_long_escape_name,
10616         interpolate_arg): Use copy_mode_error.
10617         (warning_table): Add WARN_IG.
10618         * troff/troff.h (WARN_IG): Declare.
10619         (WARN_TOTAL): Change accordingly.
10621         * groff/pipeline.c (strsignal): Rename to xstrsignal.
10622         * groff/groff.cc (strsignal): Delete declaration.
10624 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
10626         * troff/div.cc (page_offset): Use 'm' as default scaling.
10628 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
10630         * nroff/nroff.sh: Ignore -u.
10632 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
10634         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
10636 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
10638         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
10639         drawing box.
10640         (B2): With -Tascii, leave additional vertical space before
10641         and after. Ensure that the left and right indent is restored to
10642         what it was even if the point size changes.  Don't call
10643         par@finish. Change the indent, line length and title length
10644         directly.  With -Tascii, make the width of the box 1n less.
10645         (B1): Remember 1n at the current point size.  Don't call
10646         par@reset.  Change the indent, line length and title length
10647         directly.  Ensure that the temporary indent is preserved.
10648         (par*box-mark-top): Turn off no spacing mode.
10650 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
10652         * Makefile.in (dist): Use .gz suffix.
10654 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
10656         * troff/input.cc (main): Add return 0.
10657         * pic/main.cc (main): Use return instead of exit.
10658         * tbl/main.cc (main): Likewise.
10659         * eqn/main.cc (main): Likewise.
10660         * grops/ps.cc (main): Likewise.
10661         * grotty/tty.cc (main): Likewise.
10662         * groff/groff.cc (main): Likewise.
10663         * grodvi/dvi.cc (main): Likewise.
10664         * refer/refer.cc (main): Likewise.
10665         * indxbib/indxbib.cc (main): Likewise.
10666         * lkbib/lkbib.cc (main): Likewise.
10667         * soelim/soelim.cc (main): Likewise.
10668         * addftinfo/addftinfo.cc (main): Likewise.
10669         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
10670         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
10672         * troff/token.h (process_input_stack): Don't declare as static.
10673         * troff/input.cc: Likewise.
10675         * troff/node.c (invalidate_fontno): Make it a static member of
10676         class font_family.  Change callers.
10677         * troff/node.c: Change declaration.
10679         * tbl/main.cc (struct input_entry_format): Add explicit public
10680         specifier.
10681         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
10682         struct double_hline_stuff): Likewise.
10683         * tbl/table.h (struct entry_format): Likewise.
10684         * pic/object.h (struct saved_state): Likewise.
10686         * include/stringclass.h: Add forward declarations of friend
10687         functions that are later declared as inline.  Don't include inline
10688         specifier in friend declaration.
10690         * libgroff/lib.h: Declare popen and pclose.
10691         * acgroff.m4 (GROFF_POPEN): New macro.
10692         * configure.in: Call it.
10694         * include/lib.h (PI): New constant. Undef first if necessary.
10695         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
10696         * grops/ps.cc (degrees, radians): Likewise.
10697         * libgroff/font.cc (font::get_skew): Likewise.
10699         * grops/ps.cc (is_ascii): New function.
10700         (ps_output::put_string): Use is_ascii.  Use csprint rather than
10701         isprint.
10702         (ps_printer::define_encoding): Use csspace.
10703         * libgroff/strtol.c (ISASCII): New macro.
10704         (strtol): Cast arguments to is*() and tolower() to unsigned char.
10705         Use ISASCII rather than isascii.
10706         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
10707         * libgroff/cset.cc: Likewise.
10708         * libdriver/input.cc: Include cset.h.
10709         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
10710         than isdigit().
10712         * refer/refer.cc (main): Use %ld rather than %d for longs.
10714         * libbib/index.cc (index_search_item_iterator::get_tag): Use
10715         S_ISREG macro.
10717         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
10719 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
10721         * troff/input.cc (hyphenation_code): Skip white space between
10722         char/code pairs.
10724 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
10726         * tbl/table.h (table::entry_list_tailp): New member.
10727         (table::table): Initialize it.
10728         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
10729         behaviour.
10731 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
10733         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
10734         with negative horizontal positions. Remove casts of glyph::hpos to
10735         int.
10736         (USHRT_MAX): Delete definition.
10737         (SHRT_MAX, SHRT_MIN): New definitions.
10738         (glyph::hpos): Change type to short.
10739         (tty_printer::end_page): Output multiple backspaces if necessary.
10740          Remove casts of glyph::hpos to int.
10741         
10742 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
10744         * tmac/tmac.s (@RT): New definition.
10746 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
10748         * refer/refer.cc (do_file): Make sure current_filename is set when
10749         filename is "-".
10751         * pic/common.cc (common_output::dot_line): Handle zero length
10752         lines.
10754 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
10756         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
10757         (par@init): Initialize \n[HY].
10759 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
10761         * troff/dictionary.cc (dictionary::remove): Continue when
10762         r < j < i.
10764 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
10766         * Makefile.com (.y.cc): Avoid ending up with two versions of
10767         $(YTABH).
10769 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
10771         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
10772         (\(,C): Likewise.  Also fix typo.
10774 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
10776         * lib.h: Delete extraneous semi-colon.
10778         * Add pso request: `so' from a pipe.
10779         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
10780         (file_iterator::close): New function.
10781         (file_iterator::~file_iterator, file_iterator::next_file): Use
10782         file_iterator::close.
10783         (file_iterator::backtrace): Say `process' rather than `file' when
10784         the stream is popened.
10785         (pipe_source): New function.
10786         (init_input_requests): Bind ".pso" to pipe_source.
10788 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
10790         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
10792         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
10793         digits in lower case.
10795 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
10797         * Version 1.08 released.
10799         * Makefile.in (dist): Insert || true after ln -s commands that
10800         might fail.
10802         * mm: Update to mm 1.16.
10804         * acgroff.m4 (GROFF_CSH_HACK): New macro.
10805         * configure.in: Call GROFF_CSH_HACK.  Substitute for
10806         SH_SCRIPT_SED_CMD.
10807         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
10808         MDEFINES.
10809         * nroff/Makefile.sub (nroff): New target.
10810         (install_data): Install nroff.
10811         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
10812         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
10814 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
10816         * eqn/Makefile.sub (neqn): Add chmod +x.
10818         * grog/Makefile.sub (grog): Remove spurious semi-colon.
10820 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
10822         * troff/input.cc (string_iterator::string_iterator()): Initialize
10823         lineno and count.
10825 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
10827         * troff/div.cc (macro_diversion::space,
10828         top_level_diversion::space): Don't set high_water_mark.
10829         (macro_diversion::output, top_level_diversion::output): Don't
10830         include post line space in high water mark.
10832 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
10834         * eqn/eqn.y: Don't define YYDEBUG.
10835         * pic/pic.y: Likewise.
10837 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
10839         * tmac/tmac.e ([3): Add space after comma following editors.
10840         Change double spaces to single spaces.
10841         ([4): Change double spaces to single spaces.
10843         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
10844         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
10845         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
10846         after %!PS-Adobe- (for Newsprint).
10848         * troff/div.cc (top_level_diversion::begin_page): When
10849         before_first_page is 1, set page_number to 1.
10851 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
10853         * eqn/box.cc (box::top_level): Protect equation with \&.
10855 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
10857         * groff/groff.cc (possible_command::set_name): Delete old name.
10859         * groff/groff.cc (possible_command::~possible_command): Use
10860         a_delete.
10862         * troff/node.cc (troff_output_file::begun_page): New member.
10863         (troff_output_file::troff_output_file): Initialize it.
10864         (troff_output_file::really_begin_page): Only output V command if a
10865         page has been begun.
10867         * pic/pic.y (placeless_element): Delete argument to PRINT after
10868         use.
10870 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
10872         * Make wrapman work.
10873         * troff/div.h (class top_level_diversion): Replace
10874         first_page_begun by before_first_page (with opposite sense).
10875         * Change first_page_begun to before_first_page inverting sense.
10876         * troff/div.cc (class nl_reg): New class.
10877         (init_div_requests): Use class nl_reg for \n(nl.
10878         (top_level_diversion::begin_page): Don't call
10879         output_file::begin_page if before_first_page is 2;
10880         reset before_first_page afterwards.  If have_next_page_number is
10881         false, then always increment page_number.
10882         * tmac/tmac.an: Set traps within TH rather than at the top-level.
10883         Restore compatibility mode after loading, and then disable
10884         compatibility mode in TH.
10886 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
10888         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
10889         past last line.
10890         * troff/node.h (output_file::trailer): Declare.
10891         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
10892         * troff/node.cc (output_file::trailer): New function.
10893         (troff_output_file::~troff_output_file): Move most code into...
10894         (troff_output_file::trailer): New function.
10895         (class troff_output_file): Delete page_length member. Declare
10896         trailer().
10897         (troff_output_file::really_begin_page): Use current page length
10898         for final V command.
10900         * tbl/main.cc (struct options): New decimal_point_char member.
10901         (options::options): Initialize this.
10902         (process_options): Implement decimalpoint option.
10903         (process_data): Pass decimal_point_char option to table::table.
10904         * tbl/table.h (class table): New decimal_point_char member.
10905         (table::table): Add additional argument.
10906         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
10907         second argument specifying decimal point character.  Use this
10908         instead of '.'.
10909         (table::table): Initialize decimal_point_char.
10910         (table::add_entry): Change call to find_dot.
10912         * troff/input.cc (get_copy, token::next): Implement \V.
10913         (interpolate_environment_variable): New function.
10915 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
10917         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
10918         * pic/pic.y: Likewise.
10920         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
10921         Add casts to int.
10922         * refer/ref.cc (reference::insert_field, reference::delete_field):
10923         Likewise.
10924         * troff/number.cc (parse_term): Likewise.
10926         * acgroff.m4 (GROFF_PROG_YACC): New macro.
10927         * configure.in: Use GROFF_PROG_YACC.
10929         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
10930         and g++.
10931         * Makefile.in (OPTIMIZE): New define.
10932         (DEBUG): Empty by default.
10933         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
10935         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
10936         (GROFF_ARRAY_DELETE): Likewise.
10937         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
10939         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
10941         * devps/psstrip.sed: Use different delimiter on last line (so that
10942         it works with BSD 4.4 sed.)
10944 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
10946         * devps/psstrip.sed: Delete comments.
10948         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
10949         optind, opterr, optarg.
10950         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
10951         opterr, optarg.
10953 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
10955         * Makefile.in (check): Dummy target.
10957 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
10959         * Version 1.07 released.
10961         * Integrate mm 1.11.
10963         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
10964         where start_col was meant.
10966 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
10968         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
10970 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
10972         * troff/input.cc (token::next): Make \z\o'...' and similar things
10973         work.
10975         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
10976         constants.
10977         (environment): Add margin_character_flags member.
10978         * env.cc (environment::environment(symbol),
10979         environment::environment(const environment *): Initialize
10980         margin_character_flags.
10981         (margin_character): Rewrite.
10982         (environment::output_line): Add a margin character if
10983         margin_character_flags is non-zero.  Turn off the
10984         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
10985         zero, use margin_character_node without copying and then set
10986         margin_character_node to 0.
10988         * devps/DESC.in: Change minimum size to 1000.
10990 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
10992         * troff/symbol.h (symbol::hash): Change return type to unsigned
10993         long.
10994         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
10995         Add casts to int.
10997         * test-groff: Use -r rather than -x.
10999         * grops/psfig.diff: Include in distribution again.
11001 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
11003         * Makefile.in (dist): Use gzip.
11005 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
11007         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
11008         unistd.h as well as in stdlib.h.
11009         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
11010         defined; otherwise include <sys/types.h> and <unistd.h> if
11011         UNISTD_H_DECLARES_GETOPT is defined.
11013         * configure.in: use builtin(include, ... rather than include(...
11014         * configure: Regenerate with autoconf 1.3.
11016         * libdriver/print.cc (printer::adjust_arc_center): Use new
11017         algorithm suggested by Andy Fyfe.
11019         * libdriver/printer.cc (printer::adjust_arc_center): New function.
11020         * include/printer.h: Declare this.
11021         * grops/ps.cc (ps_printer::draw): Use it.
11022         * grodvi/dvi.cc (dvi_printer::draw): Use it.
11024 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
11026         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
11028 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
11030         * eqn/main.cc (main): Handle "eqn -".
11032 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
11034         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
11036         * mm: Integrate version 1.08.
11038         * pic/troff.cc (troff_output::finish_picture): Set
11039         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
11040         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
11041         if it's not defined. Check whether the register is non-zero rather
11042         than whether it's not defined.
11043         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
11045         * indxbib/indxbib.cc: Move all signal handling into...
11046         * indxbib/signal.c: New file.
11047         * configure.in: Call AC_RETSIGTYPE.
11049         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
11050         * configure.in: Call GROFF_STRUCT_EXCEPTION.
11051         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
11053         * troff/input.cc (token::token, token::operator=): Work round SGI
11054         C++ bug.
11055         * pic/object.cc (position::position): Likewise.
11057 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
11059         * pic/pic.h: Move declaration of hypot().
11061 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
11063         * pic/pic.h: Declare hypot().
11065         * pic/pic.h: Define M_PI if necessary.
11067 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
11069         * tmac/tmac.e (re): Add alternative version that doesn't use groff
11070         `.ta T' feature.
11072         * devps/prologue.ps (RE): Handle the possibility that the old font
11073         doesn't have a FontName entry.
11075 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
11077         * tmac/tmac.e (fam): Redefine to set family in environment 2.
11078         (@C): Use @fam not fam.
11080 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
11082         * lookbib/lookbib.cc (main): Change type of start to const char *.
11083         * lkbib/lkbib.cc (main): Likewise.
11085         * eqn/lex.cc (definition::definition): Don't use member
11086         initializer syntax for members of anonymous unions.
11088         * troff/input.cc (input_stack::backtrace): Change type of to const
11089         char *.
11091 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
11093         * include/stringclass.h (class string): Declare inline friend
11094         functions as inline in class declaration.
11095         * troff/hvunits.h (class hunits, class vunits): Likewise.
11096         * include/refid.h (class reference_id): Likewise
11097         * troff/troff.h (points_to_units(units), scale(units, double)):
11098         Delete declarations.
11099         * libdriver/input.cc (get_char): Delete declaration.
11100         * include/lib.h: Change 2nd argument of getopt from const char **
11101         to char **.
11102         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
11103         char **' before assigning to a `const char **'.
11104         * tbl/table.cc: Delete extra declarations of prints().
11106 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
11108         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
11109         char **' before assigning to a `const char **'.
11111         * libgroff/errarg.cc (errarg::errarg): Don't use member
11112         initializer syntax for members of anonymous unions.
11114 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
11116         * mm: Integrate version 1.07.
11118 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
11120         * troff/input.c (translate2): Rename to
11121         (translate_no_transparent).
11122         (init_input_requests): Rename tr2 to trnt.
11124 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
11126         * troff/charinfo.h (class charinfo): Add transparent_translate field.
11127         (charinfo::set_translation, charinfo::set_special_translation):
11128         Add second argument that specifies value for
11129         transparent_translate.
11130         (charinfo::get_translation, charinfo::get_special_translation):
11131         Add optional second argument that specifies whether translation is
11132         being used for transparent throughput.
11133         * troff/input.cc (charinfo::set_translation,
11134         charinfo::set_special_translation): Handle second argument.
11135         (charinfo::charinfo): Initialize transparent_translate.
11136         (translate): Split main part off into
11137         (do_translate): New function.  Pass argument saying whether
11138         translation applies to transparent throughput.
11139         (translate2): New request.
11140         (init_input_requests): Bind translate2 to `tr2'.
11142 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
11144         * tbl/table.h (class table): Add `nokeep' flag.
11145         * tbl/main.cc (process_options): Handle `nokeep' option.
11146         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
11147         table::do_bottom): Don't output keep/release macro definitions or
11148         calls when `nokeep' option has been specified.
11150 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
11152         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
11154 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
11156         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
11157         block_entry::divert, alphabetic_block_entry::divert): Add extra
11158         argument giving column separation.
11159         (table::compute_widths): Pass column separation to
11160         table_entry::divert().
11161         (block_entry::do_divert): If an entry spans multiple columns and a
11162         minimumum width has been specified for each column, then set the
11163         line length to the sum of the widths (plus possibly the column
11164         separations).
11166         * troff/input.cc (set_escape_char): Don't set the escape_char
11167         until after calling has_arg().
11169 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
11171         * tbl/table.cc (table::do_top): Add missing \s0 for double box
11172         case.
11174         * tbl/table.cc (table::print_double_hline): Avoid extra new line
11175         in case where r > nrows - 1.
11177         * tbl/table.cc (BODY_HEIGHT): Deleted.
11178         (LINE_SEP): New definition.
11179         (table::print_single_hline, table::print_double_hline,
11180         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
11181         table::do_row, table::do_top): Use LINE_SEP space before a line
11182         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
11184         * tbl/table.cc (text_entry::print_contents): New function.
11185         (text_string_name, right_text_string_name): Deleted.
11186         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
11187         (simple_text_entry::do_width, numeric_text_entry::do_width,
11188         alphabetic_text_entry::do_width): Don't store the contents of the
11189         entry in a string.
11190         (left_text_entry::simple_print, right_text_entry::simple_print,
11191         center_text_entry::simple_print,
11192         alphabetic_text_entry::simple_print,
11193         numeric_text_entry::simple_print): Print the entry directly
11194         instead of using the stored string.
11196 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
11198         * devps/Makefile: Strip PostScript files.
11199         * devps/prologue: Rename to...
11200         * devps/prologue.ps.
11201         * devps/psstrip.sed: New file.
11202         * devps/download: Use .pfa rather than .ps for installed versions
11203         of fonts.
11205 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
11207         * troff/env.cc (input_trap): Give a warning if the argument is out
11208         of range.
11210         * troff/env.cc (adjust): Treat negative argument as missing. Round
11211         argument > 5 down to 5.
11213         * troff/env.cc (center, right_justify): Make negative argument zero.
11215         * troff/div.cc (page_offset, vertical_position_traps): Treat
11216         invalid argument as missing.
11217         * troff/env.cc (line_spacing, line_length, title_length, indent,
11218         underline, hyphen_line_max_request, control_char,
11219         no_break_control_char, widow_control_request, adjust, input_trap,
11220         point_size): Likewise.
11221         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
11222         constant_space): Likewise.
11223         * troff/input.cc (compatible, shift, warn_request,
11224         set_escape_char): Likewise.
11226         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
11227         * tbl/table.cc (table::table): Likewise.
11229         * Makefile.dev (install_dev): depends on $(DEVFILES).
11231 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
11233         * devX75, devX75-12, devX100, devX100-12: New directories.
11234         * Makefile.in: Add these to DEVDIRS.
11236         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
11237         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
11238         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
11239         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
11240         targets.
11241         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
11242         (uninstall): New target.
11243         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
11244         uninstall_prog, uninstall_dev): New targets.
11246         * troff/div.cc (return_request): Treat an invalid argument as
11247         missing.
11249 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
11251         * tmac/tmac.e ((f): Set up the environment even when there's a
11252         current diversion.  Transperently throughput a call to @N.
11253         (@N): New macro.
11255 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
11257         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
11258         up to vertical resolution.
11260         * tbl/table.cc (table::do_row): Change row number after printing
11261         stuff list.
11263         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
11265 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
11267         * Rename CHANGES to NEWS.
11269 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
11271         * libgroff/new.cc (operator new): Avoid calling malloc(0).
11273 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
11275         * man.ultrix: Removed.
11277 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
11279         * Makefile.comm (extraclean): Delete files whose names begin with
11280         `='.
11282         * pic/troff.cc (troff_output::text): Fix typo in implementation of
11283         aligned text.
11285 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
11287         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
11288         * troff/div.cc (page_length, need_space, space_request): Treat
11289         invalid optional argument as missing.
11290         * troff/env.cc (number_lines): If the first argument is present
11291         but not a number, turn on line numbering, don't change the next
11292         line number and parse the remaining arguments.
11294         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
11296 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
11298         * eqn/box.h: Change declaration accordingly.
11299         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
11300         the specified size was bad but don't give an error.  Check for
11301         overflow.
11302         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
11303         * eqn/lex (do_size): Likewise.
11305 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
11307         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
11308         compatible headers.
11310 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
11312         * tbl/table.cc (table::init_output): Improve error message when
11313         table won't fit on one page.
11315 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
11317         * pic/troff.cc (troff_output::start_picture): Generate line
11318         containing a horizontal motion equal to the width of the picture.
11320         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
11321         using GROFF_COMMAND_PREFIX environment variable.
11323 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
11325         * mdate.sh: Use $NF rather than $(NF).
11327 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
11329         * pic/main.cc (main):  Use %1 not %c in argument to warning.
11331         * eqn/main.cc (main): Output code to check that geqn was given the
11332         correct -T option.
11334 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
11336         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
11337         `ln -s ../Makefile .; make; rm -f Makefile'.
11339         * troff/hyphen: Rename to...
11340         * troff/hyphen.us:
11341         * troff/input.cc (main): Delete -H option. Don't call
11342         read_hyphen_file().
11343         * troff/env.cc: Include searchpath.h and macropath.h.
11344         (exception_dictionary): Deleted.
11345         (ht): Deleted.
11346         (read_hyphen_file): Deleted.
11347         (hyphenation_language): New struct.
11348         (class trie, class hyphen_trie): Move declarations up.
11349         (trie_node::~trie_node): Deleted.
11350         (trie::delete_trie_node): New function.
11351         (trie::do_delete): New pure virtual function.
11352         (hyphen_trie::do_delete): New function.
11353         (trie::~trie): New function.
11354         (hyphen_trie::~hyphen_trie): New function.
11355         (trie::clear): No need to chcek that tp is not 0.
11356         (current_language, language_dictionary): New variables.
11357         (hyphen_word): Give an error if no current language.  Use
11358         exceptions dictionary in current language.
11359         (hyphen_trie::read_patterns_file): Find file using macro_path.
11360         Allow comments (starting with %) in patterns file.  Don't make it
11361         a fatal error if the file can't be found.
11362         (hyphenate): Return if no current language.  Get the exceptions
11363         dictionary and the hyphenation patterns from the current language.
11364         (set_hyphenation_language): New variable.
11365         (hyphenation_patterns_file): New function.
11366         (hyphenation_language_reg): New class.
11367         (hyphenation_language_reg::get_string): New function.
11368         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
11369         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
11370         register.
11371         * groff/groff.cc (main, help, synopsis): Delete -H option.
11372         * include/Makefile.sub: Don't define HYPHENFILE.
11373         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
11374         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
11375         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
11376         hyphenation patterns.
11378 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
11380         * eqn/neqn.sh: New file.
11381         * eqn/Makefile.sub: Handle neqn.sh.
11383         * eqn/eqn.h: Declare `nroff' variable.
11384         * eqn/box.cc (param_table): Add `nroff' param.
11385         (nroff): Define it.
11386         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
11387         variable.
11388         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
11390         * troff/troff.h (WARN_FONT): New warning.
11391         (WARN_TOTAL): Change accordingly.
11392         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
11393         (warning_table): Add WARN_FONT.
11394         * troff/node.cc (mount_font_no_translate): Pass argument to
11395         font::load_font.  If this is non-zero, give a warning.
11396         Don't give an error message when accessing a font that has already
11397         been found to be invalid.
11398         * include/font.h (font::load, font::load_font): Add additional
11399         optional argument which suppresses error message if the font is
11400         not found.
11401         * libgroff/font.cc (font::load_font): Handle additional argument.
11402         (font::load): Add additional argument. If this is non-null, set it
11403         to 1 and don't give error message.
11405         * include/printer.h (printer::end_page): Add argument giving
11406         length of page.
11407         * libdriver/input.cc (do_file): Pass this.
11408         * grops/ps.cc (ps_printer::end_page): Add argument.
11409         * grodvi/dvi.cc (dvi_printer::end_page,
11410         draw_dvi_printer::end_page): Add argument.
11411         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
11412         columns_per_page members. New member nlines.
11413         (DEFAULT_LINES_PER_PAGE): Deleted.
11414         (tty_printer::tty_printer): Don't compute lines_per_page from
11415         font::paperlength. Don't compute columns_per_page from
11416         font::paperwidth.
11417         (tty_printer::add_char): Don't check horizontal position against
11418         columns_per_page. Grow glyphs vector if neccessary.
11419         (tty_printer::end_page): Add argument giving page_length in units.
11420         Discard lines past end of page.
11422 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
11424         * tmac/tmac.tty-char: Fix definition of \(/l.
11426         * tmac/tmac.X: Define \(en.
11428 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
11430         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
11431         lpq, then use lp rather than lpr.
11433         * tmac/tmac.s (par@reset): Don't call `ad'.
11434         (par*env-init): Call `ad'.
11436 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
11438         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
11439         date.
11441         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
11442         * indxbib/indxbib.cc: Likewise.
11444 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
11446         * libgroff/putenv.c: New file.
11447         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
11448         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
11449         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
11450         stdlib.h with AC_HAVE_HEADERS.
11452 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
11454         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
11455         does not exist.
11457 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
11459         * eqn/box.cc (gsize): Make it an int.
11460         (set_gsize): Parse argument handling increment or decrement.
11461         (box::top_level): Convert gsize to a string.
11463         * troff/input.cc (exit_troff): Make buf unsigned char [].
11464         Call to make_temp_iterator casts buf to char*.
11466         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
11468         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
11469         * Makefile.cpg (depend.temp): Likewise.
11471         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
11473         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
11475 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
11477         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
11479 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
11481         * Version 1.06 released.
11483         * Integrate mm 1.04.
11485 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
11487         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
11489 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
11491         * afmtodit/afmtodit.pl: Add -n option that disables generation of
11492         ligatures command.
11493         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
11494         afmtodit. Regenerate.
11496         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
11497         @f back past the current position.
11499         * tmac/tmac.e: Change calls to @R so that comments are not part of
11500         arguments.
11502 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
11504         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
11506         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
11507         check that we can link a call to a function declared in <stdio.h>.
11508         (GROFF_UNISTD_H): New macro.
11509         * configure.in: Call it.
11510         * Makefile.in: Document it.
11511         * include/posix.h: New file.
11512         * troff/troff.h: Don't include <osfcn.h>
11513         * troff/input.cc: Include posix.h.
11514         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
11515         osfcn.h.
11516         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
11517         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
11518         <fcntl.h>.
11519         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
11520         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
11521         * libbib/search.cc (O_RDONLY): Delete definition.
11522         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
11523         Don't include <osfcn.h>.
11525         * acgroff.m4 (GROFF_TIME_T): New macro.
11526         * configure.in: Call it.
11527         * Makefile.in: Document it.
11529         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
11530         * configure.in: Call it.
11531         * Makefile.in: Document -DTRADITIONAL_CPP.
11532         * include/ptable.h: Don't include generic.h.
11533         (name2): Define it.
11535         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
11536         Afterwards remove [T1 and [T2.
11537         (ref*spec!0, ref*spec!2): Use T1 rather than T.
11538         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
11539         (ref*add-T2): Renamed from ref*add-T.
11540         (ref*add-T1): New macro.
11542 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
11544         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
11546         * libbib/index.cc: Include <fcntl.h>.
11547         (O_RDONLY): Define if necessary.
11548         (make_index_search_item, index_search_item_iterator::get_tag,
11549         index_search_item::check_files): Use O_RDONLY.
11550         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
11551         (O_RDONLY): Define if necessary.
11552         (search_list::add_file): Use O_RDONLY.
11553         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
11554         <sys/stat.h>.
11555         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
11556         (main): Use these.
11558         * libbib/index.cc (S_ISREG): Define it if necessary.
11559         (index_search_item::load): Use S_ISREG.
11561         * include/driver.h: Include <errno.h>.
11563 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
11565         * eqn/box.cc (body_height): Increase default value to 85.
11566         (body_depth): Increase default value to 35.
11568 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
11570         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
11571         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
11572         protected from expansion with \E.
11574         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
11576         * Makefile (Makefile): New target.
11578         * Makefile.sub (configure, distfiles): New targets.
11580         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
11581         construct.
11583 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
11585         * eqn/box.cc (param_table): Add body_height and body_depth.
11587         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
11589 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
11591         * psbb/Makefile.sub: Don't link with libgroff.a.
11593         * acgroff.m4 (GROFF_PUTENV): New macro.
11594         * configure.in: Call GROFF_PUTENV.
11595         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
11596         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
11597         is defined.
11599         * troff/env.cc (distribute_space): Rename force_forward argument
11600         to force_reverse.  Reverse the list if force_reverse is true.
11602 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
11604         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
11606         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
11607         height or depth to be negative.  Guard against SUP_RAISE quantity
11608         being negative.
11610 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
11612         * devps/generate/textmap: Add `an' (arrowhorizex).
11613         * tmac/tmac.ps: \(an overlaps horizontally.
11614         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
11616         * devps/symbolchars: Add arrowverttp, arrowvertbt.
11617         * devps/textmap: Add arrowvertex.
11618         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
11619         updownarrow delimiters.
11620         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
11622         * tbl/table.cc (simple_entry::position_vertically,
11623         block_entry::position_vertically):  For a centered entry, perform
11624         the motion in two stages.
11626         * refer/refer.cc (split_punct): Don't call lookup_token if there
11627         is no token.
11629 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
11631         * troff/input.cc (token::next): Delete token_node after copying
11632         token.
11634         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
11635         cur_point_size.
11637         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
11639         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
11641 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
11643         * grops/ps.cc (usage): -b option takes an argument.
11645         * devps/prologue (PLG): New procedure.
11646         * grops/ps.cc (main, usage): New -g option.
11647         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
11648         length using PLG.
11650 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
11652         * include/cset.h: Include <limits.h> if we have it.
11654         * libgroff/illegal.cc: New file.
11655         * include/lib.h (illegal_input_char): Use table.
11656         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
11657         * pic/lex.cc (ARG1): Renumber to 14.
11658         * eqn/lex.cc (ARG1): Likewise.
11660         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
11661         (eg 1.05.90) correctly.
11663 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
11665         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
11666         Rename $r and $R registers to $v and $V.
11667         ($r, $R): Initialize to 0.
11668         (@v, @V): New macros.
11669         (sz): Call @v.
11670         (@M): Call @V.
11672         * troff/input.cc (main, usage): Add -R option that says not to
11673         load troffrc.
11674         * eqn/main.cc (main, usage): Rename -n to -R.
11676 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
11678         * devps/DESC.in: Leave font positions 5-9 blank.
11679         * devdvi/DESC.in: Likewise.
11681         * grog/grog.pl: Handle `.PS <file' correctly.
11683         * troff/input.cc (input_stack::push): Improve error message when
11684         input stack limit exceeded.
11686 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
11688         * refer/refer.cc (main): Fix typo in handling of `a' option.
11690         * refer/refer.cc (do_bib): In state START after a newline remain
11691         in state START.
11693         * groff/groff.sh: Deleted.
11694         * groff/Makefile.sub: Delete handling of groff.sh.
11696         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
11697         to determine whether to use \X'ps:...'.
11698         * tmac/troffrc: Set 0p register to 0.
11699         * tmac/tmac.ps: Set 0p register to 1.
11701         * groff/groff.cc: Support -X option. Give warning for -TXps and
11702         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
11703         * tmac/troffrc: Support -r.X=1.
11705         * pic/troff.cc (troff_output::dot): Don't test
11706         zero_length_line_flag.
11708 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
11710         * include/lib.h: Declare getopt() and friends unless
11711         STDLIB_H_DECLARES_GETOPT is defined.
11713         * doc/chars.tr: Delete.
11714         * man/groff_char.man: New file.
11716 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
11718         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
11719         user has changed register format.
11721 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
11723         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
11724         `postpro' command in DESC file.  Get spooler command from `print'
11725         command in DESC file.  Execute spooler command with /bin/sh.
11727         * groff/groff.cc: Split Unix-specific parts into...
11728         * groff/pipeline.c: New file.
11730         * LICENSE: Delete.
11731         * COPYING: New file.
11732         * all files: Update copyright notices.
11734         * Rearrange files.  Redo Makefiles.  Use autoconf.
11736 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
11738         * troff/input.c (charinfo_to_node_list): Interpret character
11739         definition with escape_char of `\'.
11741 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
11743         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
11744         Define INT_DIGITS as big enough for 64-bit integer.
11745         * lib/strtol.c: Don't include lib.h.
11746         * lib/lib.h: Delete ifdef __cplusplus stuff.
11748 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
11750         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
11751         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
11752         get DESC from current directory.
11754 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
11756         * tbl/main.c (main): Always reset the line number when reading
11757         from stdin.
11759         * tbl/table.c (table::print_single_hline, table::print_double_hline,
11760         table::define_bottom_macro, table::do_row, table::do_top): Round
11761         vertical spacing up to vertical resolution.
11763 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
11765         * ps/ps.h (enum resource_type): Avoid comma at end of
11766         enumerator-list.
11767         * dvi/dvi.c (class dvi_printer): Likewise.
11768         * dvi/tfmtodit.c (gf::load): Likewise.
11769         * refer/label.y (struct expression): Likewise.
11770         * refer/refer.c (class label_processing_state): Likewise.
11771         * refer/indxbib.c (do_file): Likewise.
11772         * troff/troff.c (enum warning_type): Likewise.
11773         * tbl/main.c (process_data): Likewise.
11774         * troff/charinfo.h (class charinfo):
11776 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
11778         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
11780 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
11782         * groff.c: Move to new groff subdirectory.
11783         * groff/Makefile: New file.
11784         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
11786         * man/mdate.sh: Use ls -L if supported.
11788         * Consolidate all header files produced by gendef into lib/defs.h.
11789         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
11790         Don't include path.h.
11791         * lib/Makefile (path.h): Don't generate.
11792         * troff/input.c: Include defs.h. Don't include config.h.
11793         * troff/Makefile (config.h): Don't generate.
11794         * refer/index.h: Don't include suffix.h.
11795         * refer/index.c: Include defs.h.
11796         * refer/indxbib.c: Include defs.h.
11797         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
11798         defs.h.
11799         * refer/Makefile (suffix.h, path.h): Don't generate.
11800         * groff.c: Don't include config.h. Include defs.h.
11801         * Makefile (config.h): Don't generate.
11802         (lib/defs.h): Generate.
11803         (topclean): Remove lib/defs.h.
11805 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
11807         * lib/malloc.c, lib/getpagesize.h: Deleted.
11808         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
11809         related stuff.
11810         * lib/Makefile: Delete malloc-related stuff.
11811         * lib/new.c: Workaround COOKIE_BUG if necessary.
11813         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
11814         needed header files directly.
11815         * refer/refer.h: Omit definition of DEFAULT_INDEX.
11816         * Makefile: Include definition of DEFAULT_INDEX in path.h.
11818 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
11820         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
11821         argument.
11822         * lib/font (font::load_desc, font::load): Don't split argument of
11823         unknown command.
11824         (font::handle_unknown_font_command): Change type.
11825         * ps/ps.c (ps_font::handle_unknown_font_command,
11826         handle_unknown_desc_command): Change type.
11827         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
11829 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
11831         * lib/font.h (font::handle_unknown_font_command): Add file and
11832         line arguments.
11833         * lib/font.c (font::handle_unknown_font_command):
11834         * ps/ps.c (ps_font::handle_unknown_font_command):
11835         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
11836         lineno arguments.  Use _with_file_and_line functions for error
11837         reporting.
11839         * lib/fontfile.c (font::unknown_desc_command_handler): New static
11840         data member.
11841         * lib/font.c (font::set_unknown_desc_command_handler): New
11842         function.
11843         (font::load_desc): For unknown commands, call
11844         unknown_desc_command_handler if not null.
11845         * lib/font.h (class font): Declare them.
11846         (FONT_COMMAND_HANDLER): New typedef.
11847         * ps/ps.c (handle_unknown_desc_command): New function.
11848         (main): Set bflag if we had a -b option. Call
11849         font::set_unknown_desc_command_handler.
11850         (broken.h): Don't include.
11851         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
11852         submake 
11853         * ps/devps/Makefile: Add `broken' command to DESC file using
11854         BROKEN_SPOOLER_FLAGS.
11856         * macros/tmac.e ([, ]): Add as synonyms for { and }.
11858         * macros/tmac.e ($p): Only exdent if \$3 > 0.
11860         * macros/tmac.e (@R, @S): New macros.
11861         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
11862         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
11863         Declare $H, $[0-9], .. macros with @S.
11864         Declare |0, |1, |2, |3 strings with @S.
11866         * macros/tmac.e (@S): Rename to @U.
11868         * macros/tmac.e (@z): Define @b and bp as empty instead of
11869         deleting them,
11871         * macros/tmac.e (@m): Deleted.
11872         (@h): Don't call @m.
11873         (@z): Don't set @m trap.
11875         * macros/tmac.e ($h, $f): Define |z as empty string.
11877         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
11878         (@q): Likewise.
11880         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
11881         removing them.
11882         ()f): Likewise for * register.
11884         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
11885         argument is missing, don't change $R.  Call sr with three
11886         arguments when initializing.
11888 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
11890         * macros/tmac.e (sr): New macro.
11891         Initialize $r and $R using sr.
11893         * macros/tmac.e (,): Delete \*(#[.
11895         * troff/env.c (set_tabs): Read the tab type even if the position
11896         is bad.  Allow the position of the first tab stop to be negative.
11898 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
11900         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
11901         _POSIX_VERSION.
11902         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
11903         rather than -DPATHCONF_MISSING.
11904         * Makefile: Get rid of PATHCONF_MISSING.
11906         * refer/map.c: New file.
11907         * refer/index.c: Interface to mmap through map.c.  Rename map_size
11908         to map_len.
11909         * refer/Makefile: Handle map.c.
11910         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
11912 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
11914         * Makefile: RANLIB should be `true' if there is no ranlib.
11915         * lib/Makefile (libgroff.a): Simplify.
11916         * driver/Makefile (libdriver.a): Simplify.
11918         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
11919         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
11920         defined.
11922 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
11924         * troff/env.c (compare_ranges): Declare as extern "C".
11926         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
11928         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
11930 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
11932         * pic/troff.c (troff_output::text): Merge in grops_output::text,
11933         but conditionalize use of \X based on \*(.T.
11934         (grops_output::*): Deleted.
11935         * pic/output.h: Delete declaration of make_grops_output.
11936         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
11937         by default. -n sets it to 0.
11938         (usage): Corresponding changes.
11939         * groff.c (main): Don't pass -x or -p to pic.
11940         * groff.sh: Likewise.
11942         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
11943         to be non-zero.
11945         * ps/devps/afmtodit: Change calculation of asc_boundary and
11946         desc_boundary.  Make these bounds inclusive.
11947         * ps/devps: Regenerate font files.
11949 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
11951         * macros/tmac.latin1: New file.
11952         * macros/tmac.tty-char: Use tmac.latin1.
11953         (tmac.tty-tr): Deleted.
11954         * macros/Makefile: Install tmac.latin1.
11955         * macros/tmac.dvi: Use tmac.latin1.
11956         * macros/troffrc: Translate \[char160] onto no-break space here.
11957         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
11959 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
11961         * macros/tmac.Xps: Use `do' request.
11963         * macros/tmac.ps: Use `do' request.
11965         * macros/tmac.e (@C): Use `do' request.
11967         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
11968         * macros/Makefile: Install tmac.X*.
11970         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
11971         * tty/Makefile: Don't install tmac.tty*.
11972         * macros/Makefile: Install tmac.tty*.
11974         * dvi/tmac.dvi: Move to macros.
11975         * dvi/Makefile: Don't install tmac.dvi.
11976         * macros/Makefile: Install tmac.dvi.
11978         * ps/tmac.ps*: Move to macros.
11979         * ps/Makefile: Don't install tmac.ps*.
11980         * macros/Makefile: Install tmac.ps*.
11982         * eqn/box.c: Provide draw_lines parameter corresponding to -D
11983         option.
11984         * macros/eqnrc: Set draw_lines parameter based on device.
11985         * groff.c: Don't pass -D flag to eqn.
11986         * groff.sh: Likewise.
11987         * eqn/main.c: Warn about use of -D.
11989         * troff/input.c (process_startup_file): New function.
11990         (main): Call process_startup_file().
11991         * macros/troffrc: New file.
11992         * macros/Makefile: Install troffrc.
11993         * groff.c (main): Don't pass extra -m option to troff. For a 
11994         pseudo device pass the name of the pseudo device to troff using
11995         -d.
11996         * groff.sh: Likewise.
11997         * groff.c (possible_command::prepend_arg): Deleted.
11999         * troff/input.c (do_request): New function.
12000         (init_input_requests): Bind "do" to do_request.
12002         * eqn/main.c (main): Instead of loading eqnchar from device directory,
12003         load eqnrc from macro directory.
12004         * macros/eqnrc: New file.
12005         * macros/Makefile: Install eqnrc.
12006         * ps/devps/eqnchar: Deleted.
12007         * ps/devps/Makefile: Don't install eqnchar.
12008         * dvi/devdvi/eqnchar: Deleted.
12009         * dvi/devdvi/Makefile: Don't install eqnchar.
12010         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
12011         variable optM.
12013         * lib/device.[ch]: New files.
12014         * lib/font.h (font::set_device_name, font::get_device_name):
12015         Deleted.
12016         * lib/fontfile.c: Use device.h.
12017         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
12018         * troff/input.c: Delete definition of `device'.
12019         (main): Don't initialize device.
12020         * troff/troff.h: Include device.h rather than declaring device.
12021         * troff/Makefile: No need to handle DEVICE.
12022         * driver/input.c: Include device.h. Don't use
12023         font::{set,get}_device_name.
12024         * groff.c, Makefile: Rename device.h to config.h.
12025         * groff.c: Use library device variable.
12026         * eqn/main.c: Use library device variable.
12027         * eqn/Makefile: No need to handle DEVICE.
12029         * lib/searchpath.[ch]: New files.
12030         * lib/Makefile: Handle searchpath.[ch].
12031         * troff/input.c (open_file, init_dirs): Deleted.
12032         (macro_dirs): Deleted.
12033         (open_mac_file, macro_source): Use class search_path.
12034         (add_string, struct string_list): Move definition.
12035         (main): Change -M option to use macro_path. Delete call to
12036         init_dirs().
12037         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
12038         Rewrite to use class search_path.
12039         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
12040         * lib/Makefile: fontfile.c depends on searchpath.h.
12041         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
12042         MACROPATH.
12043         * lib/macropath.[ch]: New files.
12044         * troff/Makefile: No need to handle MACROPATH.
12046         * troff/input.c: Delete DUMP code.
12047         * lib/fontfile.c, lib/font.h: Delete
12048         font::forget_command_line_font_dirs.
12050         * troff/input.c (push_token): New function.
12051         (handle_first_page_transition): Use push_token().
12052         (process_input_stack): Change handling of a space at the beginning
12053         of the line.
12055 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
12057         * troff/input.c (font_dirs): Delete unused variable.
12059         * eqn/lex.c (do_set): Correct error messages.
12061 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
12063         * troff/input.c (do_define_string): Allow the string name to be
12064         followed immediately by a tab.
12065         (define_character): Likewise.
12067 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
12069         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
12070         be negative.
12072         * troff/input.c (input_iterator::is_file): New virtual function.
12073         (file_iterator::is_file): New function.
12074         (input_stack::end_file): New function.
12075         (input_stack::next_file): Handle the situation where there is no
12076         file on the input stack correctly.  Avoid making two passes over
12077         the input stack.
12078         (next_file): Make the filename optional; in this case call
12079         input_stack::end_file().
12081 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
12083         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
12084         produce a real _ charater when the current font is CW and _
12085         otherwise.
12087         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
12088         expression to work around gcc 2.2 bug.
12090 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
12092         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
12094         * troff/env.c (environment::add_padding): New function.
12095         (environment::add_char): Use add_padding().
12096         (environment::space): Likewise.
12097         (environment::wrap_up_field): Add some padding if there is none
12098         and there's no current tab.
12099         * troff/env.h: Declare environment::add_padding.
12101 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
12103         * pic/pic.y: undef fmod and rand before declaring them.
12105 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
12107         * troff/input.c (main): If the DESC file specifies a font name of
12108         0, then leave the corresponding font position empty.
12110         * nroff.sh: New file.
12111         * Makefile (install.nobin): Install nroff.sh.
12113         * tty/devlatin1/R.proto: Add ao as synonym for de.
12114         * tty/tmac.tty-char: Define ao as o.
12116         * tty/dev{ascii,latin1}/R.proto: Add aq.
12117         * tty/tmac.tty-char: Delete definition of aq.
12119 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
12121         * troff/input.c (init_charset_table): Don't translate 0240.
12122         * ps/tmac.ps: Translate char160 to space.
12123         * dvi/tmac.dvi: Likewise.
12124         * tty/tmac.tty: Likewise.
12126 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
12128         * dvi/tmac.dvi: Add support for all Latin-1 characters.
12130         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
12131         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
12132         \(oe, \(r?, \(r!.
12134         * tty/tmac.tty-char: Add \(ah.
12136         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
12137         No need to define \(FM and \(!/. Conditionalize all character
12138         definitions.
12140         * ps/devps/lgreekmap: Add +h, +f, +p.
12142         * ps/tmac.psnew: New file.
12143         * ps/Makefile: Install tmac.psnew.
12145         * troff/input.c (charinfo_to_node_list): Don't ever interpret
12146         character definitions in compatible mode.
12148         * troff/input.c (remove_character): New function.
12149         (init_input_requests): Bind remove_character to "rchar".
12151         * ps/tmac.psold: New file.
12152         * ps/Makefile: Install tmac.psold.
12153         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
12154         characters into tmac.psold.  Make these definitions unconditional.
12156         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
12158         * ps/tmac.ps: Don't define \('c and \('C.
12160         * ps/devps/textmap: Move Greek characters to...
12161         * ps/devps/symbolchars:
12163 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
12165         * ps/devps/text.enc: Add quotesingle.
12166         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
12167         * tty/tmac.tty-char: Likewise.
12168         * dvi/devdvi/texmi.map: Add +h, +f, +p.
12169         * dvi/devdvi/texi.map: Add Fn.
12170         * dvi/devdvi/msam.map: Add lz.
12171         * dvi/tmac.dvi: Handle Bq, bq, aq.
12173         * pic/lex.c (get_token): Recognize 'th.
12174         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
12176 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
12178         * ps/devps/textmap: Move di, mu, +- to...
12179         * ps/devps/symbolchars:
12181         * macros/tmac.s (@XS): Don't call par@reset or fi.
12182         (XA): Call LP. Turn off adjustment. Reduce line length.
12184         * macros/tmac.s: Initially alias XS to LP.
12185         (XS): Rename to @XS.
12186         (cov*ab-init): Alias XS to @XS.
12188 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
12190         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
12191         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
12192         (token::is_size, token::changes_env): Deleted.
12193         * troff/number.c (parse_term): No need to process \s explicitly.
12194         Call tok.next() only after scale indicator has been processed.
12195         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
12196         \f etc explicitly.
12197         (token::next): Handle \s, \f, \S, \H immediately rather than
12198         returning them as tokens.
12199         (token::operator==, token::description, token::add_to_node_list,
12200         token::process): Remove handling of deleted tokens.
12202         * troff/env.c (environment::add_char): When adding padding
12203         indicator character, call start_line() if necessary.
12205 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
12207         * ps/devps/afmtodit: Don't output 0 kerns.
12209         * ps/devps/afmtodit: Remove directory from name of encoding in
12210         font description file.
12212         * ps/devps/afmtodit: Improve error messages.
12214         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
12216         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
12217         * ps/devps/FontMakefile: Deleted.
12218         * ps/devps/afmname: New file.
12220         * ps/devps/symbol.sed: New file.
12221         * ps/devps/symbol.diff: Deleted.
12222         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
12223         Generate zapfdr.afm from zapfd.afm.
12225         * tty/tmac.tty (tty-char): Prefix definition with ".
12227         * macros/tmac.an (TP): Don't start a diversion if one has already
12228         been started.
12230         * tty/tmac.tty-char: Add Latin-1 characters.
12232         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
12234 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
12236         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
12237         Move declaration of struct horizontal_span.
12239         * tbl/table.c (table::table): Initialize span_list.
12240         (table::~table): Delete span_list.
12242         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
12244         * ps/devps/Makefile: Avoid dependency on GNU make.
12246         * ps/tmac.ps: Check that character does not already exist before
12247         defining it.
12249         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
12250         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
12251         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
12252         files.
12254         * tty/tmac.tty-char: New file.
12255         * tty/Makefile: Install tmac.tty-char.
12256         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
12257         tmac.tty-char.
12259         * tty/tmac.tty: Fix definition of \(34.
12261         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
12262         bracket-drawing characters onto |. Add *o.
12264         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
12265         only if current_field.
12267         * troff/dictionary.c (dictionary::lookup): Free old_table after
12268         rehashing. 
12270 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
12272         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
12273         whose glyphs are identical to glyphs of some Roman character.
12275         * tty/devlatin1/R.proto (bu): Deleted.
12276         * tty/devascii/R.proto (bu): Deleted.
12277         * tty/tmac.tty: Add definition of \(bu.
12279         * eqn/main.c (do_file): Pass FILE as argument.
12280         (main): Automatically load eqnchar.  New options -F and -n.
12281         Pass do_file an opened FILE.
12282         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
12283         No need to include font.h.
12284         * groff.sh: Likewise.  Don't need to use - for standard input.
12285         Prefix files with -- if first file starts with -.
12287         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
12289         * troff/env.c (environment::possibly_break_line): Don't set line
12290         to 0 across call to output_line().  Don't call output_line() until
12291         after discarding nodes after break.
12293 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
12295         * request.h (macro::empty): Declare it.
12296         * input.c (macro::empty): New method.
12297         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
12298         macro is empty.
12300 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
12302         * troff/env.c (environment::start_field): Decrement space_total
12303         when a space is frozen.
12305 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
12307         * macros/tmac.an (R): Delete macro.
12309         * troff/input.c (get_copy, token::next): Support \# (like \" but
12310         newline is ignored).
12312         * troff/input.c (token::next): Fix error message in 'Y' case.
12314 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
12316         * eqn/delim.c (define_extensible_string): Recognize any prefix of
12317         a delimiter name.
12319 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
12321         * c++test.c: Include <osfcn.h>.
12323         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
12324         <errno.h> doesn't.
12326 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
12328         * tbl/table.c (table::divide_span): Don't count column separation
12329         if expand was specified.
12331         * tbl/main.c (process_format): Don't ignore width specs in
12332         continued format.  Give warning for changing equal widths or
12333         column separation in continued format.
12334         (process_data): Set column separation, minimum width, equal
12335         columns at end of table.
12337 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
12339         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
12340         node::add_discretionary_hyphen): Use soft_hyphen_char.
12341         (set_soft_hyphen_char): New function.
12342         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
12344         * Makefile (c++tested): Give more helpful message if test fails.
12346 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
12348         * troff/input.c (init_charset_table): Translate 0240 to
12349         an unbreakable space.
12351         * troff/token.h (token::hyphen_indicator): New function.
12352         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
12353         translation.
12354         * troff/input.c (translate): Allow translation to \%.
12355         * troff/node.c (node::add_char): Handle
12356         TRANSLATE_HYPHEN_INDICATOR.     
12357         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
12359         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
12360         for \(hy.
12362         * tty/devlatin1/R.proto: \(hy and - should print as 055.
12364 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
12366         * groff.c (run_commands): If the last command gets a SIGPIPE send
12367         a SIGPIPE to all children than haven't yet terminated.  When
12368         command terminates, set pid field to -1.
12370 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
12372         * groff.c (main): Pass an appropriate -filename option to gxditview.
12374 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
12376         * Makefile.bd (install): Remove existing program before copying.
12378         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
12379         programs which have Unix counterparts to be installed with
12380         user-specified prefix.
12382         * troff/input.c (exit_troff): Don't check if exit_started.
12383         (exit_request): Don't call exit_troff if exit_started.
12385         * Makefile.bd (install.mm): Rename to install.dwbmm.
12387 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
12389         * driver/input.c (do_file): Add missing break for '#' case.
12391 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
12393         * troff/input.c (input_stack::clear):  Clear past any boundaries and
12394         then add the boundaries back.
12396         * troff/input.c (exit_troff): Return immediately if already
12397         exiting.
12399         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
12400         end macro.
12401         (pg*end-page): If the text has ended and there are no more
12402         footnotes or keeps, exit.
12404         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
12406         * troff/input.c (init_charset_table): Make \(rq transparent by
12407         default.
12409         * macros/tmac.an: Define lq and rq strings.
12411         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
12413 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
12415         * troff/env.c (environment::final_break): New function.
12416         (environment::newline): Set prev_line_interrupted to 2 if
12417         exit_started.
12418         * troff/env.h: Declare environment::final_break.
12419         * troff/input.c (exit_troff): Call environment::final_break()
12420         instead of environment::do_break().
12422         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
12423         doesn't already exist.
12424         * macros/man.local: New file.
12425         * macros/tmac.an: Load man.local.
12426         * macros/man.ultrix: New file.
12428 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
12430         * troff/input.c (exit_groff): Rename to...
12431         (exit_troff): New function.
12433         * troff/div.c (exit_started, done_end_macro,
12434         seen_last_page_ejector): New global variables.
12435         (began_page_in_end_macro): New static variable.
12436         (exit_flag): Deleted.
12437         (top_level_diversion::top_level_diversion): Initialize
12438         last_page_count.
12439         (top_level_diversion): More elaborate test for whether
12440         cleanup_and_exit() should be called.
12441         Set began_page_in_end_macro if the end macro isn't yet finished.
12442         * troff/div.h (top_level_diversion::last_page_count): New data
12443         member.
12444         (top_level_diversion::set_last_page): New function.
12445         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
12446         * troff/env.c (do_break): Zero prev_line_interrupted.
12447         * troff/input.c (exit_flag): Delete declaration.
12448         (LAST_PAGE_EJECTOR): New magic cookie.
12449         (token::next): Handle LAST_PAGE_EJECTOR.
12450         (exit_groff): Set exit_started and done_end_macro instead of
12451         exit_flag.  Call top_level_diversion::set_last_page.  Push a
12452         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
12453         another ejection after setting seen_last_page_ejector.
12455 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
12457         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
12459         * macros/tmac.e (TH): Make sure there's room for the initial
12460         header.
12462         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
12463         Set FVS in points rather than units.
12465 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
12467         * troff/div.c (top_level_diversion::add_trap): Don't consider the
12468         position of empty slots.
12470 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
12472         * ps/devps/S: Fix height and depth of parenrightex.
12473         * ps/devps/symbol.diff: Regenerate.
12475 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
12477         * tmac.e (u): Do underlining as in -mgs.
12479 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
12481         * tty/tty.c (tty_printer::end_page): If overstriking is
12482         suppressed, still turn overstruck horizontal and vertical lines
12483         into +.
12485         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
12486         2.1.
12488         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
12490 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
12492         * Version 1.05 released.
12494 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
12496         * tty/tty.c: Instead of keeping an array of glyphs and then
12497         sorting it, keep a ordered linked list of glyphs for each line.
12499         * driver/driver.h: Include stddef.h.
12501         * tty/tty.c (compare_glyph):
12502         * refer/refer.c (rcompare):
12503         * troff/env.c (compare_ranges): Arguments of qsort comparison
12504         function should be const void *.
12506         * troff/number.c (parse_term):
12507         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
12508         switch statement.
12510         * refer/label.y (consider_authors): Don't access variables
12511         constructed under a condition outside that condition: put braces
12512         round for statement containing declaration; redeclare use of same
12513         variable later.
12515         * pic/pic.y (text_expr): Delete production that allows
12516         parenthesised text_expr.
12517         (expr): Allow a conditional_expr to appear in parentheses.
12518         (conditional_expr): Rename to any_expr.
12520         * mm: Install new version 1.01 from jh.
12522         * lib/font.c (font::get_width): Cache scaled widths.
12523         (font::font): Initialize widths_cache.
12524         (font::~font): Destroy widths_cache.
12525         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
12527 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
12529         * c++test.c, c++test.ref: New files.
12530         * Makefile: Check that the C++ compiler works.
12532         * ps/tmac.pspic (PSPIC): Do a break.
12534         * ps/tmac.ps: Move definition of PSPIC into...
12535         * ps/tmac.pspic: New file.
12536         (PSPIC): Draw box around picture, but make it invisible to grops.
12537         * ps/tmac.ps: Load tmac.pspic.
12538         * ps/Makefile: Install tmac.pspic.
12540 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
12542         * lib/font.c (scale_round): If n is negative,
12543         subtract .5 before truncating floating point result.
12545         * lib/fontfile.c: Include <errno.h>.
12547 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
12549         * driver/input.c (get_char): Inline. Don't update current_lineno.
12550         Change callers to up date current_lineno if necessary.
12551         Use get_char() instead of getc(current_file).
12553 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
12555         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
12557 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
12559         * tty/tty.c (tmac.tty): Define \(rg as (R).
12561 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
12563         * lib/lib.h: New define a_delete.
12564         * Use a_delete instead of delete when deleting an array of objects
12565         without destructors.
12567         * lib/lib.h: Rename adelete to ad_delete.
12568         * Change uses of adelete.
12570 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
12572         * eqn/eqn.y: Include lib.h.
12574         * troff/node.c (grow_font_table): Delete old_font_table.
12576         * mm: Install new version from jh.
12578 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
12580         * tbl/table.h (format_type): Make global instead of local to class
12581         entry_format.  Prefix enumerators with FORMAT_.
12582         * tbl/table.c, tbl/main.c: Corresponding changes.
12583         * refer/token.h (token_type): Make global.  Prefix enumerators
12584         with TOKEN_.
12585         * refer/token.[ch]: Corresponding changes.
12586         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
12588         * troff/div.c (node::set_vertical_size): Don't name argument.
12590 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
12592         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
12593         * lib/lib.h: Define adelete accordingly.
12594         * pic/object.c (graphic_object::graphic_object):
12595         * tbl/main.c (format::~format):
12596         * tbl/table.c (table::~table):
12597         * refer/ref.c (reference::~reference, reference::merge,
12598         reference::insert_field, reference::delete_field): Use adelete.
12600         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
12601         * refer/token.h:
12602         * tbl/table.h: Corresponding changes.
12604         * common.c (common_output::dashed_arc, common_output::dotted_arc):
12605         Ensure total_angle is positive.
12607 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
12609         * refer/ref.c (reference::merge, reference::insert_field,
12610         reference::delete_field): Avoid delete[0].
12612         * refer/token.c (init_special_chars): Move calls to cmupper
12613         outside calls to init_two_char_letter to work around bug in gcc
12614         2.0.
12616 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
12618         * lib/new.c (operator new): Use __builtin_new for g++.
12620         * pic/object.c (graphic_object::~graphic_object):  Don't use
12621         delete [] on 0.
12623         * pic/object.c (output::compute_scale): Initialize max_width and
12624         max_height.
12626 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
12628         * troff/input.c (write_request): Call fflush.
12630         * troff/node.h (class composite_node): Move declaration to node.c
12631         * troff/input.c (charinfo_to_node): Rename to ...
12632         (charinfo_to_node_list): Return node list rather than composite
12633         node.
12634         * troff/node.c (make_composite_node): New function.
12635         (make_node, add_char): Call make_composite_node instead of
12636         charinfo_to_node.
12637         (class composite_node): Add a tfont * member.  Delete font_size
12638         member.
12639         (composite_node::composite_node, composite_node::copy,
12640         composite_node::size): Corresponding changes.
12641         (composite_node::tprint): Provide constant spacing, emboldening
12642         and track kerning as specified in tfont.
12643         (composite_node::width): Change width calculation accordingly.
12644         * troff/env.h (environment::composite): New member.
12645         (environment::is_composite, environment::set_composite): New
12646         functions.
12647         * troff/env.c (environment::environment): Initialize composite.
12648         * troff/input.c (charinfo_to_node): Call
12649         environment::set_composite.
12650         * troff/node.c (make_composite_node, make_glyph_node): Use the
12651         plain version of the tfont if the environment is composite.
12653         * troff/node.c (font_info::get_space_width): Additional argument
12654         giving space_size.  Handle constant space correctly. Scale by
12655         space_size unless constant spaced.
12656         (env_sentence_space_width): New function.
12657         * troff/node.h: Declare it.
12658         * troff/env.h (environment::get_space_size,
12659         environment::get_sentence_space_size,
12660         environment::get_narrow_space_width,
12661         environment::get_half_narrow_space_width): Make inline.
12662         (environment::get_space_width): Make inline.  Just call
12663         env_space_width.
12664         * troff/env.c: Delete definitions for funtions made inline.
12665         (environment::space_newline, environment::space): Use
12666         env_sentence_space_width(). Don't scale by space_size.
12667         * troff/node.h: Move declarations of env*space_width() functions
12668         into env.h.
12670 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
12672         * macros/tmac.s (PS): Don't try to set negative indent.
12674 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
12676         * pic/pic.y: Fix min function.
12678 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
12680         * man/mdate.sh: Clear LANGUAGE.
12682 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
12684         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
12685         * pic/lex.c: New COMMAND keyword.
12686         * pic/pic.y (print_args, print_arg): New rules.
12687         (placeless_element): Use print_args for PRINT.
12688         New COMMAND element.
12690 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
12692         * troff/input.c (terminal): Handle missing argument correctly.
12694         * pic/pic.y (text_expr): New rule.
12696         * pic/pic.y: Implement := operator.
12698 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
12700         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
12701         mdoc.
12703 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
12705         * ps/devps/dingbatsrmap: Include this in the distribution.
12707         * macros/tmac.doc: Replace with new version from 2nd Networking
12708         Release. Fix loading of doc-* files.
12709         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
12710         * macros/tmac.doc.old: New file.  Apply fixes that had been
12711         applied to old tmac.doc.
12712         * macros/tmac.andoc: Check that we're running under groff.
12713         * macros/Makefile: Rework.
12715 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
12717         * tbl/table.h (format_type): 
12718         * refer/token.h (token_type): If NESTED_TYPES is defined, use
12719         typedef to make these types visible at file scope.
12720         * Makefile: Add NESTED_TYPES configuration option.
12722         * troff/div.c (mark): At the top level use the value of
12723         nl_reg_contents rather than the current vertical position.
12725 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
12727         * tty/tty.c: Implement \D for horizontal or vertical lines.
12728         (tty_printer::set_char): Use vec_used+2 as serial number.
12729         Don't allow size of vector to exceed USHRT_MAX-2.
12730         Split off part into...
12731         (tty_printer::add_char): New function.
12732         (tty_printer::draw): New function.
12733         (compare_glyph): Handle equal serial numbers.
12734         (tty_printer::end_page): Handle overstruck characters from \D.
12735         (main, usage): Implement -d option.
12737 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
12739         * tbl/main.c (process_format):
12740         * eqn/text.c (split_text):
12741         * troff/input.c (token::next): Use inner block for declarations
12742         with initializers in switch statement.
12744 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
12746         * pic/common.c (common_output::dash_line): Cope with zero-length
12747         lines.
12749 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
12751         * Version 1.04 released.
12753 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
12755         * macros/tmac.an (TH): Define a macro an-init to define variables
12756         based on command line arguments.
12757         (an-header): Call it.
12759 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
12761         * Makefile (install.mm): Rename to install.dwbmm.
12763         * Makefile: Integrate mm.
12764         * mm: New directory.
12766 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
12768         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
12769         <sys/types.h>.
12771         * pic/troff.c (troff_output::simple_spline,
12772         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
12773         shadowing parameter.
12775         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
12777         * lib/ptable.h: Add explicit casts when converting from unsigned
12778         long to unsigned.
12780         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
12781         * dvi/devdvi/Makefile: Install SA, SB.
12783         * refer/indxbib.c: Add declaration of mktemp.
12785         * refer/lookbib.c: Add declaration of isatty.
12787 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
12789         * pic/lex.c (interpolate_macro_with_args):  While collecting
12790         arguments, keep track of whether we're in a string.
12792 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
12794         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
12795         down with \v, so as to avoid problems with top of page trap
12796         setting no space mode.
12798 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
12800         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
12802 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
12804         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
12805         Improve error message.
12807 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
12809         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
12810         printf("%03o");
12812 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
12814         * groff.c (possible_command::execp): Always use _exit() after a
12815         failed exec.
12817         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
12818         NO_SYS_WAIT_H   configuration options.
12819         * groff.c: Use these options.  Use POSIX-style macros to extract
12820         fields from the status returned by wait().
12822 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
12824         * tbl/table.c (table::compute_separation_factor): Allow the
12825         separation factor to drop to 0.
12827 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
12829         * refer/search.c: Include <errno.h>.
12831 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
12833         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
12835         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
12836         C++. 
12838         * pic/lex.c (input_stack::bol): Move definition out of class body.
12840         * pic/main.c: On MSDOS munge argv[0].
12842         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
12844         * lib/ptable.c (hash_string): Use unsigned long rather than
12845         unsigned.
12846         (next_ptable_size): Use unsigned rather than int.  Give an error
12847         message if we've hit the largest table size.
12848         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
12849         table size.
12851         * pic/object.h (object_spec): Make flags unsigned long.  Declare
12852         flags as const unisgned long rather than as enums.
12854         * pic/output.c: Deleted.
12856         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
12858         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
12859         Add additional argument.
12860         (line_entry::note_double_vrule_on_{left,right}): Set value of
12861         douvle_vrule_on_{right,left} flag according to argument.
12862         (simple_line_entry::simple_print,
12863         simple_line_entry::double_line_print): If adjacent to double vrule
12864         on a corner extend rather than shorten the rule by half the double
12865         vrule sep.
12867         * troff/number.c (parse_term): In checking for overflow, handle the
12868         case where the current horizontal position is negative.
12870 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
12872         * pic/object.c (draw_arrow): Check for object having zero length.
12874 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
12876         * eqn/main.c (do_file): Split off inline equation handling into...
12877         (inline_equation): New function.  Search for starting delimiter
12878         using...
12879         (delim_search): New function. Don't recognize a delimiter that
12880         occurs in the name of an escape sequence, number register, string
12881         etc.
12883 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
12885         * eqn/delim.c (delim_box::compute_metrics): Don't call
12886         define_extensible_string if left is 0.
12887         (delim_box::output):  Don't print the left delimiter if left is 0.
12888         (delim_box::debug_print): Check for left == 0 before calling printf.
12890 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
12892         * troff/Makefile (majorminor.c): Include only digits in
12893         minor_version.
12895 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
12897         * refer/dirnamemax.c: new file.
12898         * refer/genlimits.c: Deleted.
12899         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
12900         Don't check path length.
12901         * refer/Makefile: Add dir_name_max.o; delete genlimits.
12902         * Makefile: Add PATHCONF_MISSING option.
12904         * refer/indxbib.c (get_cwd): New function.
12905         (main): Use get_cwd().
12906         * lib/getcwd.c: New file.
12907         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
12908         GETCWD in SUBFLAGS.
12909         * lib/Makefile: Compile getcwd.o.
12911         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
12912         userdict.
12914         * refer/indxbib.c (main): Check success of mktemp.
12916         * lib/tmpfile.c: New file.
12917         * lib/Makefile: Add tmpfile.c.
12918         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
12919         * ps/ps.h: Delete declaration of mktemp().
12920         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
12921         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
12922         * driver/driver.h: No need now to include errno.h.
12924         * everywhere: Set errno to 0 before calling fopen().
12926         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
12927         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
12928         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
12930 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
12932         * troff/env.h (translate_space_to_dummy): Declare it.
12933         * troff/env.c (environment::space_newline, environment::space):
12934         If translate_space_to_dummy is set then make the width of spaces 0.
12935         * troff/input.c (translate): If the second character of a
12936         translation is a space, translate to unbreakable space.  If the
12937         first character is a space, set or clear translate_space_to_dummy
12938         according to whether the second character is \&.  Weird!
12940 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
12942         * groff.c (run_commands): Don't use non-zero exit code because a
12943         command gets SIGPIPE.
12945         * groff.c, groff.sh: Use -mXps with -TXps.
12947         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
12948         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
12949         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
12950         (ps_printer::special): New specials invis and endinvis.
12951         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
12952         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
12953         (ps_printer::end_page): Check that invis_count == 0.
12954         (ps_printer::invis_count): New member.
12955         (ps_printer::ps_printer): Initialize invis_count to 0.
12957         * troff/env.c (environment::hyphenate_line): Hyphenation
12958         indicator at beginning of word inhibits splitting after -, \(em
12959         etc.
12961         * pic/pic.y (element): Allow another element to follow } without
12962         any intervening separator.
12964 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
12966         * pic/lex.c (get_delimited): Allow tabs before delimiter.
12968 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
12970         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
12971         declaration of wait() in header files.
12972         * Makefile: Get rid of -DHAVE_UNION_WAIT.
12974         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
12976         * lib/lib.h: Declare return type of strerror as char *.
12978         * man/Makefile: Add g flag to sed substitutions.
12979         * Makefile (shgroff, bindist): Likewise.
12981 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
12983         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
12984         * ps/devps/prologue (PBEGIN): Define showpage after pushing
12985         userdict.
12987 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
12989         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
12990         userdict.
12992 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
12994         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
12995         group.
12997 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
12999         * troff/input.c (define_number_reg):  If currently undefined,
13000         don't define it if the argument is an invalid expression.
13002         * Makefile: Ignore return value of `if' commands without `else'
13003         parts.
13005         * Makefile: Split up CPPDEFINES into a series of separate
13006         configuration options.
13008         * troff/input.c (init_registers): Use time_t instead of long
13009         unless LONG_FOR_TIME_T is defined.  Use returned result rather
13010         than passing pointer.
13011         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
13013         * lib/Makefile (fontpath.h): Use gendef.
13015 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
13017         * troff/input.c (input_iterator::shift): Delete argument name.
13018         * troff/node.c (suppress_output_file::really_begin_page,
13019         suppress_output_file::really_transparent_char, node::ascii_print,
13020         node::tprint): Delete names of unused arguments.
13022 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
13024         * refer/label.y (string):  Pass $4 to command_error.
13026 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
13028         * Version 1.03 released.
13030 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
13032         * Makefile: Pass definition of SHELL in SUBFLAGS.
13034         * gendef: New file.
13035         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
13036         ps/Makefile: Use gendef to construct header files that are
13037         constructed from the Makefile.
13039         * macros/Makefile: make all should build stripped version of tmac.e.
13041         * refer/Makefile (clean): Remove y.output.
13043 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
13045         * ps/pfbtops.c (main): Add -v option which prints out a version
13046         number.
13047         * ps/Makefile (pfbtops): Link with libgroff.a.
13049 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
13051         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
13052         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
13054         * refer/lkbib.c (main): Always terminate reference with blank
13055         line.
13056         * refer/lookbib.c (main): Likewise.
13058         * refer/linear.c (file_buffer::load): Check that the file is not a
13059         binary file.
13061         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
13062         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
13063         Delete second inclusion of <sys/param.h>.
13065 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
13067         * troff/token.h (token::special): Deleted.
13069         * tbl/main.c (process_format): Rework so that opt->tab_char is
13070         recognized only when appropriate.
13072         * ps/Makefile (clean): Remove pfbtops.
13074 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
13076         * lib/font.c (text_file::next): Don't return if we have got a
13077         blank line.
13079 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
13081         * refer/refer.c (store_reference): Get hash code from old_table[i]
13082         when rehashing the table.
13084 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
13086         * eqn/box.c (box::top_level): Save size and prev size using \R and
13087         restore it afterwards. Set the size to the size at the beginning
13088         of the line.
13089         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
13090         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
13092         * refer/Makefile (limits.h): Use ./genlimits.
13094 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
13096         * refer/index.c: Delete declarations of stat() and fstat().
13098 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
13100         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
13102 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
13104         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
13106 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
13108         * troff/input.c (token::get_char): Handle \e.
13110         * refer/linear.c: Delete declarations of fstat() and stat().
13112 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
13114         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
13115         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
13117 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
13119         * troff/input.c (do_define_macro): Improve error handling for end
13120         of file while defining macro.
13122 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
13124         * eqn/box.h: Fix declaration of set_gsize.
13125         * eqn/box.c (set_gsize): Make argument const char *.
13126         (gsize): Declare as char *.
13127         * eqn/main.c (main): Don't convert gsize to int.
13128         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
13130         * Version 1.02 released.
13132 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
13134         * macros/tmac.andoc: New file.
13135         * macros/Makefile: Install tmac.andoc.
13137         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
13138         operator new and delete on OP_DELETE_BROKEN not being defined.
13139         * Makefile: Mention OP_DELETE_BROKEN.
13141 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
13143         * Makefile (bindist): Pass SUBFLAGS.
13145 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
13147         * Makefile, groff.c: Pass definitions to groff.c via device.h.
13149         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
13150         parameter.
13152         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
13154         * ps/ps.h, ps/psrm.c: Make comment_table and
13155         header_comment_table local to resource_manager::process_file.
13157         * groff.sh: With -TXps pass -printCommand option to gxditview.
13159         * groff.c (possible_command::print): Implement using
13160         append_arg_to_string.
13162         * xditview: Merge in new implementation with own ChangeLog.
13164 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
13166         * groff.c (main): Implement PRINT_OPTION.
13167         (append_arg_to_string): New command.
13168         (device_table): Set PRINT_OPTION flag for Xps.
13170 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
13172         * troff/groff.h: Rename to troff.h.
13174         * pic/lex.c (lookup_keyword, docmp): New functions.
13175         (get_token): Use new lookup_keyword.
13176         Don't include key.h.
13177         * pic/key.[ch], pic/pic.gperf: Deleted.
13178         * pic/Makefile: Remove gperf stuff.
13180         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
13181         into output.h.
13182         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
13184         * troff/Makefile, troff/node.c: Move definition of
13185         STORE_WIDTH into node.c.
13187         * etc/grog.pl, etc/grog.sh: Support -mdoc.
13189 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
13191         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
13192         dvi/devdvi/texb.map: Add lq and rq.
13193         dvi/devdvi: Regenerate fonts.
13194         * ps/devps/textmap: Add lq and rq.
13195         * ps/devps: Regenerate fonts.
13196         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
13197         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
13199         * pic/object.c (position_rectangle): When checking radius
13200         cope with possiblity that width or height is negative.
13201         (box_object::box_object): Have separate xrad and yrad with
13202         signs matching signs of dim components.
13203         (box_object::{north,south}_{east,west}): Use xrad and yrad.
13204         (box_object::print): With rounded boxes use absolute values
13205         for dim and rad arguments.
13207         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
13208         in fontpath.h.
13210         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
13212         * various files: Add explicit destructors to keep Saber CC +d
13213         happy.
13215 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
13217         * eqn/box.c (box::top_level): Restore fonts correctly after
13218         font changes in line containing inline equation.  Also
13219         restore previous font as well as current font.
13220         * eqn/pbox.h: Define necessary string and register names.
13222         * troff/input.c (token::next): Case 'R' calls do_register.
13223         (do_register): New function.
13225 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
13227         * groff.c, groff.sh: Support Xps device.  Allow each device
13228         to have a pseudo_name and a real_name.
13230         * groff.c (run_commands): Don't print `Broken pipe' messages.
13232         * ps/pfbtops.c: New file.
13233         * ps/Makefile: Add pfbtops.
13235         * troff/number.c (parse_term): Improved error message.
13237 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
13239         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
13241         * Makefile: Integrate refer.
13242         * refer: New directory.
13243         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
13244         man/lkbib.man: New files.
13245         * man/Makefile: Support refer man pages.
13247         * lib/lib.h: Declare is_prime.
13248         * lib/prime.c: New file.
13250         * troff/input.c (macro_source): New function.
13251         (init_input_requests): Bind "mso" to macro_source.
13253         * troff/env.c (environment::possibly_break_line): Maintain
13254         pointer to pointer to node to be split in ndp so as to avoid
13255         using address of freed node.
13257         * troff/env.c (environment::hyphenate_line): Maintain pointer to
13258         pointer to first node to be hyphenated in startp so as to
13259         avoid using address of freed node.
13261         * troff/env.c (class trie, class hyphen_trie): Make the
13262         elements of the trie be of type char not unsigned char.
13263         Declare arguments to be const char* instead of unsigned char *.
13264         
13265         * troff/env.c (hyphenate): Initialize hbuf[0].
13267         * troff/input.c (set_string): Declare p to be char * and cast
13268         *p to unsigned char when necessary.
13270         * troff/input.c (do_define_macro): Declare s to be const
13271         char*. Cast element to unisgned char when necessary, Declare
13272         d to be an int.  Handle EOF better.
13274         * troff/Makefile, troff/input.c: Different scheme for passing
13275         definitions of MACROPATH, HYPHENFILE and DEVICE.
13277 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
13279         * tty/devascii/R.proto: Delete entry for em.
13280         * tty/devlatin1/R.proto: Likewise.
13282 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
13284         * troff/input.c (translate): Stop when we get a space. Treat eof
13285         like newline.
13287         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
13289 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
13291         * tbl/main.c (process_format): A font name following a `f'
13292         modifier that starts with a digit can be only one character long.
13293         Also deal with EOF on the second character of the font name.
13295 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
13297         * troff/input.c (token::next): Turn \~ into an
13298         unbreakable_space_node.
13299         * troff/node.c (unbreakable_space_node): New class.
13300         * troff/node.h: Declare it.
13302 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
13304         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
13305         it's >= 0, before outputting it as a single byte.
13307 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
13309         * lib/font.c: Make font_char_metric::code an int.
13310         (font::get_code): Change return type to int.
13311         (font::load): Allow code to be arbitrary integer.
13312         * lib/font.h (font::get_code): Change return type to int.
13313         (font::number_to_index): Change argument type to int.
13314         * troff/input.c (token::next):  In case 'N', allow any value.
13315         Store value in token::val.
13316         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
13317         (token::get_char, token::add_to_node_list, token::process): Get
13318         number from val.
13319         (charinfo::set_number): Change argument to int.
13320         (charinfo::get_number):  Require that NUMBERED flag be set.
13321         (get_charinfo_by_number): Store numbered characters not between 0
13322         and 255 in a dictionary.
13323         * troff/charinfo.h (get_charinfo_by_number): Change argument type
13324         to int.
13325         (charinfo::number): Change type to int.
13326         (charinfo::set_number): Change type of set_number to int.
13327         * troff/node.c (troff_output_file::put_char_width,
13328         troff_output_file::put_char): Test whether character is numbered
13329         using charinfo::numbered().
13330         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
13331         values of num.
13332         * lib/nametoindex.c: New implementation to cope with arbitrary
13333         number characters.
13335         * troff/input.c (token::operator==): Test val for
13336         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
13337         TOKEN_SIZE.
13339         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
13340         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
13342 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
13344         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
13345         variable.
13347         * all Makefiles: rm targets of cp and >.
13349         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
13350         it.
13352         * eqn/lex.c (def_table): Add dollar.
13354 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
13356         * troff/input.c (do_width): Push back newline before closing delim
13357         like do_bracket.
13359 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
13361         * groff.c (possible_command::prepend_arg): New function.
13362         (main): Prepend device -m option.
13363         * groff.sh: Put device -m options before command-line options.
13365 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
13367         * macros/tmac.an (IP): Quote argument to TP.
13369         * ps/ps.c (main): New option -b, which sets...
13370         (broken_flags): New variable.
13371         (ps_printer::~ps_printer): Incorporate the setup section in the
13372         prolog if (broken_flags & NO_SETUP_SECTION).
13373         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
13374         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
13375         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
13376         ps_printer::print_needed_font_comment,
13377         ps_printer::print_supplied_font_comment,
13378         ps_printer::print_include_font_comments,
13379         ps_printer::lookup_doc_font, ps_printer::download_fonts,
13380         ps_printer::read_download_file, read_document_fonts, add_font,
13381         skip_line, parse_fonts_arg, document_font::document_font,
13382         document_font::~document_font, document_font::download,
13383         ps_output::include_file):  Deleted.
13384         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
13385         rather than %!PS-Adobe-2.0.  Make calls to
13386         resource_manager::need_font for each font that we used. Replace
13387         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
13388         print_supplied_font_comment, print_needed_font_comment by call to
13389         resource_manager::print_header_comments. Output %%Orientation
13390         comment. Output %%Requirements: numcopies comment if ncopies > 1.
13391         Don't output the prolog directly.  Instead call
13392         resource_manager::output_prolog.  Only define #copies when ncopies
13393         > 1.  Delete calls to print_include_font_comments  and
13394         download_fonts.  Add call to resource_manager::document_setup.
13395         (ps_printer::do_file): Call resource_manager::import_file instead
13396         of including it ourselves.
13397         (ps_printer::do_import): Likewise.  Also don't call
13398         merge_import_fonts. Push userdict on the dictionary stack before
13399         and pop it afterwards.
13400         Move declaration of ps_output into ps.h.
13401         * ps/psrm.c: New file implementing resource_manager class.
13402         * ps/ps.h: New file declaring ps_output and resource_manager
13403         classes.
13404         * ps/devps/zapfdr.ps:
13405         * ps/devps/symbolsl.ps:
13406         * ps/devps/prologue:  Use 3.0 conventions.
13407         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
13408         Add default definition of BROKEN_SPOOLER_FLAGS.
13409         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
13410         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
13412 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
13414         * etc/grog.pl: New file.
13415         * Makefile (GROG): New variable.
13416         Add GROG to SUBFLAGS.
13417         * etc/Makefile (GROG): New variable.
13418         (install.nobin): Install $(GROG) rather than grog.sh.
13420 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
13422         * eqn/special.c (special_box::compute_metrics): Make the input and
13423         output strings the same.  Get the new height and depth from the
13424         predefined height and depth registers.  Also make subscript kern
13425         and skew available.
13426         (special_box::compute_subscript_kern, special_box::compute_skew):
13427         New functions.
13429         * eqn/box.c (pointer_box::compute_skew,
13430         simple_box::compute_metrics, box::top_level)
13431         * eqn/text.c (prime_box::compute_metrics,
13432         prime_box::comput_subscript_kern)
13433         * eqn/limit.c (limit_box::compute_metrics):
13434         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
13435         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
13436         negative numbers in `nr' requests with a leading 0.
13438 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
13440         * eqn/special.c: New file.
13441         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
13442         Add new rule for simple.
13443         * eqn/lex.c (token_table): Add SPECIAL.
13444         * eqn/box.h: Declare make_special_box.
13445         * eqn/Makefile: Add special.[co].
13447 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
13449         * ps/devps/prologue: Possibly set packing to true while defining.
13450         Create grops dictionary here.  Initialize local variables before
13451         defining procedures.
13452         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
13453         the dictionary stack. Set strokeadjust and overprint to false if
13454         the relevant operators are defined.
13455         (PEND): New procedure.
13456         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
13457         prologue.  Do everything else in the setup section.
13458         (ps_printer::do_import): Just call PBEGIN and PEND around the
13459         picture. Also push userdict before, and pop it afterwards.
13461 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
13463         * troff/node.c (bracket_node::tprint): Brackets were being printed
13464         1m too low.
13466         * macros/tmac.an (SH, SS): Set fill mode.
13468 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
13470         * troff/div.c (top_level_diversion::begin_page): Set
13471         high_water_mark to 0.
13473 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
13475         * man/mdate.sh: New file.
13476         * man/mdate.c: Deleted.
13477         * man/Makefile: Use mdate.sh instead of mdate.
13478         (mdate): Deleted.
13480         * eqn/lex.c (do_gsize): Supply missing argument to error message.
13482 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
13484         * man/mdate.c: New file.
13485         * man/*.man: Replace modification date by @MDATE@.
13486         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
13487         (mdate): New target.
13489         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
13490         Remove illegal input characters.
13492 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
13494         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
13496 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
13498         * troff/div.c (begin_page): Change behaviour when
13499         !first_page_begun and !break_flag.
13501         * troff/input.c (do_name_test): Return 0 if argument is empty.
13503         * troff/input.c (read_long_escape_name): Require closing ] to be
13504         at same input level as opening [.
13506         * troff/input.c (read_increment_and_escape_name): New function.
13507         (get_copy, process_input_stack): Use this for \n.
13509 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
13511         * troff/div.c (top_level_diversion::begin_page): Ignore the
13512         current value of page_number if !first_page_begun.
13514         * groff.c (main): Fix declaration of buf.
13516         * troff/input.c (do_name_test): New function.
13517         (token::next): Implement \A.
13518         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
13519         (token::description, token::add_to_node_list, token::process):
13520         Handle TOKEN_ESCAPE.
13521         * troff/token.h: New token TOKEN_ESCAPE.
13523 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
13525         * pic/main.c (do_picture): Allow space before and after filename
13526         following `<'.  Check that the filename is not empty.
13528 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
13530         * Version 1.01 released. 
13532         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
13534         * dvi/tmac.dvi: ftr HR to H.
13536         * macros/tmac.e: Round up computation of $r.
13538         * xditview/tmac.X:  Don't give up completely in compatibility mode.
13539         Use \n(.s instead of \n[.s].
13541         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
13542         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
13543         Add u to factors inside \s[...]. Rename frac to dvi-frac.
13544         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
13545         short names in the char definitions.
13547         * ps/tmac.ps: Don't give up completely in compatibility mode.
13548         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
13549         quote in front of \n(.s. Add u to factors inside \s[...].
13551 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
13553         * tty/tmac.tty: Call the nroff request.
13555         * macros/tmac.e ((x, )x):  Better definitions that work properly
13556         in a diversion.
13557         (@0, @1): Helper macros for (x.
13559         * macros/tmac.e ($s, hl): Use \l rather than \D.
13561         * tty/tmac.tty: Make it work better in compatibility mode.
13562         (pchar): Rename to tty-char.
13564         * macros/tmac.e (@E): New macro.
13565         (r, i, b, rb, bi): Use @E.
13567         * macros/tmac.e (@F): Don't use (;...) syntax.
13569         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
13570         it was modified for groff.
13572         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
13574         * macros/tmac.e (<., .>): Removed.
13575         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
13577         * macros/tmac.e: Remove check that groff is being used.
13579         * macros/tmac.e (@C): Change families only if using groff; turn
13580         compatibility mode off while changing familes. Save compatibility
13581         mode before changing families and restore it afterwards.
13583         * macros/tmac.e (@h): Remove test for offset + line length.
13585         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
13586         (lo, th, ac): Define to call @S instead of using als.
13588         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
13589         the ratio of the vertical spacing to the point size in units
13590         expressed as a percentage.  Use these instead of $10r and $10R,
13591         Delete $10r and $10R.
13593         * lib/font.c (font::load): In default computation of space_width,
13594         divide by sizescale.  Use scale_round.
13596         * macros/tmac.an (TP): Don't call `nf'.
13597         (an-do-tag): Don't call `fi'.
13599 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
13601         * troff/input.c (process_input_stack): Handle the case where
13602         spaces at the beginning of an input line are followed by a
13603         newline.
13605 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
13607         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
13608         * groff.sh: Use pic -x with the dvi device.
13610         * dvi/devdvi/FontMakefile (H): Don't use -s.
13612         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
13613         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
13614         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
13615         in FONTS.
13617 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
13619         * ps/psfig.diff: New file.
13620         * ps/tmac.psfig: New file.
13622 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
13624         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
13625         (]-): Don't call ref*do-tl.
13627         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
13629         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
13630         (fn@do-FS): Rename to fn*do-FS.
13632         * troff/input.c (transparent_translate): New function.
13633         (process_input_stack): Apply transparent_translate before calling
13634         diversion::transparent_output(unsigned char).
13636 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
13638         * troff/input.c (do_define_macro): Define the macro before calling
13639         skip_line.
13641         * xditview/Makefile: Add DEVICES variable.  Change install target
13642         to use this.
13644 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
13646         * groff.c (run_commands): Handle the possibility that there are
13647         child processes other than those forked by us.
13649 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
13651         * lib/string.c (string::append): New function.
13652         * lib/stringclass.h: Declare it.
13654 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
13656         * eqn/main.c (main): New option -N which sets
13657         no_newline_in_delim_flag. 
13658         (do_file): If no_newline_in_delim_flag is set don't allow newlines
13659         in delimiters.
13660         * groff.c (main): Pass -N on to eqn.
13661         (help, synopsis): Mention -N.
13662         * groff.sh: Implement -N.
13664 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
13666         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
13667         (]-): Call ref*do-tl if ref*need-tl is non-zero.
13668         (XP): Allow as initializer.
13670 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
13672         * troff/env.c (environment::wrap_up_field): If field_spaces are
13673         non-zero and we have a current_tab, subtract padding from
13674         tab_distance.  If this makes tab_distance <= 0, use the next tab
13675         stop instead.  If there isn't any next tab or it's a left tab,
13676         wrap up the current tab.
13677         (environment::start_field): Initialize tab_precedes_field.
13678         (environment::wrap_up_tab): If there's a current field, update
13679         pre_field_width, field_distance and tab_precedes_field.
13680         * troff/env.h (environment::tab_precedes_field): New member.
13682 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
13684         * ps/ps.c (ps_printer::do_file): New function.
13685         (ps_printer::special): Bind to `file' special.
13686         (ps_printer::do_exec): Set ndefined_styles to 0.
13688 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
13690         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
13691         Avoid stripping first character from the start of unrecognized
13692         escapes.  Use lex_error instead of error to report errors.
13693         * eqn/lex.c (get_token): Rework handling of escapes.
13694         (lex_error): Move declaration into...
13695         * eqn/eqn.h.
13697         * xditview/xditview.c (main): Make -page option work.
13699         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
13701 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
13703         * macros/tmac.s (B2): Correct size of box.
13705 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
13707         * macros/tmac.s (B2): Postpone drawing the box until in the
13708         top-level diversion.
13710         * tty/tmac.tty: Add font translations for C, CR, CW.
13712         * groff.c (synopsis, help): Document -i.
13713         * groff.sh: Implement -i.
13715         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
13716         Simplify the construction of SN.
13718         * troff/number.c (parse_term): Give `|' a higher precedence.
13719         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
13720         accordingly.
13722         * macros/tmac.s (B2): Use par@finish instead of par@reset.
13724 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
13726         * lib/string.c (string::move): New function.
13727         * lib/stringclass.h: Declare it.
13729 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
13731         * troff/env.c (distribute_space): Add optional argument
13732         `force_forward'.
13733         (environment::wrap_up_field): Call distribute_space with
13734         `force_forward' argument of 1.
13736 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
13738         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
13739         Inline it.  Move reallocation into...
13740         (string::grow1): New function.
13741         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
13742         dependencies to include library header files.
13743         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
13745 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
13747         * macros/tmac.s (@NH): Use the same number registers than -ms does
13748         for the heading level counters.  Use the same string that -ms does
13749         for the number for this heading.
13751 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
13753         * lib/new.c (operator new): Cast result of malloc to char *.
13755         * troff/input.c (spring_trap, lookup_request): Add assert that nm
13756         is not null.
13758 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
13760         * groff.c (main): Support -i.
13762 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
13764         * pic/pic.h: Include <osfcn.h>.
13766         * ps/ps.c: Add declaration of mktemp.
13768         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
13769         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
13770         argument as union wait *.
13771         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
13772         argument to union wait *.
13774 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
13776         * tty/tmac.tty: Add definition of \(co.
13778         * pic/object.c (make_arc): Only increase radius when radius
13779         strictly less than d.
13780         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
13781         more than once.
13783         * troff/env.c (environment::environment(symbol),
13784         environment::environment(const environment *)):  Initialize
13785         input_trap_count.
13787 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
13789         * tbl/main.c (main): Add exit(0).
13791         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
13793         * pic/main.c (main):
13794         * eqn/main.c (main):
13795         * tbl/main.c (main):
13796         * etc/soelim.c (main):
13797         * driver/printer.c (printer::~printer):
13798         * troff/node.c (real_output_file::~real_output_file,
13799         real_output_file::flush):  Check for errors on stdout.
13801         * most files: Add 1991 to copyright notice.
13803         * macros/tmac.s: Don't test \n(.x and \n(.y.
13805         * troff/input.c (token::next): Rename `escape_char' label to
13806         `handle_escape_char' and `normal_char' label to
13807         `handle_normal_char'.
13809 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
13811         * groff.c (main, synopsis, help): Support -a option.
13812         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
13813         to trflags while parsing options.
13815 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
13817         * troff/number.c (parse_term): With `m', `M' and `n' scale
13818         indicators, convert scale factor to hunits before scaling.
13820 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
13822         * lib/font.c (scale_round): Better test for overflow when n is
13823         negative.
13825 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
13827         * tbl/main.c (process_format): Add second argument of type
13828         options*. Change callers.  Allow opt->tab_char as well as '\t'
13829         between format items.
13831 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
13833         * macros/tmac.an (PD): With no arguments, make sure register PD is
13834         at least \n[.V].
13835         (TH): Call PD with no argument, instead of setting register PD
13836         directly.
13838 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
13840         * Version 1.00 released.
13842 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
13844         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
13846         * dvi/devdvi/DESC: Mount CW instead of CR.
13848         * dvi/tmac.dvi: Add definition of \(tm.
13850         * dvi/devdvi/texsy.map: Add lh, and rh.
13851         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
13852         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
13854         * dvi/devdvi/FontMakefile: Generate H from cmss10.
13855         * dvi/devdvi/Makefile: Install H.
13856         * dvi/devdvi/H: New file.
13858 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
13860         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
13861         be 0.
13863 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
13865         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
13867         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
13869         * macros/tmac.s (@EN): Handle the case where the equation is empty
13870         but the label is not.
13872 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
13874         * troff/groff.h: New warning category WARN_SPACE.
13875         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
13876         WARN_SPACE to warning_table.
13877         (interpolate_macro): Give a warning of type WARN_SPACE if the name
13878         is longer than two characters and is not defined, but the first
13879         two characters do make a defined name.
13881         * PROBLEMS: New file.
13883         * CHANGES: New file.
13884         * README-0.6, README-1.00: Deleted.
13886         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
13887         * xditview/devX75/Makefile: Make devX75-12.
13888         * xditview/devX100/Makefile: Make devX100-12.
13890         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
13891         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
13893 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
13895         * README-0.7: Rename to README-1.00.
13897         * macros/tmac.pic: New file.
13898         * macros/Makefile (install.nobin): Install tmac.pic.
13900 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
13902         * troff/env.c (hyphen_word): Correct the test for whether the
13903         token is a hyphen.  Reset npos to 0.
13905         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
13907 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
13909         * macros/tmac.s (ds*common-end): Call par*reset.
13910         (PE): Likewise.
13911         (par@reset-indent): Deleted.
13913         * macros/tmac.s (@IP): Divert the label.
13915 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
13917         * xditview/draw.c (setGC): Use a line width of .1m rather than
13918         .04m by default; round rather than truncate value.
13920         * tbl/table.c (class empty_entry): New class.
13921         (empty_entry::empty_entry, empty_entry::line_type): New functions.
13922         (table::add_entry): Represent empty entries by objects of type
13923         empty_entry.
13924         (table_entry::line_type): Return -1.
13925         (table::determine_row_type): Ignore entries with line_type 0.
13926         Treat type -1 as non-lines.
13928 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
13930         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
13931         macros/tmac.s: Rename \(-d to \(Sd.
13933 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
13935         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
13936         * xditview/libXdvi/DviChar.c: Likewise.
13937         * dvi/devdvi/texsy.map: Add `<<', `>>'.
13939 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
13941         * troff/div.c (top_level_diversion::begin_page): Call
13942         init_output() if the_output is 0.
13944 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
13946         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
13947         ESCAPE_c.
13948         (get_copy): Turn \E into ESCAPE_E.
13949         (token::process, asciify): Handle ESCAPE_E.
13951         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
13952         (RD): New macro.
13953         (DS): Implement `.DS R'.
13955 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
13957         * macros/tmac.s (FS): New macro.
13959         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
13961         * macros/tmac.s (cov*tl-init): Remove after first execution
13962         instead of aliasing to @nop.  Call top of page macro explicitly
13963         instead of setting trap; call @init first.  Set pg@top as top of
13964         page macro.
13965         (cov*auto-init): Deleted.  Set cov*tl-init instead of
13966         cov*auto-init as top of page trap. 
13967         (TL, LP): Do a break instead of calling cov*tl-init.
13968         (cov*print): With RP format but no TL, alias FS and FE to @FS and
13969         @FE; in this case also give a warning and always start another
13970         page. No need to set pg@top here.
13971         (cov*tl-init): Rename to cov*first-page-init.
13973         * macros/tmac.s (RP): Do `.pn 0'.
13974         (cov*tl-init): With RP format don't do `.pn 0'.
13976         * macros/tmac.s (pg@cs-top): Set no space mode.
13978         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
13979         (cov*ab-init): Alias TL, AU and AI to these.
13981 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
13983         * macros/tmac.s (@EQ): Move the space before the equation into @EN
13984         (@EN): Do nothing unless \n[dl] is > 0.
13986 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
13988         * pic/object.c (ellipse_object::radius): New function.
13990         * VERSION: Change version to 0.7.
13992         * tbl/table.c (block_entry::do_divert): Declare return type as
13993         void.
13994         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
13996 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
13998         * troff/column.c: New file.
13999         * troff/Makefile: Corresponding changes.
14001         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
14002         Friend of vunits.
14004         * troff/div.c (top_level_diversion::space): If the space causes
14005         the first-page transition and springs a trap, truncate the space
14006         to 0.
14008 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
14010         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
14011         the document.
14013         * pic/troff.c (troff_output::line_thickness,
14014         troff_output::set_fill): Do a horizontal motion to compensate for
14015         the width of the \D escape sequence.
14017 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
14019         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
14020         (not X75).
14022         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
14023         to printf.
14025         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
14026         Supply empty definition.
14027         (text_entry::simple_print, simple_text_entry::simple_print):
14028         Delete declarations.
14029         (table::add_entry): Represent empty entries by objects of type
14030         `simple_entry'.
14032 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
14034         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
14036         * tbl/table.c (left_text_entry::add_tab): New function.
14038         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
14039         initialize like LP.
14041 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
14043         * troff/env.c (environment::start_field): Give an error message if
14044         there is no next tab.
14046 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
14048         * troff/env.c (hyphenate): Skip initial elements with zero
14049         hyphenation code.
14051         * macros/tmac.s (par@init): Keep VS in points rather than units.
14053 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
14055         * pic/main.c (main): Implement `-c' option.
14056         * pic/output.h: Declare make_tpic_output().
14057         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
14058         protected.
14059         (tpic_output): New class.
14060         (tpic_output::tpic_output, tpic_output::set_pen_size,
14061         tpic_output::command, make_tpic_output): New functions.
14063 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
14065         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
14066         if they're not already defined.
14067         * tbl/table.c (init_output): Don't test \n(.g.
14069         * troff/input.c (do_if_request): Delete `g' condition. Recognize
14070         `d', `r' and `c' conditions even in compatibility mode.
14072 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
14074         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
14075         box.
14077 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
14079         * troff/env.h (environment::prev_line_interrupted): New member.
14080         (environment::get_prev_line_interrupted): New function.
14081         * troff/env.c (environment::newline): Set prev_line_interrupted.
14082         (environment::environment(const environment *),
14083         environment::environment(symbol)): Initialize
14084         prev_line_interrupted.
14085         * troff/input.c (process_input_stack): Don't give special
14086         treatment to space and newline at the beginning of the line if the
14087         previous line was interrupted.
14089 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
14091         * eqn/eqn.y: Disallow PRIME by itself.
14092         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
14093         PRIME.
14094         (def_table): Remove definition of '.  Define prime to be `.
14096         * eqn/eqn.y: Split off part of rule `script' into a new rule
14097         `nonsup'.
14099 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
14101         * macros/tmac.s ({, }): New string aliases.
14103 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
14105         * README-0.7: New file.
14107 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
14109         * macros/tmac.s: New file.
14110         * man/groff_ms.man: New file.
14111         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
14112         * Makefile.bd: Similarily.
14113         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
14114         definition of TMAC_S.
14115         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
14116         * macros/TODO: New file.
14118 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
14120         * troff/env.c (right_justify): New function.
14121         (init_env_requests): Bind this to request "rj".
14122         (center_lines): Set right_justify_lines to 0. If we get a bad
14123         integer, center 1 line.
14124         (environment::environment(symbol), environment::environment(const
14125         environment *)): Initialize right_justify_lines.
14126         (environment::get_right_justify_lines): New function.
14127         (init_env_requests): Bind this to number_register ".rj".
14129         * troff/env.c (environment::choose_breakpoint): Implement
14130         hyphenation_margin and hyphenation_space.
14131         (environment::get_hyphenation_space,
14132         environment::get_hyphenation_margin): New functions.
14133         (init_env_requests): Bind these to .hys and .hym.
14134         (hyphenation_space_request, hyphenation_margin_request): New
14135         functions
14136         (init_env_requests): Bind these to hys and hym.
14137         (environment::environment(symbol), environment::environment(const
14138         environment *)): Initialize hyphenation_margin and
14139         hyphenation_space.
14140         * troff/env.h: Corresponding changes to class environment.
14142 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
14144         * troff/div.c (blank_line): Always do a break.
14146         * eqn/box.c (do_text): Turn off escapes while appending text to
14147         string.
14149 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
14151         * troff/input.c (while_break_request, while_continue_request): New
14152         functions.
14153         (init_input_requests): Bind these to "break" and "continue".
14154         (while_depth, while_break_flag): New variables.
14155         (while_request): Update while_depth.  Break out of loop if
14156         while_break_flag is set.
14158 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
14160         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
14161         rather than 0.
14163 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
14165         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
14167         * stringify: New file.
14168         * Makefile (groff.o): Use stringify.
14170         * xditview/tmac.X: Remove definition of \(rn.
14171         * xditview/libXdvi/DviChar.c: Remove radicalex from
14172         Adobe_symbol_map.
14174 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
14176         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
14177         (alphabetic_block_entry::alphabetic_block_entry,
14178         alphabetic_block_entry::divert, alphabetic_block_entry::print):
14179         New functions.
14180         (block_entry::divert): Split off body into ...
14181         (block_entry::do_divert): If the block is alphabetic, subtract 2n
14182         from the line length; also update the span width to dl+2n, and the
14183         alphabetic span width to dl.
14185         * driver/input.c (do_file):  While reading argument to D command,
14186         when expanding buffer, multiply szp by sizeof(int) rather than 2
14187         in the argument to memcpy.
14189         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
14190         width of alphabetic columns.
14192 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
14194         * troff/node.c (lookup_family): Supply second argument to lookup.
14196         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
14197         search, return immediately if v is 0.
14199         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
14200         (troff_output::start_picture): Set this reg.
14201         (troff_output::end_picture): Remove this reg
14202         * eqn/box.c (box::extra_space): Don't produce `\x's if
14203         EQN_NO_EXTRA_SPACE_REG is defined.
14205         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
14206         * eqn/text.c (split_text): Map ' to \(fm when it's the first
14207         character.
14209 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
14211         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
14212         requests.
14214         * troff/div.c (top_level_diversion::top_level_diversion):
14215         Initialize page_number to 0.
14217 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
14219         * groff/troff (environment::environment(const environment *)):
14220         Initialize name to e->name, rather than "anonymous".
14222 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
14224         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
14225         requested_page.  Split middle part into ...
14226         (FindPage): New function.
14227         (SetValues): If we don't yet know the last page, and the requested
14228         page is greater than the current page, call FindPage.
14229         Update the font_map_string before doing this.
14231         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
14232         Translate \(lh and \(rh into left and right double arrows.
14234         * troff/node.c (class hyphen_inhibitor_node): New class.
14235         (hyphen_inhibitor_node::hyphen_inhibitor_node,
14236         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
14237         hyphen_inhibitor_node::type,
14238         hyphen_inhibitor_node::get_hyphenation_type): New functions.
14239         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
14240         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
14241         word.
14243 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
14245         * troff/node.h (dummy_node::get_hyphenation_type,
14246         transparent_dummy_node::get_hyphenation_type):  Declare them.
14247         * troff/node.c: (dummy_node::get_hyphenation_type,
14248         transparent_dummy_node::get_hyphenation_type): New functions.
14250 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
14252         * xditview/libXdvi/draw.c: If M_PI not defined after including
14253         math.h, then define it.
14255         * xditview/Makefile: Add definition of AR. Pass it to the submake
14256         in libXdvi.
14257         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
14259 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
14261         * troff/dictionary.h (object_dictionary::alias): Declare return
14262         value as int.
14263         * troff/dictionary.c (object_dictionary::alias): Return non-zero
14264         if the old name was defined.
14265         * troff/input.c (alias_macro): Give a warning if the old name was
14266         not defined.
14267         * troff/reg.c (alias_reg): Likewise.
14269 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
14271         * troff/input.c (token::next): Delete implementation of \R.
14273         * macros/Makefile: Strip comments from tmac.e while installing it.
14275         * troff/input.c: New variable `nroff_mode'.
14276         (troff_request, nroff_request): New functions.
14277         (init_input_requests): Bind `troff' and `nroff' to troff_request
14278         and nroff_request.
14279         (do_if_request): Compute results of t and n conditions from
14280         nroff_mode.
14282         * text/text.c (split_text): Fix typo in >=.
14284         * eqn/lex.c: Add definition of `==' to def_table.
14286 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
14288         * pic/tex.c (tex_output::start_picture): Change the definitions of
14289         \graph and \graphtemp so that they work properly with Plain TeX.
14291         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
14292         argument to `ar' is not less than the first.
14294         * pic/pic.y: Allow a comma between elements of the variable list
14295         in the argument to `reset'.
14297         * pic/object.c (arc_object::arc_object): Fix computation of
14298         radius.
14300         * eqn/main.c (main): Add exit(0).
14302 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
14304         * troff/div.c (begin_page): Test no_space_mode after doing the
14305         break, but still push the page ejector cookie before doing the
14306         break.  Also set the next page number after doing the break.
14307         
14308         * xditview/xditview.c (NewFile): Don't set the title and icon name
14309         if this is the first file and its name is `-'.
14310         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
14311         the X75 and X100 devices.
14312         (main): If a device has the XT_OPTION flag set and there's exactly
14313         one file argument, pass the driver -xrm and -title options to set
14314         the icon name and window title to the name of the file.
14316         * troff/env.c (environment_switch): If there was an argument but
14317         it wasn't a valid number or name, then pop an environment but
14318         don't give an error message on underflow.
14320         * troff/number.c (start_number): Correct spelling in error message.
14322         * troff/input.c (token::delimiter): Don't print an error message
14323         if err is false.
14325         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
14326         ParseDrawFunction if dw->display_enable is true.
14328 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
14330         * pic/pic.y: Parse text positioning like normal attributes, so as
14331         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
14332         positioning attribute.
14334 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
14336         * tbl/main.c (process_data): When in state START while reading a
14337         text block, don't change to state MIDDLE if c is a newline.
14339 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
14341         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
14342         so as to avoid shadowing parameter.
14344 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
14346         * tbl/table.c (trim_space): Deleted.
14347         (table::add_entry): Don't call trim_space.
14349 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
14351         * VERSION: Change version to 0.6.
14353         * troff/number.c (parse_expr): Make == work.
14355 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
14357         * man/grog.man: New file.
14358         * man/Makefile: Add grog.n to MAN1PAGES.
14359         * etc/grog.sh: New file.
14360         * etc/Makefile: Install grog.sh as grog.
14362 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
14364         * troff/input.c (token::next): Implement \E.
14366 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
14368         * xditview/tmac.X: Change font translations to match tmac.ps.
14370         * troff/input.c (non_empty_name_warning): Don't give a warning if
14371         `\{' terminates the name.
14373 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
14375         * ps/devps/symbol.diff: New file.
14376         * ps/devps/FontMakefile: Mention symbol.diff.
14378 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
14380         * troff/node.c (font_position): Use get_long_name to read the
14381         external_name.
14383         * troff/env.c (environment_switch): If we get a number that's < 0
14384         or >= NENVIRONMENTS, treat it like a name.
14385         Change NENVIRONMENTS to 10.
14387         * troff/groff.h: Remove definition of FONTS_MAX.
14388         * troff/node.h (class font_family): Make map a pointer instead of
14389         an array. Add a map_size member. Make it a class. Make nm const
14390         and public. Make invalidate_fontno a friend.
14391         * troff/node.c: Define font_table_size. Make font_info a pointer
14392         rather than an array.
14393         (class troff_output_file): Allocate font_position dynamically. Add
14394         nfont_positions member.
14395         (troff_output_file::set_font): Grow font_position if necessary.
14396         (troff_output_file::~troff_output_file): Delete font_position.
14397         (troff_output_file::troff_output_file): Allocate font_position.
14398         (grow_font_table): New function.
14399         (troff_output_file::really_begin_page,
14400         troff_output_file:really_copy_page): Use nfont_positions rather
14401         than FONTS_MAX.
14402         (mount_font_no_translate, mount_style): Call grow_font_table if
14403         necessary.
14404         (font_family::font_family): Allocate map.
14405         (font_family::make_definite): Grow map if necessary. Use
14406         font_table_size instead of FONTS_MAX.
14407         (font_family::~font_family): New function.
14408         (invalidate_fontno): Use font_family::map_size.
14409         (get_fontno, env_space_width, env_half_narrow_space_width,
14410         env_narrow_space_width, symbol_fotno, is_good_fontno,
14411         get_bold_fontno, make_glyph_node): Use font_table_size rather than
14412         FONTS_MAX.
14413         (next_available_font_position): Never return 0.
14415 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
14417         * ps/tmac.ps: Add font translations for compatibility with dpost.
14419 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
14421         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
14422         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
14423         Move definitions baseline_sep, shift_down, column_sep,
14424         matrix_side_sep into...
14425         * eqn/box.c: Add them to param_table.
14426         * eqn/pbox.h: Add declarations to pbox.h.
14428         * troff/input.c (set_string): Cast value to unsigned char *.
14430         * troff/token.h (process_input_stack): Declare it static before
14431         declaring it a friend.
14433 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
14435         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
14436         and bottom.
14437         * dvi/devdvi/EX: Regenerate.
14439         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
14440         transparent.
14442 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
14444         * eqn/lex.c: In defaults_table, make definition of `dot' call
14445         `dot_def'.  Don't explicitly make it roman.  Similarily for other
14446         accents.
14448         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
14449         argument.
14450         (for_input::get, for_input::peek): Use this.
14451         (do_for): Add by_is_multiplicative argument.
14452         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
14453         Change semantic value of optional_by to be a double plus a flag
14454         saying whethet the by clause is multiplicative.
14456         * eqn/lex.c (get_delimited_text): Remember location of start of
14457         definition.  Improve error handling when EOF is encountered.
14459         * lib/font.h: Rename handle_x_command to
14460         handle_unknown_font_command.
14461         * lib/font.c (font::load): Call handle_unknown_font_command for
14462         any unknown command in the font description file.  Don't call
14463         handle_x_command. Include the name of the command in the argv.
14464         Improve message for unknown command after kernpairs or charset
14465         command.
14466         * ps/ps.c (ps_font::handle_x_command): Rename to
14467         handle_unknown_font_command.  Remove message about `x download'
14468         command.  Give error message for wrong number of arguments.
14469         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
14470         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
14471         handle_unknown_font_command. Give an error message for wrong
14472         number of arguments.  Rename design_size to designsize.
14473         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
14474         checksum', `designsize' instead of `design_size'.
14476 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
14478         * eqn/*.[chy]: Change underaccent to uaccent.
14480         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
14481         give it the same precedence as ACCENT.
14482         * eqn/other.c (make_underaccent_box): New function.
14483         * eqn/box.h: Declare it.
14484         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
14485         def_table.
14487 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
14489         * pic/pic.y (reset_all): New function. Called in rule for RESET.
14490         (parse_init): Call reset_all.
14491         (define_variable): When defining scale reset only those
14492         pre-defined variables that are scaled.
14493         (defaults_table): Add `scale' as non-scaled value.
14495         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
14496         together with the text; allow any number of positioning words;
14497         allow center as a positioning word.
14499         * pic/object.c (output::compute_scale): Get picture maximum height
14500         and width from variables called maxpswid and maxpsht.
14501         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
14503 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
14505         * pic/object.c (object_spec::make_text): Multiply textht by number
14506         of text items.
14508         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
14509         occur.
14510         (do_sprintf): New function.
14511         (pic.gperf): Add sprintf token.
14512         (text, sprintf): New rules.
14514         * pic/pic.y: `rand()' with no arguments returns a random number
14515         in the range [0,1).
14517         * pic/pic.y: Allow a bare expression to be an attribute: change
14518         precedences to support this.  Change optional_ordinal rule to
14519         optional_ordinal_last to avoid reduce/reduce conflict.
14520         * pic/object.c (object_spec::object_spec): Initialize direction.
14522         * pic/pic.y: Implement ^ operator meaning exponentiation.
14524         * troff/node.h: Add default argument to mount_font.
14525         * troff/node.c (font_position): Read an optional third argument
14526         giving the external_name.
14527         (mount_font): Add optional argument giving the external_name.
14528         (mount_font_not_translate): Have additional argument giving
14529         external name.  Use this name to load the font.  Pass both names
14530         to font_info::font_info.
14531         (font_info::font_info): Have additional argument giving
14532         external_name.
14533         (class tfont): New member external_name.
14534         (font_info::get_tfont): Use external name to construct tfont_spec.
14536 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
14538         * eqn/lex.c (init_table): Add argument giving device.  Define
14539         name of device to be "1".
14540         (do_ifdef): Counts as true if the argument has been defined with
14541         `define'.
14542         * eqn/main.c (main): Call init_table with device argument. Make
14543         device local to main.
14544         * eqn/eqn.h: Change declaration of init_table. Remove declaration
14545         of device.
14547         * pic/lex.c (get_delimited): Allow text to be delimited by
14548         matching {}s.  Don't recognize ending delimiter within a string.
14550         * troff/input.c (get_delim_name): New function.
14551         (token::next): Implement \C.
14553         * lib/font.c (font::load): Grok ---.  Add an alias for each
14554         character based on its code.
14555         (font::get_code_width): Deleted.
14556         * lib/font.h (class font): Declare font::number_to_index().
14557         Remove declaration of font::get_code_width.
14558         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
14559         to indices of named characters.
14560         (font::number_to_index): New function.
14561         * troff/input.c (font::number_to_index): New function.
14562         (get_charinfo_by_number, charinfo::get_number,
14563         charinfo::set_number): New functions.
14564         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
14565         (token::process, token::description, token::get_char,
14566         token::add_to_node_list, token::operator==): Handle
14567         TOKEN_NUMBERED_CHAR.
14568         * troff/charinfo.h: Declare get_charinfo_by_number,
14569         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
14570         charinfo class.
14571         (charinfo::numbered): New function.
14572         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
14573         * troff/env.h (class environment): Remove declaration of ...
14574         * troff/env.c (environment::make_numbered_char_node): Deleted.
14575         * troff/node.c (make_numbered_node): Deleted.
14576         (class numbered_glyph_node): Remove.
14577         (troff_output_file::put_char_width, troff_output_file::put_char):
14578         Handle numbered chars.
14579         (troff_output_file::numbered_char): Removed.
14580         (tfont::get_code_width): Removed.
14581         (make_glyph_node): Don't search special fonts for numbered
14582         characters.
14583         * troff/node.h: Remove declaration of make_numbered_node.
14584         * driver/input.c (do_file): Handle N command.
14585         * driver/printer.h: Add declaration of ...
14586         * driver/printer.c (printer::set_numbered_char): New function.
14587         * dvi/tfmtodit.c (main): Generate unnamed entries.
14588         * ps/devps/afmtodit: Likewise.
14589         * xditview/xtotroff.c (MapFont): Likewise.
14590         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
14592         * tbl/main.c (process_format): If multiple widths are specified
14593         for a column but all the widths are the same, don't give an error
14594         message.
14596         * tbl/table.c (table::do_row): If the current row is all lines and
14597         the stuff doesn't contains a line, mark the top of the row after
14598         printing stuff before the row.  If the current row is not all
14599         lines and the stuff doesn't contain a line, don't unnecessarily
14600         mark the top of the row before printing the stuff.
14601         
14602 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
14604         * troff/groff.h: Remove MAX_PATH.
14605         * troff/input.c (open_file): Dynamically allocate space for the
14606         path.
14607         (open_mac_file, process_macro_file): Corresponding changes.
14609 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
14611         * troff/node.h (class output_file): Make copy_file pure.  Add
14612         vspace method ifdef COLUMN. Add is_printing method.
14613         * troff/node.c: Add class printing_reg. Add class
14614         real_output_file. Derive other output_file classes from
14615         real_output_file; in these classes rename begin_page to
14616         really_begin_page, print_line to really_print_line, copy_file to
14617         really_copy_file, transparent_char to really_transparent_char.
14618         Move output_file::flush to real_output_file. Add printing member
14619         to class output_file.
14620         * troff/div.h: Remove printing member from top_level_diversion.
14621         Add vspace member function to class diversion ifdef COLUMN. Add
14622         some declarations ifdef COLUMN.
14623         * troff/div.c (top_level_diversion::copy_file,
14624         top_level_diversion::transparent_output,
14625         top_level_diversion::output): Don't test printing member before
14626         output.
14627         * troff/input.c: Handle initial variable_space_request ifdef
14628         COLUMN.
14629         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
14630         but comment it out.
14632 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
14634         * troff/div.c (diversion::need): Make any space forced.  If we
14635         sprung a trap, set truncated_space to minus the distance to the
14636         trap and set needed_space to the amount that was needed.
14637         (top_level_diversion::space): A forced space turns no_space_mode
14638         off.
14639         (class constant_vunits_reg): New class.
14640         (init_div_requests): Implement number registers .trunc and .ne
14641         using constant_vunits_reg.
14642         (class truncated_space_reg): Deleted.   
14644         * troff/div.h: Don't have a no_space_mode member in diversion.
14645         Instead have it in top_level_diversion.
14646         * troff/div.c (diversion::diversion): Don't initialize
14647         no_space_mode.
14648         (top_level_diversion::top_level_diversion): Initialize
14649         no_space_mode.
14650         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
14651         (macro_diversion::output): Don't clear no_space_mode.
14653         * troff/input.c (diverted_space_node::reread): Don't call
14654         environment::do_break.  In fill mode, act like a blank line.
14655         (diverted_copy_file_node::reread): Don't call
14656         environment::do_break.
14658         * troff/div.c (blank_line): New function.
14659         * troff/div.h: Declare it.
14660         * troff/input.c (process_input_stack): Call it.
14662         * troff/div.c (truncated_space_reg::get_string): New function.
14663         (init_div_requests): Bind to .trunc.
14664         (space_request, top_level_diversion::space,
14665         top_level_diversion::output, macro_diversion::space,
14666         macro_diversion::output): Update truncated_space.
14667         (macro_diversion::output): Redo calculations when trap sprung.
14668         (macro_diversion::output, macro_diversion::space): No need for
14669         trap_flag.
14671         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
14672         after truncating post line spacing.
14674 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
14676         * ps/devps/prologue (MF, SF): Make them work even if setfont is
14677         defined as a procedure rather than as an operator.
14679 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
14681         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
14683 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
14685         * troff/div.c (top_level_diversion::output): Merge
14686         output_file::print_line and output_file::end_of_line member
14687         functions.
14688         * troff/div.h (class output_file):
14689         * troff/node.c (troff_output_file::print_line,
14690         troff_output_file::end_of_line, output_file::end_of_line,
14691         ascii_output_file::print_line, suppress_output_file::print_line):
14692         Corresponding changes.  
14694 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
14696         * troff/input.c (token::next): Don't give a warning for `\.'.
14698         * troff/env.c (environment::get_center_lines): New function.
14699         (init_env_requests): Bind number register .ce to it.
14700         * troff/env.h: Declare it.
14701         * tbl/table.c (table::init_output): Define reset macro to restore
14702         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
14703         Then do .ce 0.
14704         (table::print): If center option not given, then imply center
14705         option if SAVED_CENTER_REG > 0.
14707 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
14709         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
14710         Troff.ps from DOWNLOAD.
14711         
14712         * troff/Makefile: Change comment in DEFINES to avoid confusing
14713         System V make.
14715         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
14716         code.  Don't try to catch errors with stopped.
14717         (check_line_lengths): New function.
14718         * ps/devps/prologue (EXEC): Deleted.
14719         (EBEGIN, EEND): New procedures.
14721 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
14723         * troff/input.c: Include request.h before node.h.
14724         * troff/node.c: Likewise.
14725         * troff/env.c: Likewise.
14726         * troff/div.c: Likewise.
14727         * troff/node.h (class special_node): Store argument as a macro
14728         rather than a char *.
14729         * troff/node.c (special_node::special_node, special_node::copy):
14730         Grok this.
14731         (special_node::~special_node): Deleted.
14732         (special_node::tprint): Deleted.
14733         (special_node::tprint_start, special_node::tprint_end,
14734         special_node::tprint_char): New functions.
14735         (troff_output_file::special): Deleted.
14736         (troff_output_file::start_special, troff_output_file::end_special,
14737         troff_output_file::special_char): New functions.
14738         * troff/input.c (special_node::tprint): New function.
14739         (do_special): Use macro not char *.
14740         (do_transparent_macro): Deleted.
14741         (token::next): Don't call do_transparent_macro.
14743         * troff/input.c (token::next): Add 'Y' case.
14744         (do_transparent_macro): New function.
14745         * troff/node.c (troff_output_file::special): Handle newlines with
14746         argument using new continuation convention.
14747         * driver/input.c (get_string): Cope with continuation convention.
14748         (do_file): Don't call skip_line after calling get_string(1).
14749         * ps/ps.c (ps_printer::special, ps_printer::do_import,
14750         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
14751         arg.
14752         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
14753         with +.
14755 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
14757         * troff/input.c (asciify): By default, illegal input characters
14758         should return empty string.
14760         * troff/input.c (copy_file): Handle first page transition like title.
14761         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
14763         * troff/input.c (token::next): Improve error message for EOF after
14764         escape character.
14765         (input_char_description): New function.
14766         (get_char_for_escape_name): Use input_char_description.
14767         (token::next): Warn about unrecognized escape sequences.
14768         (warning_table): Add WARN_ESCAPE.
14769         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
14770         accordingly.
14772         * troff/token.h: Remove declaration of process_input_stack.
14774         * troff/input.c: Remove declaration of init_hyphen_requests.
14775         * troff/request.h: Correct spelling in declaration of same.
14777         * troff/input.c (token::next): Check whether escape_char is 0.
14779 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
14781         * groff.c (main, usage, help): Implement -P and -L options.
14782         * groff.sh: Likewise.
14784         * troff/input.c (token::next): Use some gotos to avoid code
14785         duplication.
14787         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
14788         Avoid calling symbol::symbol if name empty.
14790 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
14792         * troff/input.c (init_input_requests): Make \n(.x return the major
14793         version number and \n(.y return the minor version number.
14794         * troff/Makefile: Construct file majorminor.c defining
14795         major_version and minor_version automatically from ../VERSION.
14797         * troff/node.c (class glyph_node): Make operator new and operator
14798         delete public.
14799         (class ligature_node): Similarily.
14801         * troff/input.c (operator==(const macro &, const macro &)): New
14802         function.
14803         (non_interpreted_node::same): Use this.
14804         (string_iterator::string_iterator): Make macro& argument const.
14806         * troff/input.c (input_iterator::get): New function. Don't make
14807         asciify_macro or class non_interpreted_node friends of class
14808         input_iterator.
14809         (non_interpreted_node::interpret): Use input_iterator::get.
14810         (asciify_macro): Likewise.
14812         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
14813         ~non_interpreted_node): Deleted.
14814         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
14815         Deleted.
14817         * troff/symbol.h: Make all symbol member functions const.
14819         * lib/strtol.c: New file.
14820         * lib/Makefile: Add strtol.c.
14821         * Makefile: Define STRTOL as strtol.o to include strtol in
14822         libgroff.a.
14824 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
14826         * pic/troff.c (troff_output::simple_circle): Divide by scale.
14828 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
14830         * troff/input.c (do_special): Use input_level.
14832         * troff/token.h (TOKEN_BACKSPACE): New token.
14833         (token::backspace): New function.
14834         * troff/input.c (token::description, token::next, token::process):
14835         Grok TOKEN_BACKSPACE.
14836         (do_special): Turn TOKEN_BACKSPACE back into \b.
14838         * troff/token.h (token::leader): New function.
14839         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
14841         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
14843         * troff/input.c (do_special): Use token::description in error
14844         message.
14846 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
14848         * troff/input.c (decode_args): Combine quoted and
14849         quote_input_level variables. Make it a for (;;) loop.
14851         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
14853         * troff/input.c (read_long_escape_name): The test for whether to
14854         expand buffer was off by 1.
14855         (read_string): Similarily.
14857 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
14859         * troff/input.c: Use `const int' rather than `static const int'.
14861         * troff/div.h (diversion::copy_file): Declare as pure virtual.
14862         (macro_diversion::copy_file): New function.
14863         * troff/node.h: New class diverted_copy_file_node.
14864         * troff/node.c: Implement it.
14865         * troff/input.c (copy_file): Use diversion::copy_file. Handle
14866         first page transition by pushing a diverted_copy_file_node.
14867         * troff/input.c (token::next, process_input_stack): Don't handle
14868         COPY_FILE_REQUEST.
14870 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
14872         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
14873         whether space widths need adjusting.
14875         * troff/charinfo.h: Generalize translated_to_space to
14876         special_translation so as to allow translation to \&.
14877         * troff/input.c (translate): Allow translation to \&.
14878         (charinfo::*): Corresponding changes.
14879         * troff/node.c (make_node, node::add_char): Corresponding changes.
14880         * troff/node.h (dummy_node::dummy_node): Allow optional first
14881         argument.
14883         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
14884         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
14885         TOKEN_REQUEST.
14886         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
14887         TOKEN_REQUEST with an argument of TITLE_REQUEST.
14888         (token::process): Grok that.
14889         * troff/input.c (copy_file): Handle first page transition like
14890         title by pushing a COPY_FILE_REQUEST cookie.
14891         (token::next, process_input_stack): Grok that.
14892         * troff/node.h (output_file::copy_file): Add x and y arguments.
14893         Make it non-pure.
14894         * troff/div.c (top_level_diversion::copy_file): Supply them.
14895         * troff/node.c (troff_output_file::copy_file): Add x and y
14896         arguments; moveto specified position.  Invalidate font_position
14897         array after copying file.
14898         (output_file::copy_file): New function.
14899         (suppressed_output_file::copy_file, ascii_output::copy_file):
14900         Removed.
14901         * troff/input.c (transparent_file): New function.
14902         (init_input_requests): Bind to "trf".
14903         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
14904         (process_input_stack): Likewise.
14906         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
14908         * troff/node.c (init_node_requests): New number registers .kern
14909         pointing to global_kern_mode, and .lg pointing to
14910         global_ligature_mode.
14912         * troff/node.c (ligature): Don't change it if we get a bad
14913         integer.
14915         * troff/input.c (do_define_string): Don't strip tabs.
14917         * troff/input.c (asciify_macro): Make the string_iterator auto.
14919         * troff/node.c (init_font_requests): Rename to...
14920         (init_node_requests):
14921         * troff/node.h: Change declaration.
14922         * troff/input.c (main): Change call.
14924         * troff/input.c (node::reread, diverted_space_node::reread): New
14925         methods.
14926         (process_input_stack): Call reread rather than
14927         get_diverted_space_node.
14928         * troff/node.c (node::get_diverted_space_node,
14929         diverted_space_node::get_diverted_space_node): Removed.
14930         * troff/node.h: Declare reread methods instead of
14931         get_diverted_space_node methods. Make `n' member private.
14932         * troff/input.c: (token::diverted_space): Removed.
14933         * troff/token.h: Removed declaration.
14934         
14936 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
14938         * eqn/script.c (script_box::compute_metrics): Don't let
14939         SUP_RAISE_FORMAT become negative.
14941         * tbl/table.c (table::do_row): Entries that don't end in the
14942         this row shouldn't make the row non-blank.
14943         
14944         * tbl/table.c (table::make_columns_equal): Only set the width of
14945         columns which are marked as equal.
14946         
14947         * tbl/main.c (process_data): Before issuing excess data error,
14948         if last character was a newline unget it; then get it again after
14949         the error.  Also include the contents of the entry in the message.
14951         * groff.c: New file.
14952         * Makefile: Build groff from groff.c.  Make it possible to use
14953         either groff.sh or groff.c as groff.
14954         * Makefile.bd: Similarily.
14956 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
14958         * groff.sh: Don't delay expansion of $@ in assignment to files.
14959         Remove occurrences of \".
14961 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
14963         * all Makefiles: Simplify and rearrange.
14965         * Makefile: Handle fmod like malloc.
14966         * lib/Makefile: Similarily.
14967         * lib/fmod.c: Remove #ifdef NEED_FMOD.
14969         * Makefile: Rename OPTIMISE to OPTIMIZE.
14971         * groff.sh: Remove assignment to PATH.
14972         * Makefile: Remove SHPATH variable.
14973         * Makefile.bd: Similarily.
14975         * groff.sh: Add -V option to print the pipeline instead of
14976         executing it.
14978 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
14980         * lib/font.c: Split off file searching into ...
14981         * lib/fontfile.c: New file.
14983         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
14985 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
14987         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
14988         Also change misleading comment.
14989         (table::do_vspan): Change similarily misleading comment.
14990         * tbl/main.c (process_data): A format row with an explicit `s'
14991         uses up a data line, even if all the other columns are `_' or `='.
14993         * troff/input.c (token::description): Fix description of
14994         TOKEN_DUMMY and TOKEN_EMPTY.
14996 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
14998         * groff.sh: Fix description of -Z in help message.
15000 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
15002         * pic/object.c (object_spec::make_object): Allow negative and zero
15003         line thicknesses.
15004         * pic/pic.y: Give linethick default value of -1.0.
15005         * pic/troff.c (troff_output::troff_output): Initialize
15006         last_line_thickness to BAD_THICKNESS.
15007         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
15008         (troff_output::line_thickness): Canonicalize negative thicknesses
15009         to RELATIVE_THICKNESS.
15010         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
15011         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
15012         to -1.0.
15013         (tex_output::start_picture): Set pen_size to -2.0.
15015         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
15016         0, then use 0 linewidth.
15017         (ps_printer::ps_printer): Initialize line_thickness to -1.
15019         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
15021         * ps/devps/symbolchars: Remove `or'.
15022         * ps/tmac.ps: Implement \(or with .char.
15024         * ps/devps/symbolchars: Move most characters into textmap.
15025         * ps/devps/textmap: Add names for troff bracket characters. Remove
15026         ul, ru, br, bv.
15028         * ps/devps/TSymbol.ps: Removed.
15029         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
15030         * ps/tmac.ps: Do with .char what TSymbol did.
15031         * ps/devps/download: Remove TSymbol.
15033         * ps/devps/T: Removed.
15034         * ps/devps/Troff.ps: Removed.
15035         * ps/devps/Troff.afm: Removed.
15036         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
15037         * ps/devps/download: Remove Troff.
15038         * ps/devps/FontMakefile: Remove T target.
15039         * ps/devps/DESC-A4: Remove T from font list.
15040         * ps/devps/DESC-letter: Likewise.
15042         * troff/input.c (macro_to_node): Rename to ...
15043         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
15044         character's definition while processing it.
15045         * troff/node.c (node::add_char, make_node): Change calls to
15046         macro_to_node accordingly.
15048         * troff/input.c (token::next): Translate \_ to \(ul.
15050         * tty/devascii/R.proto: Add `|'.
15051         * tty/devlatin1/R.proto: Likewise.
15053 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
15055         * man: Put the version number in all the man pages.
15057 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
15059         * Makefile.bd: New file.
15060         * README.bd: New file.
15062         * VERSION: New file.
15063         * lib/version.c: Removed.
15064         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
15065         in clean target.
15067         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
15068         environment variable.
15070         * all Makefiles: Split install target into install.bin for
15071         binaries, and install.nobin for everything else.
15072         * Makefile: Add bindist target.
15074         * man/afmtodit.man: New file.
15075         * man/Makefile: Add afmtodit.n to MAN1PAGES.
15076         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
15077         in BINDIR.
15078         * ps/Makefile: Pass BINDIR to make install in devps.
15080         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
15081         the space character.
15083         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
15085 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
15087         * ps/ps.c: Redo font downloading.
15088         * ps/devps/download: New file.
15089         * ps/devps/Makefile: Add download to DEVICEFILES.
15090         * ps/devps/afmtodit: Remove -d option.
15091         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
15092         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
15093         * ps/devps/zapfdr.ps: Likewise.
15094         * ps/devps/TSymbol.ps: Likewise.
15096 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
15098         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
15100 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
15102         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
15103         then strip the first line if it starts with %.
15104         * Makefile: Add a comment about this.
15106         * man/tfmtodit.man: New file.
15107         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
15108         * dvi/Makefile: Install tfmtodit in BINDIR.
15110         * dvi/tfmtodit.c (usage): Mention -v option.
15112 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
15114         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
15115         * troff/node.c (troff_output_file::transparent_char): Don't call
15116         flush_tbuf.
15118         * eqn: Add check_tabs method to most box classes.
15119         * eqn/box.c (box::top_level): Call check_tabs.
15121         * eqn/script.c (script_box::output): Use \Z.
15122         * eqn/limit.c (limit_box::output): Use \Z.
15124         * eqn/box.c (box::top_level): Use itoa.
15126 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
15128         * dvi/tmac.dvi: Add font translations for CR, C, TT.
15129         * dvi/devdvi/Makefile: Don't make links to CW.
15131         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
15132         HX, HD.
15133         * xditview/tmac.X: Likewise.
15135         * troff/node.c: Add font translation feature.
15136         (get_font_translation): New function.
15137         (symbol_fontno): Translate the font name.
15138         (mount_font_no_translate): Rename to mount_font to this.
15139         (mount_font): New function.
15140         (font_family::make_definite): Call mount_font_no_translate instead
15141         of mount_font.
15142         (mount_style): Translate the font name.
15143         (font_translate): New function.
15144         (init_font_requests): Bind "ftr" to font_translate.
15146         * ps/devps/prologue (SN): New procedure that rounds a position to
15147         the nearest (pixel + (.25,.25)).
15148         (DL): Use SN to round endpoints.
15150         * lib/version.c: Changed version to 0.5.
15152 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
15154         * Makefile: Move definition of PAGE to the very beginning, so that
15155         people are less likely to miss it.
15157 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
15159         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
15161         * troff/env.c (environment::choose_breakpoint): Make `can't find
15162         breakpoint' error a warning of type WARN_BREAK.  Change message to
15163         `can't break line'.
15164         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
15165         code 040000.
15166         * troff/input.c: Add WARN_BREAK to warning_table.  Include
15167         WARN_BREAK in DEFAULT_WARNING_MASK.
15169         * tty/tmac.tty: Add definition of \(+-.
15171         * groff.sh: Remove `--' option to set command.
15173         * dvi/devdvi/texsy.map: Remove duplicate md entry.
15175         * ps/devps/eqnchar: Better definition of cdot using md.
15176         * dvi/devdvi/eqnchar:  Likewise.
15177         * xditview/devX100/eqnchar:  Likewise.
15178         * xditview/devX75/eqnchar: Likewise.
15179         * eqn/lex.c: Add definition of cdot.
15181 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
15183         * troff/input.c (get_optional_char): New function.
15184         * troff/input.c (set_page_character): Use get_optional_char(),
15185         rather than has_arg() and tok.get_char(1).
15186         * troff/env.c (tab_character, leader_character, hyphen_char,
15187         field_characters): Likewise.
15188         (margin_character): Likewise.  Also always delete the
15189         margin_character_node.
15191         * troff/input.c (token::get_char): Use token::description.
15193         * troff/input.c (has_arg): Don't skip over tab and \}.
15194         * troff/number.c (start_number): Give a warning if the number
15195         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
15197 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
15199         * troff/input.c (empty_name_warning, non_empty_name_warning): New
15200         functions.
15201         (get_name, get_long_name): Use these.  Rename `warn' argument to
15202         `required'.
15204         * troff/node.c (get_fontno): Test that the symbol is not null.
15206         * troff/input.c (token::description): New function.
15207         * troff/number.c (parse_term): Use token::description in `numeric
15208         expression expected' message.
15209         * troff/groff.h: Add WARN_MISSING.
15210         * troff/number.c (start_number): New function.
15211         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
15212         get_incr_number): Use start_number().
15213         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
15214         default.
15215         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
15216         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
15217         token::descripion.
15218         * troff/input.c (token::get_char): Use WARN_MISSING.
15219         * troff/input.c (token::delimiter): Use token::description.
15220         * troff/env.c (environment_switch): Back out Aug 3 change.
15221         * troff/input.c (has_arg): Skip over \}s and tabs but give a
15222         warning.
15223         * troff/token.h (token::tab): New function.
15224         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
15225         * troff/reg.c (alter_format): Likewise.
15226         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
15228 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
15230         * troff (most files): Redo warnings. Divide warnings into various
15231         categories; warning() has an additional first argument indicating
15232         the category it falls into.
15233         * troff/input.c (main): -w now takes an argument. New option -W.
15234         (enable_warning, disable_warning): New functions.
15236         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
15237         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
15239 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
15241         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
15242         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
15243         * xditview/devX75/eqnchar: Likewise.
15244         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
15246         * eqn/other.c: When bar or over applies to a single character
15247         don't produce an overline_box or an underline_box. Instead produce
15248         an accent_box or an underaccent_box, with the accent a line
15249         whose width is accent_width.  New classes underaccent_box,
15250         overline_char_box and underline_char_box.
15251         * eqn/box.h: Move overline_box, underline_box, accent_box class
15252         declarations into eqn/other.c. Add declarations of
15253         make_underline_box, make_overline_box, make_accent_box.
15254         * eqn/eqn.y: Call make_overline_box, make_underline_box
15255         make_accent_box instead of constructors.
15256         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
15258         * eqn/other.c: Add accent_box::~accent_box.
15259         * eqn/box.h: Declare it.
15261         * groff.sh: With -Tps, use eqn -D.
15263         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
15264         rather than \l.
15265         (underline_box::output): Similarily.
15266         (accent_box::output): Use \Z.
15268         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
15269         bit smaller.)
15271 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
15273         * troff/div.c (top_level_diversion::transparent_output(unsigned
15274         char)): Use asciify.
15275         * troff/input.c (asciify): Don't make it static.
15276         * troff/token.h (asciify): Declare it.
15277         
15278         * troff/input.c (get_name, get_long_name, token::get_char,
15279         token::delimiter): Add an extra default argument which says
15280         whether a warning should be printed.
15281         * troff: Pass a non-zero argument to one of these rather than
15282         printing a warning directly.
15284 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
15286         * troff: Consistently use symbol::is_null.
15288         * troff/dictionary.h: Move some inline functions into
15289         dictionary.c.
15291         * troff/request.h: Move inline functions into input.c.
15292         (request_or_macro::invoke): Make it pure.
15294         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
15295         * troff/input.c (init_input_requests): Use class constant_int_reg.
15296         (class compatible_reg): Deleted.
15297         * troff/div.c (init_div_requests): Use class constant_int_reg.
15298         (class last_post_line_extra_space_reg): Deleted.
15300         * troff/env.c (tab_character): Don't change the tab character if
15301         we get an invalid argument.
15302         (hyphen_char): Similarily.
15304         * troff/reg.c (alter_format): Check that nm is not null.
15306         * Makefile, groff.sh: Make it possible to customize the commands
15307         used for printing PostScript and dvi files. Also make it possible
15308         to customize the path used by groff.sh.
15310         * eqn/eqn.y: Make `left' right associative.
15312 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
15314         * pic/pic.h: Added definition of M_SQRT2 for those systems that
15315         don't have it.
15317         * pic/pic.h: Removed definition of INT_MAX.
15319         * troff/node.c (italic_corrected_node::vertical_extent): Omit
15320         `return'.
15322         * troff/input.c (token::next):  Handle \R like \n.
15324 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
15326         * ps/tmac.pc (PSPIC): Simplify.
15328         * troff/env.c (tab_stops::to_string):
15329         * pic/pic.y (object_type_name):
15330         * pic/troff.c (simple_output::line):
15331         * pic/tex.c (tex_output::spline):
15332         * pic/object.c (object_spec::make_object):
15333         * tbl/main.c (process_data):  Add cases to switch statements to
15334         avoid cfront warnings. (Some of these are spurious, since the
15335         switch already has a default case.)
15337         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
15338         `ps-'.  Don't test systat; instead check number of arguments to
15339         ps-bb.
15341 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
15343         * macros/tmac.e: Do not decrease the page offset by 0.5i.
15345         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
15346         Unlink the file as soon as we have opened it, so that we don't
15347         have to bother with signal handlers.
15348         (handler): Deleted.
15349         (fatal_error_exit): Deleted.
15350         (main): Don't call signal.
15352         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
15353         can be ignored.
15354         * dvi/devdvi/Makefile: Use the -k option with S and MI.
15356         * pic/pic.y:  If there is a label, or an nth construction before
15357         the first `.' in the argument to `with', ignore it and generate a
15358         warning.
15359         * pic/lex.c (lex_warning): New function.
15361         * tbl/table.c (table::init_output): In section keep and release
15362         macro, use 0 indent when diverting and the correct indent when
15363         rereading.
15365         * troff/input.c (interpolate_number_format): Do not interpolate
15366         anything if the number register is not defined.
15368         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
15370 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
15372         * ps/devps/prologue (PICTURE): Set components of graphics state to
15373         their default values.
15375         * ps/devps/text.enc: Add trademark
15376         * ps/devps/textmap: Add names for club, spade, heart, diamond,
15377         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
15378         * ps/devps/symbolchars: Add names for summation and product.
15380         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
15381         suchthat. Add pp. Add upper-case letters.
15383         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
15384         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
15385         Upsilon.
15387         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
15388         rA (right angle bracket) to ra.  Introduce names for double-headed
15389         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
15390         * ps/devps/textmap: Likewise for ps device.
15391         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
15392         * tty/devascii/R.proto: Rename lA to la and rA to ra.
15393         * tty/devascii/R.proto: Likewise.
15394         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
15395         \(uA, \(dA.
15396         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
15398         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
15400         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
15401         def_table.
15403 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
15405         * troff/div.c (when_request): Use symbol::is_null rather than
15406         has_arg to determine whether we have an argument.
15407         (change_trap): Remove the trap if we get an invalid number. Give
15408         an error if we don't get at least the macro name.
15409         (diversion_trap): Remove trap if we get an invalid name or number.
15411         * troff/env.c (environment_switch): Pop if we get an invalid
15412         symbol or numeric expression.
15414         * troff/input.c (do_define_macro):  If EOF is encoutered while
15415         defining the macro, do tok.next() before returning.
15417         * troff/token.h (has_arg): Move definition from here, to ...
15418         * troff/input.c (has_arg): ... here
15420         * troff/env.c (space_size): Do nothing if we get an invalid argument.
15421         * troff/input.c (shift): Likewise.
15423         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
15424         for `.c'.
15426         * pic/troff.c (troff_output::start_picture):  Comment out calls to
15427         `..'.
15429         * eqn/main.c (do_file): Subtract 1 from current_lineno if
15430         interpret_lf_args succeeds.
15432         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
15433         \\.  This avoids problems with \$N.
15435         * groff.sh: Pass -C to preprocessors.
15437         * lib/lf.c (interpret_lf_args):  Be more flexible.
15439         * tbl/main.c (main): Add -C option.
15440         (table_input::get): Do not recognize TE if followed by character
15441         other than a space or newline unless -C option given.
15442         (process_input_file): Likewise for lf, TS.
15443         (process_data): Likewise for lf in text blocks.
15445         * eqn/main.c (main): Add -C option.
15446         (do_file): Don't recognize EQ, EN or lf if followed by character
15447         other than space or newline unless -C option given.
15448         * eqn/lex.c (file_input::read_line): Similarily.
15449         * eqn/eqn.h: Declare compatible_flag.
15451         * etc/soelim.c (main): Add -C option.
15452         (interpret_lf_args): Use version in libgroff.
15453         (do_file):
15455         * pic/main.c (main): Add -C option, which sets compatible_flag.
15456         (top_input::get), (top_input::peek):  If -C option not given,
15457         do not recognize .PS/.PE/.PF/.lf if followed by a character
15458         other than space or newline.
15459         * pic/lex.c (file_input::read_line): Similarily.
15460         * pic/pic.h: Add declaration of compatible_flag.
15462 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
15464         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
15466         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
15467         derived from node.  New class space_char_hmotion_node.
15468         * troff/input.c (asciify_macro): New function.
15469         * troff/input.c (init_input_requests): New request `asciify' bound
15470         to asciify_macro.
15471         * macros/mm.diff: New file.
15472         * Makefile:  In install.mm target use `patch' to apply
15473         macros/mm.diff.
15475         * troff/input.c (macro::print_size): Just print the size in bytes.
15477         * troff/div.c (return_request): Correct the argument
15478         interpretation.
15480 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
15482         * troff/node.h (class composite_node): Add sz member.
15483         * troff/node.c (composite_node::size): Return sz.
15484         * troff/input.c (macro_to_node):  Use the initial size in the
15485         environment as the size of the composite_node.
15487         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
15488         default.
15490 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
15492         * troff/div.c (change_trap): If we get a bad number expression,
15493         do nothing.
15495 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
15497         * lib/matherr.c (matherr): Define this only if math.h defines
15498         TLOSS.
15500 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
15502         * troff/div.c (macro_diversion::distance_to_next_trap): If there
15503         no diversion trap return vunits(INT_MAX - vresolution).
15505 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
15507         * troff/input.c (do_zero_width): New implementation that doesn't
15508         use a temporary environment. Use instead:
15509         (token::add_to_node_list): New function.
15510         * troff/env.c (environment::get_prev_char_height),
15511         (environment::get_prev_char_height),
15512         (environment::get_prev_char_skew): New functions.
15513         (environment::get_prev_char): New function.
15514         (environment::get_prev_char_width): Change to use get_prev_char.
15515         (init_env_request): Implement new registers .cht, .cdp, .csk.
15516         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
15517         \Z being processed in a separate environment.
15519 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
15521         * tbl/table.c: Removed TABLE_BOTTOM_REG.
15523         * tbl/table.c (table::init_output): In the section release macro,
15524         give a warning message if the section won't fit on one page.
15526         * tbl/table.c (table::do_top): Emit table keep only if table is
15527         boxed.
15528         (table::do_bottom): Likewise for table release.
15529         (table::table), (table::add_vertical_rule):  Remove reference to
15530         keep member.
15531         * tbl/table.h: Remove keep member.
15533         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
15534         SECTION_RELEASE_MACRO, if there's not enough space before the next
15535         trap to output the diversion, call T# ourselves, set
15536         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
15537         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
15538         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
15539         vertical position and return to it before turning traps on again.
15540         
15541 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
15543         * troff/node.c, troff/node.h: In classes derived from node,
15544         replace prev_char_width method by last_char_node method.
15545         * troff/env.c (environment::get_prev_char_width): Use
15546         node::last_char_node rather than node::get_prev_char_width.
15548         * Makefile: Added comment about -fno-inline on 68030-based
15549         Apollos.
15551         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
15552         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
15553         expressions using sizeof to int.
15554         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
15556         * macros/tmac.e (TS):  Don't move @f back past the current
15557         position.
15559 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
15561         * ps/ps.c (main): Buffer stderr.
15562         * dvi/dvi.c (main): Likewise.
15563         * tty/tty.c (main): Likewise.
15565         * ps/ps.c (ps_printer::do_import): Improve error handling.
15567         * troff/input.c (abort_request): Use asciify.
15569         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
15570         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
15571         type of first argument int rather than char.  This works around a
15572         bug on the 68030 based Apollo using g++ 1.37.1.
15574         * tbl/table.h (class table): Add `keep' member.
15575         * tbl/table.c (table::table): Initialize `keep'.
15576         (table::add_vertical_rule): Set `keep' to 1.
15577         (table::do_top): Only emit table keep macro is `keep' is non-zero.
15578         (table::do_bottom): Likewise for table release macro.
15579         (table::do_row): Emit section keep macro even if the row is 0.
15581 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
15583         * macros/tmac.e (@C): Preserve the font family across the change
15584         in environments.
15586 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
15588         * lib/font.c: Initialize font::hor and font::vert to 1.
15589         (font::load_desc): Check the values of font::hor and font::vert.
15591         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
15592         be included in a C compilation.
15593         (iftoa): Use INT_DIGITS. Include lib.h.
15594         (itoa): Likewise.
15595         (as_string): Likewise.
15596         * tbl/table.c: Removed definition of INT_DIGITS.
15597         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
15598         * troff/input.c (input_input_requests): Likewise.
15599         * ps/ps.c (make_encoding_name): Likewise.
15600         (ps_printer::set_style): Likewise.
15601         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
15603         * tty/devascii/R.proto: Map fm onto '.
15604         * tty/devlatin1/R.proto: Likewise.
15606 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
15608         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
15609         argument to \w is at a different input level.
15611         * tbl/table.c (table::init_output): Define a new macro
15612         REPEATED_VPT_MACRO, like vpt but if in a diversion also
15613         transparently outputs itself.
15614         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
15615         vpt.
15616         (table::do_row): Likewise.
15618         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
15619         TRANSPARENT_STRING_NAME.
15621         * tbl/table.c (table::init_output): In the table release macro
15622         print an error message and don't produce any output if after
15623         issuing the need request the table still will not fit.  Also
15624         remove the diversion after bringing it back.
15626         * tbl/table.c (table::init_output): Define a new macro
15627         REPEATED_MARK_MACRO, like mk but if in a diversion also
15628         transparently outputs itself.
15629         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
15630         is necessary because .TH might not call .T#.
15631         (table::do_top): Likewise TOP_REG.
15632         (table::define_bottom_macro): If TOP_REG is no longer valid, use
15633         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
15634         table header might contain just the two top rules.
15636 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
15638         * troff/div.c: Implement new request `ptr' to print all traps.
15640         * troff/env.c (init_env_requests): Implement `.tabs' reg with
15641         init_string_env_reg.
15642         * troff/env.c (class tab_reg): Deleted.
15644 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
15646         * troff/div.c: New number register .pn returns the number of the
15647         next page as set by the pn request.
15649         * macros/tmac.an: Redid headers and footers.  Number each manual
15650         entry starting from 1 unless \nC is > 0, like Sun.  Added an
15651         optional 5th argument to .TH which specifies the manual name and
15652         appears in the center of the header.  Understand the X, P and D
15653         registers like Sun.
15655 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
15657         * troff/env.c (init_env_requests): New number register `.lt' to
15658         return the title length.
15660         * troff/node.h (class transparent_dummy_node): New class.
15661         * troff/node.c (class transparent_dummy_node): Provide member
15662         functions. 
15663         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
15664         than a dummy_node.
15666         * troff/input.c (token::next): New escape sequence \).
15667         * troff/input.c (get_copy): Recognize \) in copy mode.
15669         * troff/input.c (input_stack::clear): New function.
15670         * troff/input.c (exit_request): Use input_stack::clear.
15672         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
15673         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
15675         * troff/env.c: Move set_page_character to input.c.  Move
15676         page_character to input.c also.
15677         * troff/env.c (title): Split off the reading of the parts of the
15678         title into read_title_parts.
15679         * troff/input.c (read_title_parts): New function.  Check the
15680         input_level when testing whether a token matches the delimiter.
15682         * troff/input.c (exit_request): New function.
15683         * troff/input.c (init_input_requests): Bind ex request to
15684         exit_request rather than exit_groff.
15686         * troff/input.c (exit_groff): Call tok.next() before
15687         process_input_stack().
15689 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
15691         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
15692         * troff/env.h: ditto.
15693         * troff/input.c: ditto.
15695         * troff/env.c (environment::is_empty): Test pending_lines.
15697         * troff/env.c (environment::have_pending_lines): Removed.
15699         * troff/input.c: Add request to flush pending lines from the
15700         environment.
15702         * troff/env.c, troff/env.h: Add automatic widow control feature.
15704         * troff/input.c (exit_groff):  Do process_input_stack() after
15705         do_break() but before setting exit_flag to 2.
15707         * troff/input.c: Remove FLUSH_PENDING_LINES and
15708         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
15709         environment after END_TRAP token seen, but only if there aren't
15710         any more traps still unfinished.
15711         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
15713 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
15715         * troff/env.c: Rename the `retain_size' member of class
15716         pending_output_line to `no_fill'.
15718         * troff/env.c (title): When the line is output, make the
15719         retain_size argument !fill.
15721         * troff/node.h: Add `hyphenated' member to struct breakpoint.
15722         * troff/node.c (space_node::get_breakpoints),
15723         (dbreak_node::get_breakpoints):  Fill this in.
15724         * troff/env.c:  Allow specification of maximum number of
15725         consecutive hyphenated lines.
15727         * troff/env.c (environment::is_empty): Add test for !current_tab.
15729 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
15731         * troff/env.c (environment::hyphenate_line): Don't completely give
15732         up if the word is not to be hyphenated; continue so that breaks
15733         can be made at break_char_node's.
15735         * lib/lib.h: Only define INT_MAX if it's not already defined;
15736         undef INT_MIN if it's already defined.
15738         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
15740         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
15741         This works around a bug in AT&T C++ 2.0 used with an ANSI C
15742         compiler.
15743         
15744         * macros/tmac.an (an-header): Set no-space mode.
15746         * macros/tmac.an (TH): Start a new page if necessary.
15748         * Started using ChangeLog at version 0.4.
15750 Local Variables:
15751 version-control: never
15752 coding: latin-1
15753 End: