* tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
[s-roff.git] / ChangeLog
blob15d35659ea4dbe7e686971351d1d98f13d2fc609
1 2003-05-18  Werner LEMBERG  <wl@gnu.org>
3         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
4         to make items work which consist only of a tag.
6 2003-05-17  Werner LEMBERG  <wl@gnu.org>
8         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
9         aren't stretched in a tag (this can fail with unformatted boxes).
10         Instead, insert a break and go back one line.
12 2003-05-16  Werner LEMBERG  <wl@gnu.org>
14         * src/roff/troff/input.cc (return_macro_request): If called with
15         argument pop macro twice.  We need this to trace `return'.
17         * tmac/trace.tmac: Handle `return'.
18         Fix typos.
20         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
21         Document.
23 2003-05-15  Larry Kollar  <kollar@alltel.net>
25         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
26         registers `FPS', `FVS', and `FPD'.
28 2003-05-15  Werner LEMBERG  <wl@gnu.org>
30         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
31         correctly.
33 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
35         * tmac/groff_mdoc.man: Slight improvements.
37 2003-05-03  Werner LEMBERG  <wl@gnu.org>
39         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
40         `doc-header-space' after header line if register `cR' is set.
42 2003-05-02  Werner LEMBERG  <wl@gnu.org>
44         * TODO: Updated.
46 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
48         * tmac/doc-common (Nd): Use \[em].
50 2003-05-01  Werner LEMBERG  <wl@gnu.org>
52         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
53         doc-footer-space): Initialize to 0.5i.
54         (doc-setup-page-layout): Don't set doc-header-space and
55         doc-footer-space.
57 2003-04-30  Werner LEMBERG  <wl@gnu.org>
59         * REVISION: Set to 1.
61         * doc/pic.ms: Document possible problems with `figname'.
63 2003-04-29  Werner LEMBERG  <wl@gnu.org>
65 Version 1.19 released
66 =====================
68         * VERSION: Set to 1.19.
69         * REVISION: Set to 0.
70         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
72         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
73         Define charset as `US-ASCII' in html output.
75         * tmac/www.tmac (ULE): Add missing scaling indicator.
77         * win32-diffs: Removed.
79 2003-04-28  Werner LEMBERG  <wl@gnu.org>
81         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
82         `.da' and `.boxa'.
83         Document how to insert discardable whitespace with `.ss'.
85 2003-04-27  Werner LEMBERG  <wl@gnu.org>
87         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
88         work with plain TeX also.
90         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
92 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
94         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
95         Use a loose DTD.
97 2003-04-24  Werner LEMBERG  <wl@gnu.org>
99         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
100         vbox with positive height and zero depth if in TeX mode.
102         * NEWS: Document glyph name changes for grodvi and grolj4.
104 2003-04-23  Werner LEMBERG  <wl@gnu.org>
106         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
107         * doc/pic.ms: Fixed.
109 2003-04-21  Werner LEMBERG  <wl@gnu.org>
111         HP-UX 10.20 has `snprintf' but it isn't declared.
113         * configure.ac: Add declaration test for snprintf.
114         * configure: Regenerated.
115         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
116         * src/include/config.hin: Regenerated.
118 2003-04-19  Werner LEMBERG  <wl@gnu.org>
120         Add keyword `figname' to pic, specifying the name of the picture
121         box in TeX mode.  Based on a patch from William J Poser
122         <wjposer@unagi.cis.upenn.edu>.
124         * src/preproc/pic/pic.y: New token `FIGNAME'.
125         (macro_name): New rule of type <str>.
126         (placeless_element): Handle `FIGNAME'.
127         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
128         * src/preproc/pic/main.cpp (graphname): New global variable.
129         (do_picture): Initialize `graphname'.
130         * src/preproc/pic/pic.h: Updated.
131         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
132         `graphname'.
133         Simplify TeX code.
134         (tex_output::text): Beautify output.
135         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
136         `shaded' and `outlined' unconditionally.
137         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
138         Minor improvements.
140         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
141         greater is necessary.
143 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
145         Add option -r to soelim to avoid emission of `.lf' lines.
146         Add option -t to produces TeX comment lines instead of `.lf' lines.
148         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
149         and `tex_flag'.
150         (usage): Updated.
151         (main): Handle `-r' and `-t'.
152         (set_location): Handle `raw_flag' and `tex_flag'.
153         * src/preproc/soelim/soelim.man, NEWS: Updated.
155 2003-04-17  Werner LEMBERG  <wl@gnu.org>
157         * tmac/hyphenex.sh: Replaced with...
158         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
159         nightmares.
161         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
162         if --quiet is used for the configure script.
163         * configure: Regenerated.
165 2003-04-16  Werner LEMBERG  <wl@gnu.org>
167         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
168         Add `const' to second argument.
169         (html_printer::add_table_end): Add `const' to argument.
170         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
171         `const' to arguments.
172         * src/devices/grohtml/html-text.h: Updated.
174         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
175         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
176         argument.
178         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
179         cast for integer constant.
181         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
182         (writeNbytes): Add `const' to first argument.
183         (writeString): Add `const' to argument.
184         (char_buffer::can_see): Add `const' to third argument.
185         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
186         `const' to argument.
187         * src/preproc/html/pushback.h: Updated.
189         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
190         (include_path_append): Add `const' to argument.
191         (do_file): Updated.
193         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
194         for `value'.
195         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
196         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
197         for `value'.
198         (unicode_decompose_init::unicode_decompose_init): Updated.
199         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
200         for `value'.
201         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
202         * src/roff/troff/input.cc (process_startup_file): Add `const' to
203         argument.
205         * tmac/hyphenex.sh: Make script more portable by using a here
206         document.
208 2003-04-15  Werner LEMBERG  <wl@gnu.org>
210         Renamed all `*.cc' files to `*.cpp'.
211         Updated all configuration files, makefiles, and documentation.
213 2003-04-14  Werner LEMBERG  <wl@gnu.org>
215         * tmac/hyphenex.sh: Slight improvements.
217 2003-04-13  Werner LEMBERG  <wl@gnu.org>
219         * font/devascii/R.proto, font/devcp1037/R.proto,
220         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
221         character slots with unnamed glyphs.
223         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
224         (an-first): New global variable.
225         (an-header): Emit vertical space between multiple man pages.
227 2003-04-11  Werner LEMBERG  <wl@gnu.org>
229         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
230         values.
232 2003-04-10  Werner LEMBERG  <wl@gnu.org>
234         * PROBLEMS: Revised.
236 2003-04-10  Bernd Warken  <bwarken@mayn.de>
238         * doc/webpage.ms: Improved.
240 2003-04-09  Werner LEMBERG  <wl@gnu.org>
242         Add register \n[.height] which returns the value of \H.
243         Add register \n[.slant] which returns the value of \S.
245         * src/roff/troff/env.cc (init_env_requests): Implement.
246         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
247         Document.
249 2003-04-08  Werner LEMBERG  <wl@gnu.org>
251         * tmac/html.tmac: Move some of the data into html-end.tmac.
252         Remove most of the character translations for eqn since html fonts
253         now cover those characters.
254         Load www.tmac.
255         * tmac/html-end.tmac: New file.
256         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
257         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
258         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
260 2003-04-07  Werner LEMBERG  <wl@gnu.org>
262         * man/groff_out.man: Document negative values of `N' if -Thtml is
263         used.
265 2003-04-06  Werner LEMBERG  <wl@gnu.org>
267         * Makefile.comm (depend.temp): Check location of YTABC.
269 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
271         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
272         binary path.
273         (groff_bin_path): Rename to GROFF_BIN_PATH.
274         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
275         * doc/Makefile.in (TROFFBIN): New variable for troff
276         binary path.
277         (GROFFBIN): New variable for groff binary path.
278         (groff_bin_path): Rename to GROFF_BIN_PATH.
279         (TROFF): Use TROFFBIN.
280         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
281         * doc/Makefile.sub (GROFFBIN): New variable for groff
282         binary path.
283         (groff_bin_path): Rename to GROFF_BIN_PATH.
284         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
286         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
287         with INSTALL_SCRIPT.
288         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
289         * Makefile.dev (all): Depend on DEVSCRIPTS.
290         (install_dev): Likewise.
291         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
292         scripts.
293         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
294         (DEVGENSCRIPTS): New variable to hold generated scripts.
296 2003-04-05  Werner LEMBERG  <wl@gnu.org>
298         * src/libs/libdriver/input.cc (IntArray::operator[],
299         IntArray::get_data): Remove meaningless `const' in return value.
301         * README.CVS: New file.
303 2003-04-04  Werner LEMBERG  <wl@gnu.org>
305         Check for stdint.h in C++, not in C.
307         * aclocal.m4 (GROFF_STDINT_H): New function,
308         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
309         AC_CHECK_HEADERS.
310         * configure, src/include/config.hin: Regenerated.
311         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
314         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
315         with a negative value, representing the width of the unbreakable
316         space (only for -Thtml).  grohtml then converts this back to
317         &nbsp; and uses the value of N as its width.
319         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
320         unbreakable_space_node::tprint): Emit `N-<width>'.
321         * src/include/printer.h (printer::set_numbered_char): Make it
322         virtual.
323         Make members `font_table' and `nfonts' protected instead of private.
324         * src/devices/grohtml/post-html.cc
325         (html_printer::set_numbered_char): New member function.
328         * src/libs/libgroff/maxfilename.cc:
329         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
331         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
332         emit word marker.
334 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
336         * man/roff.man: Small fixes.
338 2003-04-03  Werner LEMBERG  <wl@gnu.org>
340         Make groff independent from locale's numeric settings.
342         * configure.ac: Check for `setlocale'.
343         * configure, src/include/config.hin: Regenerated.
345         * src/include/lib.h: Handle HAVE_SETLOCALE.
347         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
348         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
349         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
352         * doc/groff.texinfo: Change dir category to `Typesetting'.
353         (Man font macros): Mention that there is no space between arguments
354         of .BI and friends.
356         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
357         (*printer::change_color, *printer::change_fill_color): Add missing
358         `const'.
360 2003-04-02  Werner LEMBERG  <wl@gnu.org>
362         * src/devices/grohtml/html-table.cc (html_table::emit_col,
363         html_table::is_gap): Compute table widths after converting border
364         positions to avoid rounding errors.
366 2003-04-01  Werner LEMBERG  <wl@gnu.org>
368         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
369         `space_emitted' properly.
371 2003-03-31  Werner LEMBERG  <wl@gnu.org>
373         * src/devices/grohtml/html-table.cc: Fix column width calculation.
374         (html_table::set_linelength): Don't add 1.
375         (html_table::add_indent): Don't subtract 1.
377         * tmac/html.tmac: Set default page offset to zero.
379 2003-03-30  Werner LEMBERG  <wl@gnu.org>
381         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
383         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
384         unbreakable_space_node::tprint): New functions.
385         (troff_output_file): Make space_char_hmotion_mode::tprint and
386         unbreakable_space_node::tprint to friends.
387         * src/roff/troff/node.h: Updated.
389         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
390         in the HTML standard).
392 2003-03-29  Werner LEMBERG  <wl@gnu.org>
394         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
395         Otherwise, the following code
397           .di xxx
398           .ps 10
399           a
400           .br
401           .di
402           x\*[xxx]
404         produces `x a' instead of `xa'.  This is a temporary fix, disabling
405         font changes in diversions for -Thtml.
407         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
408         `HTML-TAG'.
409         (an-do-tag-html): Merge with ...
410         (an-do-tag): This macro.
411         Change code slightly to circumvent grohtml bug.
412         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
414         * src/devices/grohtml/html-table.cc (html_table::emit_col,
415         html_table::is_gap): Round `width' properly.
417         * tmac/html.tmac: Provide some default layout parameters for
418         grohtml.
420         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
421         command.
423 2003-03-28  Werner LEMBERG  <wl@gnu.org>
425         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
427 2003-03-27  Werner LEMBERG  <wl@gnu.org>
429         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
430         defined.
432 2003-03-20  Werner LEMBERG  <wl@gnu.org>
434         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
435         `.vs'.
436         * doc/groff.texinfo: Updated.
438 2003-03-19  Werner LEMBERG  <wl@gnu.org>
440         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
441         TOKEN_END_TRAP>: Reset `have_input'.
443 2003-03-18  Werner LEMBERG  <wl@gnu.org>
445         * src/roff/groff/groff.man: Mention groff_trace man page.
447 2003-03-16  Werner LEMBERG  <wl@gnu.org>
449         * Makefile.in (LIBEXT): New variable to indicate the file extension
450         of library files.  Computed heuristically from $(OBJEXT).
451         (MDEFINES): Add $(LIBEXT).
452         * Makefile.lib, Makefile.comm: Use it.
454         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
455         overlong lines into smaller chunks.
456         (get_binary): New function.
457         (main): Use them.
458         * src/utils/pfbtops/pfbtops.man: Updated.
460 2003-03-15  Colin Watson  <cjwatson@debian.org>
462         * src/roff/groff/groff.man: Minor syntax fix.
464 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
466         * src/devices/grops/ps.cc (ps_printer::media_set,
467         ps_printer::~ps_printer): Handle zero paper width and length.
469 2003-03-13  Werner LEMBERG  <wl@gnu.org>
471         Add options -p and -l to grodvi.
473         * src/devices/grodvi/dvi.cc: Include paper.h.
474         (landscape_flag, user_paper_length, user_paper_width): New global
475         variables.
476         (dvi_printer::begin_page): Emit `papersize' special.
477         Set color after initialization of `cur_h' and `cur_v'.
478         (main): Add options `-l' and `-p'.
479         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
480         * src/devices/grodvi/grodvi.man, NEWS: Updated.
482         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
484 2003-03-12  Werner LEMBERG  <wl@gnu.org>
486         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
487         * man/groff_tmac.man: This man page.
488         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
489         deprecated.
491         * tmac/X.tmac: Don't load pspic.tmac.
493 2003-03-11  Werner LEMBERG  <wl@gnu.org>
495         Make variable `pr' local to libdriver/input.cc.  Based on a patch
496         by Bernd Warken <bwarken@mayn.de>.
498         * src/include/driver.h (pr): Removed.
500         * src/libs/libdriver/input.cc (pr): New global variable.
501         (do_file): Deallocate `pr'.
502         * src/libs/libdriver/printer.cc (pr): Removed.
504         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
505         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
506         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
507         (main): Don't delete `pr'.
509 2003-03-10  Werner LEMBERG  <wl@gnu.org>
511         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
512         * tmac/papersize.tmac: New file.
513         * tmac/troffrc: Include `papersize.tmac'.
514         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
515         * tmac/an-old.tmac: Set LT to LL by default.
517         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
518         doc/groff.texinfo: Updated.
520         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
521         bug which caused all odd iso papers to have wrong dimensions.
523         * src/devices/grops/ps.cc (user_paper_width): New global variable.
524         (main) <'p'>: Set `user_paper_width' also.
525         (ps_printer::media_width, ps_printer::media_height): Use values
526         given with option `-p'.
528 2003-03-09  Werner LEMBERG  <wl@gnu.org>
530         * src/include/nonposix.h: Provide default for SET_BINARY.
532         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
533         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
534         unconditionally.
536         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
537         (main): Treat \r\n as \n.
539 2003-03-08  Werner LEMBERG  <wl@gnu.org>
541         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
542         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
544 2003-03-07  Werner LEMBERG  <wl@gnu.org>
546         Added support to access more than 256 glyphs in Type 1 fonts.
548         * src/devices/grops/ps.cc (subencoding): New structure.
549         (style): Add `sub' field.
550         Updated all users.
551         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
552         Add `set_subencoding', `get_subfont' and `encode_subfont' member
553         functions.
554         Updated all users.
555         (ps_printer::set_char): Use `set_subencoding'.
556         (make_subencoding_name): New function.
557         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
558         (ps_printer::~ps_printer): Emit subencoding definitions.
560         * src/devices/grops/psrm.cc (valid_input_table): New array to
561         properly support EBCDIC.
562         (white_space): Add `\f'.
563         (ps_get_line): Change first argument to be of type `string &'.
564         Updated all callers.
565         This allows to get lines of arbitrary length.
566         Use `valid_input_table'.
567         Remove warning about non-conforming PS line length.  This seems
568         not to be of great importance -- for example, dvips don't emit
569         a warning either.
570         (PS_LINE_MAX): Removed.
571         (matches_comment): Change first argument to be of type `string &'.
573         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
575         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
576         %AGL_to_unicode, %default_ligatures): New hash tables.
577         Read all map entries.
578         Add unencoded characters.
579         Check for default ligatures if there are no `L' entries.
580         Print all kern entries.
581         Print all characters in charset.
582         * src/utils/afmtodit/afmtodit.man: Updated.
584         * font/devps/*: Regerated all fonts.
586         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
587         of characters, just use `.trin'.  Otherwise the mapping depends
588         on the font encoding.
589         * tmac/ps.tmac: Add `fi' and `fl'.
590         Improve `Fi' and `Fl'.
591         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
592         * tmac/Xps.tmac: Fix `em'.
594         * NEWS: Updated.
596 2003-03-04  Werner LEMBERG  <wl@gnu.org>
598         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
599         `have_input'.
601 2003-03-03  Werner LEMBERG  <wl@gnu.org>
603         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
605         * font/devps/generate/textmap: Remove entry `similarequal'.
606         * font/devps/symbolmap: Updated.
608 2003-03-02  Werner LEMBERG  <wl@gnu.org>
610         * src/libs/libgroff/font.cc (font::load): Fix error message for
611         bad character type.
613         * src/devices/grops/grops.man: Improve documentation of the -b
614         flag.
616         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
617         `ascii' and `cp1047'.
619 2003-03-01  Werner LEMBERG  <wl@gnu.org>
621         Document composite glyphs and the `composite' request.
623         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
625 2003-02-28  Werner LEMBERG  <wl@gnu.org>
627         * font/devdvi/generate/ec.map: Add some more Unicode entities.
628         * font/devdvi/*EC: Updated.
630         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
631         * tmac/latin1 (latin1-tr): Undo any previous mapping.
632         * tmac/troffrc: Load `composite.tmac'.
633         * tmac/Makefile.sub (NORMALFILES): Updated.
635         * doc/groff.texinfo (Input Encodings): New section.
636         * NEWS: Updated.
638 2003-02-27  Werner LEMBERG  <wl@gnu.org>
640         * doc/texinfo.tex: New version 2003-02-11.06.
642         * tmac/doc-common (Dt): Don't emit warning for unknown section.
643         * tmac/groff_mdoc.man: Fix description of `Dt'.
645 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
647         * font/devps/prologue.ps: Fix for included Postscript that does
648         a setpagedevice -- which is now safely ignored.
650         * NEWS: Updated.
652         * src/devices/grops/ps.cc: Now sets the page size in the generated
653         document.  This is done in two ways: Via a %%-comment for gv and
654         the like, and via a PageSize and setpagedevice for programs that
655         understands Postscript proper, like ps2pdf.
657         * src/devices/grops/ps.h: New broken-flag to avoid page size
658         definition, if required.
660         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
662         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
663         Not really necessary due to the fix in prologue.ps, but cleaner:
664         Such information does not belong in an .eps file.
666         * doc/Makefile.sub: See doc/Makefile.in.
668 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
670         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
671         instead of P1 since the latter is broken in some versions of netpbm.
672         * configure: Updated.
674 2003-02-26  Larry Kollar  <kollar@alltel.net>
676         Make man pages more customizable.
678         * tmac/an-old.tmac (FT): New register holding footer distance from
679         bottom.
680         (HF): New string holding the default heading font.
681         (TH): Handle registers `IN' and `SN' set on the command line.
682         Use `FT'.
683         (PT, BT): New strings to customize header and footer lines.
684         (an-header, an-footer): Use them.
685         (SH, SS): Use `HF'.
686         * tmac/groff_man.man: Document changes.
688         * doc/groff.texinfo: Document man changes.
689         Document Ultrix extensions of man.
691 2003-02-26  Werner LEMBERG  <wl@gnu.org>
693         * src/roff/troff/input.cc (do_width, do_if_request): Reset
694         `have_input' after changing back to old environment.
696         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
697         function up to be defined before first call.  This is necessary to
698         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
700         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
701         the default font directory also.  Based on a patch from James
702         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
703         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
704         * src/utils/afmtodit/afmtodit.man: Document it.
706         * NEWS: Updated.
708         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
710 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
712         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
713         (GROFF_PNMTOPS_NOSETPAGE): New macro.
714         * configure.ac: Use it.
715         * configure: Regenerated.
716         * Makefile.in: Updated.
718         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
719         (CLEANADD): Add www.tmac-sed.
720         (pnmtops_nosetpage): Define default.
721         (install_data): Handle www.tmac-sed and substitute
722         @PNMTOPS_NOSETPAGE@.
723         (stamp-sed): Add www.tmac.
724         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
725         It now breaks URLs at suitable places.
726         (www:substring_ok): New register set by...
727         (www:@test_substring): New macro.
728         (www:error): New alias to www-error.
729         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
730         New macros.
731         (URL): Use www:url_breaks.
732         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
733         (CDS, CDE): New macros.
735 2003-02-25  Werner LEMBERG  <wl@gnu.org>
737         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
738         buffer overflow.
740 2003-02-24  Werner LEMBERG  <wl@gnu.org>
742         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
743         can be negative also.
745         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
746         `int16'.
747         (read_char_table): Avoid negative ascenders.
748         (output_charset): Add cast.
749         * font/devlj4/*: Regenerated.
751         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
752         possible.
754         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
755         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
756         of `<>'.
757         * font/devdvi/*: Regenerated.
759         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
760         normal width, while the previously used characters (U+2329 and
761         U+232A) are classified as wide due to canonical equivalence with the
762         CJK punctuation characters U+3008 and U+3009.
764         * font/devutf8/R.proto: Updated.
765         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
767         * man/groff_char.man: Simplify handling of table traps by
768         introducing `start block' and `end block' macros.
769         (Ns, Ne, 2s, 2e, Ds, De): New macros.
770         (DL): Make it work with Unix troff also.
771         Fix code values of `la' and `ra'.
773         * tmac/dvi.tmac: Define `<>' for CW and CWI.
775 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
777         * src/devices/grohtml/post-html.cc (element_list::~element_list):
778         New destructor, fixing a major memory leak.
780 2003-02-22  Werner LEMBERG  <wl@gnu.org>
782         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
783         to be in conformance with Unicode 3.0 and newer.
785         * font/devlj4/generate/text.map: Add `Eu'.
786         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
787         * font/devlj4/S: Regenerated.
789         * man/groff_char.man: Completely rewritten.
791         * doc/groff.texinfo: Fix description of request and macro arguments.
793 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
795         Valgrind fixes.
797         * src/devices/grohtml/html-table.cc (html_table::~html_table):
798         Deallocate `columns' list.
799         * src/devices/grohtml/post-html.cc (char_block::~char_block):
800         New destructor.
801         (text_glob::text_glob_html, text_glob::text_glob_special,
802         text_glob::text_glob_line, text_glob::text_glob_auto_image,
803         text_glob::text_glob_tag): Avoid memory leaks.
804         (text_glob::remember_table): Free memory before reassigning.
806 2003-02-19  Werner LEMBERG  <wl@gnu.org>
808         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
809         alias `hbar'), the Planck constant over two pi.
811         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
812         `+e' for position 34.
813         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
814         `u2662' and `u2661'.
815         * font/devdvi/{MI,S}: Regenerated.
816         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
817         * font/devlbp/*: Add `hbar' alias.
818         * font/devlj4/generate/special.map: Ditto.
819         * font/devlj4/S: Regenerated.
820         * font/devps/generate/symbolchars: Add `+e'.
821         * font/devps/generate/textmap: Fix PS name for `-h'.
822         Add `hbar' alias.
823         * font/devps/symbolmap: Regenerated.
825         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
827         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
828         `-h', `hbar'.
829         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
830         `-h'.
832         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
833         `hbar'.
834         * tmac/tty-char.tmac: Add `+e'.
836 2003-02-17  Werner LEMBERG  <wl@gnu.org>
838         Another round trying to really fix problems with `have_input'.
840         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
841         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
843         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
844         handling if both foreground and background colors are default.
846         * doc/groff.texinfo (Debugging): Document .lf differences to
847         AT&T troff.
849 2003-02-16  Werner LEMBERG  <wl@gnu.org>
851         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
852         null-bytes in created string.
854         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
855         alias_macro, lookup_request): Improve warning messages.
857         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
858         not `strdup'.
859         Free `last_image_filename'.
861         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
862         `buffer'.
863         (imageList::createPage, imageList::createImage): Use `free', not
864         `a_delete'.
865         (imageItem::~imageItem): Free `imageName'.
866         (addRegDef): Use `strsave', not `strdup'.
867         (get_resolution): Free `pathp'.
869 2003-02-15  Werner LEMBERG  <wl@gnu.org>
871         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
872         to `dummy'.
874 2003-02-14  Werner LEMBERG  <wl@gnu.org>
876         Add memory management for colors to deallocate unnamed colors
877         properly.
879         * src/include/color.h (color): New members `free_list' and `next'.
880         New member functions `new' and `delete'.
881         Add destructor.
882         * src/libs/libgroff/color.cc: Implement it.
884         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
885         for array size of new operator.
887         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
888         redundant comparison.
890         * src/roff/troff/input.cc (word_space_node::reread,
891         hmotion_node::reread): Avoid warning about unused parameter.
892         (reset_output_registers): Remove redundant parameter.
893         (define_color): Undo change 2003-02-12.
895         * src/roff/troff/reg.h: Updated.
897         * src/roff/troff/node.cc (troff_output_file::really_print_line,
898         output_file::put_filename, real_output_file::really_put_filename,
899         ascii_output_file::really_print_line,
900         break_char_node::get_hyphen_list): Avoid warning about unused
901         parameter.
902         (suppress_node::tprint): Updated.
904         * configure.ac: Check declaration for rand() and srand().
905         * configure: Regenerated.
907         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
908         conditionally.
909         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
910         and srand().
912         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
913         to avoid compiler warnings.
915         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
916         unused.
918         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
919         is unused.
920         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
921         (unused) parameter.
922         Updated all callers.
924         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
925         is unused.
926         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
927         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
929         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
930         Parameter is unused.
931         (html_printer::add_table_end): Define parameter conditionally.
932         * src/devices/grohtml/output.cc (simple_output::special): Parameter
933         is unused.
935         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
936         (lbp_printer::set_char): Last parameter is unused.
938         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
940 2003-02-13  Werner LEMBERG  <wl@gnu.org>
942         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
943         Make \D'f ...' move horizontally again for backwards compatibility.
944         Replace it with \D'Fg ...' where appropriate to avoid dependency
945         on horizontal resolution.
947         * src/roff/troff/input.cc (do_get_long_name): New function.
948         (get_long_name): Call it.
950         (read_draw_node): Handle `\D'Fx ...' by calling ...
951         (read_color_draw_node): New function.
953         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
954         `end'.
955         Pass it to `do_get_long_name' which is used instead of
956         `get_long_name'.
958         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
959         unnecessary value guard.
960         (parse_D_command) <'f'>: Add horizontal shift.
962         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
963         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
964         (FILL_MAX): Removed.
966         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
967         Updated.
969 2003-02-12  Werner LEMBERG  <wl@gnu.org>
971         * src/roff/troff/input.cc (do_name_test, do_expr_test,
972         do_zero_width): Push `\n' if closing delimiter is missing.
974         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
975         <'F'>: Make \F non-transparent at the beginning of line.
976         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
977         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
978         `have_input'.
980         (define_color): Free color in case of reassignment.
982         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
983         @DefescListEnd): Use @Var, not @var.
984         Fix all calls.
986         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
988         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
989         `shaded' and `outlined' arrays.
990         (object_spec::object_spec): Initialize `shaded' and `outlined'.
991         (graphic_object::set_fill_color, graphic_object::set_outline_color):
992         Use strsave.
993         (closed_object::set_fill_color): Ditto.
994         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
995         instead of strdup.
996         (troff_output::reset_color): Use a_delete instead of free.
997         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
999 2003-02-11  Werner LEMBERG  <wl@gnu.org>
1001         * doc/groff.texinfo: Improve documentation of `ad'.
1002         Document that \D'f...' is dependent on the horizontal resolution.
1003         * man/groff_diff.man: Improve documentation of \D'f...'.
1005         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
1006         compensating \h'...' for \D'f ...' since the latter no longer moves
1007         current position.
1008         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1010 2003-02-10  Werner LEMBERG  <wl@gnu.org>
1012         Improve error messages for `x F' (and `F') commands.
1014         * src/include/error.h: Add declaration for
1015         `current_source_filename'.
1016         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
1017         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
1018         parameter for source file string.
1019         Updated all callers.
1021         * src/libs/libdriver/input.cc: Add `current_source_filename'.
1022         (remember_source_filename): New function.
1023         (parse_x_command <'F'>, do_file <'F'>): Use it.
1025 2003-02-09  Werner LEMBERG  <wl@gnu.org>
1027         Make grotty not emit warnings about unknown colors more than
1028         necessary.
1030         * src/devices/grotty/tty.cc: Include `ptable.h'.
1031         (TTY_MAX_COLORS): Removed.
1032         (DEFAULT_COLOR_IDX): Defined to -1.
1033         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
1034         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
1035         Change `tty_colors' to be a ptable.
1036         First arg of `put_color' is now `char'.
1037         New functions `make_rgb_string' and `tty_color'.
1038         (tty_printer::tty_printer): Use `tty_color'.
1039         (tty_printer::color_to_idx): Return value is now `char'.
1040         Use `tty_color'.
1042         * src/include/color.h (color): Add `print_color' member function.
1043         * src/libs/libgroff/color.cc (color::print_color): Implement it.
1045 2003-02-08  Werner LEMBERG  <wl@gnu.org>
1047         Valgrind fixes.
1049         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
1050         encoding file.
1052         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
1053         assume that value has been allocated with `new[]', thus use
1054         `a_delete' for deallocation.
1056         * src/libs/libdriver/input.cc (get_integer_arg,
1057         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
1058         where appropriate.
1060         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
1061         * src/libs/libgroff/nametoindex.cc
1062         (character_indexer::named_char_index): Use `new <type>[1]'.
1064         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
1065         <type>[1]'.
1066         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
1067         (split_text): Use `a_delete'.
1069         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
1070         <type>[1]'.
1072         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
1073         harmless memory leak.
1074         (hyphen_trie::read_patterns_file): Initialize `buf'.
1075         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
1076         Initialize `current_fill_color'and `current_glyph_color'.
1077         * src/roff/troff/glyphuni.cc
1078         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
1079         * src/roff/troff/uniuni.cc
1080         (unicode_decompose_init::unicode_decompose_init): Ditto.
1081         * src/roff/troff/uniglyph.cc
1082         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
1084 2003-01-26  Werner LEMBERG  <wl@gnu.org>
1086         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
1087         `access' before calling `unlink'.
1088         (do_file): Handle __EMX__.
1090         * src/include/nonposix.h: Handle __EMX__.
1092         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
1093         (fontpath,tmacpath): Use it.
1094         (MDEFINES): Add it.
1095         Sorted alphabetically.
1097         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
1098         @SEP@.
1099         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
1100         @SEP@.
1102 2003-01-27  Werner LEMBERG  <wl@gnu.org>
1104         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
1105         New files, copied from gnulib.
1106         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
1107         * configure.ac: Updated.
1108         * configure: Regenerated.
1110         * src/include/config.hin: Regenerated.
1111         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
1112         Don't define `strcasecmp' as `strcmp'.
1113         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
1114         Dont define `strncasecmp' as `strncmp'.
1116         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
1117         Removed.
1119 2003-01-26  Werner LEMBERG  <wl@gnu.org>
1121         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
1122         s/unline/unlink/.
1124 2003-01-25  Werner LEMBERG  <wl@gnu.org>
1126         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
1128 2003-01-24  Werner LEMBERG  <wl@gnu.org>
1130         Add US-english hyphenation exceptions (converted from Barbara
1131         Beeton's hyphenation exception log reports which appear irregularly
1132         in TUGBoat).
1134         * tmac/hyphen.us: Updated to latest version.
1135         * tmac/README: Updated.
1136         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
1137         * tmac/troffrc: Load `hyphenex.us'.
1138         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
1139         * doc/groff.texinfo: Updated.
1141 2003-01-23  Werner LEMBERG  <wl@gnu.org>
1143         Improve hyphenation slightly.  This is a first step in redesigning
1144         the hyphenation algorithm to make it more flexible (e.g. allowing
1145         kerns and ligatures between the hyphenation character and the
1146         following character -- while not used normally in English, other
1147         languages like German would benefit).
1149         * src/roff/troff/env.cc (environment::hyphenate_line): Use
1150         assertion instead of if-clause.
1151         Let `get_hyphen_list' return the number of involved characters in
1152         the hyphenation pattern instead of computing it directly (which
1153         often yields too small values).
1154         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
1155         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
1156         parameter.
1158 2003-01-22  Werner LEMBERG  <wl@gnu.org>
1160         Fixing a bug which caused groff to hang if the hyphenation exception
1161         dictionary tried to grow.
1163         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
1164         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
1165         pointer to dictionary.
1167 2003-01-20  Werner LEMBERG  <wl@gnu.org>
1169         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
1170         negative left italic correction.
1171         * src/utils/afmtodit/afmtodit.man: Document it.
1173         * font/devps/generate/Makefile (RFLAG): Add `-m'.
1174         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
1175         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
1177         * NEWS: Updated.
1179 2003-01-16  Werner LEMBERG  <wl@gnu.org>
1181         * NEWS: Updated.
1183 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
1185         * src/preproc/refer/refer.man: Mention REFER environment variable.
1187 2003-01-05  Werner LEMBERG  <wl@gnu.org>
1189         Similar to \[is], the square root glyph (\[sr]) and the square root
1190         extension glyph (\[radicalex]) are now text symbols.  The new
1191         mathematical versions are called \[sqrt] and \[sqrtex],
1192         respectively.
1194         * font/devX*/S: Regenerated.
1195         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
1196         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
1197         * font/devdvi/EX, font/devdvi/S: Regenerated.
1198         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
1199         * font/devlj4/generate/special.map: Add `sqrt'.
1200         * font/devlj4/S: Regenerated.
1201         * font/devps/generate/textmap: Add `sqrt'.
1202         * font/devps/S, font/devps/symbolmap: Regenerated.
1204         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
1205         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
1206         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
1207         overlap horizontally.
1209         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
1210         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
1211         Fix `radicalex'.
1213         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
1214         and `sqrtex' are overlapping glyphs.
1216 2003-01-04  Werner LEMBERG  <wl@gnu.org>
1218         * font/devdvi/generate/texsy.map: Add `is'.
1219         * font/devps/symbolmap: Regenerated.
1220         * font/devdvi/*TC, MI, S: Regenerated.
1222         * tmac/dvi.tmac: Remove `is'.
1224 2003-01-03  Werner LEMBERG  <wl@gnu.org>
1226         `is' is now a text symbol (only relevant for dvi).  The math variant
1227         can be accessed with `integral'.
1229         * font/devX*/S: Regenerated.
1230         * font/devdvi/generate/texex.map: Remove `is'.
1231         * font/devdvi/EX: Updated.
1232         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
1233         * font/devlj4/generate/special.map: Ditto.
1234         * font/devlj4/S: Regenerated.
1235         * font/devps/generate/textmap: Add `integral'.
1236         * font/devps/S: Regenerated.
1238         * tmac/dvi.tmac: Define `is'.
1240         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
1242         * src/preproc/tbl/main.cc (process_format): Fix error message.
1244 2003-01-02  Werner LEMBERG  <wl@gnu.org>
1246         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
1247         * font/devps/textmap: Fix entries for `ne' and `nc'.
1248         * font/devps/symbolmap: Regenerated.
1250         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
1251         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
1252         `38', `58', `78', `-+', `|=', `nc', `ne'.
1254         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
1255         Use `schar' for `aq'.
1256         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
1257         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
1258         * tmac/tty.tmac: Add `ne'.
1260         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
1261         for fallback glyphs.
1263 2002-12-29  Werner LEMBERG  <wl@gnu.org>
1265         Add glyph `|='.
1267         * font/devX*/*: Regenerated.
1268         * font/devdvi/generate/ec.map: Remove `eq'.
1269         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
1270         Assign `|=' to position 39.
1271         * font/devdvi/*EC, S: Regenerated.
1272         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
1273         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
1274         Assign `|=' to position 549.
1275         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
1276         `equalmath'.
1277         Add `uni2243' for `|='.
1279         * tmac/ec.tmac: Add `eq'.
1280         * tmac/dvi.tmac: Add `=~'.
1281         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
1282         `|='.
1284 2002-12-21  Werner LEMBERG  <wl@gnu.org>
1286         * font/devdvi/generate/tc.map: Remove `**'.
1287         * font/devdvi/*TC: Regenerated.
1288         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
1289         `78', `<<', `>>'.
1290         * font/devutf8/NOTES: Updated.
1292         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
1293         Don't give default parameter to `set_macro'.
1294         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
1295         instead of `set_macro'.
1296         (charinfo::setx_macro): Implement it.
1297         (charinfo::set_macro): Don't change `mode'.
1299         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
1300         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
1301         * tmac/dvi.tmac: Define `!=' with `.schar'.
1303 2002-12-20  Werner LEMBERG  <wl@gnu.org>
1305         * font/devX*/S: Regenerated.
1306         * font/devdvi/generate/ec.map: Remove `pl'.
1307         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
1308         * font/devdvi/*{TC,EC}: Regenerated.
1309         * font/devhtml/R.proto: Add `-+'.
1310         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
1311         * font/devlbp/*: Remove `or'.
1312         * font/devlj4/generate/special.map: Remove `or'.
1313         * font/devlj4/S: Regenerated.
1314         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
1315         `seveneighths', `threeeighths'.
1316         Remove `plusmath'.
1317         Replace `minusplus' with `uni2213'.
1318         * font/devps/symbolmap: Regenerated.
1319         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
1320         Add `-+'.
1322         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
1323         function.
1324         * src/roff/troff/node.cc (troff_output_file::put_char_width):
1325         Call glyph_color and fill_color even if tcommand_flag isn't set.
1326         (make_node, node::add_char): Check not ci->is_fallback but
1327         ci->is_normal.
1329         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
1330         * tmac/ec.tmac: Add .rchar entry for `f/'.
1331         Don't remove `12', `14', `34'.
1332         Define `pl' to be always roman.
1333         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
1334         Define `18', `38', `58', `78'.
1335         * tmac/tty.tmac: Add `-+'.
1336         * tmac/dvi.tmac: Define `f/'.
1337         (dvi-frac): Use `f/'.
1338         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
1339         Define `18', `38', `58', `78'.
1341 2002-12-15  Colin Watson  <cjwatson@debian.org>
1343         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
1345 2002-12-10  Werner LEMBERG  <wl@gnu.org>
1347         Add glyph `tno', a textual variant of `no'.
1349         * font/devX*/*: Regenerated.
1350         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
1351         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
1352         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
1353         * font/devdvi/*: Regenerated.
1354         * font/devlbp/*: Add `tno'.
1355         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
1356         * font/devlj4/*: Regenerated.
1357         * font/devps/generate/textmap: Replace `no' with `tno'.
1358         * font/devps/generate/symbolchars: Add `no'.
1359         * font/devps/*: Regenerated.
1361         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
1363         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
1364         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
1366         * NEWS: Updated.
1368         * tmac/dvi.tmac: Replace most `\\' with `\E'.
1369         Add definition for `sd'.
1370         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
1372         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
1374 2002-12-08  Werner LEMBERG  <wl@gnu.org>
1376         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
1377         mode to avoid rounding errors.
1378         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
1380         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
1381         src/roff/troff/troff.man: Improve documentation of -T.
1383 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
1385         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
1386         (run_pipeline) [_WIN32]: Provide working function without `fork'.
1388 2002-12-06  Werner LEMBERG  <wl@gnu.org>
1390         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
1391         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
1392         Scaling Euro.sansserif glyphs down to have the same height as
1393         digits.
1394         Removed unnecessary points; added some extrema.
1396         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1397         Regenerated.
1399 2002-12-04  Werner LEMBERG  <wl@gnu.org>
1401         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
1402         and `Euro.symbol.bold.slanted'.
1403         Improve some glyph offsets and widths.
1404         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1405         Regenerated.
1406         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
1407         typo.
1408         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
1409         direcory.
1411         * tmac/europs.tmac: Updated to new glyph indices.
1412         Use Euro.symbol for font familiy `A'.
1414         * doc/groff.texinfo: Minor improvements.
1416 2002-12-02  Werner LEMBERG  <wl@gnu.org>
1418         * font/devdvi/generate.tc.map: s/%O/%0/.
1419         * font/devdvi/*TC: Regenerated.
1421         * src/roff/troff/div.cc (init_div_requests): Sorted.
1423         * tmac/dvi.tmac: Remove `Ye'.
1424         * tmac/ec.tmac: Remove `Ye'.
1425         Add .rchar entry for `de'.
1427         * man/groff.man, man/groff_diff.man: Document register `.pe'.
1428         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
1429         * NEWS: Updated.
1431 2002-11-30  Werner LEMBERG  <wl@gnu.org>
1433         Add PS font for various Euro glyphs.
1435         * font/devps/generate/freeeuro.sfd: New master font file for
1436         pfaedit.
1437         * font/devps/generate/sfdtopfa.pe: New conversion script for
1438         pfaedit.
1439         * font/devps/generate/Makefile (FONTS): Add `EURO'.
1440         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
1441         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
1442         `freeeuro.sfd'.
1443         * font/devps/EURO: Generated from `freeeuro.afm'.
1444         * font/devps/download: Add `freeuro.pfa'.
1445         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
1446         `freeeuro.pfa'.
1448         * tmac/europs.tmac: New file.
1449         * tmac/ps.tmac: Include `europs.tmac'.
1450         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
1452 2002-11-29  Werner LEMBERG  <wl@gnu.org>
1454         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
1455         * font/devdvi/S: Regenerated.
1456         * font/devhtml/R.proto: Fix `CR' and `ci'.
1457         Add `OK'.
1458         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
1459         Remove `bs'.
1460         * font/devps/symbolmap: Regenerated.
1461         * font/devutf8/R.proto: Fix `CR' and `ci'.
1462         Add `OK'.
1463         * font/devutf8/NOTES: Updated.
1465         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
1466         `ci'.
1467         Add `OK'.
1468         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1470         * tmac/dvi.tmac: Add `lh' and `rh'.
1471         * tmac/Xps.tmac: Fix `lh' and `rh'.
1472         * tmac/X.tmac: Add `OK'.
1473         * tmac/lj4.tmac: Ditto.
1475 2002-11-24  Werner LEMBERG  <wl@gnu.org>
1477         * font/devX*/S: Regenerated.
1478         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
1479         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
1480         * font/devdvi/generate/texsy.map: Remove `or' glyph.
1481         * font/devdvi/S: Regenerated.
1482         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
1483         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
1484         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
1485         `bracketleftbt', `bracketrighttp', `bracketrightex',
1486         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
1487         `braceex', `braceleftex', `bracerightex', `bracerighttp',
1488         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
1489         `rb', and `bv'.
1490         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
1491         * font/devutf8/NOTES: Updated.
1492         * font/devlj4/generate/special.map: Add glyph `braceex'.
1493         * font/devlj4/S: Regenerated.
1495         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
1497 2002-11-14  Werner LEMBERG  <wl@gnu.org>
1499         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
1500         and `vA'.
1501         Fix code for `an'.
1502         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1504         * doc/texinfo.tex: New version from texinfo 4.3.
1505         * doc/groff.texinfo: Updated for texinfo 4.3.
1506         Use @tie{} where appropriate.
1507         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
1508         * font/devdvi/generate/tc.map: Remove `rn'.
1509         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
1510         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
1511         Fix code for `an'.
1512         * font/devX100/*, font/devX100-12/*, font/devX75/*,
1513         font/devX75-12/*: Regenerated.
1515         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
1516         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
1517         Improve definition of `an'.
1518         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
1519         `ru'.
1520         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
1521         * tmac/X.tmac: Add definition for `or'.
1522         * tmac/Xps.tmac: Undo change 2002-11-05.
1523         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
1525 2002-11-11  Werner LEMBERG  <wl@gnu.org>
1527         * src/roff/troff/node.cc (troff_output_file::put_char): Always
1528         call flush_tbuf.
1530 2002-11-10  Werner LEMBERG  <wl@gnu.org>
1532         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
1533         defines a glyph which is searched after the check for fonts declared
1534         with `.special' (and before the check for all mounted special
1535         fonts).  `fschar' defines a glyph for a particular font which is
1536         searched after the check for fonts declared with `.fspecial' (and
1537         before the check for fonts declared with `.special').  `rfschar'
1538         removes glyphs defined with `fschar'.
1540         * src/roff/troff/token.h (char_mode): New enum.
1541         Declare do_define_character.
1542         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
1543         `mode'.
1544         (charinfo::is_fallback): Updated.
1545         (charinfo::is_special): New method.
1546         * src/roff/troff/input.cc (do_define_character): Add and use
1547         optional second parameter used as a prefix for font-specific glyph
1548         names.
1549         (define_character, define_fallback_character): Updated.
1550         (define_special_character): New function.
1551         (init_input_requests): Add `schar'.
1552         (charinfo::charinfo, charinfo::set_macro): Updated.
1553         * src/roff/troff/node.cc: Include `stringclass.h'.
1554         (make_glyph_node): Handle special glyphs defined with `.schar' and
1555         `.fschar'.
1556         (define_font_special_character, remove_font_special_character): New
1557         functions.
1558         (init_node_requests): Sorted.
1559         Add `fschar' and `rfschar'.
1560         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1561         Document new requests.
1563         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
1564         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
1566 2002-11-08  Werner LEMBERG  <wl@gnu.org>
1568         Added new font `SC' (cmtex10) to devdvi.
1570         * devdvi/generate/Makefile (FONTS): Add `SC'.
1571         (SC): New rule.
1572         * devdvi/generate/textex.map: New map file for cmtex.
1573         * devdvi/SC: New.
1574         * devdvi/Makefile.sub (DEVFILES): Updated.
1575         * tmac/dvi.tmac: Add fspecial entries for SC.
1576         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
1577         found before `S' since the font position of `SC' is lower due to the
1578         gaps in DESC's `font' line.
1579         * tmac/ec.tmac: Add a `special' call.
1580         * NEWS: Updated.
1582         * font/devhtml/R.proto: Remove double entry for `ti'.
1583         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
1584         * tmac/tty-char.tmac: Remove entry for `bq'.
1585         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
1586         * tmac/ec.tmac: Don't remove `aq' glyph.
1587         * tmac/X.tmac: Fix entry for `em'.
1588         Add entries for `fo' and `fc'.
1589         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
1591         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
1592         documentation of `special' and `fspecial' requests.
1594 2002-11-05  Werner LEMBERG  <wl@gnu.org>
1596         * font/devascii/R.proto, font/devcp1047/R.proto,
1597         font/devlatin1/R.proto: Remove entry for `.i'.
1598         * font/devdvi/generate/textt.map: Add entry for `ad'.
1599         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
1600         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
1601         We need this for getting kerning values to compose `/l' and `/L'.
1602         * font/devdvi: Regenerated font definition files for CM fonts.
1603         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
1604         * font/devutf8/R.proto: Ditto.
1605         Remove double entry for `ti'.
1607         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
1608         for (groff) ligatures, `la', and `ra'.
1609         Add "'C", "'c", `IJ', and `ij'.
1610         Remove double entry for `ti'.
1611         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
1612         double entries.
1613         Add "'C", "'c", `IJ', and `ij'.
1614         Fix entries for (groff) ligatures, `la', and `ra'.
1616         * tmac/ps.tmac (ps-achar): New macro.
1617         Define "'c" and "'C".
1618         * tmac/tty.tmac: Add entry for `.i'.
1619         * tmac/X.tmac (X-achar): New macro.
1620         Define "'c", "'C", and `:Y'.
1621         Add entries for `IJ' and `ij'.
1622         * tmac/Xps.tmac (Xps-achar): New macro.
1623         Define "'c" and "'C".
1624         Add entries for `IJ' and `ij'.
1625         * tmac/lbp.tmac (lbp-achar): New macro.
1626         Add fallback characters for all groff ligatures and many other
1627         glyphs.
1628         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
1629         Add entries for `/l' and `/L'.
1630         Define "'c" and "'C".
1631         Add entries for `IJ' and `ij'.
1633 2002-11-02  Larry Kollar  <kollar@alltel.net>
1635         * PROBLEMS: Document how to solve Mac OS X compilation problems.
1637 2002-11-02  Werner LEMBERG  <wl@gnu.org>
1639         Adding support for composite glyphs: \[xxx yyy ...] and the
1640         `composite' request.
1642         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
1643         to Unicode-based glyph names.
1644         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
1645         glyph names to groff glyph names.
1646         * src/roff/troff/uniuni.cc: New file for canonically decomposing
1647         Unicode-based glyph names.
1648         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
1649         for handling Unicode glyph names.
1650         * src/roff/troff/input.cc: Include unicode.h.
1651         (composite_glyph_name): New function.
1652         (token::next) <'['>: Handle Unicode glyph names and composite
1653         glyphs.
1654         (composite_dictionary): New dictionary for the `composite' request.
1655         (composite_request): Implement `composite' request.
1656         (init_input_requests): Add `composite'.
1657         Alphabetically sorted.
1658         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
1659         commented out).
1660         (init_env_requests): Alphabetically sorted.
1661         Removed `tas' and `tar' (already commented out).
1662         * src/roff/troff/Makefile.sub: Updated.
1664 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
1666         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
1667         of options.
1669 2002-10-29  Werner LEMBERG  <wl@gnu.org>
1671         Fix computation of .trunc register.  Additionally, its value (and
1672         the value of the .ne register) is now always set before entering the
1673         trap.
1675         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
1676         `needed_space' before calling `space'.
1677         (top_level_diversion::space): Remove special code for 'sp before the
1678         first page.
1679         Call `begin_page' with the discarded space as a parameter.
1680         (top_level_diversion::begin_page): Add optional parameter to set
1681         `truncated_space'.
1682         * src/roff/troff/div.h: Updated.
1684         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
1685         \n[.ne].
1687         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
1688         (LP): Remove superfluous call to `br'.
1689         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
1690         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
1692 2002-10-26  Werner LEMBERG  <wl@gnu.org>
1694         * tmac/doc-ditroff: Remove useless switch/variable -rC.
1695         (doc-setup-header): Don't set page register `%'.
1696         * tmac/doc-nroff: Remove variable `C'.
1697         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
1698         (doc-setup-header): Don't set page register `%'.
1699         Don't call `bp'.
1700         * tmac/doc-common (doc-header): Call `ns'.
1701         (doc-paragraph): Protect .sp with .br so that it survives traps
1702         possibly set by the user.
1703         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
1705         * tmac/doc*: Replace ' with . for consistency if no effect.
1707 2002-10-26  Werner LEMBERG  <wl@gnu.org>
1709         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
1710         so that it survives traps possibly set by the user.
1712         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
1713         (troff_output_file::set_font): Call flush_tbuf if necessary.
1714         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
1715         flush_tbuf and do_motion only if necessary.
1716         (troff_output_file::start_special,
1717         troff_output_file::put_char_width, troff_output_file::put_char,
1718         troff_output_file::draw): Updated.
1719         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
1720         vmotion_node::tprint): Undo change 2002-10-23.
1722 2002-10-25  Werner LEMBERG  <wl@gnu.org>
1724         * tmac/www.tmac (DC): Fix case of overlapping images.
1726 2002-10-23  Werner LEMBERG  <wl@gnu.org>
1728         * src/roff/troff/node.cc (troff_output_file::fill_color,
1729         troff_output_file::glyph_color): Set current color before testing
1730         color_flag.
1731         (troff_output_file::put_char_width, troff_output_file::put_char,
1732         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
1733         before glyph_color.
1734         (troff_output_file::file_color, troff_output_file::glyph_color):
1735         Call do_motion.
1736         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
1737         vmotion_node::tprint): Move first, then call fill_color.
1739 2002-10-20  Werner LEMBERG  <wl@gnu.org>
1741         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
1742         possible to use multiple main macro packages.
1744 2002-10-19  Werner LEMBERG  <wl@gnu.org>
1746         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
1747         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
1748         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
1749         is set.
1750         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
1751         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
1753 2002-10-16  Werner LEMBERG  <wl@gnu.org>
1755         * NEWS, doc/webpage.ms: Updated.
1757 2002-10-14  Werner LEMBERG  <wl@gnu.org>
1759         * src/roff/troff/node.cc (troff_output_file::put_char_width,
1760         troff_output_file::put_char, troff_output_file::fill_color,
1761         troff_output_file::glyph_color): Handle case where color pointer
1762         is null.
1764 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
1766         Add the new -r option to grotty.  It is similar to the -i option
1767         except it tells grotty(1) to use the "reverse video" attribute to
1768         render italic fonts.
1770         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
1771         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
1772         (tty_printer::make_underline, tty_printer::put_color,
1773         tty_printer::end_page): Use it.
1774         (main): Add -r switch.
1775         (usage): Updated.
1776         * src/devices/grotty/grotty.man: Document it.
1778 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
1780         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
1781         cast to `unsigned char' to properly read patterns with 8bit
1782         characters.
1784 2002-10-08  Werner LEMBERG  <wl@gnu.org>
1786         * REVISION: Increased to 2.
1788 Version 1.18.1 released
1789 =======================
1791 2002-10-08  Werner LEMBERG  <wl@gnu.org>
1793         * doc/webpage.ms, NEWS: Updated.
1795 2002-10-07  Werner LEMBERG  <wl@gnu.org>
1797         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
1798         suppress additional whitespace after the header.
1800         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
1801         with NetBSD.
1803         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
1805 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
1807         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
1808         (Dt): Use it to improve language localization (especially Russian
1809         and French).
1811 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
1813         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
1814         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
1815         drawing commands.
1816         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
1817         curve type.
1818         Call `picurve' for BSPLINE.
1819         (HGPrintElt): Handle BSPLINE.
1820         * src/preproc/grn/README: Document it.
1822 2002-10-03  Werner LEMBERG  <wl@gnu.org>
1824         * src/roff/troff/node.cc (break_char_node::col): New variable.
1825         Updated constructor.
1826         (space_node::tprint, word_space_node::tprint): Call `fill_color'
1827         unconditionally.
1828         (space_node::space_node): Remove assertion.
1829         (break_char_node::add_self): Pass color argument to space node.
1830         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
1831         Ditto.
1832         * src/roff/troff/env.cc (environment::do_break,
1833         environment::add_padding): Ditto.
1835 2002-10-02  Werner LEMBERG  <wl@gnu.org>
1837         Redesigning color support in troff.  Colors are no longer
1838         represented as separate nodes but are now part of glyph nodes and
1839         friends.  This fixes the current formatting misbehaviour due to the
1840         changes introduced on 2002-09-20.  Some extra code is necessary for
1841         proper grotty support: Without adding color variables to
1842         space-related nodes, the background color would be changed too late.
1844         * src/roff/troff/node.h, src/roff/troff/node.cc:
1845         s/current_pagecolor/current_fill_color/.
1846         s/current_glyphcolor/current_glyph_color/.
1847         (glyph_color_node, fill_color_node): Removed.
1848         (node::get_glyph_color, node::get_fill_color): New virtual member
1849         functions.
1850         (space_node::col): New variable.
1851         Updated constructors of space_node and derived classes accordingly.
1852         (hmotion_node::col): New variable.
1853         Updated constructors of hmotion_node and space_char_hmotion_node
1854         accordingly.
1855         (vmotion_node::col): New variable.
1856         Updated constructor accordingly.
1857         (draw_node::gcol, draw_node::fcol): New variables.
1858         Updated constructor accordingly.
1859         (special_node::gcol, special_node::fcol): New variables.
1860         Updated constructors accordingly.
1861         (troff_output_file::put_char, troff_output_file::put_charwidth,
1862         troff_output_file::draw): Set glyph and fill color.
1863         (troff_output_file::start_special): Set glyph and fill color.
1864         Always set current font.
1865         (troff_output_file::fill_color, troff_output_file::glyph_color):
1866         Don't call `do_motion'.
1867         (glyph_node::gcol, glyph_node::fcol): New variables.
1868         Updated constructors of glyph_node and ligature_node accordingly.
1869         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
1870         member functions.
1871         (glyph_node::merge_glyph_node,
1872         kern_pair_node::add_discretionary_hyphen,
1873         node::add_discretionary_hyphen): Updated.
1874         (break_char_node::merge_self): Updated.
1875         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
1876         vmotion_node::tprint): Handle color.
1877         (make_glyph_node, make_node, node::add_char): Updated.
1879         * src/roff/troff/env.cc (environment::space_newline,
1880         environment::space, environment::output_line, environment::do_break,
1881         environment::make_tab_node, environment::add_padding, title):
1882         Updated.
1883         (environment_switch, environment_copy): Don't add color nodes.
1885         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
1886         nothing.
1887         (token::next): Updated.
1888         \m and \M now are as transparent as \s.
1889         (process_input_stack, token::add_to_node_list, token::process,
1890         read_draw_node): Updated.
1891         (charinfo_to_node_list): Don't add color nodes.
1893         * doc/groff.texinfo: Updated.
1895 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
1897         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
1898         strings.
1900 2002-09-27  Colin Watson  <cjwatson@debian.org>
1902         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
1904 2002-09-23  Werner LEMBERG  <wl@gnu.org>
1906         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
1907         appropriate.
1908         (DEFAULT_LINEWIDTH_FACTOR): New macro.
1909         (linewidth_factor): New global variable.
1910         (lbp_printer::set_line_thickness): Fix case for size < 0, using
1911         linewidth_factor.
1912         (long_options): Add -w/--linewidth option.
1913         (usage): Updated.
1914         (main): Handle -w option to set linewidth_factor.
1915         (lbp_printer::lbp_printer): Initialize req_linethickness, not
1916         line_thickness.
1918         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
1920 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
1922         Fixed a bug in the line thickness setting code.
1924         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
1925         variable.
1926         (lbp_printer::set_line_thickness): Pass environment as second
1927         parameter.
1928         Implement it actually.
1929         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
1930         and `set_line_thickness, depending on the current font size.
1932 2002-09-21  Werner LEMBERG  <wl@gnu.org>
1934         Some Debian patches.
1936         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
1937         * src/roff/troff/node.cc (bracket_node::copy): Initialize
1938         `list->last'.
1940 2002-09-20  Werner LEMBERG  <wl@gnu.org>
1942         * configure: Regenerated with autoconf 2.54.
1944 2002-09-20  Werner LEMBERG  <wl@gnu.org>
1946         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
1947         glyph_color.
1948         Rename cur_fill_color to fill_color.
1949         * src/roff/troff/env.cc: Updated.
1951 2002-09-20  Werner LEMBERG  <wl@gnu.org>
1953         * src/roff/troff/env.cc (title): Copy color status after processing
1954         title.
1955         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
1956         fill color nodes to reset colors properly.
1958         * tmac/www.tmac (DC): Fix color handling.
1960         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
1961         * doc/groff.texinfo: Fixing documentation of `tl' request.
1962         * doc/webpage.ms: Updated.
1964 2002-09-19  Werner LEMBERG  <wl@gnu.org>
1966         * src/roff/troff/env.cc (environent_switch, environment_copy):
1967         Emit glyph and fill color nodes to initialize colors properly.
1969 2002-09-17  Colin Watson  <cjwatson@debian.org>
1971         * src/roff/troff/env.cc (environment::set_glyph_color,
1972         environment::set_fill_color): Fix typo which prevented \m[] work
1973         correctly.
1975 2002-09-17  Werner LEMBERG  <wl@gnu.org>
1977         Add left and right italic correction to non-slanted PS fonts.  This
1978         is an experimental feature to improve image rendering of grohtml.
1980         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
1981         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
1982         * font/devps/*: All non-slanted fonts regenerated.
1983         * NEWS: Updated.
1985 2002-09-16  Werner LEMBERG  <wl@gnu.org>
1987         Add a site-specific font directory.
1989         * Makefile.in (localfontdir, legacyfontdir): New variables.
1990         (fontpath): Use them.
1991         (MDEFINES, uninstall_dirs): Updated.
1992         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
1993         Remove `FONTPATH' and `MACROPATH'.
1995         * src/roff/troff/troff.man, NEWS: Updated.
1996         * doc/groff.texinfo (Font Directories): New section.
1997         Other minor fixes.
1999         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
2000         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
2001         src/preproc/grn/grn.man: Minor fixes.
2003         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
2004         Remove unused variable.
2006 2002-09-11  Werner LEMBERG  <wl@gnu.org>
2008         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
2009         * man/groff_out.man: Fix documentation of 'N'.
2011 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
2013         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
2014         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
2015         set.
2016         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
2017         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
2018         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
2019         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
2020         PRE_TAG>: Call `begin' with `FALSE'.
2022 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2024         * src/libs/libgroff/string.cc (string::extract): Fix position of
2025         terminating null byte.
2027 2002-09-08  Werner LEMBERG  <wl@gnu.org>
2029         Add global option `nospaces' to tbl so that leading and trailing
2030         spaces in data items are ignored.
2032         * src/libs/libgroff/string.cc (string::remove_spaces): New member
2033         function to remove leading and trailing spaces.
2034         * src/include/stringclass.h: Updated.
2036         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
2038         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
2039         option.
2040         Fix typo in error messages.
2041         (process_data): Implement `nospaces' option.
2042         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
2044 2002-09-07  Werner LEMBERG  <wl@gnu.org>
2046         * src/include/config.hin: Add `HAVE_ISATTY'.
2047         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
2048         `fname' member.
2049         * src/libs/libgroff/tmpname.cc: Include `time.h'.
2050         * src/libs/libdriver/input.cc (Char): Add `operator==' and
2051         `operator!=' for `char'.
2052         * doc/groff.texinfo: Replace @ifnottex block for top node with
2053         @ifhtml block.
2055 2002-09-06  Werner LEMBERG  <wl@gnu.org>
2057         * doc/Makefile.in (.texinfo.html): Add -I switch.
2058         * doc/groff.texinfo: Add @ifnottex block for top node to make
2059         translation to HTML work.
2061 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
2063         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
2064         (get_papersize, determine_vertical_offset): Removed.
2065         (char_buffer::do_image): Always specify letter size.
2066         (main): Updated.
2067         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
2068         -sPAPERSIZE.
2070 2002-09-05  Werner LEMBERG  <wl@gnu.org>
2072         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
2073         default indentation.
2075 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
2077         * src/preproc/html/pre-html.cc (imageList::createPage): Use
2078         -sPAPERSIZE for gs.
2079         (generateImages): Clean up push-back buffer.
2081 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2083         * doc/groff.texinfo: Minor fixes.
2085 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2087         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
2088         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
2089         (gsPaper): Removed.
2090         (determine_vertical_offset): Use LETTER_LENGTH.
2091         (createPage): Moved to ...
2092         (imageList::createPage): This.
2093         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
2094         (imageList::getMaxX): New function.
2095         (createImage): Moved to ...
2096         (imageList::createImage): This.
2097         (imageList::createImages): New function.
2098         (generateImages): Read `maxx' directly.
2099         Updated.
2100         (scanArguments): Don't specify `gsPaper' for `-o'.
2101         (makeTempFiles): Call `xtmpfile' with the last argument set to
2102         `TRUE'.
2104 2002-08-24  Werner LEMBERG  <wl@gnu.org>
2106         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
2107         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
2108         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
2109         * src/preproc/html/pushback.cc: Include nonposix.h.
2110         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
2111         conditionally.
2113 2002-08-23  Werner LEMBERG  <wl@gnu.org>
2115         Use $(OBJEXT) for the object file extension.
2117         * Makefile.comm (.SUFFIXES): Add .obj.
2118         (.cc.obj, .c.obj): New implicit rules.
2119         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
2120         (MDEFINES): Add EXEEXT and OBJEXT.
2121         * */Makefile.sub: s/.o/.$(OBJEXT)/.
2123 2002-08-22  Werner LEMBERG  <wl@gnu.org>
2125         * INSTALL: Mention texinfo 4.2 as a prerequisite.
2127 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2129         * src/devices/grohtml/post-html.cc (colType): Make enum global to
2130         the file.
2131         (html_printer::update_min_max, html_printer::add_table_end): New
2132         methods.
2133         (html_printer::lookahead_for_tables): Use them.
2134         Reset page offset correctly.
2135         (html_printer::~html_printer): Add creation of creator comment up.
2137 2002-08-20  Werner LEMBERG  <wl@gnu.org>
2139         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
2140         * man/groff_tmac.man: Fix typos.
2141         * man/groff_font.man: Minor reordering.
2142         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
2143         * contrib/groffer/groffer.man: Fix typos.
2145 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
2147         Avoid endless loops while scanning for tables.
2149         * src/devices/grohtml/post-html.cc (list::insert): Set
2150         ptr->right->left.
2151         (html_printer::next_horiz_pos): Add `text_glob' argument; update
2152         all callers.
2153         Return immediately if that argument is NULL.
2154         (html_printer::calc_nf): Don't test if `g' is NULL.
2155         (html_printer::lookahead_for_tables): Use
2156         `glyphs.move_right_get_data'.
2157         Don't test if `g' is NULL.
2159 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
2161         A better fix, replacing fix 2002-08-15, for increasing SIZE.
2163         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
2164         a pointer.
2165         (char_block::char_block): Allocate `buffer'.
2166         (char_buffer::add_string): Use it.
2168 2002-08-15  Werner LEMBERG  <wl@gnu.org>
2170         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
2171         src/devices/grodvi/grodvi.man: Document default line thickness.
2173 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
2175         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
2176         8192.
2178 2002-08-14  Werner LEMBERG  <wl@gnu.org>
2180         * doc/webpage.ms: Updated.
2182 2002-08-09  Werner LEMBERG  <wl@gnu.org>
2184         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
2185         unbreakable space.
2187 2002-08-08  Aaron Campbell  <aaron@monkey.org>
2189         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
2190         (&& -> &).
2192 2002-08-08  Werner LEMBERG  <wl@gnu.org>
2194         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
2195         tok.next().
2196         (read_gray): Ditto.
2197         Don't push back a space but a newline onto the stack.
2199 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
2201         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
2202         inadvertently.
2204         * src/devices/grohtml/post-html.cc (html_printer::end_font,
2205         html_printer::start_font): Handle them.
2206         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
2207         reset bold and tt.
2208         (html_text::do_bold): Don't reset italic and tt.
2209         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
2210         * font/devhtml/DESC.proto: Add those fonts.
2211         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
2213 2002-08-07  Werner LEMBERG  <wl@gnu.org>
2215         * MORE.STUFF: Added gpresent.
2217         * tmac/trace.tmac: Show nesting level by a corresponding amount of
2218         whitespace before printing the logging message.
2220 2002-07-31  Colin Watson  <cjwatson@debian.org>
2222         * src/devices/grohtml/html-table.cc (html_table::finish_row):
2223         Initialize `n' to zero.  This fixes a segfault on ARM.
2225 2002-07-30  Werner LEMBERG  <wl@gnu.org>
2227         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
2229 2002-07-29  Werner LEMBERG  <wl@gnu.org>
2231         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
2232         final semicolon.
2234 2002-07-28  Colin Watson  <cjwatson@debian.org>
2236         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
2237         `.ps'.
2238         (html_printer::html_printer): Initialize `pointsize'.
2240 2002-07-26  Werner LEMBERG  <wl@gnu.org>
2242         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
2243         gnu.png.
2244         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
2245         (gnu.eps): Add -rle switch to pnmtops.
2246         (distfiles): Add gnu.eps and gnu.png.
2248 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
2250         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
2251         Add `operator!='.
2253 2002-07-24  Werner LEMBERG  <wl@gnu.org>
2255         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
2256         ' \+' but '  *' for sed.
2257         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
2259 2002-07-23  Werner LEMBERG  <wl@gnu.org>
2261         * doc/groff.texinfo: Document `papersize' keyword.
2262         * NEWS, man/groff_font.man: Updated.
2264 2002-07-23  Colin Watson  <cjwatson@debian.org>
2266         Extend papersize keyword to accept more than a single entry.  The
2267         first valid will be used.
2269         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
2270         (font::scan_papersize): Really skip final newline.
2271         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
2273 2002-07-23  Werner LEMBERG  <wl@gnu.org>
2275         * configure.ac: Test for isatty.
2276         * configure: Regenerated.
2277         * src/include/posix.h: Check HAVE_ISATTY.
2278         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
2279         * src/utils/lookbib/lookbib.cc: Include posix.h.
2280         Don't declare isatty.
2282 2002-07-21  Werner LEMBERG  <wl@gnu.org>
2284         * NEWS: Add `output' request.
2286         * REVISION: Increased to 1.
2288 Version 1.18.0 released
2289 =======================
2291 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
2293         Allow internal glyph indices > 0xFF in grohtml for input characters.
2295         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
2296         as parameter.
2297         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
2298         Updated all callers.
2299         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
2300         (html_printer): Updated.
2302 2002-07-19  Werner LEMBERG  <wl@gnu.org>
2304         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
2305         * font/devutf8/R.proto: Adding some missing glyphs.
2306         * font/devutf8/NOTES: Updated.
2308         * tmac/dvi.tmac: Add more composite glyphs.
2309         * tmac/html.tmac: Updated.
2311         * man/groff_char.man: Add `sum' and `product' entities.
2313         * NEWS: Updated.
2315 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
2317         Improved table, tab, and indenting support.
2319         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
2320         string_iterator::suppress_newline_flag): Removed.  Updated all
2321         function which have used it.
2323         * src/roff/troff/env.cc: Include `input.h'.
2324         (environment::add_node): Accept 0 as parameter.
2325         (environment::add_html_tag): Add `force' parameter.
2326         Updated all callers.
2327         (environment::add_html_tag_tabs): Ditto.
2328         For the moment, support left-aligned tabs only.
2329         (environment::make_html_tag): New function.
2330         (fill, no_fill): Set .br html tag additionally.
2331         (environment::newline): Emit `eol.ce' or `eol' tag for html.
2332         (environment::add_html_tag_eol): Removed.
2333         (tab_stops::distance_to_next_tab): Add variant for handling 
2334         nextpos'.
2335         (environment::distance_to_next_tab): Ditto.
2336         Updated all callers.
2337         (environment::handle_tab): Handle tabs for html.
2338         
2339         * src/roff/troff/env.h: Updated.
2341         * src/roff/troff/div.cc: Updated all callers of
2342         `environment::add_html_tag'.
2344         * src/devices/grohtml/html-table.cc,
2345         src/devices/grohtml/html-table.h: New files.
2347         * src/devices/grohtml/html-text.cc (html_text): New members
2348         `blank_para' and `start_space'.
2349         (html_text::issue_tag): Don't emit TABLE_TAG.
2350         Handle indentation for PRE_TAG and P_TAG.
2351         (html_text::end_tag): Updated.
2352         (html_text::table_is_void, html_text::issue_table_begin,
2353         html_text::issue_table_end): Removed.
2354         (html_text::do_push): Simplified.
2355         [DEBUGGING]: Small fix.
2356         (html_text::push_para): Add new parameter for indentation; updated
2357         all callers.
2358         Handle PRE_TAG.
2359         (html_text::do_indent, html_text::do_table, html_text::done_table,
2360         html_text::is_in_table): Removed.
2361         (html_text::do_pre): Handle P_TAG also.
2362         (html_text::shutdown): Handle p->indent.
2363         (html_text::check_emit_text): Simplified.
2364         (html_text::do_emittext): Reset `blank_para'.
2365         (html_text::do_para): Add new parameter for indentation; updated
2366         all callers.
2367         (html_text::remove_indent): New function.
2368         (html_text::do_space): Handle verbatim text properly.
2369         (html_text::ever_emitted_text, html_text::starts_with_space,
2370         html_text::remove_para_align): New functions.
2371         (html_text::dump_stack_element, html_text::dump_stack): Updated.
2373         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
2374         Updated.
2376         * src/devices/grohtml/post-html.cc: Include html-table.h.
2377         (INDENTATION): Removed.
2378         (text_glob): Added many `is_<foo>' functions.
2379         Added table description `tab'.
2380         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
2381         member functions.
2382         (list): Add `insert' and `move_to' member functions.
2383         (page): Add `insert_tag' member function.
2384         (page::dump_page) [DEBUG_TABLES]: Improved.
2385         (html_printer): Add `table' and `max_linelength' elements.
2386         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
2387         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
2388         `remove_tabs', `remove_courier_tabs'.
2389         (html_printer::emit_raw): Handle indentation.
2390         (html_printer::do_center, html_printer::write_header): Updated.
2391         (html_printer::is_courier_until_eol): Check for tag.
2392         (html_printer::do_linelength): Handle max_linelength.
2393         (html_printer::do_page_offset, html_printer::do_indentation): Handle
2394         fill_on.
2395         (html_printer::do_tempindent): Updated.
2396         (html_printer::do_indentedparagraph): Removed.
2397         (html_printer::do_indent): Simplified.
2398         (html_printer::do_eol): Use `ever_emitted_text'.
2399         (html_printer::do_flush, html_printer::do_links): Don't call
2400         done_table.
2401         (html_printer::do_break): Handle end_tempindent.
2402         (html_printer::troff_tag): Get argument.
2403         Don't handle `.ip'.
2404         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
2405         (html_printer::flush_page): Call `lookahead_for_tables'.
2406         Don't call `done_table'.
2407         (html_printer::add_to_sbuf): Always call do_indent.
2409         * src/devices/grohtml/Makefile.sub: Updated.
2411         * tmac/an-old.tmac (TP): Don't handle html device specially.
2412         (an-do-tag-html): New function which will be used instead of
2413         `an-do-tag' if html device is used.
2415         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
2417         * tmac/s.tmac (@IP): Don't handle html device specially.
2418         (@IP-html): New function which will be used instead of `@IP' if
2419         html device is used.
2421         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
2422         is a hack which will eventually vanish again.
2423         (PIMG): Handle `-C' option correctly if not html.
2424         (HR): Use HTML-NS.
2426 2002-07-17  Werner LEMBERG  <wl@gnu.org>
2428         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
2430 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
2432         * contrib/pic2graph/pic2graph.*: Use convert(1).
2433         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
2435 2002-07-14  Bernd Warken  <bwarken@mayn.de>
2437         * tmac/groff_trace.man: New file.
2438         * tmac/Makefile.sub: Updated.
2439         * NEWS: Updated.
2441 2002-07-13  Werner LEMBERG  <wl@gnu.org>
2443         * src/roff/groff/groff.man: Add some cross references.
2445 2002-07-12  Werner LEMBERG  <wl@gnu.org>
2447         * src/roff/troff/input.cc (substring_request): Add warnings for
2448         string indices out of range.
2450 2002-07-11  Werner LEMBERG  <wl@gnu.org>
2452         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
2453         * font/devdvi/*EC: Regenerated.
2455 2002-07-10  Bernd Warken  <bwarken@mayn.de>
2457         * man/groff_char.man: Updated and extended.
2459 2002-07-10  Werner LEMBERG  <wl@gnu.org>
2461         * src/roff/troff/input.cc (length_macro): Renamed to...
2462         (length_request): This.
2463         Move call of `tok.next()' to the very end, otherwise the register
2464         value hasn't been updated yet.
2465         (init_input_requests): Updated.
2467 2002-07-09  Werner LEMBERG  <wl@gnu.org>
2469         * src/roff/troff/input.cc (substring_macro): Renamed to...
2470         (substring_request): This.
2471         (init_input_requests): Updated.
2472         * src/roff/troff/request.h: Updated.
2474 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
2476         * src/roff/grog/grog.sh: Fix typo.
2478 2002-07-08  Werner LEMBERG  <wl@gnu.org>
2480         * win32-diffs: Updated.
2482         Handle `papersize' keyword properly in DESC.
2484         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
2485         type.
2486         Updated all callers.
2487         * src/libs/libgroff/paper.cc: Add four more paper formats used by
2488         grolj4.
2489         * src/include/paper.h: Updated.
2491         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
2492         Other minor C syntax fixes.
2493         (papersize, paperlength, paperwidth): Renamed to `user_*'.
2494         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
2495         members.
2496         (lbp_printer::lbp_printer): Pass three arguments.
2497         Set paper dimensions properly.
2498         (make_printer, main): Updated.
2499         (handle_unknown_desc_command): Fix error messages.
2500         (main): Handle papersize keyword in DESC properly.
2502         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
2503         `user_paper_size'.
2504         (lbp_printer::lbp_printer): Pass an argument.
2505         Set paper_size properly.
2506         (handle_unknown_desc_command): Removed.
2507         (make_printer, main): Updated.
2508         * src/devices/grolj4/grolj4.man: Minor documentation fix.
2510         * man/groff_font.man, NEWS: Updated.
2512 2002-07-07  Werner LEMBERG  <wl@gnu.org>
2514         Integrated eqn2graph, contributed by Eric S. Raymond.
2516         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
2517         files.
2518         * Makefile.in, NEWS: Updated.
2520 2002-06-04  Werner LEMBERG  <wl@gnu.org>
2522         Changing the substring request to make it fit better with other
2523         string manipulation functions in other programming languages:
2524         Index 0 is now the first character in the string, and index -1
2525         indicates the last character.  Since this request didn't work
2526         properly anyway in the last release, it doesn't harm too much to
2527         change the syntax.
2529         * src/roff/troff/input.cc (substring_macro): Use loops to get
2530         the real string length (ignoring COMPATIBLE_SAVE and
2531         COMPATIBLE_RESTORE) and offsets.
2532         Implement change described above.
2534         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
2535         (doc-do-Bd-args, doc-do-Bl-args: Changed accordingly.
2537         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
2539 2002-06-03  Werner LEMBERG  <wl@gnu.org>
2541         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
2542         COMPATIBLE_RESTORE are completely ignored.
2544         * src/roff/troff/input.cc (char_list::set, char_list::get): New
2545         functions.
2546         (macro): `length' field renamed to `len'.
2547         Added new field `empty_macro' (1 if macro is empty), to be used
2548         instead of checking `len'.
2549         Updated all callers.
2550         (macro::empty): Updated.
2551         (macro::length, macro::set, macro::get): New functions.
2552         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2553         Set `empty_macro'.
2554         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
2555         COMPATIBLE_RESTORE pairs.
2556         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2557         * src/roff/troff/request.h: Updated.
2559         * doc/groff.texinfo: Document .chop's behaviour better.
2561 2002-06-02  Werner LEMBERG  <wl@gnu.org>
2563         * doc/pic.ms: Fix documentation for the addition of positions.
2565         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
2567 2002-06-29  Werner LEMBERG  <wl@gnu.org>
2569         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
2571         * src/roff/troff/input.cc (have_string_arg): New global variable.
2572         (read_mode): New enumeration.
2573         (read_escape_name): Use it.  Update all calls.
2574         (read_long_escape_name): Use it.  Update all calls.
2575         Set have_string_arg if appropriate.
2576         (get_char_for_escape_name): Add parameter for handling space
2577         character.
2578         (interpolate_string_with_args, decode_string_args): New functions.
2579         (get_copy, token::next): Call it if necessary.
2580         (interpolate_string): Fix error message.
2582         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
2583         Document it.
2585 2002-06-24  Bernd Warken  <bwarken@mayn.de>
2587         * man/groff_tmac.man: Updated and extended.
2589 2002-06-24  Werner LEMBERG  <wl@gnu.org>
2591         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
2593 2002-06-23  Werner LEMBERG  <wl@gnu.org>
2595         * doc/pic.ms: Improve documentation of composite block objects.
2597 2002-06-22  Werner LEMBERG  <wl@gnu.org>
2599         * src/roff/troff/input.cc (init_registers): Add three registers
2600         `seconds', `minutes', and `hours' to hold the current time.
2602         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
2603         Updated.
2605 2002-06-20  Werner LEMBERG  <wl@gnu.org>
2607         Make \X accept both `\ ' and `\~', converting them to single space
2608         characters.
2610         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
2611         (token::unstretchable_space): New inline function.
2612         * src/roff/troff/input.cc (token::next, token::delimiter,
2613         token::description, token::add_to_node_list, token::process): Handle
2614         TOKEN_UNSTRETCHABLE_NODE.
2615         (encode_char): Handle tok.stretchable_space and
2616         tok.unstretchable_space.
2618         * NEWS, doc/groff.texinfo: Document it..
2620 2002-06-19  Werner LEMBERG  <wl@gnu.org>
2622         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
2624         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
2625         keyword to enable/disable SGR output.
2626         (tty_printer::change_fill_color): New function.
2627         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
2629         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
2630         call.
2632 2002-06-18  Werner LEMBERG  <wl@gnu.org>
2634         Add a `color' request and a `.color' register to control usage of
2635         colours.
2637         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
2638         (color_flag): This (which is the inverse).
2639         (activate_color): New function.
2640         (main, init_input_requests): Updated.
2641         * src/roff/troff/troff.h, src/roff/troff/node.cc
2642         (troff_output_file::fill_color, troff_output_file::glyph_color):
2643         Updated.
2645         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
2646         Document the changes.
2648 2002-06-17  Colin Watson  <cjwatson@debian.org>
2650         Circumvent bug in autoconf 2.53 regarding top_builddir.
2652         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
2653         * Makefile.in, doc/Makefile.in:
2654         s/@top_builddir@/@groff_top_builddir@/.
2655         * configure: Regenerated (with autoconf 2.53).
2657 2002-06-17  Werner LEMBERG  <wl@gnu.org>
2659         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
2660         `paperwidth' and `paperlength' for the `papersize' keyword.
2662 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
2664         * src/devices/grops/grops.man: Add info about Type 42 fonts.
2666 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
2668         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
2669         html_printer::do_linelength, html_printer::do_pageoffset,
2670         html_printer::do_indentation, html_printer::do_tempindent,
2671         html_printer::do_break, html_printer::begin_page): Clear indented
2672         text.
2673         * tmac/html.tmac: Disable hyphenation.
2675 2002-06-15  Werner LEMBERG  <wl@gnu.org>
2677         Don't produce HTML files if utility programs are missing.
2679         * Makefile.in (make_html, make_install_html): New variables.
2680         (MDEFINES): Updated.
2682         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
2683         utility programs.
2684         * configure.ac: Use it.
2685         * configure: Regenerated.
2687         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
2688         (HTMLEXAMPLESFILES): This new variable.
2689         (EXAMPLESIMAGEFILES): Renamed to...
2690         (HTMLEXAMPLEIMAGEFILES): This.
2691         (CLEANADD): Add HTMLEXAMPLEFILES.
2692         (all): Use `make_html'.
2693         (html): New target.
2694         (install_data): Use `make_install_html'.
2695         Move html stuff to...
2696         (install_html): This new target.
2697         (uninstall_sub): Updated.
2699 2002-06-14  Bernd Warken  <bwarken@mayn.de>
2701         * src/roff/grog/Makefile.sub (grog): Renamed to...
2702         (grog.old): This.
2703         (grog): New rule to always install grog.sh as grog.
2705 2002-06-08  Bernd Warken  <bwarken@mayn.de>
2707         * src/roff/grog/grog.pl: Fix typo.
2709 2002-06-07  Werner LEMBERG  <wl@gnu.org>
2711         * doc/groff.texinfo: Add more info on .tr arguments.
2713 2002-06-05  Werner LEMBERG  <wl@gnu.org>
2715         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
2717         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
2718         * configure: Regenerated.
2720 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2722         * src/roff/troff/symbol.cc (table_sizes): Add more values.
2724         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
2726 2002-06-04  Werner LEMBERG  <wl@gnu.org>
2728         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
2729         is not initialized at the time we need it in case `--prefix' hasn't
2730         been set.  Check for `ac_default_prefix' also.
2731         Test for `papersize' keyword also and generalize allowed whitespace.
2732         * configure: Regenerated.
2734         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
2735         `paperlength'.
2737         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
2738         with...
2739         (src_version, src_revision): New variables to avoid overwriting
2740         from parent make process.
2741         (version.cc): Updated.
2743         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
2744         (linebuf, linebufsize): New global variables.
2745         (sys_fatal): Use `fatal' to abort properly.
2746         (get_line): New function.
2747         (get_resolution): Use it.
2748         Improve error messages.
2749         (get_papersize): Check `papersize' also.
2750         Use `get_line'.
2751         Improve error messages.
2753 2002-06-03  Werner LEMBERG  <wl@gnu.org>
2755         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
2756         should be removed only if builddir is not srcdir.
2757         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
2758         (clean): Depend on `mostlyclean'.
2759         (distclean): Depend on `clean'.
2760         (realclean, extraclean): Depend on `distclean'.
2761         (.y.cc, .y.o): Simplified.  The output files are no longer written
2762         to srcdir but to builddir.
2763         * Makefile.in (MDEFINES): Add `version' and `revision'.
2764         (uninstall_dirs): Fix order of directories.
2765         * doc/Makefile.sub (version, revision): Removed.
2766         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
2767         Added `HTMLDOCFILES'.
2768         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
2769         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
2770         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
2771         as prefix.
2773         * doc/texinfo.tex (\authortt): New macro.
2774         (\shortcontt): Define.
2775         (\titlepage): Set \tt to \authortt while defining \authorfont.
2776         (\appendixbox): New macro.
2777         (\chapmacro, \appendixentry): Use \appendixbox to get even
2778         indentation for letters.
2779         (\summarycontents): Set \tt.
2780         (\internalpagesize): Add two arguments for real paper width and
2781         height as needed by pdfTeX.
2782         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
2783         Updated.
2784         (\tempdima, \tempdimb): New temporary dimensions.
2785         (\pagesizesyyy): Updated.
2787 2002-06-02  Werner LEMBERG  <wl@gnu.org>
2789         Adding a new keyword `papersize' to the DESC file format (similar
2790         but not completely identical to grolbp's extension).  grops now has
2791         a -p command line option to override `papersize'.  Finally, grolbp
2792         has been adapted to the new syntax.
2794         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
2795         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
2796         elements.
2797         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
2798         (CCSRCS): Add `paper.cc'.
2800         * src/include/font.h (font): Add `papersize' element.
2801         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
2802         (font::scan_papersize): New function.
2803         (font::load_desc): Use it for handling `papersize' keyword.
2804         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
2806         * src/devices/grops/ps.cc: Include paper.h.
2807         (user_paper_length): New global variable.
2808         (ps_printer): Use paper length as initializer.
2809         (make_printer): Updated.
2810         (main): Handle new `-p' option.
2811         * src/devices/grops/grops.man: Updated.
2813         * src/devices/grolbp/lbp.cc: Include paper.h.
2814         s/papersizes/lbp_papersizes/.
2815         (set_papersize): Use new `papersizes' array.
2816         (handle_unknown_desc_command): Don't handle `papersize'.
2817         (main): Use `font::scan_papersize' for handling `-p' option.
2818         * src/devices/grolbp/grolbp.man: Updated.
2820         * man/groff_font.man: Document `papersize'.
2821         * NEWS: Updated.
2823 2002-05-30  Werner LEMBERG  <wl@gnu.org>
2825         * src/devices/grops/TODO: Updated.
2826         * src/devices/grops/grops.man: More info on paper formats.
2827         * man/groff_font.man: Document `paperheight' and `paperwidth'.
2829 2002-05-29  Werner LEMBERG  <wl@gnu.org>
2831         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
2832         to list only if srcdir != currdir.
2833         (distfiles): New target.
2835         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
2836         (NOMAKEDIRS): New variable.
2837         (DISTDIRS): Use it.
2839 2002-05-26  Werner LEMBERG  <wl@gnu.org>
2841         Add .output request, similar to \! at top-level.
2843         * src/roff/troff/input.cc (transparent): Remove unused declaration.
2844         (output_request): New function.
2845         (init_input_requests): Add it.
2846         Sorted.
2847         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
2848         Document it.
2850         * Makefile.in (MDEFINES): Add INSTALL_INFO.
2851         (prepare_examples): Fix typo.
2852         * doc/groff.texinfo (@direntry): Fix it.
2854 2002-05-25  Werner LEMBERG  <wl@gnu.org>
2856         Including the doc subdir into groff's Makefile system.
2858         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
2859         * configure.ac: Use it.
2860         Generate `doc/Makefile'.
2861         * configure: Regenerated.
2863         * Makefile.in (infodir, INSTALL_INFO): New variables.
2864         (MDEFINES, uninstall_dirs): Updated.
2865         (OTHERDIRS): Add `doc'.
2866         * Makefile.comm (CLEANDIRADD): New variable.
2867         (mostlyclean): Use it.
2869         * doc/Makefile.sub, doc/Makefile.in: New files.
2870         * doc/Makefile: Removed.
2872         * NEWS, INSTALL: Updated.
2874 2002-05-24  Werner LEMBERG  <wl@gnu.org>
2876         * doc/homepage.ms: Renamed to ...
2877         * doc/webpage.ms: This.
2878         Use `.NHR'.
2880 2002-05-23  Werner LEMBERG  <wl@gnu.org>
2882         Integrating the `mom' macro package, contributed by Peter Schaffter
2883         <df191@ncf.ca>.
2885         * contrib/mom/*: New subdirectory tree.
2886         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
2887         be used for documentation files.
2888         (MDEFINES, uninstall_dirs): Use them.
2889         (OTHERDIRS): Add contrib/mom.
2890         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
2891         @HTMLDOCDIR@.
2892         * MANIFEST, NEWS: Updated.
2894 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
2896         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
2897         if at outer level; at start-up we are at outer level.
2899         * src/roff/troff/input.cc (do_suppress): Implement it.
2900         Simplify \O[3].
2902         Add option -p to show progress information.
2903         pre-grohtml will now render only one page at a time, reducing the
2904         size of needed disk resources enormously.
2906         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
2907         (imagePageName): New global variable.
2908         (psPageName, show_progress, currentPageNo): New global variables.
2909         (html_system): Close saved stderr and stdout handles.
2910         (write_end_image): Accept a parameter to control \O escape.
2911         (write_start_image): Adapted to new \O meaning.
2912         (char_buffer::write_upto_newline): Updated.
2913         (createAllPages): Replaced with...
2914         (createPage): This new function to create a single page for images.
2915         It uses `psselect' from the psutils package.
2916         (removeAllPages): Removed.
2917         (createImage): Updated.
2918         Handle progress display.
2919         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
2920         (scanArguments): Add option -p.
2921         (makeTempFiles): Updated to create temp files for psPageName and
2922         imagePageName.
2923         (removeTempFiles): Removed.
2924         (main): Updated.
2926         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
2927         html_printer::write_header): Append `\0' to `buffer'.
2928         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
2929         (main): Handle -p.
2930         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
2931         Handle `text_emitted'.
2932         (html_text::table_is_void): Slightly rewritten.
2933         (stop): New external symbol.
2934         (html_text::do_push) [DEBUGGING]: Use it and simplify.
2935         (html_text::shutdown): Call `dump_stack'.
2936         (html_text::do_space): Rewritten.
2937         * src/devices/grohtml/grohtml.man: Document -p and the need of
2938         `psselect'.
2940         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
2941         new \O syntax.
2942         Call \O[0] if `ps4html' is active.
2943         * tmac/s.tmac (@EQ, @EN): Handle html better.
2944         (@TS, TE): Ditto.
2945         * tmac/html.tmac: Don't use black for background colour.
2947         * src/roff/troff/node.cc: Include `div.h'.
2948         (troff_output_file::really_print_line): Don't use `is_on'. 
2949         (troff_output_file::word_marker, troff_output_file::flush_tbuf
2950         troff_output_file::check_charinfo,
2951         troff_output_file::put_char_width, troff_output_file::put_char,
2952         troff_output_file::determine_line_limits, troff_output_file::draw,
2953         real_output_file::begin_page, glyph_color_node::tprintf,
2954         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
2955         Use `is_on'.
2956         (troff_output_file::really_on): Call `do_motion'.
2957         (suppress_node::tprint): Use `get_page_number' instead of `%'
2958         register.
2959         Call `reset_output_registers' conditionally on `is_on'.
2961         * doc/groff.texinfo: Document new syntax of \O.
2962         * NEWS, man/groff_diff.man: Updated.
2964 2002-05-22  Werner LEMBERG  <wl@gnu.org>
2966         * MORE.STUFF: Add info about David Frey's deroff implementation.
2967         Mention troff.org.
2969 2002-05-16  Werner LEMBERG  <wl@gnu.org>
2971         Pic's `with' attribute now accepts positions.
2973         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
2974         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
2975         conflicts.
2976         (object_spec): Add rule for `WITH' and `position'.
2977         (relative_path): Give `corner' the precedence of `CHOP'.
2978         * src/preproc/pic/object.h (path): New members `pos' and
2979         `is_position'.
2980         * src/preproc/pic/object.cc: Updated initializers of `path'.
2981         (path::follow): Handle `is_position'.
2983         * doc/pic.ms: Completely updated grammar description.
2984         Many typographical improvements.
2986 2002-05-15  Werner LEMBERG  <wl@gnu.org>
2988         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
2989         code of x in range 0-127) also.
2990         * doc/groff.texinfo, man/groff_diff.man: Updated.
2992         Added keywords `north', `south', `east', and `west' for corners
2993         in pic.
2995         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
2996         and WEST.
2997         (yylex): Handle them.
2998         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
2999         (corner): Handle them.
3001 2002-05-14  Werner LEMBERG  <wl@gnu.org>
3003         * src/devices/grops/grops.man: Clarify handling of `download' file.
3005 2002-05-11  Werner LEMBERG  <wl@gnu.org>
3007         Adding `warnscale' and `spreadwarn' requests, based on a patch from
3008         Jeffrey Friedl <jfriedl@yahoo.com>.
3010         * src/roff/troff/input.cc (spread_limit, warn_scale,
3011         warn_scaling_indicator): New global variables.
3012         (warnscale_request, spreadwarn_requests): New functions.
3013         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
3014         (init_input_requests): Updated.
3015         (error_type): Add `OUTPUT_WARNING'.
3016         (do_error): Handle it.
3017         (output_warning): New warning function which shows output location.
3018         * src/roff/troff/env.h (spread_limit): New external variable.
3019         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
3020         `output_warning'.
3021         (distribute_space): Emit warning if added space is larger than
3022         `spread_limit'.
3023         (environment::possibly_break_line): Emit warning if a line can't
3024         be adjusted on both sides.
3026         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
3028 2002-05-08  Werner LEMBERG  <wl@gnu.org>
3030         * src/roff/troff/node.cc (special_node::special_node): Use
3031         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
3032         \X''\% crashes, for example.
3034         * doc/groff.texinfo: Document \! and \? used at top-level.
3036 2002-05-06  Werner LEMBERG  <wl@gnu.org>
3038         * src/preproc/pic/pic.man: Fix some keyword syntax.
3039         Other minor typographical fixes.
3041         * src/roff/groff/groff.man: Fix typos.
3043 2002-05-04  Werner LEMBERG  <wl@gnu.org>
3045         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
3046         (ShortOpt[]): This to avoid problems with refer.
3048         * doc/pic.ms: Fix typo.
3049         Fix pic grammar description.
3051         * tmac/an-old.tmac (ne): Use de1, not de.
3053 2002-05-03  Werner LEMBERG  <wl@gnu.org>
3055         * doc/groff.texinfo: Finished separation of glyphs and characters.
3056         Don't use the string `Appendix' for appendix headers (both in
3057         the text and the table of contents).
3058         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
3059         directories.
3061         Use registers LL and LT (similar to -ms) for controlling the
3062         length of title and line, respectively, in the -man and -mdoc
3063         macro packages.
3065         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
3066         (doc-setup-page-layout): Use \n[LL] and \n[LT].
3067         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
3068         (TH): Use \n[LL].
3069         (an-header, an-p-footer): Use \n[LT].
3070         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
3071         doc/groff.texinfo: Document it.
3073 2002-05-02  Werner LEMBERG  <wl@gnu.org>
3075         * doc/fdl.texi: New file.
3076         * doc/groff.texinfo: Include it.
3077         Define and use @copying.
3078         Starting with separating glyph, symbol, and character.
3080 2002-04-27  Werner LEMBERG  <wl@gnu.org>
3082         * Makefile.in (EXEEXT): Set it.
3083         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
3084         programs.
3086         * src/include/nonposix.h: Define GS_NAME.
3087         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
3089         Some preliminary changes for EMX support under OS/2.
3091         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
3092         __EMX__ similar to __MSDOS__.
3093         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
3095 2002-04-25  Werner LEMBERG  <wl@gnu.org>
3097         * doc/groff.texinfo: Integrated groff_out.man.
3098         Some macro fixes.
3100 2002-04-23  Werner LEMBERG  <wl@gnu.org>
3102         * man/groff_out.man: Minor fixes.
3104 2002-04-23  Werner LEMBERG  <wl@gnu.org>
3106         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
3107         correct page references.
3108         Fixed many index entries.
3110 2002-04-23  Bernd Warken  <bwarken@mayn.de>
3112         * man/roff.man: Enlarged.
3114 2002-04-22  Werner LEMBERG  <wl@gnu.org>
3116         * doc/groff.texinfo: More examples, other fixes.
3118 2002-04-20  Werner LEMBERG  <wl@gnu.org>
3120         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
3121         will now form a chain, e.g.
3123           .pi foo
3124           .pi bar
3126         is now the same as
3128           .pi foo | bar
3130         This is for compatibility with plan 9's troff.
3132         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
3133         with UNIX troff.
3134         * NEWS: Updated.
3136         * doc/groff.texinfo: Add documentation of remaining requests and
3137         registers.
3139 2002-04-19  Werner LEMBERG  <wl@gnu.org>
3141         * doc/groff.texinfo: Add documentation of remaining escapes.
3143         * font/devdvi/generate/tc.map: Remove entry for `sr'.
3144         * font/devdvi/*TC: Regenerated.
3146 2002-04-18  Werner LEMBERG  <wl@gnu.org>
3148         * src/roff/troff/input.cc (token::next): Make \H behave consistently
3149         if not in compatibility mode, i.e., increment relative to the
3150         previous height.
3151         * doc/groff.texinfo: Updated accordingly.
3153 2002-04-17  Werner LEMBERG  <wl@gnu.org>
3155         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
3157 2002-04-16  Bernd Warken  <bwarken@mayn.de>
3159         * src/roff/groff/groff.man: Improve documentation of -P option.
3160         Other minor fixes.
3162 2002-04-15  Werner LEMBERG  <wl@gnu.org>
3164         Add new escape \F to switch font family.
3166         * src/roff/troff/input.cc (token::next): Handle \F.
3167         * src/roff/troff/env.cc (environment::set_family): Handle
3168         `interrupted' flag.
3169         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3170         Document it.
3172 2002-04-14  Werner LEMBERG  <wl@gnu.org>
3174         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
3175         spaces in tags.
3177 2002-04-13  Werner LEMBERG  <wl@gnu.org>
3179         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
3180         \m[] and \M[], respectively.
3182         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
3183         (symbol::symbol): Handle NULL string and empty string differently.
3184         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
3185         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
3186         Add optional parameter.
3187         Updated calling functions.
3188         (get_copy, do_glyph_color, do_fill_color, token::next): Use
3189         `symbol::is_empty'.
3190         * src/roff/troff/env.cc (environment::set_font): Ditto.
3192         * src/preproc/pic/troff.cc (troff_output::set_fill,
3193         troff_output::reset_color: Updated.
3195         * tmac/www.tmac: Updated.
3197         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
3198         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
3199         Updated.
3201         * tmac/Xps.tmac: Remove some redundant code.
3203         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
3204         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
3205         man/groff_out.man, man/groff.man, man/groff_diff.man,
3206         src/roff/groff/groff.man: Replace \f[P] with \f[].
3208 2002-04-13  Bernd Warken  <bwarken@mayn.de>
3210         * src/include/printer.h, src/libs/libdriver/printer.cc
3211         (printer::change_fill_color): New member function.
3212         * src/libs/libdriver/input.cc (parse_D_command): Use it.
3214 2002-04-12  Werner LEMBERG  <wl@gnu.org>
3216         * doc/groff.texinfo: Completed pass on gtroff reference.
3218 2002-04-11  Werner LEMBERG  <wl@gnu.org>
3220         * doc/groff.texinfo: More fixes.
3222 2002-04-11  Bernd Warken  <bwarken@mayn.de>
3224         * src/include/color.h: Decorate with `const'.
3225         Use `size_t'.
3226         Include `stddef.h'.
3227         * src/libs/libgroff.color.cc: Decorate with `const'.
3228         Use `size_t'.
3229         (color::color): Initialize members.
3230         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
3231         command according to the documentation.
3233         * man/groff_out.man: Updated.
3234         Minor fixes.
3236 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
3238         * src/preproc/html/pre-html.cc (write_start_image): Remove
3239         redundant output.
3240         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
3242         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
3243         \C'hy' caused an assertion failure.
3245         * src/roff/troff/env.cc (environment::environment): Initialize
3246         `emitted_node'.
3247         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
3249 2002-04-10  Werner LEMBERG  <wl@gnu.org>
3251         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3252         Document pvs request and .pvs register.
3254 2002-04-09  Werner LEMBERG  <wl@gnu.org>
3256         * doc/groff.texinfo: Improve and fix documentation of diversions
3257         and environments.
3259 2002-04-08  Werner LEMBERG  <wl@gnu.org>
3261         * doc/groff.texinfo: Fix documentation of drawing functions.
3262         Other minor fixes.
3264 2002-04-07  Werner LEMBERG  <wl@gnu.org>
3266         * doc/groff.texinfo: Better documentation of double quotes as
3267         arguments.
3268         Other minor fixes.
3270 2002-04-06  Werner LEMBERG  <wl@gnu.org>
3272         * man/groff_font.man: Document names of special characters better.
3273         * doc/groff.texinfo: Minor improvements.
3275         * tmac/lbp.tmac: Load latin1.tmac.
3276         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
3278         * font/devX*/*: Regenerated (all chars > 0x80 removed).
3280 2002-04-05  Werner LEMBERG  <wl@gnu.org>
3282         * tmac/tty.tmac: Don't use shc request.
3283         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
3284         * NEWS: Updated.
3286         * man/groff_diff.man: Minor fixes.
3288         * font/devlbp/*: Remove all `charXXX' entities.
3290         * src/libs/libgroff/font.cc (font::~font): Deallocate
3291         `special_device_coding'.
3292         (font::load): Use `new' for allocating `special_device_coding'.
3293         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
3294         Removed unused member.
3296 2002-04-05  Werner LEMBERG  <wl@gnu.org>
3298         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
3299         (resource_manager::do_begin_binary,
3300         resource_manager::do_begin_data): Use it.
3302         * doc/texinfo.tex: Updated to version 4.2.
3304         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
3305         (token::zero_width_break): New inline function.
3306         * src/roff/troff/input.cc (token::next): Use it.
3307         (token::description): Updated.
3308         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
3309         (token::add_to_node_list, token::process): Use it.
3310         * NEWS, doc/groff.texinfo: Updated.
3312         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
3313         * tmac/tty.tmac: Add missing backslash.
3315 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
3317         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
3318         `.ps' register instead of `.s' to handle fractional point sizes.
3319         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
3320         limit_box::output): Ditto.
3321         * src/preproc/eqn/other.cc (size_box::compute_metrics,
3322         size_box::output): Ditto.
3323         * src/preproc/eqn/over.cc (over_box::compute_metrics,
3324         over_box::output): Ditto.
3325         * src/preproc/eqn/script.cc (script_box::compute_metrics,
3326         script_box::output): Ditto.
3327         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
3328         sqrt_box::output): Ditto.
3330 2002-04-03  Michael Selway  <mas@ssl.co.uk>
3332         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
3333         Fix typo.
3335 2002-04-03  Werner LEMBERG  <wl@gnu.org>
3337         * doc/homepage.ms: Reduce title size.
3338         * doc/groff.texinfo: Fix documentation of .t register.
3339         Fix handling of colon.
3340         Fix `\' vs. `\\'.
3342         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
3343         only if page length is positive to avoid a loop.
3345         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
3346         tbl.
3348 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
3350         * src/include/nonposix.h, src/roff/groff/pipeline.c:
3351         s/__CYGWIN32__/__CYGWIN__/.
3353 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
3355         * doc/gnu.xpm: New image contributed by Emily Mulley.
3356         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
3357         (homepage.html): Be dependent on gnu.eps.
3358         * doc/homepage.ms: Updated to new image.
3360         * src/devices/grohtml/post-html.cc (html_printer): New member
3361         `sbuf_prev_hpos'.
3362         (html_printer::flush_sbuf, html_printer::set_char): Set it.
3363         (html_printer::sbuf_continuation): Use it.
3365 2002-03-28  Werner LEMBERG  <wl@gnu.org>
3367         * src/libs/libgroff/getopt.c: Updated to latest version.
3369         * tmac/README: More on hyphen.tex license.
3371 2002-03-26  Larry Kollar  <kollar@alltel.net>
3373         * doc/groff.texinfo: Add documentation of most missing requests.
3375 2002-03-25  Werner LEMBERG  <wl@gnu.org>
3377         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
3378         of `+-', `mu', and `di', respectively.
3380         * font/devascii/R.proto, font/devutf8/R.proto,
3381         font/devlatin1/R.proto, font/devhtml/R.proto,
3382         font/devcp1047/R.proto, font/devlpb/*: Add them.
3383         * font/devps/generate/textmap: Ditto.
3384         * font/devps/*: Regenerated.
3385         * font/devlj4/generate/text.map: Add them.
3386         * font/devlj4/*: Regenerated.
3387         * font/devdvi/generate/tc.map: Use them.
3388         * font/devdvi/generate/texsy.map: Add them.
3389         * font/devdvi/*: Regenerated.
3390         * font/devX*/*: Regenerated.
3392         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
3393         tmac/tty-char.tmac: Updated.
3395         * NEWS, man/groff_char.man: Updated.
3397 2002-03-24  Werner LEMBERG  <wl@gnu.org>
3399         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
3400         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
3401         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
3402         we use `.fchar' in dvi.tmac.
3403         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
3404         * tmac/Xps.tmac: Simplify some char definitions.
3405         Add definition for \[f/].
3406         * man/groff_char.man: Updated for new X.tmac.
3408         * tmac/README: New file.
3410 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
3412         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
3413         internal .y.o rule took precendence over the .y.cc rule, compiling
3414         the yacc files with gcc instead of g++.
3416 2002-03-23  Werner LEMBERG  <wl@gnu.org>
3418         * tmac/dvi.tmac: Add replacement font for `CB'.
3420         * tmac/doc.tmac: s/request/macro/ in messages.
3421         (doc-generic-macro): Improve error message.
3422         * tmac/groff_mdoc.man: Minor improvements.
3424 2002-03-22  Werner LEMBERG  <wl@gnu.org>
3426         * doc/groff.texinfo: Document possible conflict between `tr' and
3427         `char' requests.
3429 2002-03-21  Werner LEMBERG  <wl@gnu.org>
3431         Improve handling of hyphenation patterns.  It is now possible to
3432         use most of TeX's pattern files unmodified.  To make the process
3433         more flexible, a new request `hpfcode' has been added which
3434         provides a character code mapping for the `hpf' request.  See
3435         comment before hpf_getc() for more details.
3437         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
3438         functions.
3439         (read_patterns_file): Additional parameter for exception dictionary.
3440         Extended to recognize \pattern, \hyphenation, and \endinput.
3441         (do_hyphenation_patterns_file): Updated.
3442         * src/roff/troff/env.h (hpf_code_table): New extern.
3444         * src/roff/troff/input.cc (hpf_code_table): New array.
3445         (init_hpf_code_table, hyphenation_patterns_file_code): New
3446         functions.
3447         (hyphenation_code): Handle translation from `trin' correctly.
3448         (main, init_input_requests): Updated.
3449         (charinfo::set_translation): Handle hyphenation code also.
3451         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
3452         inline function.
3454         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
3455         char' is used for offsets in hyphenation exceptions.
3457         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
3459         * NEWS, man/groff_diff.man, man/groff.man: Document it.
3461 2002-03-20  Larry Kollar  <kollar@alltel.net>
3463         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
3464         requests.
3466 2002-03-18  Werner LEMBERG  <wl@gnu.org>
3468         * tmac/html.tmac: Fix serious typo.
3470 2002-03-17  Larry Kollar  <kollar@alltel.net>
3472         * doc/groff.texinfo: Add documentation for `writec' request.
3474 2002-03-17  Werner LEMBERG  <wl@gnu.org>
3476         Added request `hpfa' to append hyphenation patterns.
3478         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3479         parameter `append'.
3480         (hyphenation_patterns_file): Renamed to...
3481         (do_hyphenation_patterns_file): This.
3482         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
3483         functions.
3484         (init_hyphen_requests): Updated.
3485         * NEWS, man/groff.man, man/groff_diff.man: Document it.
3487 2002-03-16  Werner LEMBERG  <wl@gnu.org>
3489         Added request `writec' in analogy to `tmc'.
3491         * src/roff/troff/input.cc (write_request): Renamed to...
3492         (do_write_request): This.
3493         Added one parameter.
3494         (write_request, write_request_continue): New functions.
3495         (init_input_requests): Updated.
3496         * NEWS, man/groff.man, man/groff_diff.man: Document it.
3498         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
3499         5-10000pt.
3500         * NEWS: Document it.
3502 2002-03-15  Werner LEMBERG  <wl@gnu.org>
3504         * man/groff.man: Add writem request.
3506         Add request `trin' (translate input) to make `.asciify' work
3507         correctly.  This is necessary since `charXXX' entity names are no
3508         longer hardcoded in font definition files.
3510         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
3511         `translate_input' members.
3512         (charinfo::set_asciify_code, charinfo::get_asciify_code,
3513         charinfo::set_translation_input): New methods.
3514         (charinfo::set_translation): Add third argument.
3515         * src/roff/troff/input.cc (charinfo:set_translation): Set
3516         `asciify_code'.
3517         (do_translate): Add second argument.
3518         (translate_input): New function.
3519         (init_input_requests): Updated.
3520         * src/roff/troff/node.cc (glyph_node::asciify,
3521         composite_node::asciify): Use `get_asciify_code'.
3523         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
3525         * NEWS, man/groff.man, man/groff_diff.man: Updated.
3527 2002-03-14  Larry Kollar  <kollar@alltel.net>
3529         * doc/groff.texinfo: Improve documentation of .RS and .RE.
3531 2002-03-14  Werner LEMBERG  <wl@gnu.org>
3533         Add a new request `sizes' similar to the `sizes' command in DESC
3534         files.
3536         * src/roff/troff/env.cc (override_sizes): New function.
3537         (init_env_requests): Use it.
3538         * src/roff/troff/token.h: Export `read_string'.
3539         * NEWS, man/groff_diff.man, man/groff.man: Document it.
3541 2002-03-12  Werner LEMBERG  <wl@gnu.org>
3543         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
3545 2002-03-10  Werner LEMBERG  <wl@gnu.org>
3547         * tmac/pspic.tmac: Add support for -Tdvi.
3548         * tmac/dvi.tmac: Include pspic.tmac.
3549         * src/devices/grodvi/grodvi.man: Document it.
3550         * NEWS: Updated.
3552         * font/devlj4/generate/Makefile: Fix URL of metric files.
3554 2002-03-09  Werner LEMBERG  <wl@gnu.org>
3556         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
3558 2002-03-09  Larry Kollar  <kollar@alltel.net>
3560         * tmac/groff_ms.man: Add documentation for RS and RE macros.
3562 2002-03-08  Werner LEMBERG  <wl@gnu.org>
3564         * doc/groff.texinfo: Fixes for texinfo 4.1.
3566 2002-03-07  Werner LEMBERG  <wl@gnu.org>
3568         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
3569         included.
3570         Handle CYGWIN properly.
3572 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
3574         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
3575         * tmac/lbp.tmac: Add some font translations.
3577 2002-03-02  Werner LEMBERG  <wl@gnu.org>
3579         * font/devcp1047/R.proto, font/devlatin1/R.proto,
3580         font/devhtml/R.proto: Remove `charXXX'  entries.
3581         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
3582         where appropriate.
3584         * font/devlj4/generate/text.map: Remove `charXXX' entries.
3585         * font/devlj4/*: Regenerated all font definition files.
3586         * tmac/lj4.tmac: Load latin1.tmac.
3588         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
3589         from 2000-06-17: LJ4 metric files are *not* text files.
3591         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
3592         register to test for EBCDIC.
3594 2002-03-01  Werner LEMBERG  <wl@gnu.org>
3596         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
3597         files (as grops already does).
3598         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
3599         files.
3600         * src/devices/grops/grops.man: Document comment lines in encoding
3601         files.
3603         * tmac/cp1047.tmac: New file.
3604         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
3605         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
3606         * tmac/Makefile.sub (NORMALFILES): Updated.
3608         * tmac/ec.tmac: Don't load latin1.tmac again.
3610         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
3611         font/devps/generate/dingbats.map,
3612         font/devps/generate/dingbats.rmap, font/devps/text.enc,
3613         font/devps/generate/Makefile (symbolmap): Add header comment.
3614         * font/devps/generate/textmap: Ditto.
3615         Remove `charXXX' entries.
3616         * font/devps/symbolmap: Regenerated.
3617         * font/devps/*: Regenerated all font definition files.
3619 2002-02-28  Werner LEMBERG  <wl@gnu.org>
3621         Add color support to grodvi (for drawing colors are currently
3622         translated to gray values).
3624         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
3625         (dvi_printer): Add `cur_color' member.
3626         (dvi_printer::set_color): New function.
3627         (draw_dvi_printer): Remove `fill'.
3628         (draw_dvi_printer::fill_next): Pass environment as parameter.
3629         Update code for new color support translated to gray.
3630         (dvi_printer::set_char): Updated.
3631         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
3632         changes crossing the page border.
3633         (dvi_printer::draw): Updated.
3634         Remove cases `f' and `F'.
3635         * tmac/dvi.tmac: Add color definitions.
3636         * NEWS, src/devices/grodvi/grodvi.man: Updated.
3638         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
3639         used incorrectly.
3641         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
3642         versions of autoconf.
3643         * configure: Updated.
3645         * doc/homepage.ms: Use `.blm'.
3646         * tmac/www.tmac (www-depth): New auxiliary variable.
3647         (www-pop-level): Don't issue HTML tag.
3648         (ULS, ULE, LI): Use absolute indentation.
3650         * src/devices/grops/ps.cc (ps_printer::begin_page,
3651         ps_printer::end_page): Switch forth and back to default color while
3652         starting a new page.
3654 2002-02-27  Werner LEMBERG  <wl@gnu.org>
3656         Add EC and TC fonts to devdvi.
3658         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
3659         * font/devdvi/generate/cork.map: Renamed to...
3660         * font/devdvi/generate/ec.map: This.
3661         Remove entry for `aq'.
3662         * font/devdvi/generate/tc.map: New file.
3663         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
3664         EC and TC fonts.
3665         (FONTS): Updated.
3666         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
3667         * font/devdvi/Makefile.sub (DEVFILES): Updated.
3668         * tmac/ec.tmac: New file.
3669         * tmac/Makefile.sub (NORMALFILES): Updated.
3670         * NEWS, src/devices/grodvi/grodvi.man: Updated.
3671         * man/groff_char.man: Check `ECFONTS' register.
3673         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
3675 2002-02-26  Werner LEMBERG  <wl@gnu.org>
3677         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
3678         * font/devdvi/generate/cork.map: Add 'y and 'Y.
3679         * font/devdvi/*: Updated.
3680         * tmac/dvi.tmac: Formatting.
3682         Add font `HBI' for the dvi output.
3683         Add support for font families `T' and `H'.
3685         * font/devdvi/HBI: New file.
3686         * font/devdvi/B: Renamed to ...
3687         * font/devdvi/TB: This.
3688         * font/devdvi/BI: Renamed to ...
3689         * font/devdvi/TBI: This.
3690         * font/devdvi/I: Renamed to ...
3691         * font/devdvi/TI: This.
3692         * font/devdvi/R: Renamed to ...
3693         * font/devdvi/TR: This.
3694         * font/devdvi/H: Renamed to ...
3695         * font/devdvi/HR: This.
3696         * font/devdvi/Makefile.sub (DEVFILES): Updated.
3697         * font/devdvi/generate/Makefile (HBI): New rule.
3698         (FONTS): Updated.
3699         (R, I, B, BI, H): Renamed to ...
3700         (TR, TI, TB, TBI, HR): This, respectively.
3701         (srcdir): Fixed.
3702         * NEWS, src/devices/grodvi/grodvi.man: Updated.
3703         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
3704         Add `styles' and `family' keywords.
3705         * tmac/dvi.tmac: Alias `H' to `HR'.
3706         Add some fspecial requests for italic fonts.
3707         Add TR and TI as special.
3708         Add support for `_' with font CWI.
3710         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
3711         operator `:'.  Until now, the expression `0:1' would return 2
3712         instead of 1.
3714 2002-02-25  Werner LEMBERG  <wl@gnu.org>
3716         * man/groff_char.man: Added some missing PS glyph names (from the
3717         Adobe Glyph List).
3718         * font/devps/generate/textmap, font/devps/symbolmap: Add
3719         `arrowupdn'.
3721         * doc/groff.texinfo: Minor additions and fixes.
3722         * man/groff_diff.man: Remove documentation of fp request.  This
3723         is already covered in the original troff manual.
3724         Updated to be consistent with other doc files.
3725         * NEWS: Updated.
3727 2002-02-24  Werner LEMBERG  <wl@gnu.org>
3729         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
3730         TTYDEVDIRS.
3731         Define new variable OTHERDEVDIRS (containing `font/devlj4
3732         font/devlbp' if not EBCDIC).
3733         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
3734         (OTHERDEVDIRS): New variable.
3735         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
3736         * configure: Regenerated.
3738         * NEWS, src/devices/grotty/grotty.man: Updated.
3740 2002-02-23  Werner LEMBERG  <wl@gnu.org>
3742         * src/roff/troff/input.cc (do_overstrike, do_bracket,
3743         get_line_arg): Honour input level.
3745         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
3747         * font/*/*: Implement it in all font files.
3748         * font/devps/generate/textmap, font/devps/generate/symbolchars,
3749         * font/devps/symbolmap: Updated.
3750         * font/devlj4/generate/text.map: Updated.
3751         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
3752         * font/devdvi/generate/texmi.map: Updated.
3754         * font/devutf8/R.proto: Remove all `charXXX' entries.
3755         * font/devutf8/NOTES: Updated.
3757         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
3758         version 4.1.0.
3760         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
3762         * NEWS, man/groff_char.man: Updated.
3764 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
3766         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
3768 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3770         * src/roff/grog/grog.pl: Fix computation of $refer.
3772 2002-02-19  Werner LEMBERG  <wl@gnu.org>
3774         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
3775         `snprintf' and `vsnprintf'.
3777         * src/include/htmlindicate.h: Renamed to...
3778         * src/include/htmlhint.h: This.
3779         * src/include/Makefile.sub: Updated.
3780         * src/preproc/eqn/main.cc: Updated.
3782 2002-02-18  Werner LEMBERG  <wl@gnu.org>
3784         * man/roff.man, man/groff_out.man, man/groff.man,
3785         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
3786         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
3788         * win32-diffs: Updated.
3790 2002-02-17  Werner LEMBERG  <wl@gnu.org>
3792         * doc/Makefile (clean): Add *.eps.
3793         (MEMACROS): Removed.
3794         (TFLAG): New variable.
3795         (TROFF): Use it.
3796         Add -ww.
3797         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
3798         (.me.dit): Fixed.
3799         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
3801         * tmac/www.tmac: Use dummy diversion while resetting and disabling
3802         `.tl'.
3803         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
3804         unstripped.
3805         * src/roff/troff/troff.man: Fix order of parameter description.
3807         * NEWS: Updated.
3809 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
3811         Simplify image handling for grohtml.
3812         Fix <p> bug.
3814         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
3815         comment out.
3816         (html_text::dump_stack): Don't emit newline while debugging.
3817         (html_text::do_push) [DEBUGGING]: Print more info.
3818         (html_text::check_emit_text): Fix handling of <p>.
3819         * src/devices/grohtml/html.h: Updated.
3820         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
3821         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
3822         send its data to stderr also.
3823         Update all callers.
3824         (simple_output::space_or_newline) [DEBUGGING]: Removed.
3825         * src/devices/grohtml/post-html.cc (html_printer::do_links,
3826         html_printer::html_printer): Remove `DEBUGGING' conditionals.
3828         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
3829         Removed.
3830         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
3831         is_inline_image): Removed.
3832         (html_begin_suppress, html_end_suppress): Don't take a parameter.
3833         (graphic_start, graphic_end): Removed.
3834         * src/include/htmlindicate.h: Updated.
3835         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
3836         (macroset_template): New global variable.
3837         (makeFileName): Use `macroset_template'.
3838         (write_end_image): Don't take a parameter.
3839         Don't emit newline.
3840         (write_start_image: Don't emit newline.
3841         (char_buffer::write_upto_newline): Updated.
3842         (char_buffer::skip_to_newline): Renamed to ...
3843         (char_buffer::skip_until_newline): This.
3844         Fix code.
3845         (char_buffer::write_file_troff, char_buffer::write_file_html):
3846         Simplified.
3847         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
3848         (removeAllPages): Remove `DEBUGGING' conditionals.
3849         (addRegDef, dump_args): New functions.
3850         (char_buffer::do_html, char_buffer::do_image): Handle
3851         `www-image-template' command line variable.
3852         Add more debugging code.
3853         (addps4html): Removed.
3854         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
3856         * src/preproc/eqn/main.cc: Include `ctype.h'.
3857         (suppress_html): Removed.
3858         (do_file): Updated.
3859         (inline_equation): Use `html_begin_suppress' and
3860         `html_end_suppress'.
3861         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
3862         (troff_output::start_picture, troff_output::finish_picture):
3863         Updated.
3864         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
3865         (process_input_file): Updated.
3867         * src/roff/troff/div.cc (page_number): Set page number only if the
3868         `ps4html' register isn't defined.
3869         * src/roff/troff/input.cc (image_no): New external variable.
3870         (do_suppress): Use it.
3871         * src/roff/troff/node.h (suppress_node::image_id): New member.
3872         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
3873         (suppress_node::suppress_node): Initialize `image_id' member.
3874         (suppress_node::same): Handle `image_id' also.
3875         (suppress_node::copy): Updated.
3876         (last_image_id): New global variable.
3877         (suppress_node::tprint): Use it.
3879         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
3880         HTML-IMAGE-END.
3881         * tmac/pspic.mac (PSPIC): Fix html support.
3882         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
3883         * tmac/www.tmac (www-image-template): Set up.
3884         (HTMLINDEX): Renamed to...
3885         (HX): This.
3886         (BODYCOLOR): Renamed to...
3887         (BCL): This.
3888         (BACKGROUND): Renamed to...
3889         (BGIMG): This.
3890         (URL): Change order of parameters for consistency.
3891         (MAILTO): Renamed to...
3892         (MTO): This.
3893         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
3894         (IMG, PIMG, MPIMG): This.
3895         (HTML-H-BEGIN, HTML-H-END): Renamed to...
3896         (HnS, HnE): This.
3897         (LINKS): Renamed to...
3898         (LK): This.
3899         (LINE): Renamed to...
3900         (HR): This.
3901         (NO-AUTO-RULE): Renamed to...
3902         (NHR): This.
3903         (HTML-TL): Renamed to...
3904         (HTL): This.
3905         (UL-BEGIN, UL-END): Renamed to...
3906         (ULS, ULE): This.
3907         (DROPCAP): Renamed to...
3908         (DC): This.
3909         (TS, TE, EQ, EN): Provide default definitions.
3910         (www-make-unique-name): Updated.
3911         (HTML-IMAGE-INLINE): Fix typo.
3912         * tmac/groff_www.man: Updated.
3914         * doc/Makefile (homepage.html): Add option -r to grohtml.
3915         Use shortened image name.
3916         * doc/groff.texinfo: Updated info on grohtml strings and macros.
3917         * doc/homepage.ms: Updated and extended.
3919 2002-02-14  Werner LEMBERG  <wl@gnu.org>
3921         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
3923         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
3924         SGR_BACK_DEFAULT_COLOR): Replaced with ...
3925         (tty_printer::put_color): Use it.
3926         (ttr_printer::end_page): Simplify.
3928 2002-02-13  Werner LEMBERG  <wl@gnu.org>
3930         * tmac/groff_tmac.man: Moved to...
3931         * man/groff_tmac.man: This place.
3932         * tmac/Makefile.sub, man/Makefile.sub: Updated.
3934 2002-02-12  Werner LEMBERG  <wl@gnu.org>
3936         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
3937         $(COMPILE.c) to not include groff's assert.h.
3939         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
3940         variable.
3941         * NEWS, src/drivers/grotty/grotty.man: Document it.
3943 2002-02-11  Werner LEMBERG  <wl@gnu.org>
3945         * src/libs/snprintf/snprintf.c: Updated to latest version
3946         (2002-02-11).
3948         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
3949         test whether there is `.]' also.
3950         Don't check for spaces after `.['.
3951         * src/roff/grog/grog.sh: Do the same.
3953 2002-02-10  Werner LEMBERG  <wl@gnu.org>
3955         Illegal -> Invalid.
3957         * src/libs/libgroff/illegal.cc: Renamed to ...
3958         * src/libs/libgroff/invalid.cc: This.
3959         (illegal_char_table): Renamed to ...
3960         (invalid_char_table): This.
3961         * src/libs/libgroff/Makefile.sub: Updated.
3962         * win32-diffs: Updated.
3964         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
3965         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
3966         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
3967         font::load), src/preproc/eqn/main.cc (read_line, main),
3968         src/preproc/eqn/lex.cc (file_input::read_line),
3969         src/preproc/pic/lex.cc (file_input::read_line,
3970         simple_file_input::get, simple_file_input::peek),
3971         src/preproc/pic/main.cc (top_input::get, top_input::peek),
3972         src/preproc/pic/pic.man, src/preproc/refer/main.cc
3973         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
3974         do_bib), src/preproc/tbl/main.cc (table_input::get),
3975         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
3976         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
3977         do_zero_width, read_request, encode_char, ps_get_line,
3978         transparent_file, get_char_for_escape_name, transparent_translate,
3979         asciify, input_char_description, read_string, set_string),
3980         src/roff/troff/env.cc (environment::add_html_tag),
3981         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
3983         * src/include/lib.h: Updated.
3985         * src/preproc/eqn/eqn.cc: Removed.
3987         * NEWS: Updated.
3989         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
3991 2002-02-09  Werner LEMBERG  <wl@gnu.org>
3993         * doc/gnu.xpm: New image.
3994         * doc/Makefile (DOCS): Add homepage.ps.
3995         Add rules for converting xpm->png and xpm->eps.
3996         Use `gnu.{xpm,eps}' as image names.
3997         * doc/homepage.ms: Updated.
3999 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
4001         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
4002         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
4003         Remove calls to `B1' and `B2'
4004         (PNG-IMAGE): New macro for inclusion of images in PNG format.
4005         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
4006         auxiliary variables for MARGIN-PNG-IMAGE.
4007         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
4008         auxiliary macros for MARGIN-PNG-IMAGE.
4009         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
4010         the margin.
4011         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
4012         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
4013         (DROPCAP): New macro to produce dropcap characters.
4014         (www-do-image): Renamed back to...
4015         (HTML-DO-IMAGE): This.
4016         Updated all callers.
4018         * doc/Makefile (gnubw.eps): Updated.
4019         * doc/homepage.ms: Updated.
4021 2002-02-08  Werner LEMBERG  <wl@gnu.org>
4023         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
4024         Added `linethick' to table in section `Style Variables'.
4026 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
4028         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
4030 2002-02-07  Werner LEMBERG  <wl@gnu.org>
4032         Adding options -C (compatibility mode) and -c (grotty's old output
4033         scheme) to nroff.
4035         * src/roff/nroff/nroff.sh: Implement it.
4036         Remove `-Wall'.
4037         * NEWS, src/roff/nroff/nroff.man: Updated.
4039         * PROBLEMS: Document bison 1.32 bug.
4041         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
4043         * src/roff/troff/node.cc (make_tfont): Define it earlier.
4044         * src/roff/troff/div.h: Add prototype for `end_diversions'.
4045         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
4046         * src/roff/troff/env.h: Add prototype for `title'.
4048         Adding EBCDIC support to grotty.
4050         * src/devices/grotty/tty.cc (CSI): New macro.
4051         (SGR_*, tty_printer::put_color): Use it.
4053 2002-02-06  Werner LEMBERG  <wl@gnu.org>
4055         Implementing color support in grotty.  The new switch -c activates
4056         the old drawing scheme, disabling color at the same time.  The new
4057         switch `-i' selects italic instead of underlining (SGR only).
4059         * src/devices/grotty/tty.cc (putstring): New define instead of
4060         `fputs'.  Updated all callers.
4061         (old_drawing_scheme): New global variable.
4062         (COLOR_CHANGE): New enum value.
4063         (SGR_*): New defines containing color handling escape sequences.
4064         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
4065         (glyph): New members `back_color_idx' and `fore_color_idx'.
4066         (glyph::order): Add COLOR_CHANGE.
4067         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
4068         `is_underline', `is_bold', `cu_flag', `tty_colors'.
4069         New methods `make_underline', `make_bold', `color_to_idx',
4070         `change_color', `put_color'.
4071         (cu_flag): Moved into `tty_printer' class.
4072         (tty_printer::tty_printer): Initialize colors.
4073         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
4074         tty_printer::draw, tty_printer::end_page): Handle colors also.
4075         (main): Add options `-c' and `-i'.
4076         (usage): Updated.
4077         * NEWS, src/devices/grotty/grotty.man: Updated.
4079         * src/include/errarg.h (errarg): Add support for `unsigned int'.
4080         * src/libs/libgroff/errarg.c: Implement it.
4082         * src/include/printer.h (printer): Add `change_color' method
4083         (currently used by grotty only).
4084         * src/libs/libdriver/printer.cc: Implement it.
4085         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
4086         call to `pr->change_color'.
4088         * src/roff/troff/node.cc (troff_output_file::fill_color,
4089         troff_output_file::glyph_color): Call `do_motion'.
4091         * tmac/tty.tmac: Add color definitions.
4093         * src/roff/groff/groff.man: Minor fixes.
4095 2002-02-05  Bernd Warken  <bwarken@mayn.de>
4097         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
4098         it.  This is a preparation for future changes.
4100 2002-02-05  Werner LEMBERG  <wl@gnu.org>
4102         * src/roff/troff/input.cc (process_input_stack): Fix the case
4103         where leading spaces are followed by \f or \s; previously, an
4104         incorrect space width has been used.
4106         * doc/roff.man (quoted_char): Fix argument.
4107         (comment): Define string.
4109 2002-02-04  Larry Kollar  <kollar@alltel.net>
4111         * doc/groff.texinfo: More fixes.
4113 2002-02-04  Werner LEMBERG  <wl@gnu.org>
4115         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
4116         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
4117         `restore_compatibility' before `output_string' -- the LINE_STRING
4118         register now already contains proper switches from and to
4119         compatibility mode.
4121         * man/groff_char.man: Add Euro symbol.
4122         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
4123         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
4124         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
4125         Other minor fixes.
4127         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
4128         texinfo->pdf.
4129         (.texinfo.html): Add support for texinfo->html.
4131 2002-02-03  Werner LEMBERG  <wl@gnu.org>
4133         Added three new requests `ds1', `as1', and `ami'.  The former two
4134         are equivalent to `ds' and `as' with the difference that
4135         compatibility mode is saved on entry, switched off during string
4136         expansion, and restored on exit.  The latter is the pendant to `dei'
4137         for `am'.
4139         (do_define_string): Use `define_mode' and `calling mode'.
4140         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
4141         end of string, respectively.
4142         (define_string, append_string): Use `calling_mode'.
4143         (define_nocomp_string, append_nocomp_string,
4144         define_string_indirect): New functions.
4145         (init_input_requests): Updated.
4146         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4148         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
4149         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
4150         mm macro package accesses this string register directly.
4151         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
4153         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
4154         compatibility mode.
4156 2002-02-02  Larry Kollar  <kollar@alltel.net>
4158         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
4160 2002-01-31  Werner LEMBERG  <wl@gnu.org>
4162         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
4164 2002-01-31  Bernd Warken  <bwarken@mayn.de>
4166         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
4167         * man/groff_out.man: Revised and updated.
4169 2002-01-30  Bernd Warken  <bwarken@mayn.de>
4171         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
4172         out the unused `{' and `}' commands.  Undefined by default.
4173         (IntArray): Make `data' private.
4174         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
4175         new methods instead.
4176         (skip_line_D, skip_to_end_of_line): New functions.
4177         (get_D_fixed_args): Use `skip_line_D'.
4178         Changed to handle dummy odd arguments by ...
4179         (get_D_fixed_args_odd_dummy): This new function.
4180         (get_D_variable_args): Split some code into ...
4181         (get_possibly_integer_args): This new function.
4182         (send_draw): Use more `const'.
4183         (delete_current_env): New function.
4184         (position_to_end_of_args): Use `size_t'.
4185         Updated.
4186         (send_draw): Updated.
4187         (parse_D_command): Handle `c', `C', and `t' better.
4188         Updated.
4189         (do_file): Updated.
4191 2002-01-29  Werner LEMBERG  <wl@gnu.org>
4193         * NEWS: Revised.
4194         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
4195         @Def...ListEnd which replaces @Def...x.  This is necessary to get
4196         proper HTML output -- see the comment in the file for more
4197         information.
4198         Updated all calls.
4200 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
4202         Fixes to make color changes of 2002-01-21 work with grohtml.
4204         * src/devices/grohtml/post-html.cc (style): Updated.
4205         (html_printer): Remove unused methods.
4206         (html_printer::do_font, html_printer::draw, html_printer::set_char,
4207         html_printer::special): Updated.
4208         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
4209         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
4210         Added some debugging code.
4211         (html_text::start_tag): Updated.
4212         (html_text::do_push): New method.
4213         (html_text::push_para): Call it.
4214         Add method for handling color.
4215         (html_text::do_color): Updated.
4216         (html_text::shutdown): Handle color.
4217         * src/devices/grohtml/html-text.h (tag_definition): New member
4218         `col'.
4219         Updated.
4221 2002-01-28  Werner LEMBERG  <wl@gnu.org>
4223         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
4225 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
4227         Add two switches -a and -g to control the antialiasing bits for
4228         text and graphics, respectively.
4230         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
4231         `-g'.
4232         * src/devices/grohtml/grohtml.man: Document them.
4233         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
4234         New macros.
4235         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
4236         (setupAntiAlias): New function.
4237         (createAllPages): Updated.
4238         (scanArguments): Handle `-a' and `-g'.
4239         (main): Call `setupAntiAlias'.
4240         * NEWS: Updated.
4242 2002-01-27  Werner LEMBERG  <wl@gnu.org>
4244         * doc/groff.texinfo (Def*): Call index function after deffn.
4246         * tmac/html.tmac: Call `nroff' request.
4248 2002-01-26  Larry Kollar  <kollar@alltel.net>
4250         * tmac/groff_ms.man: Add some omissions.
4252 2002-01-25  Larry Kollar  <kollar@alltel.net>
4254         * tmac/groff_ms.man: Typographical improvements.
4256 2002-01-25  Werner LEMBERG  <wl@gnu.org>
4258         * doc/groff.texinfo: Updated version and copyright.
4259         * src/devices/grops/grops.man: Updated.
4261         * tmac/groff_tmac.man: Fix `ig' macro.
4263         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
4264         nroff mode.
4265         Use `.ne' unconditionally everywhere.
4266         (TS): Only insert some vertical space.  Doing a page break is no
4267         longer necessary due to the redefinition of the `ne' request.
4269         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
4270         warning for unknown subcommands but parse and pass them to the
4271         device driver.
4273 2002-01-24  Werner LEMBERG  <wl@gnu.org>
4275         * tmac/groff_www.man, NEWS: Fix typos.
4277 2002-01-21  Werner LEMBERG  <wl@gnu.org>
4279         Complete revision of color support:
4281           Adapt programs to the new libdriver/input.cc.
4283           Color spaces are no longer converted to RGB but transferred as-is
4284           in the troff intermediate output format.
4286           Handle default color gracefully.  troff now supports a `default'
4287           color (which can't be changed).
4289           grops will now use the proper color space functions if available.
4291           Update pic.
4293         Note that currently grohtml doesn't handle colors properly.  This
4294         has to be fixed.
4296         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
4297         (ui_to_a): New function.
4298         * src/include/lib.h: Updated.
4300         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
4301         (color): Simplified; removed all `double' members and methods.
4302         A new array `components' now holds the color parameters.
4303         (color::is_default, color::get_components): New methods.
4304         (color::operator==, color:operator!=): New.
4305         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
4306         to make access to the `components' array more comprehensible.
4307         * src/libs/libgroff/color.cc: Implement new color support.
4308         (atoh): Small fixes.
4309         (color::read_encoding): Simplified for new troff intermediate color
4310         output format.
4311         (default_color): New global variable.
4313         * src/roff/troff/input.cc (default_symbol): New global variable.
4314         (lookup_color): Use it.
4315         (default_black): Removed.
4316         (do_glyph_color, do_fill_color): Simplified.
4317         (define_color): Handle default color.
4318         Improve warnings.
4319         (do_if_request): Handle default color.
4320         * src/roff/troff/env.cc (environment::environment): Initialize
4321         colors with `default_color'.
4322         * src/roff/troff/node.cc (troff_output_file::put): Add method
4323         for `unsigned int'.
4324         (troff_output_file::hex): Removed.
4325         (troff_output_file::fill_color, troff_output_file::glyph_color):
4326         Updated to include/color.h and libdriver/input.cc.
4328         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
4329         fill color properly (identically to the outline color).  \D'f...'
4330         doesn't work any more.
4331         All function calls to it updated.
4333         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
4334         Updated.
4335         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
4336         Updated.
4338         * src/devices/grops/ps.cc (ps_output::put_color): New method.
4339         (ps_printer::sbuf_color): Make a real member instead of pointer.
4340         (ps_printer::fill_color, ps_printer::output_color): Removed.
4341         (ps_printer::ps_printer): Updated.
4342         (ps_printer::set_char): Ditto.
4343         (ps_printer::set_color): Use various color schemes.
4344         Use `put_color' method.
4345         (ps_printer::flush_sbuf): Don't set color.
4346         (ps_printer::fill_path): Take `environment' as parameter.
4347         Simplify color handling.
4348         (ps_printer::set_line_thickness): Renamed to ...
4349         (ps_printer::set_line_thickness_and_color): This (and updated).
4350         (ps_printer::set_color): Change second parameter from `complete'
4351         to `fill' which better describes what it does.
4352         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
4353         and text in the right order.
4354         Updated.
4355         Remove branches for `f' and `F'; this is handled by
4356         libdriver/input.cc.
4357         * src/devices/grops/ps.h: Updated.
4358         * font/devps/prologue (FL): Redefined.
4359         ({F,C}r,k,g: New color functions (with and without filling).
4361         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
4362         * man/groff_diff.man, man/groff.man, man/groff_out.man,
4363         doc/groff.texinfo, NEWS: Updated.
4365 2002-01-20  Bernd Warken  <bwarken@mayn.de>
4367         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
4368         in this file for what has been changed.
4370 2002-01-19  Werner LEMBERG  <wl@gnu.org>
4372         * test-groff: Fix GROFF_FONT_PATH.
4373         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
4374         is read before .TH or .Dd is parsed.
4376 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
4378         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
4379         quadrant boundaries.
4381 2002-01-18  Werner LEMBERG  <wl@gnu.org>
4383         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
4384         applied last patch.
4386 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
4388         * tmac/doc.common: Initialize %I register for the %I macro to
4389         avoid (harmless) warning.
4390         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
4391         when in the SYNOPSIS section.
4393 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
4395         * src/preproc/pic/lex.cc (get_token): Fix typo.
4397 2002-01-17  Werner LEMBERG  <wl@gnu.org>
4399         * devices/grops/ps.cc: Fix incorrectly applied last patch.
4401 2002-01-17  Larry Kollar  <kollar@alltel.net>
4403         * tmac/groff_ms.man: Completely rewritten.
4405 2002-01-16  Werner LEMBERG  <wl@gnu.org>
4407         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
4409 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
4411         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
4412         fill colors.
4413         (ps_printer::draw): Ditto.
4415 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
4417         * tmac/groff_mdoc.man: Minor fixes.
4419 2002-01-13  Werner LEMBERG  <wl@gnu.org>
4421         * man/groff_out.man: Some fixes.
4423 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
4425         * doc/pic.ms: Fix typos.
4427 2002-01-12  Werner LEMBERG  <wl@gnu.org>
4429         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
4431 2002-01-10  Werner LEMBERG  <wl@gnu.org>
4433         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
4434         symbols.
4435         * NEWS: Updated.
4437 2002-01-09  Bernd Warken  <bwarken@mayn.de>
4439         * man/groff_out.man: Revised.
4440         * man/roff.man: Minor fixes.
4441         * src/roff/troff/troff.man: Some reordering.
4443 2002-01-09  Werner LEMBERG  <wl@gnu.org>
4445         * tmac/an-old.tmac: Add dummy macros for equation support.
4447 2002-01-07  Werner LEMBERG  <wl@gnu.org>
4449         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
4451         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
4452         man pages.
4453         * tmac/groff_man.man: Small improvements.
4455 2002-01-07  Bernd Warken  <bwarken@mayn.de>
4457         * man/groff_diff.man: Revised.
4459 2002-01-06  Werner LEMBERG  <wl@gnu.org>
4461         * tmac/www.tmac: Remove extraneous backslash.
4463 2002-01-06  Bernd Warken  <bwarken@mayn.de>
4465         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
4467 2002-01-05  Werner LEMBERG  <wl@gnu.org>
4469         Integrated groffer, contributed by Bernd Warken.
4471         * contrib/groffer/*: New.       
4472         * Makefile.in, NEWS: Updated.
4474 2002-01-04  Werner LEMBERG  <wl@gnu.org>
4476         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
4477         registers defined in macro packages.
4478         Revising the ms part.
4480 2002-01-04  Larry Kollar  <kollar@alltel.net>
4482         * doc/groff.texinfo: Add documentation for ms macros.
4484 2002-01-02  Werner LEMBERG  <wl@gnu.org>
4486         First step in adding PS support for the Euro symbol.  `eu' is the
4487         official Euro logo, `Eu' is a font-specific glyph variant.
4489         * font/devps/text.enc: Add `Euro' at position 9.
4490         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
4491         * font/devps/symbolmap: Regenerated.
4493         * NEWS: Updated.
4495 2002-01-02  Bernd Warken  <bwarken@mayn.de>
4497         * man/roff.man: Revised.
4499 2002-01-01  Bernd Warken  <bwarken@mayn.de>
4501         * src/roff/groff/groff.man: Completely rewritten.
4503 2001-12-31  Werner LEMBERG  <wl@gnu.org>
4505         * doc/Makefile: Updated.
4507 2001-12-30  Werner LEMBERG  <wl@gnu.org>
4509         * tmac/www.tmac: Make all names of internal macros/registers/strings
4510         lowercase, and prepend `www-'.
4511         Other minor changes.
4512         * src/roff/troff/troff.man: Add preprocessor string at BOF.
4514 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
4516         Implement option `-b' in grohtml to set the HTML background colour.
4518         * src/devices/grohtml/post-html.cc (default_background): New global
4519         variable.
4520         (html_printer::html_printer): Initialize `background' to
4521         `default_background'.
4522         (main): Implement option `-b'.
4523         (usage): Updated.
4524         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
4525         of `-b' option.
4526         * src/devices/grohtml/grohtml.man: Updated.
4527         * doc/Makefile (.ms.html): Use `-b'.
4528         * tmac/html.tmac: Don't set background color.
4530         Add new grohtml tag `.html-tl'.
4532         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
4533         member variable.
4534         (title_desc::title_desc): Updated.
4535         (html_printer::troff_tag): Handle `.html-tl'.
4536         (html_printer::write_title): Use `with_h1'.
4537         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
4538         (HTML-TL): New macro.
4540         Add support for unordered lists in HTML.
4542         * tmac/www.tmac (www-level): New auxiliary register.
4543         (www-level1, www-level2, www-level3): New auxiliary strings.
4544         (www-push-level, www-pop-level): New auxiliary macros
4545         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
4547         Miscellaneous.
4549         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
4550         (DEFAULT_VERTICAL_OFFSET): Removed.
4551         (IMAGE_BOARDER_PIXELS): Set to 0.
4552         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
4553         (vertical_offset): Initialize with 0.
4554         (gsPaper): New global variable.
4555         (get_resolution): Scan for and return unsigned int.
4556         (get_papersize): New function to get paper length from devps/DESC.
4557         (determine_vertical_offset): New function.
4558         (createAllPages): Produce gray-level images and use proper page
4559         length.
4560         (createImage): Use `-quiet' option of pnmcrop.
4561         (addZ): Fix passing of `-Z'.
4562         (scanArguments): Fix handling of `-o'.
4563         (main): Call `determine_vertical_offset'.
4564         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
4565         code for `l'.
4567         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
4568         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
4569         glyph descenders properly.
4571         * doc/homepage.ms: Include `gnubw.eps'.
4572         * doc/Makefile (gnubw.eps): New rule.
4573         (homepage.html): Depend on `gnubw.eps'.
4575 2001-12-25  Werner LEMBERG  <wl@gnu.org>
4577         * src/roff/troff/input.cc (default_black): Fix return value.
4579 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
4581         * tmac/doc-common (Dt): Change output of architecture strings.
4582         Do some syntax cleanup.
4583         * tmac/groff_mdoc.man: Updated.
4585 2001-12-23  Werner LEMBERG  <wl@gnu.org>
4587         Adding an `itc' request (input line trap accepting \c).
4589         * src/roff/troff/env.h (environment): New member
4590         `continued_input_trap'.
4591         Make `do_input_trap' a friend function instead of `input_trap'.
4592         * src/roff/troff/env.cc (environment::environment,
4593         environment::copy): Updated.
4594         (environment::newline): Implement it.
4595         (do_input_trap): New function.
4596         (input_trap): Call `do_input_trap'.
4597         (input_trap_continued): New function.
4598         (init_env_requests): Updated.
4599         * src/roff/troff/TODO: Updated.
4601         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
4602         `.it'.
4604         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
4606 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
4608         * tmac/doc-common, tmac/doc-syms: Small updates.
4610 2001-12-22  Colin Watson  <cjwatson@debian.org>
4612         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
4614 2001-12-22  Bernd Warken  <bwarken@mayn.de>
4616         * MANIFEST: New file.
4618 2001-12-22  Werner LEMBERG  <wl@gnu.org>
4620         * src/preproc/grn/grn.man: Updated.
4622 2001-12-22  Solar Designer  <solar@openwall.com>
4624         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
4625         (DBRead): Use it.
4627 2001-12-19  Werner LEMBERG  <wl@gnu.org>
4629         Implement a fallback character request `.fchar'.
4631         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
4632         (is_fallback): New inline function.
4633         * src/roff/troff/input.cc (do_define_character): New function.
4634         (define_character): Call `do_define_character'.
4635         (define_fallback_character): New function.
4636         (init_input_requests): Add `fchar'.
4637         (charinfo::charinfo): Updated.
4638         (charinfo::set_macro): New argument to set `fallback' flag.
4639         * src/roff/troff/node.cc (make_glyph_node, make_node,
4640         node::add_char): Check `fallback' flag.
4641         * NEWS, man/groff_diff.man, man/groff_man: Updated.
4643 2001-12-16  Werner LEMBERG  <wl@gnu.org>
4645         * groff.texinfo: Document exact search algorithm for glyphs.
4647 2001-12-15  Werner LEMBERG  <wl@gnu.org>
4649         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
4650         the left side of $(MANPAGES) rule to make it always non-empty.
4652 2001-12-14  Werner LEMBERG  <wl@gnu.org>
4654         * src/roff/troff/input.cc (default_black): Define default color
4655         `black' if not yet defined.
4657 2001-12-13  Werner LEMBERG  <wl@gnu.org>
4659         Implement new string-valued register `.fn' to return the current
4660         real (internal) font name.
4662         * env.cc (environment::get_font_name_string): New function.
4663         (init_env_requests): Add `.fn' register.
4664         * env.h (environment): Updated.
4665         * node.cc (font_info): Make `get_font_name' a friend.
4666         (get_font_name): New function.
4667         * node.h: Updated.
4669         * man/groff_diff.man, man/groff.man, NEWS: Updated.
4671 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4673         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
4675 2001-12-12  Werner LEMBERG  <wl@gnu.org>
4677         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
4679 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
4681         * man/groff_diff.man: Adding documentation for \O.
4683 2001-12-10  Werner LEMBERG  <wl@gnu.org>
4685         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
4686         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
4688 2001-12-09  Werner LEMBERG  <wl@gnu.org>
4690         * man/roff.man: Revised.
4691         * src/roff/groff/groff.man: Replace man page references with a
4692         pointer to roff.man.
4694 2001-12-09  Bernd Warken  <bwarken@mayn.de>
4696         * man/roff.man: Completely rewritten.
4698 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4700         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
4702 2001-12-05  Werner LEMBERG  <wl@gnu.org>
4704         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
4705         longer used.
4706         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
4707         order of initializers.
4708         * NEWS: Updated.
4710 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
4712         * doc/groff.texinfo: Fix documentation of \O.
4714         * src/devices/grohtml/html-text.cc (html_text::do_indent,
4715         html_text::do_table, html_text::do_emittext, html_text::do_para):
4716         Use `const' for first argument.
4717         (html_text::do_table): Use cast.
4718         * src/devices/grohtml/html-text.h: Updated.
4719         * src/devices/grohtml/output.cc (simple_output::put_string): Add
4720         method for `const string &s'.
4721         * src/devices/grohtml/html.h: Updated.
4722         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
4723         (ANCHOR_TEMPLATE): Modified.
4724         (manufacture_headings): New global variable to handle `-h' option.
4725         (is_subsection): Removed.
4726         (char_buffer::add_string): Add `const' to first argument.
4727         Protect against invalid string argument.
4728         Add method for `const string &s'.
4729         (text_glob): Completely redesigned.
4730         (page): Use `const' for strings and remove string length variable.
4731         (page::add_html): Removed.
4732         (page::add_end_encode): New member function.
4733         (to_unicode): Moved upwards.
4734         (title_desc, header_desc): Updated.
4735         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
4736         definition.
4737         (html_printer::is_bold, html_printer::make_bold): New member
4738         functions.
4739         (html_printer::end_of_line): Updated.
4740         (generate_img_src, html_printer::do_auto_image,
4741         html_printer::do_title, html_printer::write_header,
4742         html_printer::determine_header_level, html_printer::do_heading,
4743         html_printer::do_linelength, html_printer::do_pageoffset,
4744         html_printer::do_indentation, html_printer::do_tempindent,
4745         html_printer::do_indentedparagraph, html_printer::do_break,
4746         html_printer::flush_sbuf, get_html_translation,
4747         html_printer::begin_page, html_printer::special): Rewritten to get
4748         rid of static string length limit.
4749         (html_printer::troff_tag): Added `.no-auto-rule'.
4750         (html_printer::flush_globs): Small fix.
4751         (html_printer::determine_space): Don't compute `space_width'.
4752         (html_printer::translate_to_html): Renamed to ...
4753         (html_printer::emit_html): This (with updates).
4754         (html_printer::write_header): Implement `-h' option.
4755         (html_printer::draw): Remove commented-out code.  Handle `F'
4756         command.
4757         (html_printer::add_char_to_sbuf): Removed.
4758         (html_printer::add_to_sbuf): Rewritten.
4759         (html_printer::sbuf_continuation): Fixed.
4760         (html_printer::seen_backwards_escape, reverse,
4761         html_printer::remove_last_char_from_sbuf): Removed.
4762         (char_translate_to_html, str_translate_to_html): Removed.
4763         (html_printer::overstrike): New function member.
4764         (html_printer::set_char): Use it.
4765         (html_printer::do_body): New function member.
4766         (html_printer::~html_printer): Use it.
4767         (main): Handle `-h' option.
4768         (usage): Updated.
4769         * src/devices/grohtml/grohtml.man: Document -h switch.
4771         * src/preproc/html/pre-html.cc: Include searchpath.h
4772         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
4773         (get_resolution): New function.
4774         (checkImageDir): Use `0777' permissions in mkdir()
4775         (write_start_image): Rewritten to use `\O[5...]'.
4776         (createImage, generateImages): Updated.
4777         (main): Handle `F' and `h' options.
4778         Use `get_resolution'.
4780         * src/roff/troff/input.cc (begin, end, image): Removed.
4781         (do_suppress): Take parameter.
4782         Handle modified syntax of `\O'.
4783         (token::next): Updated.
4784         (init_markup_requests): Removed.
4785         (main): Updated.
4787         * src/roff/troff/div.h: Add declaration for begin_page().
4789         * tmac/color-html.tmac: Removed.  Contents moved to...
4790         * tmac/html.tmac: Here.  Set background color.
4791         * tmac/color.tmac: Removed.  Contents moved to...
4792         * tmac/ps.tmac: Here.
4793         * tmac/www.tmac: Remove the title command when generating images
4794         for html.
4795         (NO_AUTO_RULE): New macro.
4796         (HTML_DO_IMAGE): Use revised `\O' escapes.
4797         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
4799 2001-12-02  Werner LEMBERG  <wl@gnu.org>
4801         * tmac/groff_mdoc.man: Fix typo.
4803 2001-12-01  Colin Watson  <cjwatson@debian.org>
4805         * man/roff.man: Fix typo.
4807 2001-11-29  Werner LEMBERG  <wl@gnu.org>
4809         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
4810         stdlib.h.
4812         * src/roff/troff/input.cc (read_draw_node): Emit error message if
4813         more than one argument to \D'f ...'.
4815         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
4817 2001-11-28  Werner LEMBERG  <wl@gnu.org>
4819         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
4820         loaded only once.
4822         * tmac/groff_man.man: Minor cosmetic fix.
4824 2001-11-27  Werner LEMBERG  <wl@gnu.org>
4826         * src/roff/groff/groff.man, tmac/groff_tmac.man,
4827         tmac/groff_www.man: s/mwww/www/.
4829 2001-11-26  Werner LEMBERG  <wl@gnu.org>
4831         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
4832         * configure: Regenerated.
4833         * win32-diffs: Updated.
4835         * tmac/groff_mwww.tmac: Renamed to ...
4836         * tmac/groff_www.tmac: This.
4837         * tmac/mwww.tmac: Removed.
4838         * NEWS, tmac/Makefile.sub: Updated.
4840 2001-11-21  Werner LEMBERG  <wl@gnu.org>
4842         * doc/groff.texinfo: Improve documentation of the `\v' escape.
4843         Fix explanation of `\D' and `rt'.
4845 2001-11-20  Werner LEMBERG  <wl@gnu.org>
4847         * tmac/an-old.tmac (an-header): Set header length equal to page
4848         width.
4849         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
4850         minor fixes.
4851         * NEWS: Small fix.
4853 2001-11-19  Werner LEMBERG  <wl@gnu.org>
4855         * NEWS, man/Makefile.sub: Updated.
4857 2001-11-19  Bernd Warken  <bwarken@mayn.de>
4859         * man/ditroff.man: New file.
4861 2001-11-17  Werner LEMBERG  <wl@gnu.org>
4863         * man/groff_differences.man: Renamed to ...
4864         * man/groff_diff.man: This.  Updated.
4865         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
4867         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
4868         * src/preproc/html/pushback.cc: This.  Updated.
4869         * src/preproc/html/pushbackbuffer.h: Renamed to ...
4870         * src/preproc/html/pushback.h: This.
4871         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
4872         Updated.
4874         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
4875         * src/libs/libgroff/htmlhint.cc: This.
4876         * src/libs/libgroff/Makefile.sub: Updated.
4878         * tmac/an-old.tmac (an-end): Fix page length.
4880 2001-11-16  Werner LEMBERG  <wl@gnu.org>
4882         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
4883         * man/Makefile.sub: Include groff_differences.man.
4884         * VERSION: Set to 1.18.
4885         * REVISION: Set to 0.
4887 2001-11-16  Bernd Warken  <bwarken@mayn.de>
4889         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
4890         the second dot (or ending macro name) to end a macro.
4891         * doc/groff.texinfo: Doc fix.
4893 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
4895         * tmac/doc-common (doc-header): Handle very long document titles
4896         better.
4898 2001-11-16  Werner LEMBERG  <wl@gnu.org>
4900         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
4902 2001-11-15  Werner LEMBERG  <wl@gnu.org>
4904         * src/roff/troff/troff.man: Revised and split into troff.man and...
4905         * man/groff_differences.man: New file.
4906         * NEWS: Updated.
4908 2001-11-13  Werner LEMBERG  <wl@gnu.org>
4910         * tmac/an-old.tmac (TS, TE): New macros for table support.
4912 2001-11-12  Werner LEMBERG  <wl@gnu.org>
4914         * src/include/lib.h: Provide a fix for emx to not include
4915         groff-getopt.h.
4917 2001-10-27  Werner LEMBERG  <wl@gnu.org>
4919         * src/roff/troff/input.cc (substring_macro): Fix computation of
4920         boundary values.
4922 2001-10-20  Werner LEMBERG  <wl@gnu.org>
4924         Undo change from 2001-08-28.
4926         * src/roff/troff/input.cc (have_input): New global variable.
4927         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
4928         in compatibility mode.
4929         (process_input_stack): Use it.
4931 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
4933         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
4934         being handled as end-of-sentence characters,
4936 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
4938         * src/roff/troff/input.cc (file_iterator): New members
4939         `suppress_newline_flag' and `seen_escape'.
4940         (file_iterator::next_file): Updated.
4941         (file_iterator::fill): Use it.
4942         (string_iterator): New member `suppress_newline_flag'.
4943         (string_iterator::fill): Set it.
4944         (get_color_element): Use MAX_COLOR_VAL.
4945         * src/roff/troff/env.cc (environment): Remove `need_eol'.
4946         (no_fill): Don't set `env->ignore_next_eol'.
4947         (environment::newline): Handle `eol' tag properly.
4948         Emit `eol.ce'.
4949         (environment::add_html_tag): Set `env->ignore_next_eol'.
4950         Don't handle `.ce'.
4951         * src/roff/troff/env.h (environment): Updated.
4953         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
4954         member function.
4955         (html_printer::outstanding_eol): New member function.
4956         (html_printer::do_title): Use new functions.
4957         (html_printer::troff_tag): Test `id_eol_ce'.
4959 2001-10-10  Werner LEMBERG  <wl@gnu.org>
4961         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
4962         files work with -C also.
4964 2001-10-05  Werner LEMBERG  <wl@gnu.org>
4966         * doc/pic.ms: Minor fix.
4967         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
4968         as a valid command line switch.
4969         * src/devices/grohtml/post-html.cc (main): Ditto.
4970         (usage): Updated.
4971         * src/devices/grohtml/grohtml.man: Updated.
4972         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
4974 2001-10-04  Werner LEMBERG  <wl@gnu.org>
4976         Implementing color support in troff, pic, grops, and grohtml.  These
4977         changes are based on a major patch provided by Gaius Mulley
4978         <gaius@glam.ac.uk>.
4980         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
4981         definitions with both hex values and fractions.
4983         New escapes: \m and \M for drawing and background color,
4984         respectively.  This corresponds to the troff output commands `m'
4985         and `DF'.
4987         groff and troff accept command line switch `-c' to disable color
4988         output (which is automatically disabled in compatibility mode).
4990         New scaling indicator `f' for fractions (1f = 65536u).
4992         New conditional operator `m' to test for defined colors with `if'
4993         and `ie'.
4995         New keywords `color' (or `colour', `colored', `coloured'), `outline'
4996         (or `outlined'), and `shaded' added to pic.
4998         * src/include/color.h: New file.
4999         * src/include/driver.h: Include it.
5000         * src/include/printer.h: Include color.h.
5001         (environment): New members `col' and `fill'.
5002         (printer): Remove `adjust_arc_center' member function.
5003         * src/include/Makefile.sub: Updated.
5005         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
5006         `env.fill'.
5007         Handle `m' and `DF' troff commands.
5008         * src/libs/libgroff/color.cc: New file.
5009         * src/libs/libgroff/Makefile.sub: Updated.
5011         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
5012         (stop): Removed.
5013         (createImage): Fix computation of `y2'.
5014         Use `pnmcrop' also.
5015         (buffer::write_file_html): Remove calls to `stop'.
5017         * src/preproc/pic/common.h (common_output): New abstract function
5018         members `set_color', `reset_color', `get_last_filled', and
5019         `get_outline_color'.
5020         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
5021         (object_spec): Add members `shaded' and `outlined'.
5022         * src/preproc/pic/output.h (output): `command' is now abstract.
5023         New function members `set_color', `reset_color', `get_last_filled',
5024         and `get_outline_color'.
5025         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
5026         `outline[d]', and `shaded'.
5027         * src/preproc/pic/object.cc (output::command): Removed.
5028         (output::set_location): Moved to output.h.
5029         (graphic_object): Add protected members `outline_color' and
5030         `color_fill'.
5031         Add member functions `set_outline_color', `get_outline_color', and
5032         `set_fill_color'.
5033         (closed_object): Add member function `set_fill_color'.
5034         Add member `color_fill'.
5035         (graphic_object::print_text): Use `out->set_color' and
5036         `out->reset_color'.
5037         (box_object::print, ellipse_object::print, circle_object::print,
5038         line_object::print, spline_object::print, arc_object::print): Ditto.
5039         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
5040         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
5041         `SHADED', making them `%left'.
5042         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
5043         * src/preproc/pic/tex.cc (tex_output): New dummy function members
5044         `set_color', `reset_color', `get_last_filled', and
5045         `get_outline_color'.
5046         * src/preproc/pic/troff.cc (simple_output): New abstract function
5047         members `set_color', `reset_color', and `get_last_filled'.
5048         (simple_output::polygon, simple_output::circle,
5049         simple_output::ellipse): Use `get_last_filled'.
5050         (troff_output): New members `last_filled' and `last_outlined'.
5051         New function members `set_color', `reset_color', `get_last_filled',
5052         and `get_outline_color'.
5053         (troff_output::finish_picture): Use `reset_color'.
5054         (troff_output::set_fill): Test `last_filled'.
5055         * src/preproc/pic/pic.man: Updated.
5057         * src/roff/groff/groff.cc (main): Implement `-c' option.
5058         (synopsis, help): Updated.
5059         src/roff/groff/groff.man: Updated.
5061         * src/roff/troff/troff.h: Include color.h.
5062         (warning_type): Add WARN_COLOR.
5063         * src/roff/troff/env.h (environment): New members
5064         `{cur,prev}_{glyph,fill}_color'.
5065         New member functions `get_{prev_,}{glyph,fill}_color'.
5066         * src/roff/troff/env.cc: Initialize and implement them.
5067         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
5068         Replace `NULL' with `0' everywhere for consistency.
5069         (lookup_color, default_black, do_glyph_color, do_fill_color,
5070         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
5071         define_color): New functions.
5072         (token::next): Implement \M and \m escapes.
5073         (do_if_request): Implement `m' operator.
5074         (usage): Updated.
5075         (main): Implement `-c' option.
5076         (init_markup_requests): Add `defcolor' request.
5077         (warning_table): Add `color' warning.
5078         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
5079         classes.
5080         * src/roff/troff/node.cc (troff_output_file): New members
5081         `current_{page,glyph}color'.  New member functions `put_hex',
5082         `glyph_color', and `fill_color'.
5083         (glyph_color_node::*, fill_color_node::*): Implement it.
5084         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
5085         (parse_term): Add support for `f'.
5086         * src/roff/troff/troff.man: Updated.
5088         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
5089         entry for `F'.
5090         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
5091         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
5093         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
5094         (tag_definition): Use `void *' for arg1.
5095         (html_text): New member functions `do_color' and `done_color'.
5096         Use `void *' for second parameter of `push_para' member function.
5097         New `push_para' member function with a single parameter.
5098         Use `char *' for parameter of `issue_table_begin' member funtion.
5099         New `issue_color_begin' member function.
5100         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
5101         COLOR_TAG.
5102         (html_text::issue_color_begin): New function.
5103         (html_text::issue_table_begin): Use `char *' for parameter.
5104         (html_text::start_tag, html_text::shutdown,
5105         html_text::check_emit_text): Updated.
5106         (html_text::push_para): Use `void *' for second parameter.
5107         Add same function with only one parameter.
5108         (html_text::do_*): Updated.
5109         (html_text::do_color, html_text::done_color): New functions.
5110         * src/devices/grohtml/post-html.cc (style): New member `col'.
5111         Mew member `style' with 6 parameters.
5112         (style::style, style::operator==): Updated.
5113         (html_printer::do_font): Use it.
5114         (html_printer::draw): Add dummy entry for `F'.
5115         (html_printer::set_char): Updated.
5116         * src/devices/grohtml/grohtml.man: Updated.
5118         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
5119         trailing zeroes removed.
5120         (ps_printer): New members `sbuf_color', `fill_color', and
5121         `output_color'.
5122         Removed member `fill'.
5123         New member function `set_color'.
5124         (ps_printer::ps_printer, ps_printer::set_char): Updated.
5125         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
5126         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
5128         * tmac/color-html.tmac, tmac/color.tmac: New files.
5129         * tmac/troffrc: Include them.
5130         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
5131         * tmac/Makefile.sub: Updated.
5133         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
5134         man/groff.man: Updated.
5135         * font/devps/prologue.ps: Define FC and CO functions.
5137 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
5139         Fix incorrect cropping of images and incorrect handling of special
5140         characters.  Fix handling of file names in \O.
5142         * src/include/geometry.h: New file.
5143         * src/libs/libgroff/geometry.cc: New file.
5144         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
5145         to `geometry.cc'.
5146         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
5147         initial spaces.
5148         (do_suppress): Updated.
5149         * src/roff/troff/node.cc: Include geometry.h.
5150         (troff_output_file::flush_tbuf): Fixed parameters to
5151         `check_output_limits'.
5152         (troff_output_file::check_charinfo): Ditto.
5153         (troff_output_file::determine_line_limits): Add support for `Da'
5154         and `Dl' commands.
5156         * src/devices/grohtml/post-html.cc (str_translate_to_html):
5157         Add new parameter `is_special' to decode special characters from
5158         escape sequences.
5159         (html_printer::do_title, html_printer::do_heading,
5160         html_printer::do_indentedparagraph,
5161         html_printer::translate_to_html, html_printer::special): Updated.
5163 2001-10-03  Werner LEMBERG  <wl@gnu.org>
5165         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
5166         Fix entry for config.h.
5167         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
5168         * tmac/troffrc: Translate nonbreakable space character to `\~'.
5169         * src/preproc/eqn/eqn.man: Document -d command line option.
5171 2001-09-27  Werner LEMBERG  <wl@gnu.org>
5173         * man/groff.man: Use
5175           .ev xxx
5176           .na
5177           .nh
5178           <table>
5179           .ev
5181         instead of the old code (`.ad .hy' after the table) to suppress
5182         incorrect hyphenation for grohtml output.
5184 2001-09-22  Werner LEMBERG  <wl@gnu.org>
5186         * man/groff_font.man, man/groff_out.man: Minor fixes.
5188 2001-09-20  Werner LEMBERG  <wl@gnu.org>
5190         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
5191         Arnold Robbins <arnold@skeeve.com>).
5193 2001-09-09  Werner LEMBERG  <wl@gnu.org>
5195         * configure: Regenerated with autoconf 2.52.
5197         * doc/groff.texinfo: Complete revision of indices.
5199 2001-09-07  Werner LEMBERG  <wl@gnu.org>
5201         * doc/Makefile (clean): Updated to delete all indices.
5203 2001-09-05  Werner LEMBERG  <wl@gnu.org>
5205         * src/roff/troff/troff.man: Remove superfluous line.
5207         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
5208         given on the command line (or rather, if only the default warnings
5209         are set).
5211 2001-09-03  Werner LEMBERG  <wl@gnu.org>
5213         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
5214         use .ne for TTY devices.
5216 2001-08-31  Werner LEMBERG  <wl@gnu.org>
5218         * src/roff/troff/token.h, src/roff/troff/input.cc:
5219         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
5221 2001-08-28  Werner LEMBERG  <wl@gnu.org>
5223         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
5224         * src/roff/troff/input.cc (token::next): Return
5225         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
5226         compatibility mode.
5227         (token::description): Updated.
5228         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
5229         (token::add_to_node_list, token::process): Ignore
5230         TOKEN_TRANSPARENT_ESCAPE.
5232 2001-08-27  Werner LEMBERG  <wl@gnu.org>
5234         * tmac/an-old.tmac: Fix `S' string.
5236 2001-08-26  Werner LEMBERG  <wl@gnu.org>
5238         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
5240 2001-08-25  Werner LEMBERG  <wl@gnu.org>
5242         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
5243         backslashes).
5244         Many other minor fixes.
5246         * configure.ac: Add message at end to inform how to compile
5247         xditview.
5248         * configure: Regenerated.
5250 2001-08-24  Werner LEMBERG  <wl@gnu.org>
5252         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
5253         Updated to latest version of libc.
5255 2001-08-23  Werner LEMBERG  <wl@gnu.org>
5257         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
5258         Autoconf 2.50 and newer can handle this.
5259         * configure: Regenerated.
5261 2001-08-21  Werner LEMBERG  <wl@gnu.org>
5263         * doc/pic.ms: Fix typo.
5264         * src/preproc/tbl/tbl.man: Document case of global options.
5266 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5268         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
5269         handling of `CR' font.
5271 2001-08-20  Werner LEMBERG  <wl@gnu.org>
5273         Use a config.h file.
5275         * src/include/lib.h: Include config.h.
5276         * All C files: Ditto (if necessary).
5277         * All C++ source and header files: Include lib.h first (if
5278         necessary).
5280         * src/include/config.hin: New file (autogenerated by autoheader).
5281         * stamp-h.in: New file.
5282         * configure.ac: Updated.
5283         * aclocal.m4: Add third parameters to AC_DEFINE macros.
5284         (GROFF_ARRAY_DELETE): Simplified.
5285         * Makefile.sub (DISTCLEANFILES): Updated.
5286         Added targets for remaking config.status, config.hin, config.h,
5287         stamp-h.in, and stamp-h.
5288         * configure: Regenerated.
5290 2001-08-19  Werner LEMBERG  <wl@gnu.org>
5292         * NEWS: Updated.
5294 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
5296         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
5297         (do_sprintf): Use snprintf().
5299 2001-08-18  Werner LEMBERG  <wl@gnu.org>
5301         * src/libs/snprintf/*: Added an snprintf module written by Mark
5302         Martinec.
5303         * src/libs/libgroff/Makefile.sub: Updated.
5304         * configure.ac: Add test for snprintf().
5305         * Makefile.in: Updated.
5306         * configure: Regenerated.
5308         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
5309         uses snprintf().
5311 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
5313         * tmac/doc.tmac (Ex): New implementation.
5314         * tmac/doc-common, tmac/groff_tmac.man: Updated.
5316 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
5318         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
5319         argument.
5320         * tmac/groff_tmac.man: Updated.
5322 2001-08-13  Werner LEMBERG  <wl@gnu.org>
5324         * src/preproc/tbl/tbl.man: Minor documentation update.
5326 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5328         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
5329         * configure.ac: Add declaration test for gettimeofday().
5330         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
5331         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
5332         * configure: Regenerated.
5334 2001-08-11  Werner LEMBERG  <wl@gnu.org>
5336         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
5337         * configure.ac: Add declaration test for strcasecmp().
5338         * Makefile.in: Updated.
5339         * configure: Regenerated.
5340         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
5341         this is necessary because groff's mkstemp.cc is C++.
5342         Add declaration conditionally for strcasecmp().
5344 2001-08-10  Werner LEMBERG  <wl@gnu.org>
5346         Integrated pic2graph, contributed by Eric S. Raymond.
5348         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
5349         files.
5350         * Makefile.in, NEWS: Updated.
5352         * src/preproc/tbl/tbl.man: Revised.
5354 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
5356         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
5358 2001-08-09  Werner LEMBERG  <wl@gnu.org>
5360         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
5361         requests.
5363 2001-08-08  Paul Eggert  <eggert@twinsun.com>
5365         * Makefile.sub (configure): Depend on configure.ac, not
5366         configure.in.
5367         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
5369 2001-08-07  Werner LEMBERG  <wl@gnu.org>
5371         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
5372         fixes.
5374 2001-08-06  Werner LEMBERG  <wl@gnu.org>
5376         * src/roff/troff/troff.man: Improve documentation of -E option.
5378 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5380         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
5381         Simplified.
5383 2001-07-27  Werner LEMBERG  <wl@gnu.org>
5385         * src/preproc/refer/refer.cc: Undo last change.
5386         * src/devices/grohtml/post-html.cc: Ditto.
5388 2001-07-26  Werner LEMBERG  <wl@gnu.org>
5390         * src/preproc/refer/refer.cc: Include `lib.h'.
5391         * src/devices/grohtml/post-html.cc: Ditto.
5393 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
5395         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
5396         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
5397         * Makefile.in: Comment updated.
5398         * configure: Regenerated.
5400 2001-07-25  Werner LEMBERG  <wl@gnu.org>
5402         * src/preproc/pic/pic.cc: Removed.
5403         * src/preproc/pic/pic_tab.h: Removed.
5404         * src/preproc/refer/label.cc: Removed.
5406         * doc/Makefile (.ms.html): Don't use a file name extension in
5407         argument to grohtml's -I option.
5408         * Makefile.in (dist): Remove CVS directories.
5409         Call `distfiles' target.
5411         * src/devices/grohtml/grohtml.man: Add information about valid
5412         versions of pnmtopng.
5413         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
5414         name instead of number.
5416 2001-07-24  Werner LEMBERG  <wl@gnu.org>
5418         * doc/groff.texinfo: Minor fixes.
5420 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
5422         * doc/Makefile (.ms.html): Put image files into a subdirectory.
5423         (clean): Updated.
5425 2001-07-20  Werner LEMBERG  <wl@gnu.org>
5427         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
5428         * src/libs/libgroff/mkstemp.cc: New file.
5429         * src/libs/libgroff/mksdir.cc: New file.
5430         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
5431         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
5432         * src/libs/libgroff/Makefile.sub: Updated.
5433         * src/include/lib.h: Add mksdir() prototype.
5434         * src/include/posix.h: Define S_IXUSR if not yet defined.
5436         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
5437         (createAllPages): Use mksdir() instead of current code.
5438         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
5439         (main): [!HAVE_MKSTEMP]: Removed.
5441         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
5442         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
5443         macros.
5444         * configure.ac: Add tests for stdint.h, sys/time.h, and
5445         gettimeofday().
5446         Call new GROFF_xxx macros.
5447         * configure: Regenerated.
5448         * Makefile.in: Comments updated.
5450 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
5452         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
5453         instead of current code.
5454         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
5455         * src/roff/groff/groff.cc (possible_command::insert_args): New
5456         function.
5457         (main): Use it for predriver handling instead of insert_arg().
5459 2001-07-19  Werner LEMBERG  <wl@gnu.org>
5461         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
5462         groff also.
5464         * src/include/posix.h: Define S_IWUSR if not yet defined.
5466 2001-07-18  Werner LEMBERG  <wl@gnu.org>
5468         * NEWS: Updated.
5470 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
5472         * tmac/groff_mdoc.man: Document new -width and -column syntax.
5473         Some other minor fixes.
5474         * tmac/an-old.tmac: Add `AT' and `UC' macros.
5476 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
5478         Replace call to `troff' with `groff -Z' to make it aware of
5479         GROFF_BIN_PATH.
5481         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
5482         (troff_command, command_prefix): Removed.
5483         (alterDeviceTo): Use groff.
5484         (addZ): New function.
5485         (char_buffer::do_html): Use it.
5486         (scanArguments): Use TROFF_COMMAND.
5487         (findPrefix): Removed.
5488         (main): Updated.
5489         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
5491 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
5493         * doc/pic.ms: Documentation fixes.
5495 2001-07-17  Werner LEMBERG  <wl@gnu.org>
5497         Replace atexit() with global destructor.
5499         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
5500         (xtmpfile_list_init): New global structure to deallocate
5501         xtmpfile_list on exit.  Its destructor inherits most code from
5502         remove_tmp_files().
5503         (remove_tmp_files): Deleted.
5504         (add_tmp_file): Simplified.
5506 2001-07-16  Werner LEMBERG  <wl@gnu.org>
5508         Replace strdup() with strsave().
5510         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
5511         (set_papersize): Use strsave() and a_delete.
5512         (main): Use strsave().
5513         * src/preproc/html/pre-html.cc (make_message, createAllPages,
5514         removeAllPages): Use strsave() and a_delete.
5516         * configure.ac: Remove test for strdup.
5517         * Makefile.in: Comment updated.
5518         * configure: Regenerated.
5520 2001-07-15  Werner LEMBERG  <wl@gnu.org>
5522         * win32-diffs: Updated.
5524 2001-07-14  Werner LEMBERG  <wl@gnu.org>
5526         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
5527         removing the old one.
5528         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
5530 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5532         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
5534 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
5536         Merge -xwidth into -width.  Add -xwidth functionality to -column
5537         also.
5539         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
5540         avoid warning.
5541         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
5542         string immediately following a leading dot starts with a valid mdoc
5543         argument.
5544         Add similar code to the -column branch.
5545         (doc-Bl-usage): Updated.
5546         * groff_mdoc.man: s/-xwidth/-width/.
5548 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
5550         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
5551         running into centered or non-formatted text.
5553 2001-07-11  Werner LEMBERG  <wl@gnu.org>
5555         Introduce short and long prefixes to have the selection at run-time
5556         whether there is a 8+3 limit for names of temporary files.
5558         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
5559         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
5560         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
5561         variables.
5562         (temp_init): New global structure to initialize above three
5563         variables.
5564         (xtmptemplate): Use two parameters for long and short prefix.
5565         Simplify code use above three variables.
5566         (xtmpfile): Use long and short prefixes as parameters.
5567         * src/include/lib.h: Updated.
5569         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
5570         with ...
5571         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
5572         (createAllPages, makeTempFiles): Updated.
5574 2001-07-09  Werner LEMBERG  <wl@gnu.org>
5576         * REVISION: Increased to 3.
5578 Version 1.17.2 released
5579 =======================
5581 2001-07-07  Werner LEMBERG  <wl@gnu.org>
5583         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
5584         to size_t.
5586 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
5588         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
5589         Fix synopsis.
5590         * tmac/groff_mdoc.man: Fix synopsis.
5592 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
5594         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
5595         Restore `doc-Pa-font'.
5597 2001-07-04  Werner LEMBERG  <wl@gnu.org>
5599         * src/utils/indxbib/dirnamemax.c: Moved to ...
5600         * src/libs/libgroff/maxfilename.cc: Here.
5601         s/dir_name_max/file_name_max/.
5602         Add copyright.
5603         * src/include/lib.h: Add file_name_max.
5604         * src/utils/indxbib/indxbib.cc: Updated.
5605         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
5606         Updated.
5608         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
5609         as empty.
5610         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
5612         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
5613         REGION_TEMPLATE): New macros.
5614         (createAllPages, makeTempFiles): Use them.
5615         Include `nonposix.h'.
5616         (html_system): New function.
5617         (createAllPages, createImage): Use it.
5618         Use EXE_EXT.
5620         * tmac/www.tmac: Fix typos.
5622 2001-07-03  Werner LEMBERG  <wl@gnu.org>
5624         * tmac/www.tmac: Disable hyphenation in normal text only if output
5625         device is html.
5626         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
5627         * tmac/groff_mwww.man, NEWS: Updated.
5629 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
5631         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
5632         image location.
5634 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
5636         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
5637         doc-display-ps-stack): Implement font and font size stack for
5638         displays.
5640 2001-07-02  Werner LEMBERG  <wl@gnu.org>
5642         * REVISION: Increased to 2.
5643         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
5645         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
5646         beginning of a line.
5647         * src/groff/grog/grog.sh: Ditto.
5649 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
5651         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
5652         make it portable.
5654 2001-06-27  Werner LEMBERG  <wl@gnu.org>
5656         Fix problems with preprocessor string for `man' program.
5658         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
5659         Updated/added copyright.
5660         Moved Emacs's local variable to identify nroff mode to the end of
5661         the file; add local variable if missing.
5663 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
5665         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
5666         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
5667         * configure: Regenerated.
5669 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
5671         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
5672         * configure: Regenerated.
5674 2001-06-24  Werner LEMBERG  <wl@gnu.org>
5676         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
5677         but www.tmac.
5678         * doc/pic.ms: Fix typos.
5680 Version 1.17.1 released
5681 =======================
5683 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
5685         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
5686         * configure: Updated.
5688 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
5690         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
5691         image names.
5692         * src/roff/troff/dic.cc (blank_line): Add html tag.
5694 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
5696         * src/roff/troff/input.cc (do_suppress): Fix typo.
5698 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
5700         Added two new options (-D and -I) to specify image names and a
5701         subdirectory to place the images in.
5703         Change syntax from \\Ox to \\O[x].
5705         * src/devices/grohtml/post-html.cc (main): Add options.
5706         (usage): Updated.
5707         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
5708         Use `NULL' instead of `0' for null string pointers.
5709         (MAX_RETRIES): New macro.
5710         (lengthOfintToStr, intToStr, make_message): New functions.
5711         (makeFileName): Make function static.
5712         Implement -D and -I options.
5713         (checkImageDir): New function.
5714         (write_end_image, write_start_image): Use new syntax of \O.
5715         (createAllPages, removeAllPages): Implement -D and -I options.  Use
5716         make_message().
5717         (createImage): Use make_message().
5718         (addps4html): Add guard for malloc().
5719         (usage, scanArguments): Updated.
5720         (makeTempFiles): Use mkstemp().
5721         (removeTempFiles): Use unlink().
5722         (findPrefix): Add guard for malloc().
5723         (main): Updated.
5724         * src/roff/troff/input.cc (get_delim_file_name): New function to
5725         parse \O.
5726         (do_suppress): Updated to parse new syntax.
5727         * src/devices/grohtml/grohtml.man: Updated.
5728         * tmac/www.tmac: Updated to new syntax.
5730         * NEWS: Updated.
5732 2001-06-15  Werner LEMBERG  <wl@gnu.org>
5734         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
5736         * src/devices/grohtml/grohtml.man: Minor improvements.
5738 2001-06-14  Werner LEMBERG  <wl@gnu.org>
5740         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
5742 2001-06-11  Werner LEMBERG  <wl@gnu.org>
5744         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
5745         line to specify preprocessor options -- mandb 2.3.1 only recognizes
5746         the former.
5747         * src/preproc/grn/grn.man: Add proper '\" string.
5749 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
5751         * test-groff: Don't use PATH but GROFF_BIN_PATH.
5753 2001-06-08  Werner LEMBERG  <wl@gnu.org>
5755         Updated to autoconf 2.50.
5757         * configure.in: Renamed to...
5758         * configure.ac: This.
5759         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
5760         (GROFF_OS390): Updated.
5761         * configure: Regenerated.
5763 2001-05-18  Werner LEMBERG  <wl@gnu.org>
5765         * src/roff/troff/env.c, src/roff/troff/env.h,
5766         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
5767         from 2000-12-21.
5769 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
5771         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
5773 2001-05-16  Werner LEMBERG  <wl@gnu.org>
5775         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
5776         less than or equal zero; set it to 1 then.
5777         * src/roff/troff/node.h (node::node): Initialize `last'.
5779 2001-05-08  Werner LEMBERG  <wl@gnu.org>
5781         * tmac/an-old.tmac: Make predefined strings work in compatibility
5782         mode.
5783         Add troff version guard.
5784         * tmac/doc.tmac: Simplify version guard.
5786 2001-05-07  Werner LEMBERG  <wl@gnu.org>
5788         The .ns and .rs requests are now honoured not only in the top-level
5789         but in all diversions (similar to UNIX troff).
5791         This change is based on a patch from Tadziu Hoffmann
5792         <hoffmann@usm.uni-muenchen.de>.
5794         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
5795         (top_level_diversion): Remove `no_space_mode' member.
5796         * src/roff/troff/div.cc (diversion::diversion,
5797         top_level_diversion::top_level_diversion): Updated.
5798         (macro_diversion::output): Reset `no_space_mode'.
5799         (no_space, restore_spacing): Use `curdiv' unconditionally.
5800         (space_request, blank_line): Check `curdiv->no_space_mode'.
5801         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
5802         `curdiv' unconditionally.
5803         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
5804         Updated.
5806 2001-05-06  Werner LEMBERG  <wl@gnu.org>
5808         Added two new requests `de1' and `am1' which are similar to `de' and
5809         `am' with the difference that compatibility mode is saved on entry,
5810         switched off during macro execution, and restored on exit.
5812         * src/roff/troff/input.h: Added two new special characters
5813         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
5814         * src/roff/troff/input.cc (input_iterator): Added two member
5815         functions `save_compatible_flag' and `get_compatible_flag'.
5816         (input_stack): Ditto.
5817         (string_iterator): Ditto.  Also add private member
5818         `saved_compatible_flag'.
5819         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5820         (calling_mode): New enumeration.
5821         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
5822         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
5823         (define_macro, define_indirect_macro, append_macro, ignore): Use
5824         `calling_mode'.
5825         (define_nocomp_macro, append_nocomp_macro): New functions.
5826         (init_input_requests): Updated.
5827         (do_request): Rename local variable `saved_compatible_flag' to
5828         `old_compatible_flag'.
5829         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5831         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
5832         public and trap-invoked macros.  As a consequence, the man macros
5833         work in compatibility mode also.
5835 2001-05-06  Solar Designer  <solar@openwall.com>
5837         * Makefile.in: Use $(mandir).
5839 2001-05-06  Alexios Zavras  <zvr@pobox.com>
5841         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
5843 2001-05-05  Werner LEMBERG  <wl@gnu.org>
5845         Added `.ns' number register: Returns 1 in no-space mode (if in
5846         top-level diversion), 0 otherwise.
5848         * src/roff/troff/div.cc (no_space_mode_reg): New class.
5849         (init_div_requests): Updated.
5850         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
5851         Document it.
5853 2001-05-04  Werner LEMBERG  <wl@gnu.org>
5855         * src/roff/nroff/nroff.man: Improved documentation (especially
5856         locales).
5858 2001-05-02  Werner LEMBERG  <wl@gnu.org>
5860         Added `brp' request: This is \p as a request.
5862         * src/roff/troff/env.cc (environment::do_break): Add parameter
5863         `spread'.
5864         (do_break_request): New function (was `break_request').
5865         (break_request): Calls `do_break_request'.
5866         (break_spread_request): New; calls `do_break_request'.
5867         (init_env_requests): Updated.
5868         * src/roff/troff/env.h: Updated.
5869         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5871         * REVISION: Increased to 1.
5872         * win32-diffs: Updated.
5874 2001-05-01  Werner LEMBERG  <wl@gnu.org>
5876         * tmac/an-old.tmac: Fix minor compatibility mode issue.
5877         * tmac/troffrc-end: Make it really work in compatibility mode.
5879 2001-04-27  Werner LEMBERG  <wl@gnu.org>
5881         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
5882         stdlib.h.
5884 2001-04-22  Werner LEMBERG  <wl@gnu.org>
5886         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
5887         latest versions from glibc CVS archive.
5889         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
5890         <c.zeelenberg@hccnet.nl>.
5892 2001-04-21  Werner LEMBERG  <wl@gnu.org>
5894         * configure.in: Move check for mkstemp() to...
5895         * aclocal.m4 (GROFF_MKSTEMP): This new function.
5896         * configure: Regenerated.
5898         * src/include/groff-getopt.h: Don't use variable names in
5899         declarations.
5901         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
5902         * src/devices/grohtml/Makefile.sub,
5903         src/devices/grohtml/post-html.cc: Updated.
5905 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
5907         * configure.in: Add special check for mkstemp().
5908         * src/libs/libgroff/tmpfile.cc: Use it.
5909         * src/utils/indxbib/indxbib.cc: Ditto.
5910         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
5911         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
5912         `const'.
5914 2001-04-20  Bruce Lilly  <blilly@erols.com>
5916         `Version_string' as C++ object was not visible to linker from C
5917         object files.
5918         Add `const' to `Version_string'.
5920         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
5921         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
5922         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
5923         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
5924         (scanArguments), src/preproc/refer/refer.cc (main),
5925         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
5926         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
5927         (main), src/devices/grohtml/post-html.cc (main),
5928         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
5929         (main), src/utils/hpftodit/hpftodit.cc (main),
5930         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
5931         (main), src/utils/lkbib/lkbib.cc (main),
5932         src/utils/addftinfo/addftinfo.cc (main): Implement it.
5934         * src/roff/groff/pipeline.c: Add _UWIN.
5935         * src/include/nonposix.h: Ditto.
5937 2001-04-20  Werner LEMBERG  <wl@gnu.org>
5939         * src/include/lib.h: Use HAVE_STRERROR.
5940         * src/roff/groff/pipeline.c: Ditto.
5941         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
5942         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
5943         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
5944         * win32-diffs: Updated.
5945         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
5947 2001-04-19  Werner LEMBERG  <wl@gnu.org>
5949         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
5950         instead of hardwired `"troff"'.
5951         (char_buffer::read_file): Remove unused variables.
5952         (char_buffer::write_file_troff): Ditto.
5953         (char_buffer::write_file_html): Ditto.
5954         (generateImages): Ditto.
5955         (abs): Removed.
5956         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
5958         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
5960         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
5961         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
5962         index_search_item::search1): Ditto.
5963         * src/roff/troff/node.h (width_list): Reorder members.
5964         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
5965         (lookup_warning): Ditto.
5966         (prepend_string): Commented out.
5967         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
5968         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
5969         * src/preproc/tbl/main.cc (process_format): Ditto.
5970         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
5971         compiler warnings.
5972         * src/preproc/pic/pic.cc: Updated.
5973         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
5974         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
5975         * src/preproc/refer/command.cc (execute_command): Ditto.
5976         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
5977         * src/preproc/refer/token.cc (lookup_token): Ditto.
5978         * src/preproc/soelim/soelim.cc: Ditto.
5979         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
5980         (isHexDigit): Commented out.
5981         (pushBackBuffer::isString): Remove unused variable.
5982         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
5983         warning.
5984         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
5985         resource_manager::read_resource_arg, read_one_of, parse_extensions):
5986         Ditto.
5987         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
5988         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
5989         lookup_paper_size): Ditto.
5990         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
5991         (text_glob, element_list): Reorder members.
5992         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
5993         compiler warning.
5994         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
5995         return value to `void'.
5996         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
5997         of initializers.
5998         * src/devices/grohtml/html.h (simple_output::check_newline,
5999         simple_output::space_or_newline, simple_output::enable_newlines):
6000         Add return value.
6001         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
6002         compiler warnings.
6003         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
6004         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
6005         output_ligatures, output_charset, read_map): Ditto.
6006         * src/utils/lookbib/lookbib.cc (main): Ditto.
6007         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
6008         (do_file): Fix typo (`=' -> `==').
6009         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
6010         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
6012 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
6014         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
6015         Fix usage of GROFF_BIN_PATH.
6016         * src/roff/nroff/nroff.man: Updated.
6018 2001-04-18  Werner LEMBERG  <wl@gnu.org>
6020         * NEWS: Fixing typos.
6021         Updated.
6023 Version 1.17 released
6024 =====================
6026 2001-04-17  Werner LEMBERG  <wl@gnu.org>
6028         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
6029         directory, not in $(srcdir).
6031 2001-04-16  Werner LEMBERG  <wl@gnu.org>
6033         * doc/groff.texinfo: More info on conditionals.
6035 2001-04-15  Werner LEMBERG  <wl@gnu.org>
6037         * doc/groff.texinfo: Added some info about groff internals.
6039         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
6040         about missing special character only if the name is non-null.
6042 2001-04-14  Werner LEMBERG  <wl@gnu.org>
6044         Removing the grohtml-old device driver which is now obsolete.
6046         * src/devices/grohtml-old/*: Removed.
6047         * font/devhtml-old/*: Removed.
6048         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
6049         Remove comments.
6050         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
6051         * test-groff (PATH): Updated.
6052         * tmac/Makefile.sub (NORMALFILES): Updated.
6053         * tmac/an-old.tmac: Remove special code for html-old device.
6054         Replace `html-or-html-old' register with `an-html'.
6055         * tmac/eqnrc: Updated.
6056         * tmac/html-old.tmac: Removed.
6057         * tmac/troffrc, tmac/troffrc-end: Updated.
6058         * tmac/www.tmac: Remove special code for html-old device.
6059         Replace `html-or-html-old' register with `www-html'.
6061         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
6062         src/libs/libgroff/htmlindicate.cc (graphic_end),
6063         include/htmlindicate.h, src/preproc/grn/*.cc,
6064         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
6065         single argument for consistency with rest of source code.
6067         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
6069 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
6071         * src/roff/troff/troff.man: Fixing typos.
6073 2001-04-13  Werner LEMBERG  <wl@gnu.org>
6075         * doc/pic.ms: Fixing many font switches.
6076         * doc/groff.texinfo: Fixes, additions.
6077         * MORE.STUFF: Updated.
6079 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
6081         * src/devices/grohtml/grohtml.man: Updated manual page regarding
6082         simple anchor.
6083         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
6084         cropping of images.
6085         (removeTempFiles): New function to tidy up temporary files.
6086         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
6087         Many fixes to do with the new inline suppress node and image regions
6088         are much tighter.
6089         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
6090         (generate_img_src): New function.
6091         (html_printer::do_auto_image): Utilizes it.
6092         (do_heading, do_title): Include inline images within their contents.
6093         (html_printer::begin_page): Tidied up comments that are issued to
6094         the html output file.
6095         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
6096         than courier.
6097         (text_glob::is_br): New method used by do_heading.
6098         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
6099         equivalent diversion.
6100         * src/include/html-strings.h: Altered image tags to reflect the
6101         inline image node.
6102         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
6103         parameter.
6104         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
6105         it is already inside a pic image.  Only emit tags if the argument
6106         `-Tps:html' is present.
6107         * src/preproc/tbl/main.cc: Changes to reflect additional
6108         `html_end_suppress' parameter.
6109         * src/roff/troff/env.cc: Only emit eol tag if a node has been
6110         emitted since the last eol tag was written.
6111         * src/roff/troff/env.h: New boolean `emitted_node'.
6112         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
6113         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
6114         * src/roff/troff/node.cc (check_charinfo): New method. 
6115         (troff_output_file::determine_line_limits): Alterations to limit
6116         checking.
6117         * tmac/www.tmac: Changes to reflect new suppress nodes.
6118           
6119 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
6121         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
6122         Escape the html_glyph in the buffer.
6123         (str_translate_to_html): Output the unescaped escaped_char.
6124         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
6125         `frame=void', not `frame=none'.  Add `border=0'.
6127 2001-04-12  Werner LEMBERG  <wl@gnu.org>
6129         * PROBLEMS: Add some words on how to avoid wrapper macros.
6131 2001-04-11  Blake McBride  <blake@florida-software.com>
6133         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
6135 2001-04-11  Werner LEMBERG  <wl@gnu.org>
6137         * font/devlbp/Makefile.sub (CLEANADD): Set it.
6138         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
6139         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
6140         * Makefile.sub (DISTCLEANFILES): Here.
6142         * libs/libgroff/new.cc: Include `nonposix.h'.
6143         * win32-diffs: Updated.
6145 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
6147         Added skeleton macro for defunct macros.
6149         Updated documentation.
6151         When inside displays, an empty input line warning should be
6152         suppressed.  If another macro call is put inside a display,
6153         all subsequent empty lines found in that display caused a
6154         warning to be emitted.
6156         * tmac/doc.tmac (doc-defunct-macro): New macro.
6157         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
6158         (doc-restore-global-vars): Fixed typo.
6159         (doc-empty-line): Check the `doc-display-depth' register to
6160         determine whether we are inside display or not.
6162         * tmac/doc-common: Removed `Or' and `Sf' registers.
6163         Moved obsolete `Ds' macro to doc.tmac.
6165         * tmac/groff_mdoc.man: Bump document date.
6166         Document `.Vt' under ``Variable Types''.
6167         Removed documentation for obsolete `.Or' macro.
6169 2001-04-10  Werner LEMBERG  <wl@gnu.org>
6171         * NEWS: Updated.
6172         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
6174 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
6176         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
6177         (usage): Add stream argument. Don't exit.
6178         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
6179         Write --version output to stdout, not stderr.
6180         (usage): Add stream argument. Don't exit.
6181         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
6182         (usage): Add stream argument. Don't exit.
6183         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
6184         constants.
6185         (usage): Add stream argument. Don't exit.
6186         (main): Write --help output to stdout, not stderr.
6187         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
6188         (usage): Add stream argument. Don't exit.
6189         * src/devices/grops/ps.cc (main): Accept --help and --version.
6190         (usage): Add stream argument. Don't exit.
6191         * src/devices/grotty/tty.cc (main): Accept --help and --version.
6192         (usage): Add stream argument. Don't exit.
6193         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
6194         (main): Accept --help and --version.
6195         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
6196         (main): Accept --help and --version.
6197         * src/preproc/html/pre-html.cc (usage): Add stream argument.
6198         (scanArguments): Accept --help and --version.
6199         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
6200         (main): Accept --help and --version.
6201         * src/preproc/refer/refer.cc (main): Accept --help and --version.
6202         (usage): Add stream argument. Don't exit.
6203         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
6204         exit.
6205         (main): Accept --help and --version.
6206         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
6207         (main): Accept --help and --version.
6208         * src/roff/groff/groff.cc (main): Accept --help and --version.
6209         (synopsis): Add stream argument.
6210         (help): Write --help output to stdout, not stderr.
6211         (usage): Add stream argument. Don't exit.
6212         * src/roff/grog/grog.pl: Accept --help and --version.
6213         (help): New sub.
6214         * src/roff/grog/grog.sh: Accept --help and --version.
6215         * src/roff/nroff/nroff.sh: Accept --help and --version.
6216         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
6217         (usage): Add stream argument. Don't exit.
6218         (main): Accept --help and --version.
6219         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
6220         (usage): New function with stream argument, doesn't exit.
6221         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
6222         (usage): New function with stream argument, doesn't exit.
6223         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
6224         (usage): Add stream argument. Don't exit.
6225         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
6226         (main): Accept --help and --version.
6227         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
6228         exit.
6229         (main): Accept --help and --version.
6230         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
6231         (main): Accept --help and --version.
6232         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
6233         (usage): Add stream argument. Don't exit.
6235 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
6237         Fix indentation in SYNOPSIS.
6239         Updated to include changes of latest BSD mdoc version (basically,
6240         the only change is that `.Fn' and `.Fc' put a final semicolon after
6241         a function declaration in the SYNOPSIS section).
6243         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
6244         (doc-in-synopsis-section): New variable.  Updated all related
6245         functions.
6246         (doc-indent-synopsis-active): New register.
6247         (Nd, Fn, Fo): Use it.
6248         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
6249         `.Cd' with long argument line produces indented wrapped lines. 
6250         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
6251         undesirable line break to be output.
6252         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
6253         `.rs'.
6254         (Fn, Fc): Add final `;' to output.
6255         (doc-save-global-vars, doc-restore-global-vars): Updated.
6256         * tmac/doc-common: Remove `Ex' register.
6257         Updated.
6258         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
6259         copyright.
6261 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
6263         * tmac/doc.tmac (Cd): Simplify code.
6264         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
6266 2001-04-06  Werner LEMBERG  <wl@gnu.org>
6268         Implement continuous underlining for nroff mode.  To do that, a new
6269         request in the ditroff language has been added: `x u N' (N is 0
6270         or 1).
6272         \X and \Y are now transparent to end-of-sentence recognition.
6274         * src/include/printer.h (printer): Add `type' parameter to `special'
6275         method.
6276         * src/libs/libdriver/printer.cc (printer::special): Updated.
6277         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
6279         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
6280         specials of type `p'.
6281         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
6282         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
6283         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
6284         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
6285         (glyph::order): New method.
6286         (tty_printer::add_char): Use it.
6287         (tty_printer::special): New method.
6288         (tty_printer::end_page): Implement it.
6290         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
6291         * src/roff/troff/node.cc (special_node::special_node): Add parameter
6292         to set `no_init_string'.
6293         (special_node::tprint_start): Use it.
6294         (special_node::same, special_node::copy): Updated.
6295         (special_node::ends_sentence): New method.
6296         (troff_output_file::start_special): Add parameter to include
6297         inititialization of special conditionally.
6299         * src/roff/troff/env.h (environment): New member `underline_spaces'.
6300         * src/roff/troff/env.cc (do_underline_special): New function.
6301         (environment::set_font): Use it.
6302         (do_underline): Use it.  This was `underline()'.
6303         (underline): Call `do_underline()'.
6304         (continuous_underline): New function which calls `do_underline()'.
6305         (environment::newline): Use `do_underline_special()'.
6306         (init_env_requests): Updated.
6308         * NEWS, man/troff_out.man: Updated.
6310 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
6312         * font/devutf8/R.proto: Fix code of 'shc'.
6314 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
6316         Many fixes.  Diag lists can now be nested also; additionally,
6317         `-compact' and `-offset' are supported.
6319         * tmac/doc.tmac (doc-have-indent): Replaced with ...
6320         (doc-list-have-indent-stackXXX): A new register stack.
6321         (doc-have-diag-list): Removed.
6322         (Bl): Use `doc-list-have-indent-stackXXX'.
6323         (El): Updated.
6324         (doc-diag-list): Use `doc-compact-list-stackXXX'.
6325         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
6326         (doc-set-vertical-and-indent): Ditto.
6327         (doc-next-list-depth): Removed.
6328         (doc-increment-list-stack): Updated.
6329         (doc-decrement-list-stack): Use `doc-list-depth' instead of
6330         `doc-next-list-depth'.
6331         (doc-end-list, doc-end-column-list): Don't use
6332         `doc-increment-list-stack'.
6333         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
6334         (doc-save-global-vars, doc-restore-global-vars): Updated.
6335         * tmac/doc-common: Updated.
6336         * tmac/groff_mdoc.man: Updated.
6337         * NEWS: Fix typo.
6339 2001-04-02  Werner LEMBERG  <wl@gnu.org>
6341         * src/devices/grotty/grotty.man: Fix grammatical error.
6343 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
6345         Remove .Ld from mdoc package; replace it with special handling of
6346         `...'.
6348         * tmac/doc-common: Remove `Ld' register.
6349         Uncomment `doc-volume-ds-*' strings.
6350         Remove `doc-operating-system-default'.
6351         (Os): Updated.
6352         * tmac/doc-syms (Ld): Removed.
6353         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
6354         `...' specially.
6355         * NEWS: Updated.
6357         * tmac/groff_mdoc.man: Many fixes and updates.
6359 2001-03-29  Werner LEMBERG  <wl@gnu.org>
6361         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
6362         Bond <tkb@tkb.mpl.com>.
6363         * tmac/www.tmac: Save compatibility mode.
6365 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
6367         * tmac/groff_mdoc.man: Many fixes.
6369 2001-03-28  Werner LEMBERG  <wl@gnu.org>
6371         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
6372         isn't recognized.
6374 2001-03-27  Werner LEMBERG  <wl@gnu.org>
6376         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
6377         diversion.  This fixes overlong tags.
6379 2001-03-26  Werner LEMBERG  <wl@gnu.org>
6381         * doc/groff.texinfo: Fixed and improved documentation of fonts.
6382         * tmac/doc-syms: Fix error messages.
6383         * tmac/an-old.tmac: Remove incorrect double backslashes.
6385 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
6387         * tmac/Makefile.sub: Strip mdoc.local also
6388         * tmac/strip.sed: Fixed.
6390 2001-03-24  Werner LEMBERG  <wl@gnu.org>
6392         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
6393         selecting the font size.
6394         * tmac/groff_mdoc.man, NEWS: Document it.
6396 2001-03-23  Werner LEMBERG  <wl@gnu.org>
6398         * src/roff/troff/div.cc (save_vertical_space): Add default argument
6399         to `sv' request.
6400         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
6401         argument to restore previous font family.
6402         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
6404         * doc/groff.texinfo: More fixes and additions (mainly for font
6405         manipulating commands).
6407         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
6408         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
6409         * tmac/Makefile.sub, NEWS: Updated.
6411 2001-03-23  Werner LEMBERG  <wl@gnu.org>
6413         Replaced mdoc implementation.  The new version is `state of the
6414         art', using almost all new features of groff 1.17 -- it won't run
6415         with older versions.
6417         * tmac/doc.tmac: Completely rewritten.
6418         * tmac/doc-common: Ditto.
6419         * tmac/doc-nroff: Ditto.
6420         * tmac/doc-ditroff: Ditto.
6421         * tmac/doc-syms: Ditto.
6422         * tmac/mdoc.local: New file.
6423         * tmac/groff_mdoc.samples.man: Replaced with ...
6424         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
6425         * tmac/strip.sed: Updated.
6426         * tmac/Makefile.sub: Updated.
6427         * INSTALL: Updated.
6429         * tmac/groff_man.man: Add `man.local' to the FILES section.
6431 2001-03-22  Werner LEMBERG  <wl@gnu.org>
6433         * doc/groff.texinfo: Added many @noindent.
6434         Replaced @end_Example -> @endExample.
6435         Added info whether registers are r/o.
6436         Many other additions and fixes.
6438 2001-03-21  Werner LEMBERG  <wl@gnu.org>
6440         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
6441         in makeinfo of texinfo 4.0) to be used in @Def* macros.
6442         Improved @Def* macros: Now the exact syntax of request, register,
6443         and escapes is shown.
6444         Added macros for parentheses and brackets to be used in @Def*.
6445         Many fixes and improvements of the documentation.
6447 2001-03-20  Werner LEMBERG  <wl@gnu.org>
6449         * doc/groff.texinfo: Added new index: `st' (for strings).
6450         Added macros @Defstr(x).
6451         Added macro @Example (adding @group).
6452         Other minor improvements.
6454 2001-03-19  Werner LEMBERG  <wl@gnu.org>
6456         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
6457         `rq' for requests.  `fn' is no longer used.
6458         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
6459         Removed @Deffn(x).
6461         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
6462         number with name of man page.
6464 2001-03-19  Larry Kollar  <kollar@alltel.net>
6466         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
6467         consistency.
6469 2001-03-19  Werner LEMBERG  <wl@gnu.org>
6471         * man/groff_font.man: Document `prepro', `postpro', and `print'.
6472         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
6473         * src/devices/grohtml/grohtml.man: Fixing typos.
6475 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
6477         * tmac/s.tmac (@IP): Pass `.ip' html tag.
6478         * tmac/groff_mwww.man: Remove .LINE macro
6479         * tmac/www.tmac (LINE): Add `.ti'.
6481         * src/devices/grohtml/post-html.cc (html_printer): New member
6482         `indent'.
6483         (html_printer::emit_raw): Use it.
6484         (html_printer::do_linelength): Ditto.
6485         (html_printer::do_pageoffset): Ditto.
6486         (html_printer::do_indentation): Ditto.
6487         (html_printer::do_tempindent): Ditto.
6488         (html_printer::do_break): Ditto.
6489         (html_printer::begin_page): Ditto.
6490         (html_printer::do_indentedparagraph): New function.
6491         (html_printer::troff_tag): Handle `.ip'.
6492         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
6493         Add `<td width=...>' handling.
6494         (html_text::do_table): Add parameter.
6495         (html_text::do_indent): Updated.
6496         * src/devices/groohtml/html-text.h: Updated.
6498 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
6500         Introduced simple html tables to implement indentation.
6502         * src/devices/grohtml/html.h (word, word_list): New structures.
6503         (simple_output): Use it.
6504         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
6505         (html_printer): Improve indentation handling.
6506         (html_printer::emit_raw): Set `in_table' element.  Handle
6507         indentation if set.
6508         (html_printer::write_header): Move conditional downwards.
6509         Don't allow whitespace in tags.
6510         (html_printer::do_linelength): Handle line length and indentation
6511         conditionally.
6512         (html_printer::do_pageoffset): Handle indentation conditionally.
6513         (html_printer::do_indentation): Ditto.
6514         (html_printer::do_tempindent): New function member.
6515         (html_printer::do_fill): Take care of indentation.
6516         (html_printer::do_flush): Finish table.
6517         (html_printer::do_links): Ditto.
6518         (html_printer::do_break): New function for handling `.br' and `.ti'.
6519         (html_printer::troff_tag): Use it.
6520         Handle `.ti'.
6521         (html_printer::flush_globs): Fix.
6522         (html_printer::flush_page): Finish table.
6523         (html_printer::html_printer): Fix error message.  Set up
6524         `linelength'.
6525         (html_printer::add_to_sbuf): Remove special handling of character
6526         code 255.
6527         (to_unicode): Remove `stop()'.
6528         (html_printer::write_title): Cleanup.
6529         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
6530         (html_printer::~html_printer): Flush text and end the line.
6531         Use `put_string()'.
6532         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
6533         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
6534         emission of tags.
6535         (html_text::start_tag): Disable newlines.
6536         (html_text::table_is_void): New function.
6537         (html_text::issue_table_begin): Ditto.
6538         (html_text::issue_table_end): Ditto.
6539         (html_text::push_para): Better table handling.
6540         (html_text::do_indent): New function.
6541         (html_text::do_table): Ditto.
6542         (html_text::done_table): Ditto.
6543         (html_text::do_tt): Handle PRE_TAG.
6544         (html_text::is_in_table): New function.
6545         (html_text::check_emit_text): Handle tables.
6546         (html_text::do_emittext): Use `nl()'.
6547         (html_text::do_para): Handle table.
6548         (html_text::remove_def): New function.
6549         * src/devices/grohtml/output.cc (word, word_list): Implement
6550         methods.
6551         (simple_output::end_line): Flush last word.
6552         (simple_output::simple_comment): Ditto.
6553         (simple_output::begin_comment): Recoded.
6554         (simple_output::end_comment): Ditto.
6555         (simple_output::comment_arg): Removed.
6556         (simple_output::check_newline): Improve test and flush last word.
6557         (simple_output::space_or_newline): Improved.
6558         (simple_output::write_newline): Replaced with...
6559         (simple_output::nl): This.
6560         (simple_output::put_raw_char): Flush last word.
6561         (simple_output::check_space): Removed.
6562         (simple_output::put_translated_string): Ditto.
6563         (simple_output::put_string): Simplified.
6564         (simple_output::put_number): Updated.
6565         (simple_output::put_float): Ditto.
6566         (simple_output::put_symbol): Removed.
6567         (simple_output::enable_newlines): Add `check_newline()'.
6568         (simple_output::flush_last_word): New function.
6570         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
6571         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
6573         * tmac/s.tmac (@PP, @IP): Add html conditional code.
6574         * tmac/an-old.tmac (TP): Ditto.
6576 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
6578         * mdate.sh: Make it POSIX compliant.
6580 2001-03-09  Werner LEMBERG  <wl@gnu.org>
6582         Added the `return' request to end a macro immediately.  It simply
6583         pops iterators from the input stack until a macro iterator is found.
6585         * src/roff/troff/input.cc (input_iterator::is_macro,
6586         macro_iterator::is_macro): New member.
6587         (input_return_boundary): New class to signal an immediate return
6588         to while_request().
6589         (input_stack::add_return_boundary, input_stack::is_return_boundary):
6590         New functions.
6591         (input_stack::clear): Use it.
6592         (input_stack::pop_macro): New function.
6593         (while_request): Use `is_return_boundary()'.
6594         (return_macro_request): New function.
6595         (init_input_requests): Use it.
6597         * src/roff/troff/TODO: Updated.
6598         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6600 2001-03-08  Werner LEMBERG  <wl@gnu.org>
6602         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
6603         cleanup.
6605 2001-03-07  Werner LEMBERG  <wl@gnu.org>
6607         Make `\B' more rigid.
6609         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
6610         parameter.
6611         (get_number_rigidly): New function.
6612         * src/roff/troff/input.cc (do_expr_test): Use it.
6613         * src/roff/troff/token.h: Updated.
6615         * src/roff/troff/request.h: Fix typo (init_html_request ->
6616         init_markup_request).
6618 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
6620         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
6621         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
6622         are now `.begin', `.end', `.image'.
6624         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
6625         (html_printer::add_to_sbuf): Changing type of `code' parameter.
6626         Use add_char_to_sbuf().
6627         (to_unicode): New function.
6628         (char_translate_to_html): Changing type of `ch' parameter.
6629         Use `to_unicode()'.
6630         (html_printer::~html_printer): Comment out doctype string.
6631         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
6632         instead of `.html-end'.
6633         (write_start_image): Use `.begin' and `.image' instead of
6634         `.html-begin' and `.html-image'.
6635         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
6636         (html_begin): Renamed to ...
6637         (begin): This.
6638         (html_end): Renamed to ...
6639         (end): This.
6640         (html_image): Renamed to ...
6641         (image): This.
6642         (init_html_requests): Renamed to ...
6643         (init_markup_requests): This.
6644         * tmac/www.tmac: Updated.
6646 2001-02-28  Bram  <bram@avontuur.org>
6648         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
6649         constructor.
6651 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
6653         * doc/meref.me: Fixing some typos.
6655 2001-02-16  Werner LEMBERG  <wl@gnu.org>
6657         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
6658         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
6659         * src/roff/troff/node.h: Updated.
6661 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
6663         * tmac/groff_tmac.man: Fix typo.
6665 2001-02-16  Werner LEMBERG  <wl@gnu.org>
6667         Fixing a bug which prevented proper end-of-sentence recognition
6668         between an `unformatted' box and the following text.  As a
6669         consequence, vertical line distances are no longer preserved in
6670         boxes after a call to `.unformat' -- because boxes aren't
6671         line-oriented (contrary to diversions), this doesn't make sense
6672         anyway.
6674         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
6675         value.
6676         (vertical_size_node::set_unformat_flag): New method.
6677         * src/roff/troff/node.hh: Updated.
6678         * src/roff/troff/input.cc (word_space_node::reread,
6679         hmotion_node::reread): Reset `unformat' flag after usage.
6680         (unformat_macro): Append only if `set_unformat_flag()' returns
6681         non-zero.
6682         * src/roff/troff/troff.man: Updated.
6684 2001-02-15  Werner LEMBERG  <wl@gnu.org>
6686         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
6687         documentation of `asciify' and `unformat' requests.
6689 2001-02-13  Werner LEMBERG  <wl@gnu.org>
6691         Redesigned the `unformat' request.  It is no longer connected with
6692         `asciify' but rather uses new `reread()' methods if the `unformat'
6693         flag is set.  Additionally, the handling of space characters after
6694         unformatting has been fixed so that they retain their width.
6696         * src/roff/troff/node.h (width_list): New structure to store
6697         original widths of spaces.
6698         (node): Added `unformat' member.
6699         Replaced `num_spaces' variable with `orig_width' list.
6700         * src/roff/troff/node.cc (*node::asciify,
6701         asciify_reverse_node_list): Removed `unformat_only' flag and related
6702         code.
6703         (word_space_node::asciify, word_space_node::word_space_node): Use
6704         `orig_width'.
6705         (word_space_node::~word_space_node): New destructor.
6706         (word_space_node::copy): Updated to handle `orig_width'.
6707         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
6708         (*node::merge_space): Update `orig_width' list if necessary.
6709         (*node::set_unformat_flag): New methods to set the `unformat' flag.
6710         * src/roff/troff/enc.cc (environment::space_newline): Use
6711         `width_list'.
6712         (environment::space): Added method to handle space width and
6713         sentence space width as parameters.  Use `width_list'.
6714         (environment::make_tab_node): Updated.
6715         * src/roff/troff/env.h: Updated.
6716         * src/roff/troff/input.cc (word_space_node::reread,
6717         unbreakable_space_node::reread, hmotion_node::reread): New methods
6718         to handle nodes specially if `unformat' flag is set.
6719         (do_asciify_macro): Renamed back to ...
6720         (asciify_macro): This.
6721         (unformat_macro): New implementation to simply set the `unformat'
6722         flag.
6724         * MORE.STUFF: Added more info about deroff.
6726 2001-02-08  Werner LEMBERG  <wl@gnu.org>
6728         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
6729         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
6730         and `add_self()' methods to avoid hyphenation.  For example, the
6731         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
6732         soft hyphen after `foo'.  Now the hyphen list is correctly
6733         `foo<ignore><ignore>bar'.
6735 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
6737         * tmac/groff_tmac.man: Fix `BIR' macro.
6739 2001-02-04  Werner LEMBERG  <wl@gnu.org>
6741         A new escape sequence `\:', inserting a zero-width break point.
6743         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
6744         * src/roff/troff/input.cc (get_copy, token::next, asciify):
6745         Implement it.
6746         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
6747         method.
6748         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
6749         and `asciify()' methods.
6750         * src/roff/troff/node.cc (space_node::space_node): Updated.
6751         (space_node::asciify): Handle `was_escape_colon'.
6752         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6754         Handle `\~' similar to other comparable requests.
6756         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
6757         label.
6758         (token::next): Move creation of an unbreakable_space_node to...
6759         (token::add_to_node_list): Here.
6761         Fix a bug which sometimes prevented hyphenation of words connected
6762         with `\~' or `\ ' (and other escape sequences handled as
6763         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
6764         (after a call to the `unformat' request).
6766         * src/roff/troff/env.h (environment::possibly_break_line,
6767         environment::hyphenate_line): Introducing `start_here' parameter.
6768         * src/roff/troff/env.cc (environment::space_newline,
6769         environment::space): Use it.
6770         (environment::possibly_break_line, environment::hyphenate_line):
6771         Implement it.
6772         * src/roff/troff/input.cc (process_input_stack): Use it.
6773         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
6774         space_char_hmotion_node, overstrike_node): Add
6775         `get_hyphenation_type()' method.
6776         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
6777         if `unformat_only' is active.
6779 2001-01-30  Werner LEMBERG  <wl@gnu.org>
6781         Implemented new read-only number register `.linetabs' which
6782         returns 1 if in line-tabs mode, 0 otherwise.
6784         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
6785         * src/roff/troff/env.cc (get_line_tabs): New function.
6786         (init_env_requests): Use it.
6787         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6789         * VERSION, REVISION: Changing to 1.17.0.
6791 2001-01-28  Werner LEMBERG  <wl@gnu.org>
6793         Fixed a bug which prevented hyphenation of words which are finished
6794         with `\)'.
6796         * src/roff/troff/token.h (token): Add enum type
6797         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
6798         * src/roff/troff/input.cc (token::next, token::description,
6799         get_line_arg, token::add_to_node_list, token::process): Use it.
6801 2001-01-27  Werner LEMBERG  <wl@gnu.org>
6803         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
6804         * src/roff/troff/div.cc (do_divert): Use it.
6806         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
6808 2001-01-25  Werner LEMBERG  <wl@gnu.org>
6810         Adding the `linetabs' request.  If set, tab distances are not
6811         computed relative to the input line but relative to the output line.
6813         * src/roff/troff/env.h (environment): New member `line_tabs'.
6814         * src/roff/troff/env.cc (line_tabs_request): Implement request.
6815         (environment::environment, environment::copy): Updated.
6816         (environment::distance_to_next_tab): Use `line_tabs'.
6817         (init_env_requests): Register request.
6818         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
6819         fixes.
6821 2001-01-24  Werner LEMBERG  <wl@gnu.org>
6823         Introducing a new read-only register `.int' which is set to a
6824         positive value if the last output line is interrupted (i.e., if it
6825         contains `\c').
6827         * src/roff/troff/env.cc (init_env_requests): Add it.
6828         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6830 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
6832         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
6833         * src/preproc/html/pre-html.cc (findPrefix): New function which
6834         generates the troff executable name via the system prefix.
6835         * src/preproc/eqn/main.cc: Modified warning message.
6837 2001-01-23  Werner LEMBERG  <wl@gnu.org>
6839         troff's `box' and `boxa' requests didn't preserve temporary
6840         indentation.
6842         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
6843         `saved_target_text_length' members.
6844         * src/roff/troff/div.cc (do_divert): Use them.
6846         Tabs (but not yet leaders and fields) are now handled correctly by
6847         `asciify' request.
6849         * node.h (hmotion_node): Add field `was_tab'.
6850         * env.cc (environment::make_tab_node): Set it.
6851         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
6853         Added new request `unformat' which will, contrary to `asciify',
6854         preserve font information after unformatting (i.e., only nodes
6855         dealing with horizontal space are converted back to input
6856         characters).
6858         * input.cc (asciify_macro): Renamed to ...
6859         (do_asciify_macro): this, having a new parameter `unformat_only'.
6860         (asciify_macro, unformat_macro): New; using do_asciify_macro.
6861         (init_input_requests): Added `unformat'.
6862         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
6863         parameter to control asciification process.
6864         * node.h (*_node::asciify): Ditto.
6865         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6867 2001-01-20  Werner LEMBERG  <wl@gnu.org>
6869         * doc/groff.texinfo: Minor improvement of `.in' documentation.
6871 2001-01-18  Werner LEMBERG  <wl@gnu.org>
6873         * tmac/ps.tmac: Remove call of psold.tmac.
6874         * tmac/psold.tmac: Comment updated.
6875         * tmac/psnew.tmac: Removed since no longer needed.
6876         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
6878         * font/devutf8/R.proto: Adding `shc' glyph.
6879         * font/devutf8/NOTES: Updated.
6881         * test-groff: Updated.
6883 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
6885         First cut of the new html device driver.  Changes to pre-html and
6886         the new grohtml are too numerous to be documented here.
6888         Stuff related to `html' has been renamed to `html-old' and `html2'
6889         stuff has been renamed to `html' (including directories).  The new
6890         html device driver is therefore invoked as `-Thtml'.
6892         Added new `\O' escape to suppress output (needed by html driver).
6894         Added functions and code to pass info about input-level commands
6895         (`.in', `.fl', etc.) to html driver.
6897         Three new functions (.html-begin, .html-end, and .html-image) for
6898         better html handling: `html-begin' will execute the remaining line
6899         if at the outermost nesting level, increasing an internal counter.
6900         `html-end' does the same but decreases the internal counter.
6901         `html_image' puts its arguments into a special node (suppress_node)
6902         to define an image region.
6904         The `output' request has been removed.
6906         * tmac/html-tags.tmac: Removed.
6907         * tmac/arkup.tmac: Updated and renamed to ...
6908         * tmac/www.tmac: New file.
6909         * tmac/markup.tmac Updated and renamed to ...
6910         * tmac/mwww.tmac: New file.
6911         * tmac/Makefile.sub: Updated.
6912         * tmac/an-old.tmac: Updated.
6913         * tmac/eqnrc: Updated.
6914         * tmac/groff_man.man
6915         * tmac/groff_markup.man: Updated and renamed to ...
6916         * tmac/groff_mwww.man: New file.
6917         * tmac/groff_tmac.man: Updated.
6918         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
6919         * tmac/html.tmac: Updated and renamed from html2.tmac.
6920         * tmac/pspic.tmac: Updated html support.
6921         * tmac/s.tmac: Added html output support.
6922         * tmac/troffrc, tmac/troffrc-end: Updated.
6924         * Makefile.in, doc/Makefile: Updated.
6925         * doc/groff.texinfo: Added info about new `\O' escape.
6926         * doc/homepage.ms: Use `MAILTO' macro.
6928         * font/devhtml/DESC.proto: Add `C' font.
6929         * font/devhtml/Makefile.sub: Updated.
6930         * font/devhtml/R.proto: Minor fixes.
6931         * font/devhtml-old/Makefile.sub: Updated.
6933         * src/devices/grohtml-old/Makefile.sub: Updated.
6935         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
6936         method.
6937         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
6938         graphic_start): Add `inline' parameter.  Update.
6939         (html_end_suppress, graphic_end): Update.
6941         * src/include/html-strings.h: New file.
6942         * src/include/htmlindicate.h: Comments updated.
6943         * src/include/printer.h: Updated.
6945         * src/preproc/eqn/main.cc (do_file, main): Updated.
6946         * src/preproc/pic/troff.cc (troff_output::start_picture,
6947         troff_output::finish_picture): Updated.
6948         * src/preproc/tbl/main.cc (process_input_file): Updated.
6950         * src/roff/groff/groff.cc (main): Updated.
6951         Pass device arguments to predrivers also.
6952         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
6953         * src/roff/troff/env.h (environment): Updated.
6954         New elements `need_eol' and `ignore_next_eol' (for html output).
6955         * src/roff/troff/env.cc (environment::environment): Add initializers
6956         for `need_eol' and `ignore_next_eol'.
6957         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
6958         functions.
6959         (point_size, fill, no_fill, center, right_justify, line_length,
6960         indent, temporary_indent, break_request, handle_tab): Use
6961         `add_html_tag()'.
6962         (set_tabs): Use `add_html_tag_tabs()'.
6963         (environment::add_html_tag): Updated.
6964         (environment::do_break): Updated.
6965         * src/roff/troff/div.cc (space_request, flush_output): Use
6966         `environment::add_html_tag()'.
6967         * src/roff/troff/input.cc: Updated.
6968         New variable `html_level' to indicate nested `html-begin' requests.
6969         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
6970         (non_interpreted_char_node, token_node, non_interpreted_node): Add
6971         `force_tprint()' method.
6972         (token::next): Handle `\O'.
6973         (do_suppress): Implement it.
6974         (html_begin, html_end, html_image): New functions.
6975         (init_output_requests): Renamed to ...
6976         (init_html_requests): this.
6977         (main): Use it.
6978         (macro::append_str, macro::append_unsigned, macro::append_int): New
6979         methods.
6980         New variable `output_low_mark_miny' to limit minimal value of y.
6981         (reset_output_registers): Use it.
6982         (output_request): Removed.
6983         (get_output_registers): New function.
6984         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
6985         (*_node): Added `force_tprint()' if necessary.
6986         (special_node): New elements `tf' and `get_tfont()'.
6987         (suppress_node): New class.
6988         * src/roff/troff/node.cc:
6989         New global variables `image_no' and `suppress_start_page'.
6990         (real_output_file): New method `is_on()'.
6991         (troff_output_file): New method `start_special(tfont)'.
6992         (troff_output_file::really_print_line): Use `tprint' conditionally.
6993         (real_output_file::print_line): Updated.
6994         (real_output_file::on): Updated.
6995         (*_node): Added `force_tprint()'.
6996         (special_node::special_node): Initializer updated.
6997         (special_node::same, special_node::copy, special_node::tprint_start):
6998         Updated.
6999         (get_reg_int, get_reg_str): New functions.
7000         (suppress_node::*): New methods.
7001         New global variables last_position, last_image_filename;
7002         (min): New inline function.
7003         * src/roff/troff/reg.h, src/roff/troff/request.h,
7004         src/roff/troff/troff.h: Updated.
7006 2001-01-13  Werner LEMBERG  <wl@gnu.org>
7008         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
7009         documentation of `asciify' request.
7011 2001-01-12  Werner LEMBERG  <wl@gnu.org>
7013         * src/roff/troff/input.cc: Move definition of special characters
7014         like `ESCAPE_TILDE' to ...
7015         * src/roff/troff/input.h: New file.
7016         * src/roff/troff/Makefile.sub (HDRS): Add it.
7018         Extending the .asciify request to `unformat' space characters also.
7020         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
7021         to count input space characters.
7022         Update constructors to take care of it.
7023         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
7024         `ESCAPE_SPACE' instead of normal space.
7025         (word_space_node::asciify): New method.
7026         (unbreakable_space_node::asciify): New method.
7027         (word_space_node::merge_space): New method.
7028         * src/roff/troff/env.cc (environment::space_newline,
7029         environment::space): Add code to initialize `num_spaces' (using the
7030         constructor of `word_space_node').
7031         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7032         Document it.
7034 2001-01-09  Werner LEMBERG  <wl@gnu.org>
7036         * man/groff_char.man: Use table header traps only conditionally.
7038 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
7040         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
7042 2001-01-08  Werner LEMBERG  <wl@gnu.org>
7044         Introducing the `box' and `boxa' requests which are similar to
7045         `di' resp. `da' but omitting a partially filled line (which is
7046         restored after ending the diversion).
7048         * src/roff/troff/div.h (diversion): Add elements to save partially
7049         filled line.
7050         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
7051         partially filled line.
7052         (divert, divert_append): Updated.
7053         (box, box_append): New functions.
7054         (init_div_requests): Use them.
7055         * src/roff/troff/env.h (environment): do_divert() is now a friend.
7056         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7058         * doc/groff.texinfo: Fix documentation of `lf' request.
7060 2000-12-25  Werner LEMBERG  <wl@gnu.org>
7062         * src/roff/troff/troff.man, NEWS: Document `writem' request.
7064 2000-12-21  Werner LEMBERG  <wl@gnu.org>
7066         Ignore `ss' request if in compatibility mode.
7068         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
7069         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
7070         * src/roff/troff/env.cc (space_size): Use it.
7072         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
7073         `ss' request in nroff mode.
7075         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
7076         changes.
7078 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
7080         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
7082 2000-12-13  Werner LEMBERG  <wl@gnu.org>
7084         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
7085         * src/preproc/eqn/neqn.man: Small fixes and additions.
7087 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
7089         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
7090         Fixing typo.
7092         * src/preproc/eqn/neqn.man: New file.
7094         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
7095         negative' warning.
7097         * tmac/e.tmac: Add `T&' macro.
7098         Fix `indent cannot be negative' warning.
7099         * tmac/s.tmac: Fix `indent cannot be negative' warning.
7101 2000-12-07  Werner LEMBERG  <wl@gnu.org>
7103         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
7105 2000-12-06  Werner LEMBERG  <wl@gnu.org>
7107         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
7108         `alloca' symbol .
7110         * MORE.STUFF: Added info about deroff for djgpp.
7112         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
7113         documentation of -rcR switch.
7115 2000-12-03  Werner LEMBERG  <wl@gnu.org>
7117         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
7118         if -rcR=1 (which is now the default in nroff mode), a single, very
7119         long page is created instead of multiple pages: All `ne' and `wh'
7120         requests are put into conditionals; a new macro `an-end' is added to
7121         be called with `em'.
7123         Some other minor cleanups.
7125         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
7127 2000-12-02  Werner LEMBERG  <wl@gnu.org>
7129         Fixing a bug which prevented hyphenation in words followed
7130         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
7132         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
7133         Adding possibly_break_line().
7134         * src/roff/troff/env.h (environment): Make possibly_break_line()
7135         public.
7137         Make `\~' usable in .tr request.
7139         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
7140         (token): Add stretchable_space().
7141         * src/roff/troff/input.cc (token::next, token::delimiter,
7142         token::description, process_input_stack, do_translate,
7143         add_to_node_list, token::process): Use it.
7144         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
7145         for adjusting the space.
7146         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
7147         for stretchable space.
7148         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
7149         (make_node): Add code for stretchable space.
7150         * src/roff/troff/env.cc (environment::add_char): Use it.
7151         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
7152         (get_copy, token::next, transparent_translate, asciify): Use it.
7154         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
7155         doc/groff.texinfo: Updated.
7156         * man/groff.man: Small reorderings.
7158 2000-11-23  Werner LEMBERG  <wl@gnu.org>
7160         * NEWS: Fixes.
7161         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
7162         option.
7163         * src/roff/troff/input.cc (main): Add `config_macro_path' and
7164         `safer_macro_path' to -M option.
7165         * src/roff/troff/troff.man: Fixes.
7167 2000-11-22  Werner LEMBERG  <wl@gnu.org>
7169         Use safer path (except for config files) if -U isn't specified.  Add
7170         a special macro path (without home and current directory) for config
7171         files.  Add home directory to unsafe path for consistency.  Don't
7172         include the home directory in the font path.
7174         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
7175         `macro_path'.
7176         * src/include/macropath.h: Add `config_macrp_path'.
7177         * src/libs/libgroff/fontfile.cc: Fix font path.
7178         * src/roff/troff/input.cc (process_startup_file): Use
7179         `config_macro_path'.
7180         (main): Select unsafe path if -U is given.
7182         * src/preproc/eqn/main.cc (main): Fixing search path for
7183         configuration file.
7184         * src/preproc/eqn/eqn.man: Updated.
7186         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
7187         Updated.
7189         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
7190         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
7191         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7192         src/devices/grotty/grotty.man: Updated.
7194         * Makefile.in: Fix comments.
7196 2000-11-17  Werner LEMBERG  <wl@gnu.org>
7198         * tmac/safer.tmac: Empty file added (again) for compatibility
7199         reasons.
7200         * tmac/Makefile.sub: Updated.
7202 2000-11-16  Werner LEMBERG  <wl@gnu.org>
7204         * src/devices/grodvi/dvi.cc (main),
7205         src/devices/grohtml2/post-html.cc (main),
7206         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7207         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7208         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7209         (main), src/preproc/html2/pre-html.cc (main),
7210         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7211         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7212         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7213         (main), src/utils/hpftodit/hpftodit.cc (main),
7214         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
7215         (main), src/utils/lookbib/lookbib.cc (main),
7216         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
7217         (main): Use stdout for -v.
7218         * src/roff/groff/groff.cc (run_commands),
7219         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
7220         to make direct printing to stdout possible.
7221         * src/roff/groff/pipeline.h: Updated.
7223         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
7224         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
7225         * src/utils/afmtodit/afmtodit.man: Updated.
7227         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
7228         (version): New function.
7229         (usage): Updated.
7230         * src/utils/addftinfo/addftinfo.man: Updated.
7232         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
7233         Fixing copyright dates.
7235         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
7236         replacing it.
7238         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
7239         version_string.
7241         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
7243 2000-11-15  Werner LEMBERG  <wl@gnu.org>
7245         In all programs, make -v return immediately with exit status 0 to
7246         be compliant with the GNU standard.
7248         * src/devices/grodvi/dvi.cc (main),
7249         src/devices/grohtml2/post-html.cc (main),
7250         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7251         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7252         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7253         (main), src/preproc/html2/pre-html.cc (main),
7254         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7255         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7256         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7257         (main): Implement it.
7258         * NEWS: Updated.
7260         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
7261         and postprocessors to the -v option.
7263         * src/roff/grog/grog.pl: Implement -v.
7264         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
7265         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7267         * src/roff/nroff/nroff.sh: Implement -v.
7268         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
7269         * src/roff/nroff/nroff.man: Updated.
7270         
7271         * src/preproc/eqn/main.cc (main): Fix comment typo.
7273         * MORE.STUFF: Added info about djgpp port of grap.
7275 2000-11-14  Werner LEMBERG  <wl@gnu.org>
7277         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
7278         mode (or rather, implemented non-compatibility mode).
7279         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7281         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
7282         replacing it -- we don't find gxditview otherwise.
7283         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
7285         * src/preproc/pic/depend: Removed.  Unnecessary.
7287         Implemented dummy keyword `solid' in pic for compatibility with
7288         AT&T pic.
7290         * lex.cc (lookup_keyword): Added `solid'.
7291         * pic.y: Added SOLID with dummy rule.
7292         * pic.cc, pic_tab.h: Regenerated.
7293         * doc/pic.ms: Updated.
7295 2000-11-13  Werner LEMBERG  <wl@gnu.org>
7297         For security reasons, don't use the current directory but the home
7298         directory while searching and scanning troffrc and troffrc-end.
7299         Similarly, replace the current directory with the home directory
7300         in the font path.
7302         * Makefile.in (fontpath, tmacpath): Remove current directory.
7304         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
7305         two parameters `add_home' and `add_current'.
7306         (search_path::~search_path, search_path::command_line_dir,
7307         search_path::open_file): Remove tests for `dirs' being zero.
7308         * src/include/searchpath.h: Adjust.
7309         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
7310         `safer_macro_path'.
7311         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
7313         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
7314         * src/roff/troff/input.cc: Use `mac_path', initialized with
7315         `macro_path'.
7316         (process_startup_file): Set `mac_path' to `safer_macro_path'.
7317         * src/roff/troff/env.cc: Use `mac_path'.
7319         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
7321         * NEWS, man/roff.man, src/roff/troff/troff.man,
7322         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
7323         Updated.
7325 2000-11-12  Werner LEMBERG  <wl@gnu.org>
7327         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
7329         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
7330         * configure.in: Fix typo in comment.
7331         * configure: Regenerated.
7333         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
7334         copyright dates.
7336 2000-11-08  Werner LEMBERG  <wl@gnu.org>
7338         Add system tmac directory (/usr/local/lib/groff/site-tmac).
7340         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
7341         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
7342         $(systemtmacdir).
7343         Use @libdir@.
7344         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
7345         * tmac/Makefile.sub (install_data): Create
7346         $(systemtmacdir) and $(localtmacdir).
7347         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
7348         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
7349         NEWS, doc/groff.texinfo: Updated and minor fixes.
7351         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
7352         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
7353         $(systemtmacdir) since the wrapper files are platform-dependent.
7355 2000-11-01  Werner LEMBERG  <wl@gnu.org>
7357         * doc/groff.texinfo: Fix typo.
7359 2000-10-26  Werner LEMBERG  <wl@gnu.org>
7361         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
7362           tmac.doc.old -> doc-old.tmac
7363           tmac.an.old  -> an-old.tmac
7365         * tmac/tmac.*: Moved to ...
7366         * tmac/*.tmac: this.
7367         * tmac/man.local: Fix comment.
7368         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
7369         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
7370         Added some `FILES' sections.  More use of @...@ directives.  Other
7371         minor updates.
7372         * arch/djgpp/README, font/devutf8/NOTES: Updated.
7373         * doc/homepage.ms, doc/groff.texinfo: Updated.
7374         * man/groff.man, man/roff.man: Updated.
7375         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
7376         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7377         src/devices/grotty/grotty.man: Updated.
7378         * src/preproc/pic/pic.man: Updated.
7379         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
7380         instead of -mdoc.old.
7381         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
7382         * src/roff/nroff/nroff.man: Updated.
7383         * NEWS: Updated.
7385         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
7387         * tmac/mm.diff: Removed -- it has no use now since the mm package
7388         is part of groff.
7390         * tmac/*: Removed trailing spaces.
7392         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
7393         the tmac subdirectory also).
7395         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
7396         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
7397         stuff since it is no longer needed.
7399         * README, PROBLEMS: Updated.
7401 2000-10-25  Werner LEMBERG  <wl@gnu.org>
7403         Invert current behaviour: Search first FOOBAR.tmac, then
7404         tmac.FOOBAR.
7406         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
7407         (open_mac_file, macro_source): Implement it.
7408         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
7409         doc/groff.texinfo, NEWS: Document it.
7411         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
7412         Small documentation improvements.
7414         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
7415         subdirectory also).
7417         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
7419 2000-10-24  Werner LEMBERG  <wl@gnu.org>
7421         Add local tmac directory (groff/site-tmac).
7423         * Makefile.in: Add $(localtmacdir).
7424         (uninstall_dirs): Add $(localtmacdir).
7425         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
7426         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
7427         in $(localtmacdir).  Create $(localtmacdir).
7428         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
7429         Updated and minor fixes.
7431         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
7433         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
7435 2000-10-23  Werner LEMBERG  <wl@gnu.org>
7437         Move hyphen.us to tmac directory.
7439         * src/roff/troff/hyphen.us: Removed.
7440         * src/tmac/hyphen.us: Added.
7441         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
7443         Change installation structure for data files from .../groff/... to
7444         .../groff/<version><revision>/... to be conform with other GNU
7445         programs.
7447         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
7448         doc/Makefile: Implement it.
7449         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
7450         * configure: Updated.
7451         * arch/djgpp/README, font/devutf8/NOTES: Use it.
7452         * NEWS: Document it.
7453         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
7454         @MACRODIR@ instead of hard-coded directories.
7456 2000-10-22  Werner LEMBERG  <wl@gnu.org>
7458         Implement $GROFF_BIN_PATH environment variable (which defaults to
7459         $bindir) used for child programs of groff and similar wrappers.
7461         * gendefs.sh: Improve documentation.
7462         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
7463         src/preproc/eqn/Makefile.sub (neqn),
7464         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
7465         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
7466         $GROFF_BIN_PATH.
7467         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
7468         $GROFF_PATH__ (the latter for communication with troff).
7469         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
7470         set.
7471         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
7472         doc/groff.texinfo: Document it.
7474         * doc/groff.texinfo: Improve documentation of troff's -a option.
7476 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
7478         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
7479         non-intrusive eol marker.
7480         (troff_output_file::determine_line_limits): New function.
7481         (troff_output_file::draw): Use it.
7482         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
7483         output_pending_lines() instead of output_line().
7484         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
7485         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
7486         createImage): Small fixes.
7487         
7488 2000-10-14  Werner LEMBERG  <wl@gnu.org>
7490         Replace tmac.safer with a real secure solution.
7492         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
7493         system_request, pipe_output): Disable requests if in safer mode.
7494         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
7495         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
7496         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
7497         doc/groff.texinfo, src/roff/groff/groff.man,
7498         src/roff/troff/troff.man, arch/djgpp/README: Updated.
7500         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
7501         (resource_manager::output_prolog): Replace setenv() with putenv().
7503 2000-10-09  Werner LEMBERG  <wl@gnu.org>
7505         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
7506         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
7507         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
7508         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
7509         compilation errors with some compilers.  It seems that this code
7510         is no longer necessary -- if yes, it is easy to add some #ifdef's
7511         for that particular old-fashioned compiler.
7513         * MORE.STUFF: Added info about Meta-tbl.
7515         * doc/groff.texinfo: Added more info about `.if "..."..."'.
7517 2000-10-07  Werner LEMBERG  <wl@gnu.org>
7519         Adding a new escape sequence \B'...': If the string between
7520         the delimiters is a valid numeric expression, return the character
7521         `1', and `0' otherwise.  This is an analogon to \A.
7523         * src/roff/troff/input.cc (do_expr_test): Implement it.
7524         (token::next): Use it.
7525         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
7527         * tmac/tmac.trace: Made independent from escape character.
7529 2000-10-06  Werner LEMBERG  <wl@gnu.org>
7531         Adding a new request .dei: define indirect.  The first and second
7532         parameter of .dei are taken from string registers instead directly;
7533         this very special request is needed to make tmac.trace independent
7534         from the escape character (which might even be disabled).
7536         * src/roff/troff/input.cc (do_define_macro): Implement it.
7537         (define_macro_indirect): New function.
7538         (init_input_requests): Use it.
7540         Adding two requests .ecs and .ecr: Save and restore the escape
7541         character.  These two requests are needed to make tmac.trace
7542         independent from the escape character (which might even be
7543         disabled).
7545         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
7546         Implement it.
7547         (init_input_requests): Use it.
7549         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7551 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
7553         Adding a new option -P and new environment variable GROPS_PROLOGUE
7554         to grops, selecting a different prologue file (minor modifications
7555         by WL).
7557         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
7558         src/devices/grops/ps.cc (main): Implement it.
7559         * src/devices/grops/grops.man, NEWS: Document it.
7561 2000-09-22  Werner LEMBERG  <wl@gnu.org>
7563         * INSTALL: Add info about selecting paper format.
7565 2000-09-21  Werner LEMBERG  <wl@gnu.org>
7567         * src/roff/troff/input.cc (main): Fixing compiler warning.
7568         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
7569         strings.h from the former to the latter.
7570         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
7571         stuff from the former to the latter.
7573 2000-09-11  Werner LEMBERG  <wl@gnu.org>
7575         Implementing two new requests .tm1 and .tmc: The former is similar
7576         to .tm but can output leading spaces; its syntax is similar to
7577         defining a string, i.e., a `"' can be used to mark the beginning of
7578         the string to be written to stderr: `.tm1 " test'.  The latter is
7579         similar to .tm1 but doesn't write out a final newline character.
7581         * src/roff/troff/input.cc (terminal1, terminal_continue,
7582         do_terminal): New functions.
7583         (init_input_requests): Use them.
7584         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7586 2000-09-09  Werner LEMBERG  <wl@gnu.org>
7588         * tmac/groff_mdoc.samples.man: Small fixes.
7590 2000-09-08  Werner LEMBERG  <wl@gnu.org>
7592         * tmac/groff_mdoc.man: Fixing typo.
7594 2000-09-02  Werner LEMBERG  <wl@gnu.org>
7596         Implementing a .nop request which does nothing.
7598         * src/roff/troff/input.cc (nop_request): New function.
7599         (init_input_requests): Use it.
7600         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7602 2000-09-01  Werner LEMBERG  <wl@gnu.org>
7604         * doc/groff.texinfo: Added some comments.
7606 2000-08-30  Werner LEMBERG  <wl@gnu.org>
7608         * src/roff/troff/TODO: Updated.
7610 2000-08-25  Werner LEMBERG  <wl@gnu.org>
7612         * doc/groff.texinfo: Fix comment how to compile the DVI file.
7614 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
7616         * font/devps/generate/Makefile (SHELL): Define explicitly to
7617         "/bin/sh", for non-Unix platforms.
7618         (extraclean): Use a more portable "" quoting instead of a
7619         backslash (which doesn't work on DOS/Windows).
7620         
7621         * font/devlj4/generate/Makefile (extraclean): Ditto.
7623         * font/devdvi/generate/Makefile (extraclean): Ditto.
7625 2000-08-25  Werner LEMBERG  <wl@gnu.org>
7627         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
7628         src/roff/troff/troff.man: Document Eli's latest changes.
7630 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
7632         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
7633         macro file names of the form NAME.tmac as well as tmac.NAME.
7635 2000-08-25  Werner LEMBERG  <wl@gnu.org>
7637         * src/include/posix.h: Remove definition of FILENAME_MAX.
7639         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
7640         `sys_fatal' and `stop' function().
7642         * test-groff: Updated.
7644 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
7646         Added the new troff command .output <arg> to suppress output (while
7647         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
7648         registers (for passing the output dimensions to the output device).
7650         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
7651         parameter.
7652         * src/roff/troff/node.h, src/roff/troff/node.cc
7653         (troff_output_file::really_print_line,
7654         ascii_output_file::really_print_line,
7655         supress_output_file::really_print_line): Use `width' parameter.
7656         (troff_output_file::really_on, troff_output_file::really_off,
7657         output_file::on, output_file::off, real_output_file::on,
7658         real_output_file::off, real_output_file::really_on,
7659         real_output_file::really_off): New functions.
7660         (real_output_file:public output_file): New variable `output_on'.
7661         (real_output_file::begin_page, real_output_file::copy_file,
7662         real_output_file::transparent_char, real_output_file::print_line):
7663         Use it.
7664         (real_output_file::print_line): Use check_output_limits.
7665         * src/roff/troff/reg.h, src/roff/troff/request.h,
7666         src/roff/troff/input.cc (assign_registers): New function to remove
7667         two `goto's.
7668         (do_ps_file): Use it.
7669         (check_output_limits, reset_output_registers, output_request,
7670         init_output_requests): New functions.
7671         (init_input_requests): Updated.
7673         Added new grohtml2 device and html2 preprocessor (coding
7674         not yet finished) which will eventually replace grohtml.
7676         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
7677         Updated.
7678         * src/include/htmlindicate.h, src/include/htmlindicate
7679         (html_begin_suppress, html_end_suppress): New functions.
7680         * src/preproc/tbl/main.cc: Use it.
7681         * src/roff/groff/groff.cc: Add support for html2 device (which will
7682         automatically invoke the html2 preprocessor).
7683         * src/roff/troff/input.cc (is_html2): New variable.
7684         * src/roff/troff/troff.h, src/roff/troff/env.h,
7685         src/roff/troff/env.cc (environment::add_html_tag): New function
7686         (uses `is_html2').
7687         (environment::do_break): Use it.
7688         * font/devhtml2/*: New files.
7689         * src/devices/grohtml2: New device.
7690         * src/preproc/html2: New preprocessor.
7691         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
7693 2000-08-23  Werner LEMBERG  <wl@gnu.org>
7695         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
7697 2000-08-22  Werner LEMBERG  <wl@gnu.org>
7699         * src/include/lib.h: Provide a fix for IRIX to not include
7700         groff-getopt.h.
7702 2000-08-18  Werner LEMBERG  <wl@gnu.org>
7704         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
7705         since some non-GNU sed programs can't handle null regexps.
7706         * configure, src/preproc/eqn/Makefile.sub,
7707         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
7709         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
7710         bug (string.h and strings.h are both needed according to latest
7711         POSIX standard).
7713         * MORE.STUFF: Added info about unroff and troffcvt.
7715 2000-08-08  Werner LEMBERG  <wl@gnu.org>
7717         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
7718         used before -ms.
7720         * tmac/tmac.man.old: Remove unused number register.
7722         * tmac.doc: Minor documentation fix.
7724 2000-08-07  Paul Eggert  <eggert@twinsun.com>
7726         * src/roff/groff/pipeline.c (is_system_shell):
7727         Fix typo: "monocased_shell" no longer exists.
7729 2000-08-07  Paul Eggert  <eggert@twinsun.com>
7731         Remove FILENAME_MAX limits.
7733         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
7734         that the argument length is less than FILENAME_MAX.
7735         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
7736         Use struct hack to allocate and free file name.
7737         (struct xtmpfile_list): fname is now part of the structure,
7738         not a pointer to another string.
7740 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
7742         * src/include/posix.h: Add a default value for FILENAME_MAX.
7744 2000-08-06  Paul Eggert  <eggert@twinsun.com>
7746         Add support for new BSD-style man pages (with ".Dd" instead of
7747         ".TH"), so that "groff -man" understands both styles, even
7748         when running "groff -man" on a host whose system man page
7749         macros don't support ".Dd".
7751         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
7752         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
7753         in case the system man macros don't define Dd or TH.
7755         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
7756         * tmac/tmac.an: New one-line file.
7757         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
7759 2000-08-06  Werner LEMBERG  <wl@gnu.org>
7761         * src/roff/troff/troff.man: Fixing typos.
7763 Version 1.16.1 released
7764 =======================
7766 2000-07-31  Werner LEMBERG  <wl@gnu.org>
7768         Preparing release 1.16.1.
7770         * REVISION: Revision number set to 1.
7771         * MORE.STUFF: Added info about port to DOS.
7772         * NEWS, win32-diffs: Updated.
7774         * src/include/nonposix.h: Remove first line -- this file is used
7775         in C also.
7777         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
7778         link to it.
7780 2000-07-30  Werner LEMBERG  <wl@gnu.org>
7782         * doc/texinfo.tex: Update to latest version.
7784 2000-06-28  Paul Eggert  <eggert@twinsun.com>
7786         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
7787         commands that fail.  Don't assume that "export a=b" is valid shell
7788         syntax.  This is needed for Solaris 2.5.1.
7790         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
7791         comment about missing Solaris headers.
7793         * PROBLEMS: Add section about problems with Sun Make and VPATH.
7795 2000-06-25  Werner LEMBERG  <wl@gnu.org>
7797         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
7798         SET_BINARY().
7800         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
7802         * win32-diffs: Updated.
7803         * README.WIN32: Added CRs to make all Windows editors happy.
7805         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
7806         src/roff/groff/pipeline.c).
7808 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
7810         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
7811         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
7813 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
7815         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
7816         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
7817         are binary files.
7818         (main): Support non-Posix systems with several different styles of
7819         slash characters in file names.
7821         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
7822         (main) [SET_BINARY]: Switch stdin into binary mode.
7824         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
7825         (main): Support file names with several possible slash-type
7826         characters, as given by DIR_SEPS[] in nonposix.h.
7827         (main) [__MSDOS__]: If renaming the temporary index file fails
7828         because it has more than one dot in its trunk, replace the dot
7829         with an underscore and try again.
7830         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
7831         Newline.
7832         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
7834         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
7835         (File::File): Open the input file in binary mode.  Strip CR
7836         characters from each CR-LF pair.
7837         (xbasename): Support file names with several possible slash-type
7838         characters, as given by DIR_SEPS[] in nonposix.h.
7840         * src/include/Makefile.sub (HDRS): Add nonposix.h.
7842         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
7843         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
7844         [!_POSIX_VERSION]: Define for traditional Unix systems.
7845         (real_output_file::real_output_file): Remove the MSVC-specific
7846         call to popen, use instead POPEN_WT, appropriately defined on
7847         nonposix.h.  #include nonposix.h.
7848         (real_output_file::~real_output_file): Remove the MSVC-specific
7849         call to pclose, a suitable macro is now defined on nonposix.h.
7850         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
7851         and WEXITSTATUS instead of assuming traditional Unix
7852         interpretation of the status returned by pclose.
7854         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
7855         call to popen, use POPEN_RT instead (appropriately defined on
7856         nonposix.h).  #include nonposix.h.
7857         (ps_bbox_request): Open the PostScript file in binary mode.
7858         Close the file after processing it.
7859         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
7860         nonposix.h.
7862         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
7863         A version of run_pipeline that doesn't use `fork'.
7864         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
7865         (system_shell_name, system_shell_dash_c)
7866         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
7867         the ugliness of testing DOS/Windows file names for equality, and
7868         support both stock shells and ports of Unix shells.
7870         * src/roff/groff/groff.cc: #include nonposix.h.
7871         (BSHELL): Definition moved to nonposix.h.
7872         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
7873         instead of a literal "-c".
7874         (xbasename): Support file names with several possible slash-type
7875         characters, as given by DIR_SEPS[] in nonposix.h.
7876         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
7877         of literal strings.
7879         * src/preproc/soelim/soelim.cc: #include nonposix.h.
7880         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
7882         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
7883         pic_tab.h.
7885         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
7887         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
7888         eqn_tab.h.
7890         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
7892         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
7893         P_tmpdir is defined, use it instead of the literal "/tmp".
7894         (remove_tmp_files, add_tmp_file): New functions.
7895         (xtmpfile): Record temporary files and register an atexit function
7896         to delete them explicitly, instead of relying on the OS to do
7897         that, which doesn't work on non-Unix systems.
7899         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
7900         (search_path::search_path): Use PATH_SEP instead of a literal
7901         colon.
7902         (search_path::command_line_dir): Ditto.
7903         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
7904         to support non-Posix systems.
7906         * src/libs/libbib/search.cc: #include nonposix.h.
7907         (search_list::add_file): Open the file in binary mode.
7909         * src/libs/libbib/linear.cc: #include nonposix.h.
7910         (file_buffer::load): Remove \r characters preceding \n from the
7911         loaded buffer.
7913         * src/libs/libbib/index.cc: #include nonposix.h.
7914         (make_index_search_item): Open index_filename in O_BINARY mode.
7915         (index_search_item_iterator::get_tag): Ditto.  Remove \r
7916         characters before \n characters.
7917         (index_search_item::check_files): Open files in binary mode.
7918         (index_search_item::munge_filename): Support DOS-style file names
7919         with backslashes and drive letters, use IS_ABSOLUTE.
7921         * src/devices/grops/ps.cc: #include nonposix.h.
7922         (main) [SET_BINARY]: Switch stdout to binary mode.
7924         * src/devices/grolj4/lj4.cc: #include nonposix.h.
7925         (main) [SET_BINARY]: Switch stdout to binary mode.
7927         * src/devices/grolbp/lbp.cc: #include nonposix.h
7928         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
7930         * src/devices/grodvi/dvi.cc: #include nonposix.h.
7931         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
7932         nonposix.h).
7933         (main) [SET_BINARY]: Switch stdout to binary mode.
7934         [_MSC_VER]: Remove an explicit call to _setmode.
7936         * src/include/nonposix.h: New file.
7938         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
7939         operation when building with DJGPP.
7940         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
7941         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
7942         ENVSETUP.
7944         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
7945         MS-DOS.
7946         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
7947         etc. can include a semi-colon on DOS/Windows.
7948         (depend.temp): Use depend1.temp instead of depend.temp1, to
7949         prevent files from overerwiting each other on 8+3 filesystems.
7951         * gendef.sh (t): Change definition to work with DOS/Windows.
7953         doc/groff.texinfo: Apart of some typo corrections, I also changed
7954         some index entris, to make them more non-ambiguous, and also put
7955         @ignore around some parts that are not yet written, to allow the
7956         Info output be readable.
7958 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
7960         Replaced specific checks for function declarations with a generic
7961         routine taken from GNU bfd.
7963         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
7964         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
7965         * configure.in: Use it.
7966         * src/devices/grolbp/lbp.cc, src/include/lib.h,
7967         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
7968         src/roff/groff/groff.cc: Use it.
7969         * Makefile.in, configure: Updated.
7971 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
7973         * src/devides/grolbp/lbp.h: Removed unused variables.
7975 2000-05-31  Keith Thompson  <kst@sdsc.edu>
7977         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
7978         strncasecmp().
7980 2000-05-31  Werner LEMBERG  <wl@gnu.org>
7982         * aclocal.m4 (GROFF_SRAND): New function to test the return value
7983         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
7984         * configure.in: Use it.
7985         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
7986         * configure, Makefile.in: Updated.
7988         * configure.in: Add test for strncasecmp().
7989         * src/include/lib.h: Use it.
7991 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
7993         * src/preproc/grn/Makefile.sub: Add MLIB.
7995 2000-05-29  Nix  <nix@esperi.demon.co.uk>
7997         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
7999 2000-05-29  Werner LEMBERG  <wl@gnu.org>
8001         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
8003         * PROBLEMS: Small update.
8005         * src/devices/grolbp/lbp.cc: Various small fixes.
8007 2000-05-28  Keith Thompson  <kst@sdsc.edu>
8009         * src/roff/nroff/nroff.sh: Fix main loop syntax.
8011         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
8013 2000-05-25  Werner LEMBERG  <wl@gnu.org>
8015         * man/roff.man: Removed unused macro.
8017 2000-05-24  Werner LEMBERG  <wl@gnu.org>
8019         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
8020         This is needed e.g. if you do
8021         `make distclean; ./configure; make dist'.
8023 Version 1.16 released
8024 =====================
8026 2000-05-23  Werner LEMBERG  <wl@gnu.org>
8028         Adding font CWI (constant width italic) to devdvi.
8030         * font/devdvi/CWI: New file.
8031         * font/devdvi/generate/Makefile: Add generating rule.
8032         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
8033         tmac/tmac.dvi: Use it.
8034         * NEWS: Announce it.
8036         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
8037         * font/devlj4/generate/Makefile: Cosmetic changes only.
8039         * man/groff.man: Removed most of the redundant description of
8040         special characters (which is in groff_char.man).  Added font
8041         translation CB->CR for devdvi.  Other minor fixes.
8043         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
8044         (registered) symbols.
8046 2000-05-22  Werner LEMBERG  <wl@gnu.org>
8048         * doc/Makefile: Added rule for creating info files.
8050         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
8051         AMS font metrics.
8052         * font/devdvi/generate/Makefile: Fixed dependencies.
8054         * font/devps/*: Regenerated.  Heavy changes for Bookman and
8055         NewCentury Schoolbook!
8056         * font/devps/generate/afmname: Will now run with GNU awk.
8057         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
8058         * font/devps/generate/Makefile: Cosmetic changes only.
8060 2000-05-21  Werner LEMBERG  <wl@gnu.org>
8062         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
8063         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
8064         `.SS' now produces a heading with a smaller size than `.SH'. 
8065         Completely formatted.
8066         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
8068         * man/groff.man: Improved table appearance.  Use of `eo' request
8069         to reduce number of doubled backslashes in macro definitions.
8070         Replacing `\e' with `\(rs'.  Other minor fixes.
8072         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
8073         to have correct line number.
8075         * INSTALL: Small improvement.
8077 2000-05-20  Bernd Warken  <bwarken@mayn.de>
8079         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
8080         WL).
8082 2000-05-19  Bernd Warken  <bwarken@mayn.de>
8084         * man/groff.man: Complete update (with a lot of corrections by WL).
8086 2000-05-18  Werner LEMBERG  <wl@gnu.org>
8088         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
8090         * font/*/*: Implement it.
8091         * man/groff_char.man, NEWS: Document it.
8093         * src/include/unix.h: Removed.  It isn't used.
8095         * doc/groff.texinfo: Slight improvements.
8097 2000-05-17  Werner LEMBERG  <wl@gnu.org>
8099         * README, win32-diffs: Small fixes and improvements.
8101 2000-05-16  Werner LEMBERG  <wl@gnu.org>
8103         * FDL: New file (the Free Documentation License version 1.1).
8105         * doc/groff.texinfo: Added many start-up values for gtroff.
8106         Some structural improvements of the source code.
8108 2000-05-15  Werner LEMBERG  <wl@gnu.org>
8110         * src/roff/troff/input.cc: Added small comment about troffrc-end.
8111         * src/roff/troff/troff.man: Added info about troffrc-end.
8113 2000-05-14  Werner LEMBERG  <wl@gnu.org>
8115         * Makefile.in (EXTRADIRS): Fix typos.
8116         (dist): Handle deletion of old .tar.gz file correctly.
8117         (DISTDIRS): Include all tty output devices.
8119         * doc/groff.texinfo: Adding more cross references; countless other
8120         fixes.
8122 2000-05-13  Werner LEMBERG  <wl@gnu.org>
8124         * MORE.STUFF: Added Robert Marks's utilities.
8126 2000-05-12  Werner LEMBERG  <wl@gnu.org>
8128         Added win32 port contributed by Blake McBride
8129         <blake@florida-software.com>.
8131         * README.WIN32, win32-diffs: New files.
8132         * NEWS: Updated.
8134         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
8135         (tmove, tmove2): Added parentheses to avoid compiler warnings.
8136         (change): Removed unused variables.
8138         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
8139         (savebounds): Changed return value from `int' to `void'.
8140         * src/preproc/grn/hdb.cc: Ditto.
8142         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
8143         final backslash in comment to avoid compiler warning.
8145         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
8147         * doc/groff.texinfo: More fixes.
8149 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
8151         * tmac/tmac.doc: Documentation fix.
8153 2000-05-11  Werner LEMBERG  <wl@gnu.org>
8155         * doc/groff.texinfo: Reading the source code shows up a lot of
8156         omissions and incorrect data...  More conversion to @Deffn macros.
8158 2000-05-10  Werner LEMBERG  <wl@gnu.org>
8160         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
8161         dependency.
8163         * src/roff/troff/request.h: Removing unused `no_break_flag'.
8165 2000-05-09  Werner LEMBERG  <wl@gnu.org>
8167         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
8168         improvements.
8170         * doc/groff.texinfo: Extended history section.  More conversion to
8171         @Deffn macros.  More .tr documentation.
8173 2000-05-07  Werner LEMBERG  <wl@gnu.org>
8175         * doc/groff.texinfo: Completed tab section.  Added info about
8176         fields.
8178 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
8180         * PROBLEMS: Describe configure script fix for OS/390 Unix.
8182 2000-05-05  Werner LEMBERG  <wl@gnu.org>
8184         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
8185         LaTeX 2e).
8186         * NEWS: Document it.
8188         * man/troff.man: Minor optical improvements.
8190 2000-05-03  Werner LEMBERG  <wl@gnu.org>
8192         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
8194         * font/*/*: Implement it.
8195         * man/groff_char.man, NEWS: Document it.
8197 2000-05-02  Werner LEMBERG  <wl@gnu.org>
8199         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
8200         expansion.
8201         * NEWS: Document the three new man pages.
8203         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
8204         * configure: Updated.
8206         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
8208 2000-05-01  Werner LEMBERG  <wl@gnu.org>
8210         Added grap support to grog.
8212         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
8213         * src/roff/grog/grog.man: Document it.
8215         * doc/groff.texinfo, NEWS: Add info about grap support.
8217         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
8218         (with slight fixes by me).
8220         * tmac/groff_tmac.man: New file documenting tmac mechanism.
8221         * tmac/Makefile.sub: Add groff_tmac.man.
8222         * man/roff.man: New file giving overview of roff system.
8223         * man/troff.man: A short reference of troff.
8224         * man/Makefile.sub: Add roff.man and troff.man.
8226 2000-04-30  Werner LEMBERG  <wl@gnu.org>
8228         Added grap support to groff.
8230         * src/roff/groff/groff.cc: Implement it.
8231         * src/roff/groff/groff.man: Document it.
8233         * src/devices/grotty/grotty.man: Add cp1047 device.
8234         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
8235         Ditto.
8236         * src/roff/groff/groff.man: Ditto.
8237         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
8238         * doc/groff.texinfo: Ditto.
8240         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
8241         for cp1047.
8243 2000-04-29  Werner LEMBERG  <wl@gnu.org>
8245         * man/groff_char.man: Add `pc' glyph.
8246         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
8247         * tmac/tmac.tty: Add `pc' glyph.
8248         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
8249         we use cp1047 output device.
8251         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
8252         there are still hardcoded latin1->unicode values in utf8's font
8253         definition files.
8254         * configure: Updated.
8255         * NEWS: Minor clarification.  Updated.
8257         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
8258         Unix.
8260 2000-04-28  Werner LEMBERG  <wl@gnu.org>
8262         Adding EBCDIC code page 1047.
8264         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
8265         font/devcp1047/DESC.proto: New files.
8267         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
8268         either ascii/latin1 or cp1047.
8269         * Makefile.in: Use it.
8270         * configure: Updated.
8272         Replacing and/or adding `md' (mathdot) glyph with `pc'
8273         (periodcentered) in all text fonts.
8275         * font/*/*: Change it.
8277 2000-04-27  Werner LEMBERG  <wl@gnu.org>
8279         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
8281         * configure.in: Add check for strings.h.
8282         * src/include/driver.h: Use HAVE_STRINGS_H.
8283         * src/devices/grolbp/lpb.cc: Remove string.h.
8285         * src/include/groff-getopt.h: New file.  It will be used instead of
8286         getopt.h (to be included in lib.h) to avoid endless problems with
8287         picky C++ compilers.
8288         * src/include/lib.h: Use groff-getopt.h.
8289         * src/include/Makefile.sub: Updated.
8291         * configure: Updated.
8292         * Makefile.in: Updated.
8294         * NEWS: Mention EBCDIC support.
8296 2000-04-26  Werner LEMBERG  <wl@gnu.org>
8298         * TODO: Some additions.
8300 2000-04-25  Werner LEMBERG  <wl@gnu.org>
8302         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
8303         of mso request.
8305 2000-04-23  Werner LEMBERG  <wl@gnu.org>
8307         * src/roff/troff/troff.man: Minor fixes.
8309 2000-04-22  Werner LEMBERG  <wl@gnu.org>
8311         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
8312         `.T' string register and the incompatible definition of the `.T'
8313         number register (compared to Unix troff).
8315         * man/groff_char.man: Add some missing characters.
8316         * font/devutf8/NOTES: Update.
8318 2000-04-21  Werner LEMBERG  <wl@gnu.org>
8320         * src/include/htmlindicate.h, src/include/lib.h,
8321         src/include/posix.h: Fix copyright.
8323         * src/include/Makefile.sub: Update.
8325 2000-04-20  Werner LEMBERG  <wl@gnu.org>
8327         * src/roff/troff/input.cc (input_char_description): Removing
8328         superfluous space char.
8330         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
8332         * doc/groff.texinfo: Document EBCDIC.
8334 2000-04-19  Werner LEMBERG  <wl@gnu.org>
8336         Introducing `shc' as the glyph name for the soft hyphen character.
8338         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
8339         font/devlatin1/R.proto: Use it.
8341         * NEWS: Updated.
8343 2000-04-18  Werner LEMBERG  <wl@gnu.org>
8345         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
8346         dependency on ASCII order.
8348 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
8350         * src/libs/libgroff/illegal.c: Added EBCDIC table.
8351         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
8353         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
8354         to increase portability.
8356 2000-04-15  Werner LEMBERG  <wl@gnu.org>
8358         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
8359         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
8360         the generic `\n' if under OS/390 Unix.
8362         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
8364         * configure: Regenerated.
8366 2000-04-14  Werner LEMBERG  <wl@gnu.org>
8368         * doc/groff.texinfo: More conversions to @Deffn.
8370 2000-04-12  Werner LEMBERG  <wl@gnu.org>
8372         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
8373         with `:'.
8375         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
8377 2000-04-10  Werner LEMBERG  <wl@gnu.org>
8379         * doc/groff.texinfo: More conversions to @Deffn.
8381 2000-04-08  Werner LEMBERG  <wl@gnu.org>
8383         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
8384         Updated to latest version (glibc 2.1.3).
8386 2000-04-07  Werner LEMBERG  <wl@gnu.org>
8388         * doc/Makefile (clean): Include more index files.
8389         Add rule texinfo->dvi.
8391 2000-04-05  Werner LEMBERG  <wl@gnu.org>
8393         * doc/groff.texinfo: Added new index `op' for operators.  More
8394         info on end of sentence characters.  More use of @Deffn.
8396 2000-03-30  Werner LEMBERG  <wl@gnu.org>
8398         * */*.man: Adding a note that a whitespace can be inserted between
8399         a command line option and its parameter -- we are using GNU getopt.
8401         * src/roff/groff/groff.man: Add example of `-m mandoc'.
8403 2000-03-28  Werner LEMBERG  <wl@gnu.org>
8405         Correct anachronism of calling the man macro file with `-man'
8406         instead of `-m man' etc.
8408         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
8409         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
8410         load tmac.<package>.
8412         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
8414         * NEWS: Updated.
8416         * doc/groff.texinfo: Updated.
8418         * tmac/groff_man.man: Copyright added.
8420 2000-03-27  Werner LEMBERG  <wl@gnu.org>
8422         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
8423         typeset the request resp. escape name with a tt font -- due to a
8424         bug in texinfo.tex it is necessary to use the `-e' switch with
8425         texi2dvi.
8427         Improving info about usage of groff units.
8429         Other minor fixes.
8431 2000-03-20  Werner LEMBERG  <wl@gnu.org>
8433         * doc/groff.texinfo: Added section about man macro package
8434         (I've basically taken groff_man.man).  Introducing new indices `ma'
8435         for macros/strings and `gl' for glyph names.  Other minor fixes.
8437         * tmac/groff_man.man: Fixed some typos.
8439 2000-03-19  Werner LEMBERG  <wl@gnu.org>
8441         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
8442         Other minor fixes.
8444         * doc/texinfo.tex: New file.
8446 2000-03-18  Werner LEMBERG  <wl@gnu.org>
8448         * doc/groff.texinfo: Improved section on number registers.  Other
8449         minor updates.
8451 2000-03-16  Werner LEMBERG  <wl@gnu.org>
8453         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
8454         synopsis.
8456         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
8457         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
8458         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
8459         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
8461         * src/preproc/grn/grn.man: Better synopsis; added copyright.
8463         * src/roff/grog/grog.man: Updated copyright date.
8465 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
8467         * configure.in: Added test for strdup.
8469         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
8470         is available.
8472         Replaced dynamic allocation of arrays `[...]' with `new' operator.
8474         Other minor fixes.
8476 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
8478         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
8480 2000-03-11  Werner LEMBERG  <wl@gnu.org>
8482         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
8483         compilers silent.
8484         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
8485         * src/include/lib.h: Remove some spaces.
8487 2000-03-10  Werner LEMBERG  <wl@gnu.org>
8489         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
8490         initializers from arguments (some compilers don't like this).
8492 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
8494         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
8495         used by pic and eqn to tell grohtml where the graphic regions start
8496         and end.
8497         * src/libs/libgroff/Makefile.sub: Use it.
8498         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
8499         graphic_start() and graphic_end() from htmlindicate.cc.
8501 2000-03-09  Werner LEMBERG  <wl@gnu.org>
8503         * tmac/tmac.safer: Will now work correctly in compatibility mode.
8504         * tmac/groff_man.man: More fixes.
8506 2000-03-08  Werner LEMBERG  <wl@gnu.org>
8508         * doc/Makefile: Added texput.log to the `clean' target.
8509         * doc/groff.texinfo: Added info about delimiters for escapes.
8511 2000-03-08  Bernd Warken  <bwarken@mayn.de>
8513         * src/preproc/pic/pic.man: Add info on conversion of pic images to
8514         other graphic formats.
8516 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
8518         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
8519         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
8520         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
8521         files.
8523 2000-03-07  Werner LEMBERG  <wl@gnu.org>
8525         * doc/groff.texinfo: Spelling fixes.
8527 2000-03-06  Werner LEMBERG  <wl@gnu.org>
8529         * tmac/groff_man.man: Completely revised to cover everything in
8530         tmac.an.
8532         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
8533         Other minor fixings.
8534         * src/roff/troff/env.cc (environment_copy): Improve error message and
8535         fix itoa->i_to_a.
8536         * src/roff/troff/TODO: Updated.
8538         * doc/Makefile: Bug fixes -- this is still provisional, though...
8540         * tmac/eqnrc: Small fixes.
8542 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
8544         Adding a request `evc' to copy environments.
8546         * src/roff/troff/env.cc (environment::copy, environment_copy):
8547         Implement it.
8548         * src/roff/troff/env.h: Add prototype.
8550 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
8552         Adding strsep() -- Solaris 8 doesn't have it.
8554         * configure.in: Test it.
8555         * src/devices/grolbp/lbp.cc: Add code.
8557 2000-03-05  Werner LEMBERG  <wl@gnu.org>
8559         * src/roff/troff/div.cc (macro_diversion::output,
8560         top_level_diversion::output): Fixing an incompatibility with
8561         original troff: \x'0' updates the .a register also.  Thanks to
8562         <Andries.Brouwer@cwi.nl> for pointing this out.
8563         * doc/groff.texinfo: Document it.
8565         * Makefile.in: Create Makefile.dep if necessary before calling the
8566         submake process to avoid warning about nonexistent file.
8568         * NEWS, PROJECTS: Updated.
8570 2000-03-04  Werner LEMBERG  <wl@gnu.org>
8572         * tmac/troffrc: Add tmac.lbp.
8574 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
8576         * tmac/tmac.lbp: New file.
8577         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
8578         command.
8580 2000-03-03  Werner LEMBERG  <wl@gnu.org>
8582         * Makefile.in: Fixing $(subdir).
8584         * README, NEWS: Small fixes.
8586         * test-groff: Adding path to grolbp.
8588         * configure.in: The (new) file src/xditview/Imakefile.in will be
8589         also configured -- it is now possible to build gxditview in a
8590         directory different from $srcdir.
8592 2000-03-02  Blake McBride  <blake@florida-software.com>
8594         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
8596         * MORE.STUFF: Added website of bell labs and info about plot2dev.
8598 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
8600         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
8601         files.
8603 2000-02-29  Werner LEMBERG  <wl@gnu.org>
8605         Adding GNU getopt to the groff distribution.
8607         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
8608         New files.
8609         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
8610         * aclocal.a4: Remove GROFF_GETOPT function.
8611         * configure.in, Makefile.in, PROBLEMS: Update.
8612         * src/include/lib.h: Replace getopt tests with getopt.h.
8613         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
8615         * doc/groff.texinfo: Further checking/updating.  Adding more index
8616         entries.
8618         * man/groff_out.man: Fix nroff mode activation (for emacs).
8619         * man/groff_font.man: Add missing ligature.
8621 2000-02-28  Werner LEMBERG  <wl@gnu.org>
8623         * doc/groff.texinfo: Further checking/updating.  Adding more index
8624         entries.
8626         * src/devices/grolbp/grolbp.man: Added a comment line at the
8627         beginning of the file (similar to shell scripts) which indicates
8628         that `tbl' should be used as a preprocessor.
8630 2000-02-27  Blake McBride  <blake@florida-software.com>
8632         Adapting groff to MS Visual C++ 6.0 compiler (tested with
8633         Windows NT 4.0).  Uses _MSC_VER define where necessary.
8635         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
8636         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
8637         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
8638         src/include/lib.h, src/libs/libgroff/errarg.cc,
8639         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
8640         src/preproc/refer/label.y, src/preproc/refer/label.cc,
8641         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
8642         src/roff/troff/div.cc, src/roff/troff/env.cc,
8643         src/roff/troff/input.cc, src/roff/troff/node.cc,
8644         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
8645         if_to_a() to avoid name clashes.
8646         * src/include/posix.h: Don't use unistd.h.
8647         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
8648         clause for integrating non-Unix xtmpfile() code.
8649         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
8650         structure; use "rt" for popen() in pipe_source(); add getpid()
8651         dummy function.
8652         * src/roff/troff/node.cc: Use special versions of popen() in
8653         real_output_file() and pclose() in ~real_output_file().
8655 2000-02-27  Werner LEMBERG  <wl@gnu.org>
8657         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
8658         LBP-8 series laser printers).  This code has been contributed by
8659         Francisco Andrés Verdú <pandres@dragonet.es>.
8661         * src/devices/grolbp/*: The grolbp output device.
8662         * font/devlpb/*: The font description files.
8663         * Makefile.in: Add grolpb and devlbp subdirectories.
8665         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
8666         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
8667         typographic fixes.
8669         * doc/groff.texinfo: Further checking/updating.  Adding more index
8670         entries.
8672         * NEWS: Updated.
8674         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
8676         * man/groff_font.man: Adding info about obsolete DESC keywords.
8677         * src/devices/grolj4/grolj4.man: Documenting additional DESC
8678         keywords.
8680 2000-02-26  Werner LEMBERG  <wl@gnu.org>
8682         * src/preproc/grn/grn.man: Added info about the gremlin file format
8683         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
8685 2000-02-25  Werner LEMBERG  <wl@gnu.org>
8687         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
8688         friends to be non-integer.
8690         * src/preproc/grn/grn.man: Document it.
8692         * doc/groff.texinfo: Further checking/updating.  Adding more index
8693         entries.
8695 2000-02-24  Werner LEMBERG  <wl@gnu.org>
8697         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
8698         line thicknesses to be integer multiples of this value.
8700         * src/preproc/grn/grn.man: Commenting out the -s option -- the
8701         corresponding code doesn't work (yet).
8703         * doc/groff.texinfo: Further checking/updating.  Adding more index
8704         entries.
8706 2000-02-23  Werner LEMBERG  <wl@gnu.org>
8708         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
8709         specify line thickness instead of base units.  The new default
8710         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
8711         thick lines respectively.
8713         Removed unused variable `prevval'.
8715         * src/preproc/grn/grn.man: Updated.
8717 2000-02-22  Werner LEMBERG  <wl@gnu.org>
8719         * src/preproc/grn/main.cc: Slight formatting.
8721         * src/roff/groff/groff.man: Formatting fix.
8722         * src/preproc/grn/grn.man: Ditto.
8724         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
8726         * doc/groff.texinfo: Further checking/updating.
8728 2000-02-21  Werner LEMBERG  <wl@gnu.org>
8730         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
8732         * test-groff: Added grn subdir to path.
8734         * doc/groff.texinfo: Some restructing and other small improvements.
8736         * src/roff/groff/groff.cc (help): Fixed info string.
8738 2000-02-20  Werner LEMBERG  <wl@gnu.org>
8740         * doc/meref.me: Fix description of .GS request.
8742         * src/roff/troff/troff.man: Fixing typo.
8744         Adding the `grn' preprocessor for gremlin graphic files.
8746         * src/preproc/grn/*: This is the Berkeley distribution written by
8747         David Slattengren and Barry Roitblat, adapted to groff by Daniel
8748         Senderowicz and Werner Lemberg.
8750         * doc/grnexampl.{me,g}: A sample for grn.
8752         * Makefile.in: Added subdirectory entry for grn.
8754         * src/roff/groff/groff.cc: Added support for grn.  It can be now
8755         called with the switch `-g'.
8757         * src/roff/groff/groff.man: Updated.
8759         * src/roff/grog/grog.{man,pl,sh}: Updated.
8761         * NEWS: Updated.
8763 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
8765         * src/include/lib.h: Added xtmptemplate and made xtmpfile
8766         parametrically polymorphic.
8768         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
8769         and the alterations to xtmpfile.
8770         xtmpfile can be requested to return the filename created
8771         and asked not to unlink the temp file.  The default behaviour
8772         if parameters are absent is exactly the same as before.
8774 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
8776         A new request `length' is available which returns the length of a
8777         string in a number register:
8779         * src/roff/troff/input.cc (length_macro): Implement it.
8780         * src/roff/troff/input.cc (init_input_requests): Register it.
8782 2000-02-11  Werner LEMBERG  <wl@gnu.org>
8784         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
8785         of the `substring' request.
8787         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
8788         request.
8790         * src/roff/troff/TODO, NEWS: Updated.
8792 2000-02-09  Werner LEMBERG  <wl@gnu.org>
8794         * src/roff/groff/groff.man: Added an example.
8796 2000-02-06  Werner LEMBERG  <wl@gnu.org>
8798         I've considerably modified the directory structure of the
8799         distribution to get a more vertical layout.  For example, the number
8800         of top level directories has been reduced from 42 to 6.
8802         As a consequence, many changes, especially to the makefiles, were
8803         necessary:
8805         * The makefile variables `top_builddir' and `top_srcdir' have been
8806         introduced.  Virtually all relative paths have been replaced with
8807         absolute ones using these two variables.
8809         * Dependencies (in the files `Makefile.dep') are no longer part of
8810         the distribution.  Instead, they are created during a `make install'
8811         in the build directory.
8813         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
8814         make `top_srcdir' and `top_builddir' absolute.
8816         Some other changes:
8818         * Man pages now depend on the files `VERSION' and `REVISION'.
8820         * The added shell script `mkinstalldirs' will replace `mkdir' in
8821         almost all cases.
8823         * VERSION: Version number increased to 1.16.
8825 2000-02-04  Werner LEMBERG  <wl@gnu.org>
8827         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
8829         * Makefile.in: Removed $(tmac_m) since it is no longer needed
8830         (after an update of the mm stuff).
8832         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
8834 2000-02-03  Werner LEMBERG  <wl@gnu.org>
8836         The .psbb request will now also accept Mac PS images (i.e. using LF
8837         as the EOL character).
8839         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
8840         (with slight modifications).
8841         * troff/input.cc (do_ps_file): Use it.
8843         * test-groff: Add grohtml and grolj4 output devices to PATH.
8845 2000-01-30  Werner LEMBERG  <wl@gnu.org>
8847         * NEWS, MORE.STUFF: Updated.
8849 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
8851         Add the `srand' command to pic.
8853         * pic/lex.cc, pic/pic.y: Implement it.
8854         * pic/pic.man: Document it.
8855         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
8857 2000-01-30  Werner LEMBERG  <wl@gnu.org>
8859         Add a new request `.psbb'.  This does exactly what the external
8860         program psbb did.  It scans a PostScript image file for a
8861         %%BoundingBox comment and extracts the bounding box values (in
8862         PostScript units) which are then stored in the four new (read-only)
8863         number registers `llx', `lly', `urx', and `ury'.
8865         This will allow the usage of the .PSPIC macro without worrying
8866         about unsafe behaviour of groff, i.e., it will work without the
8867         `-U' switch of groff.
8869         * troff/input.cc: Implement it.
8870         * tmac/tmac.pspic: Use it.
8871         * troff/troff.man, grops/grops.man, NEWS: Document it.
8872         * psbb/*, Makefile.in: Remove it since it is no longer needed.
8874         This is bloody C code simply adapted from psbb.c!  Any improvements
8875         welcome.
8877 2000-01-29  Werner LEMBERG  <wl@gnu.org>
8879         * man/groff_font.man: Minor clarifications.
8881         * NEWS: Updated.
8883 2000-01-28  Werner LEMBERG  <wl@gnu.org>
8885         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
8887 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
8889         * man/groff_font.man: Brought up to date regarding tcommand
8890         extensions.
8891         * libgroff/font.cc: Handle everything after `--' as a comment
8892         in the font files.
8893         * devps/*: Added comment delimiter inside devps font files.
8895 2000-01-28  Werner LEMBERG  <wl@gnu.org>
8897         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
8898         \fC...\fP (which now works as expected).
8900         * troff/troff.man: Fix typo.
8902 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
8904         Completed the pass_filenames implementation in troff.
8906         * libdriver/input.cc: Will read the new `F' tcommand.
8907         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
8908         * troff/input.cc: Use it.
8910 2000-01-26  Werner LEMBERG  <wl@gnu.org>
8912         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
8913         font will now be updated even if an invalid font is selected.
8915 2000-01-24  Werner LEMBERG  <wl@gnu.org>
8917         * doc/homepage.ms: Updated for new tmac.arkup.
8919         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
8921         * tmac/tmac.arkup: Cleanup.
8923         Added `\&' to .HTML macro to `leave vertical mode', so to say.
8925         Removed obsolete .LINK macro completely.
8927         The macros .URL, .FTP, and .MAILTO now accept a third argument which
8928         will be immediately appended to the second argument (to be used with
8929         punctuation, for example).
8931         Disabled .CDFTP macro temporarily for security reasons.
8933         * tmac/groff_markup.man: Complete revision for latest changes in
8934         tmac.arkup -- note that it does not yet format correctly with
8935         grohtml :-(
8937 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
8939         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
8940         * devutf8/R.proto: Add mappings for wp, lh, rh.
8941         * devutf8/NOTES: Updated.
8943 2000-01-23  Werner LEMBERG  <wl@gnu.org>
8945         * doc/groff.texinfo: Updated version/copyright info.
8947 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
8949         Added support for two new directives in device descriptions:
8950         `pass_filenames' (to pass the input file name to the output device)
8951         and `use_charnames_in_special' (to support e.g. accented characters
8952         in the `X' request).
8954         * include/font.h, troff/charinfo.h: Declare it.
8956         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
8958         * devhtml/DESC: Use it.
8960         * troff/input.cc: New function encoded_char.
8962         * troff/token.h: Add test for `specialness'.
8964 2000-01-21  Werner LEMBERG  <wl@gnu.org>
8966         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
8967         mistake from the list of files to be installed.
8969 2000-01-18  Werner LEMBERG  <wl@gnu.org>
8971         * README: Added info how to apply patches.
8973 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
8975         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
8977 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
8979         * troff/input.cc: Add support for troffrc-end.
8981         * tbl/main.cc: Altered to issue table-start and table-end special
8982         characters if using the html device.
8984         * devhtml/*: Modified font files to incorporate html encoding of
8985         characters.
8987         * tmac/groff_markup.man: New file documenting tmac.arkup.
8989         * tmac/troffrc-end: New file.  This is invoked after all user
8990         specified macros.  Currently used by the html device to include
8991         tmac.html.  Thus no need for users to specify -mhtml anymore.
8993         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
8994         (MAN7): Add groff_markup.man.
8996         * tmac/tmac.an, tmac/tmac.html: Small html updates.
8998         * tmac/troffrc: tmac.arkup will now be called for the html device.
9000         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
9001         extra device specific information about fonts.
9003         * doc/homepage.ms: New file.  It is an example how an HTML home page
9004         could look like with grohtml.
9006         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
9008 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
9010         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
9011         of Im, Re.
9013         * devutf8/NOTES: Updated.
9015 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
9017         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
9018         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
9019         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9020         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
9021         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
9022         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
9023         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
9024         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
9025         warnings.
9027         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
9029 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
9031         grolj4: Paper size will be searched case-insensitively.
9033         * include/lib.h: Add check for strcasecmp().
9034         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
9035         * configure.in: Check for strcasecmp().
9037 2000-01-11  Werner LEMBERG  <wl@gnu.org>
9039         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
9040         `REVISION'.
9042 2000-01-10  Werner LEMBERG  <wl@gnu.org>
9044         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
9045         revision scheme.
9047         Add a new read-only register, `.Y', which contains the groff
9048         revision.
9050         * troff/input.cc (init_input_requests): Define it.
9051         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
9052         * doc/groff.texinfo, troff/troff.man: Document it.
9054         * libgroff/Makefile.sub (version.cc): Add definition of
9055         `Version_string[]', consisting of `<major>.<minor>.<revision>'
9056         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
9057         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
9058         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
9059         troff/input.cc, pfbtops/pfbtops.c: Use it.
9061 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
9063         Add a revision scheme to the groff package.
9065         * REVISION: New file.
9066         * libgroff/Makefile.sub (version.cc): Use it to define
9067         `revision_string[]'.
9068         * grops/psrm.cc: Use revision_string (converted to an unsigned
9069         integer) in constructor of resource_manager.
9071 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
9073         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
9074         files.
9075         * Makefile.in (DEVDIRS): Add devutf8.
9076         * grotty/tty.cc: Include device.h.
9077         (glyph): Change type of `code' to `unsigned int'.
9078         (tty_printer): New field is_utf8.  Constructor takes device argument.
9079         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
9080         (tty_printer::add_char): Change type of first arg to `unsigned int'.
9081         (tty_printer::put_char): New function.
9082         (tty_printer::end_page): Use put_char() instead of ::putchar().
9083         (make_printer): Pass device to tty_printer constructor.
9084         * nroff.sh: Determine default device by calling 'locale'.  As a
9085         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
9086         Recognize UTF-8 locales.
9087         * tmac/eqnrc: Recognize utf8 like latin1.
9088         * tmac/troffrc: Device utf8 needs tmac.tty.
9090 2000-01-07  Werner LEMBERG  <wl@gnu.org>
9092         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
9094 2000-01-07  Paul Eggert  <eggert@twinsun.com>
9096         Add a new predefined writeable number register, `year',
9097         which contains the current year.
9099         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
9100         * tmac/tmac.s: Use it.
9101         * troff/input.cc (init_registers): Initialize it.
9103 2000-01-06  Werner LEMBERG  <wl@gnu.org>
9105         * PROBLEMS: Fixed typo.
9107 2000-01-04  Paul Eggert  <eggert@twinsun.com>
9109         * PROBLEMS: Add Y2k advice for the yr number register.
9111 2000-01-03  Paul Eggert  <eggert@twinsun.com>
9113         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
9115 2000-01-02  Werner LEMBERG  <wl@gnu.org>
9117         * tmac/tmac.arkup: Slight modification of macros to provide better
9118         appearance for non-HTML formats.
9120 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
9122         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
9123         does not automatically translate to malloc(n) on all OSes
9124         (e.g., SunOS) so do it explicitly.  Also, check the returned
9125         value.
9127 2000-01-01  Werner LEMBERG  <wl@gnu.org>
9129         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
9131         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
9132         expects this variable
9134 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
9136         * doc/Makefile: Added instructions to create HTML and text
9137         versions of some files.
9139 1999-12-31  Werner LEMBERG  <wl@gnu.org>
9141         * Updated INSTALL.gen.
9143         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
9144         better resp. correctly with non-HTML devices.
9146 Version 1.15 released
9147 =====================
9149 1999-12-28  Werner LEMBERG  <wl@gnu.org>
9151         * NEWS, VERSION: Changed to 1.15
9153 1999-12-27  Paul Eggert  <eggert@twinsun.com>
9155         * nroff/nroff.man: -S is safer, not safe.
9157         * groff/groff.cc (main): Use `safer', not `safe', in variable
9158         names.  This does not change the behavior.
9160         * troff/input.cc (main): Likewise.
9162         * nroff/nroff.sh: Likewise.
9164         * troff/input.cc (prepend_string): New function.
9165         (main): Prepend -msafer, so that we check macro libraries for
9166         safety.
9168         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
9170 Version 1.14 released
9171 =====================
9173 1999-12-26  Werner LEMBERG  <wl@gnu.org>
9175         * NEWS, VERSION: Changed to 1.14.
9177 1999-12-24  Werner LEMBERG  <wl@gnu.org>
9179         * refer/refer.cc: Fixing the last fix.
9181 Version 1.13 released
9182 =====================
9184 1999-12-23  Werner LEMBERG  <wl@gnu.org>
9186         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
9187         number disappear.
9189         * NEWS: Updated.
9191         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
9193         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
9194         document conventions, the version number must be a real.
9196 Version 1.12.1 released
9197 =======================
9199 1999-12-22  Werner LEMBERG  <wl@gnu.org>
9201         * VERSION: Changed to 1.12.1.
9203 1999-12-22  Alan Rooks  <arooks@istar.ca>
9205         * refer/refer.cc (do_file): Slight modification to satisfy the
9206         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
9207         UnixWare 7.1.
9209 1999-12-20  Werner LEMBERG  <wl@gnu.org>
9211         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
9212         notices.
9214         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
9215         list of unsafe requests.
9217         * pic/pic.man: Fixed a typo.
9219         * man/groff_out.man: Fixed a typo.
9221 1999-12-18  Werner LEMBERG  <wl@gnu.org>
9223         * Makefile.in: Doc fixes.
9225 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
9227         * groff/groff.cc: Missing `U' option added to getopt().
9229         * troff/troff.man: Missing `U' option added to synopsis.
9231 Version 1.12 released
9232 =====================
9234 1999-12-14  Werner LEMBERG  <wl@gnu.org>
9236         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
9237         to the synopsis.
9239         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
9240         with the more appropriate terms `safer' and `unsafe'.
9242         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
9243         sys_nerr and sys_errlist[].
9245         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
9247         * pic/pic.y, pic/pic.cc: Added check for fmod().
9249 1999-12-13  Werner LEMBERG  <wl@gnu.org>
9251         * VERSION: Changed to 1.12.
9253         Here some patches from various sources; most of them taken from
9254         the Debian distribution.
9256         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
9257         tmac/Makefile.sub: New files copied directly from the NetBSD
9258         distribution.  Probably, some additional adaptation later on is
9259         necessary...
9261         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
9262         of unsafe requests.
9264         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
9265         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
9266         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
9267         (`-S') is now the default.
9269         * README, NEWS: Updated.
9271 1999-12-09  Werner LEMBERG  <wl@gnu.org>
9273         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
9275         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
9277 1999-12-06  Werner LEMBERG  <wl@gnu.org>
9279         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
9280         grief than relief today.  Additionally, it is against the GNU
9281         coding standards.
9283         * configure: Recreated.
9285 1999-12-05  Werner LEMBERG  <wl@gnu.org>
9287         * configure.in: Added GROFF_LIBM.
9289         * configure: Recreated.
9291         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
9292         necessary.
9294         * Makefile.in: Added definition of $(LIBM).
9296         * Makefile.comm (LIBM): Removed.
9298         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
9300 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
9302         * doc/Makefile: Added rule for generation pic.html.
9304         (clean): Files produced by grohtml will be removed also.
9306         * doc/pic.ms: Small fix.
9308         * tmac/tmac.html: Fixed suppression of headers.
9310 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
9312         * tmac/tmac.html: Fixing horizontal arrows.
9314         Turning off hyphenation.
9316         * tmac/tmac.an: Improved support for grohtml; better indentation,
9317         no footers/headers.
9319 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
9321         * tmac/tmac.arkup: Added CDFTP macro
9323         * tmac/tmac.html: All headers are turned off for ms, me, and mm
9324         macros.
9326         * tmac/troffrc: Some additions for HTML stuff.
9328 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
9330         * tmac/tmac.html: Small changes.
9332 1999-09-26  Werner LEMBERG  <wl@gnu.org>
9334         * doc/groff.texinfo: Minor fixes.
9336 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
9338         * devhtml/TR: Changed spacewidth to 3.
9340         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
9342         * tmac/tmac.html: Moved markup macros to tmap.arkup.
9344         * tmac/tmac.arkup: New file.
9346         * grohtml/ChangeLog: New file.
9348 1999-09-16  Werner LEMBERG  <wl@gnu.org>
9350         * doc/groff.texinfo (Common Features): Added Copying chapter.
9351         Changed format to @smallbook.
9353 1999-09-15  Werner LEMBERG  <wl@gnu.org>
9355         * NEWS: Added info about groff.texinfo.
9357         * doc/groff.texinfo: Will now compile (using texi2dvi) without
9358         warning messages.
9360 1999-09-14  Werner LEMBERG  <wl@gnu.org>
9362         * groff/groff.man: More updates.
9364 1999-09-13  Werner LEMBERG  <wl@gnu.org>
9366         * doc/groff.texinfo: New file.  This manual is still very
9367         rudimentary.  It has been originally contributed by Trent
9368         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
9369         additions by me.
9371         * INSTALL: Added information about the `doc' subdir
9373         * troff/troff.man: Minor fixes.
9375         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
9376         reordered options.
9378         * troff/input.cc (usage): Added missing `-ffam' to usage message.
9380         * Makefile.in (dist): groff-$(version).tar.gz must be removed
9381         also, otherwise it is included itself in another call of `make
9382         dist'.
9384         * groff/groff.cc (synopsis): Removed superfluous space.
9386         * PROJECTS, PROBLEMS, NEWS: Updated.
9388         * VERSION: Updated to 1.12beta.
9390         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
9392         * README: Updated: Included documentation about CVS repository,
9393         mailing lists, and daily snapshots.
9395         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
9397 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
9399         * tmac/tmac.an: If the tag didn't fit into the space that the
9400         macro `TP' specifies, the rest of the tag went into the space for
9401         the next line.
9403 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
9405         * grolj4/lj4.cc: Added duplex printing (option `-d').
9407         * grolj4/grolj4.man: Document duplex printing.
9409 1999-09-12  Werner LEMBERG  <wl@gnu.org>
9411         * doc/Makefile (pic.ps): Fixed rule which caused problems with
9412         non-GNUish sed programs.
9414         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
9415         definition.
9417         * configure.in (LIBS): Added `-lc'
9419         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
9421         * pic/tex.cc (solid_arc): Casting M_PI to double.
9423         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
9425         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
9426         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
9427         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
9429         * groff/groff_man.man: New file.  This manual page was originally
9430         written for the Debian GNU/Linux system by Susan G. Kleinmann
9431         <sgk@debian.org>.
9433         * eqn/list.cc (list_box::compute_metrics,
9434         list_box::compute_sublist_width): Removed variable declaration to
9435         avoid shadowing warnings.
9437         * grops/psrm.cc (resource_manager::process_file): Ditto.
9439         * tfmtodit/tfmtodit.cc (main): Ditto.
9441         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
9442         to avoid shadowing warnings.
9444         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
9445         shadowing loop variable.
9447         * groff/groff.man, troff/troff.man: Added doc about grohtml.
9449 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
9451         New grohtml frontend to convert groff input to html.
9453         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
9455         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
9457         * tmac/eqnrc: Added html device.
9459         * tmac/tmac.html: New file.
9461         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
9462         (troff_output::start_picture, troff_output::finish_picture),
9463         tbl/main.cc (process_input_file):
9464         Surrounded output with `graphics_start' and `graphics_end' so that
9465         the html driver can identify non-text portions.
9467         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
9468         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
9469         grotty/tty.ps (tty_printer::set_char): Additional parameter
9470         `name'.
9472         * include/printer.h: Class printer: New function
9473         set_char_and_width; new variables (is_char_named, is_named_set,
9474         named_command, named_char_s, named_char_n) to hold information
9475         about named characters -- needed by the html driver.
9477         * libdriver/printer.cc (printer::set_ascii_char,
9478         printer::set_special_char): Use set_char_and_width.
9480         * devhtml/*: New device files for html driver.
9482         * grohtml/*: New driver grohtml.
9484 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
9486         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
9487         default strings.
9489 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
9491         * libgroff/string.cc (search): Small fix to test against NULL
9492         pointer.
9494 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
9496         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
9497         \b'abc') were stacked in reverse order when processed in a
9498         diversion.
9500         * troff/node.h: Added `*last' to struct `node' to make the above
9501         fix work.
9503         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
9504         The default scale for the 'f' and 't' graphics functions were 'm'
9505         rather than 'u' (i.e., no scaling).
9507 1999-09-11  Peter Miller  <peterm@jna.com.au>
9509         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
9510         do_file), soelim/soelim.man: Added `-I file' option to soelim,
9511         defining include paths.
9513         * soelim/soelim.cc (include_path_append): New function.
9515 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
9517         * tbl/main.cc (process_options): Unix (at least Documenter's
9518         Workbench) tbl allows arbitrary non-alpha characters between
9519         options.
9521 1999-09-11  Paul Eggert  <eggert@twinsun.com>
9523         Y2k fixes.  Don't assume that the current year precedes 2000.
9525         * doc/meref.me: Add \n(y2, \n(y4.
9527         * tmac/doc-common (Yr): New number register.
9528         (Dd): Don't assume current year precedes 2000.
9530         * tmac/tmac.e (td): Likewise.
9531         (y2, y4): New number registers.
9533         * pic/pic.man: Update reference for pic paper to May, 1991
9534         version.
9536 1999-09-11  Werner LEMBERG  <wl@gnu.org>
9538         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9539         Removed quotation marks which prevented correct expansion of
9540         $(tmac_wrap).
9542         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
9544 1999-09-10  Werner LEMBERG  <wl@gnu.org>
9546         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
9547         `config.cache'.
9549         * Removed configure.old.
9551 1999-08-31  Werner LEMBERG  <wl@gnu.org>
9553         * VERSION: Updated to 1.11.1
9555 1999-05-27  Werner LEMBERG  <wl@gnu.org>
9557         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
9559         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9560         added quotations around $(tmac_wrap) to avoid syntax error if
9561         variable is empty.
9563         * configure: Newly generated using autoconf 2.13.
9565         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
9567 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
9569         * README, PROJECTS, NEWS, INSTALL, VERSION, 
9570         doc/Makefile. doc/pic.ms, groff/groff.man:
9571         Prepare for 1.11 release.  No code changes.
9572         Documentation for pic added (doc/pic.ms).
9574 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
9576         * Version 1.10 released.
9578 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
9580         * afmtodit/afmtodit.pl: Avoid comment on first line.
9582 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
9584         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
9585         * configure.in: Call it.
9587         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
9588         (distfiles): Doesn't depend on config.log or config.cache.
9590 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
9592         * grog/grog.sh: Use print "" rather than print in END rule.
9594 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
9596         * tbl/main.cc (process_data): Don't give error for excess data
9597         entries that are comments.
9599 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
9601         * tbl/main.cc (process_data): Fix case where new for-scope rules
9602         silently change meaning of code.
9604 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
9606         * troff/env.cc (hyphenate): Loop over all consecutive sequences
9607         of non-zero hyphenation codes.
9609 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
9611         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
9613 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
9615         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
9617 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
9619         * tmac/tmac.andoc: Make it work in compatibility mode.
9621         * refer/token.h (token_info::is_range_sep): New function.
9622         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
9623         * refer/ref.cc (reference::output): More sophisticated check for
9624         multiple pages.
9626         * devps/prologue.ps (MANUAL): New procedure.
9627         * grops/ps.cc (main): New -m option.
9628         (usage): Include -m.
9629         (ps_printer::~ps_printer): Implement -m.
9631         * aclocal.m4 (GROFF_G): New macro.
9632         * configure.in: Call it.
9633         * Makefile.in (g): Provided by configure.
9635         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
9637         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
9638         translations.
9640         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
9641         (tmac_m, tmac_s): Deleted.
9642         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
9643         tmac_s_prefix): New variables.
9644         (MDEFINES): Change accordingly.
9645         * Makefile.comm (.man.n): Use new TMAC_* variables.
9646         * configure.in (GROFF_TMAC): Call.
9647         * aclocal.m4 (GROFF_TMAC): Define.
9648         * tmac/Makefile.sub (stamp_wrap): New target.
9649         (install_data, uninstall_sub): Handle macro wrapping.
9651 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
9653         * tbl/main.cc (main): Ignore -T option.
9655 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
9657         * devlj4/generate/special.map: Add definition of \(nb.
9659         * tmac/tmac.dvi: Add definition of \(nb.
9661         * troff/dictionary.c (dictionary::dictionary): association::v gets
9662         initialized by association::association.
9664         * tmac/Makefile.sub: Avoid using temporary files when installing.
9666         * troff/env.cc (environment::set_font): Make bad font number a
9667         warning.
9669         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
9671         * Makefile.in (datadir): Use share rather than lib.
9673         * groff/groff.cc (basename): Rename to xbasename.
9675 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
9677         * Makefile (CCLIBS): Don't use.
9678         * Makefile.ccpg: Likewise.
9680         * acgroff.m4: Rename to...
9681         * aclocal.m4: Modify extensively for autoconf 2.
9682         * configure.in: Likewise.
9683         * Makefile.in: Likewise.
9685         * groff/pipeline.c (const): Declare as empty if __STDC__ not
9686         defined.
9687         (xstrsignal): Check for definition of NSIG. Conditionalize
9688         on SYS_SIGLIST_DECLARED.  Make return type const.
9690 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
9692         * troff/input.cc (interpolate_macro): Rephrase missing space
9693         warning.
9695 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
9697         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
9698         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
9699         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
9700         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9701         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
9702         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
9703         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
9704         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
9705         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
9706         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
9707         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
9708         Fix 'for' scoping.
9710 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
9712         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
9713         string_iterator.
9714         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
9715         file.
9716         (macro_iterator::macro_iterator): Add additional argument.
9718 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
9720         * troff/div.cc (vertical_size::vertical_size): In place of integer
9721         specifying line spacing use cunits specifying post vertical
9722         space.
9723         (macro_diversion::output, top_level_diversion::output): Likewise.
9724         * troff/div.h: Change declarations accordingly.
9725         * troff/env.cc (pending_output_line): Replace ls field by post_vs
9726         field.
9727         (pending_output_line::pending_output_line,
9728         pending_output_line::output, environment::output,
9729         environment::output_line, environment::output_title,
9730         environment::hyphenate_line):  In place of
9731         integer specifying line spacing use cunits specifying post vertical
9732         space.
9733         (environment::environment): Add post_vertical_spacing and
9734         prev_post_vertical_spacing arguments.
9735         (environment::get_post_vertical_spacing): New function.
9736         (environment::total_post_vertical_spacing): New function.
9737         (environment::post_vertical_spacing): New function.
9738         (init_env_requests): Initialize pvs request and .pvs register.
9739         * troff/env.h: Change declarations.
9741 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
9743         * tmac/tmac.pspic: Immediately remove the temporary file.
9745 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
9747         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
9748         height is specified.
9750 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
9752         * tbl/table.c (struct vertical rule, class table_entry): Use int
9753         not short for start_row and end_row.
9755 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
9757         * troff/input.cc (trapping_blank_line, blank_line_macro): New
9758         functions.
9759         (diverted_space_node::reread, process_input_stack): Call
9760         trapping_blank_line() rather than blank_line().
9761         (init_input_requests): Bind "blm" to blank_line_macro().
9763         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
9765 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
9767         * troff/env.cc (environment::possibly_break_line): Require that
9768         width total excluding width of final space node be greater than
9769         the target text length.
9771 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
9773         * troff/node.cc (kern_pair_node::vertical_extent): New function.
9775 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
9777         * troff/node.cc (charinfo_node): New class.
9778         (glyph_node, composite_node): Derive from charinfo_node.  Change
9779         member functions accordingly.
9781 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
9783         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
9785 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
9787         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
9789         * devps/generate/textmap (notsubset): Add.
9791         * tmac/tmac.a4: New file.
9793 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
9795         * pic/main.cc (had_parse_error): New variable.
9796         (do_picture, do_whole_file): Set had_parse_error if yyparse()
9797         returns non-zero.
9798         (main): Return 1 if had_parse_error is true.
9800 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
9802         * grolj4/lj4.cc (main): Avoid use of strtoul.
9804 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
9806         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
9807         iso_8859_1 or $LESSCHARSET is latin1.
9809 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
9811         * hpftodit: New directory.
9812         * Makefile.in (CCPROGDIRS): Add hpftodit.
9813         * devlj4/generate: New directory.
9815 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
9817         * configure.in: Don't use AC_VFORK.
9818         * groff/pipeline.c (run_pipeline): Use fork() always.
9820 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
9822         * grops/ps.cc (main): Use %1 not %s in error message for -w.
9824         * Makefile.in (CCPROGDIRS): Add grolj4.
9825         (DEVDIRS): Add devlj4.
9826         * grolj4, devlj4: New directories.
9827         * tmac/troffrc: Handle lj4.
9828         * tmac/tmac.lj4: New file.
9830 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
9832         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
9834 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
9836         * troff/input.cc (do_if_request): At end of second string, switch
9837         environments before getting next token.
9839 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
9841         * devps/psstrip.sed: Split rule that strips whitespace on either
9842         side of delimiters.
9844 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
9846         * troff/node.h (font_family::make_definition): Add return value to
9847         declaration.  * troff/symbol.h (symbol::operator==,
9848         symbol::operator!=): Likewise.
9850 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
9852         * groff/groff.cc (main, help, synopsis): Handle -S.
9853         (possible_command::insert_arg): New function.
9855         * tmac/tmac.safer: New file.
9856         * tmac/msafer.man: New file.
9857         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
9859 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
9861         * pic/pic.h, pic/main.cc (safer_flag): New variable.
9862         * pic/pic.y (placeless_element): Avoid unsafe operations if
9863         `safer_flag' is set.
9864         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
9866 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
9868         * eqn/lex.cc (get_token): Put call to add_context() in block to
9869         work around Sun C++ 4.0 bug.
9871         * include/stringclass.h (operator +): Use ?: instead of `if' to
9872         work around Sun C++ 4.0 bug.
9874 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
9876         * tbl/main.cc (process_format): Accept - as a synonym for the _
9877         key letter.
9879         * libbib/index.cc (minus_one): Don't declare as const.
9881 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
9883         * troff/input.cc (get_char_for_escape_name): Push back a newline.
9885 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
9887         * troff/input.cc (write_macro_request): New function.
9888         (init_input_requests): Bind write_macro_request to writem.
9890 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
9892         * tmac/tmac.s (@EN): Turn filling back on even if there was no
9893         equation.
9895         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
9897         * tmac/tmac.s (@TS): Renamed from TS.
9898         (TS): Call LP then TS again.
9899         (cov*ab-init): Alias @TS to TS.
9901         * tmac/tmac.s: Allow QP or RS to initialize.
9903         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
9904         Move initializations of PS and LL here.
9905         (par@init): Don't initialize HY.  Avoid changing environment 0.
9906         (par*env-init): Don't all par@reset.
9908 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
9910         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
9912 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
9914         * Makefile.in (MDEFINES): Add LDFLAGS.
9915         (LDFLAGS): Add definition line.
9917 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
9919         * troff/input.cc (get_optional_char): Split off error check into...
9920         (check_missing_character): New function.
9921         * troff/token.h: Declare it.
9922         * troff/env.cc (margin_character): Don't call get_optional_char.
9923         Only call tok.next() after making the node.
9925         * include/lib.h (getopt): Make 2nd argument char *const *.
9927 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
9929         * nroff/conftest.sh: Deleted.
9931 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
9933         * pic/make-dos-dist: Deleted.
9935 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
9937         * devps/psstrip.sed: Strip comments before stripping trailing
9938         white space.
9940 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
9942         * Version 1.09 released.
9944 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
9946         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
9948 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
9950         * libgroff/font.cc (font::load_desc): Fix typo in error message.
9952 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
9954         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
9955         about returning without a value.
9957         * troff/charinfo.h (charinfo::get_special_translation): Cast
9958         TRANSLATE_NONE to int.
9960         * refer/token.cc (lookup_token, store_token): Remove bogus loop
9961         test.  Fix test so that it works with n unsigned.
9963         * pic/pic.y (defaults_table): Fully bracket initializer.
9964         * pic/lex.cc (lookup_keyword): Likewise.
9965         * eqn/lex.cc (token_table, def_table): Likewise.
9966         * eqn/box.cc (param_table): Likewise.
9967         * troff/input.cc (warning_table): Likewise.
9968         * libgroff/font.cc (table): Likewise.
9969         * grops/ps.cc (ps_printer::special): Likewise.
9970         * grops/psrm.cc (resource_manager::process_file): Likewise.
9971         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
9972         * refer/command.cc (command_table): Likewise.
9973         * addftinfo/addftinfo.cc (param_table): Likewise.
9975         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
9976         about temp's being unused.
9977         (unused): New function.
9979         * groff/pipeline.cc: Declare c_fatal.
9981         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
9982         uchar.
9984         * libbib/index.cc (index_search_item::load): Prevent compiler
9985         warnings about fd_closer's being unused.
9986         (unused): New function.
9988 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
9990         * troff/input.cc (copy_mode_error): Make `prefix' static.
9991         Fix typo.
9993         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
9994         defined.
9995         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
9996         HAVE_CC_OSFCN_H and modify accordingly.
9998         * troff/input.cc (init_charset_table): radicalex overlaps
9999         horizontally.
10001         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
10002         udodo!hans@relay.NL.net).
10003         * groff/configure.in: Call it.
10005         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
10006         * groff/configure.in: Call it.
10007         * include/lib.h: Conditionalize declaration of pclose.
10009         * troff/div.cc (last_page_number): New global variable.
10010         (top_level_diversion::begin_page): Exit if we just printed the
10011         last page.
10012         * troff/div.h (last_page_number): Declare it.
10013         * troff/input.cc (parse_output_page_list): Set last_page_number.
10015         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
10016         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
10017         tmac/tmac.X: Likewise.
10018         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
10019         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
10021 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
10023         * tmac/doc-ditroff (hK): Remove groff specific code which
10024         prevented page-breaks between separate manual entries.  If this is
10025         the first page, don't set the page number to 1.
10027         * acgroff.m4 (GROFF_POSIX): New macro.
10028         * configure.in: Use it.
10030         * troff/node.cc (class real_output_file,
10031         real_output_file::real_output_file,
10032         real_output_file::~real_output_file): Conditionalize use of
10033         popen/pclose on POPEN_MISSING.
10034         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
10035         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
10036         (pipe_source): Similarily.
10038         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
10040         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
10041         presence of declarations by trying to compile example with
10042         conflicting declarations.  (gcc only gives a warning for missing
10043         declarations.)
10045 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
10047         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
10048         (from Ulrich Lauther).
10050 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
10052         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
10054 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
10056         * indxbib/indxbib.cc (write_hash_table): Add code for case where
10057         pointers and ints have different sizes.
10059 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
10061         * tmac/tmac.s (par*env-init): Call par@reset.
10063 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
10065         * tmac/tmac.s (@IP): Switch to a new environment when diverting
10066         tag.
10067         (par*push-tag-env, par*pop-tag-env): New macros.
10069 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
10071         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
10072         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
10074         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
10075         comment.  Include <time.h>.
10077 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
10079         * grops/ps.cc (is_small_h, is_small_v): Deleted.
10080         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
10081         lines.
10083 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
10085         * troff/input.cc (read_request): Only print a prompt if reading
10086         from the terminal.  Also clearerr on EOF if reading from the
10087         terminal.  Declare isatty.
10089 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
10091         * refer/label.y: Rename map_t to map_func and extractor_t to
10092         extractor_func.
10094 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
10096         * include/assert.h: Don't use volatile.
10097         * libgroff/assert.cc: Likewise.
10099 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
10101         * troff/input.cc (abort_request): Look at character in tok before
10102         calling get_copy().
10104 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
10106         * troff/troff.h (NO_RETURN): Deleted.
10107         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
10108         * troff/input.cc (exit_troff): Likewise
10110         * Makefile.in: Remove `Making ...' messages since GNU make now
10111         gives these. 
10113         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
10115 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
10117         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
10118         to constant 1 inch.
10120 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
10122         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
10124 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
10126         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
10127         MARK_REG if there was no left delimiter.
10129 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
10131         * pic/troff.cc (troff_output::text): Set line thickness to
10132         relative before outputting text.
10134         * tmac/tmac.e (@k): Don't zero ?T.
10135         ((z): Likewise.
10137 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
10139         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
10141 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
10143         * troff/input.cc (decode_args): Warn about unquoted tabs (from
10144         Paul Eggert).
10146 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
10148         * troff/input.cc (ignoring): New variable.
10149         (ignore): Set ignoring during call to do_define_macro.
10150         (do_define_macro): Clear ignoring before interpolating terminating
10151         macro.
10152         (copy_mode_error): New function.
10153         (get_char_for_escape_name, read_long_escape_name,
10154         interpolate_arg): Use copy_mode_error.
10155         (warning_table): Add WARN_IG.
10156         * troff/troff.h (WARN_IG): Declare.
10157         (WARN_TOTAL): Change accordingly.
10159         * groff/pipeline.c (strsignal): Rename to xstrsignal.
10160         * groff/groff.cc (strsignal): Delete declaration.
10162 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
10164         * troff/div.cc (page_offset): Use 'm' as default scaling.
10166 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
10168         * nroff/nroff.sh: Ignore -u.
10170 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
10172         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
10174 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
10176         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
10177         drawing box.
10178         (B2): With -Tascii, leave additional vertical space before
10179         and after. Ensure that the left and right indent is restored to
10180         what it was even if the point size changes.  Don't call
10181         par@finish. Change the indent, line length and title length
10182         directly.  With -Tascii, make the width of the box 1n less.
10183         (B1): Remember 1n at the current point size.  Don't call
10184         par@reset.  Change the indent, line length and title length
10185         directly.  Ensure that the temporary indent is preserved.
10186         (par*box-mark-top): Turn off no spacing mode.
10188 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
10190         * Makefile.in (dist): Use .gz suffix.
10192 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
10194         * troff/input.cc (main): Add return 0.
10195         * pic/main.cc (main): Use return instead of exit.
10196         * tbl/main.cc (main): Likewise.
10197         * eqn/main.cc (main): Likewise.
10198         * grops/ps.cc (main): Likewise.
10199         * grotty/tty.cc (main): Likewise.
10200         * groff/groff.cc (main): Likewise.
10201         * grodvi/dvi.cc (main): Likewise.
10202         * refer/refer.cc (main): Likewise.
10203         * indxbib/indxbib.cc (main): Likewise.
10204         * lkbib/lkbib.cc (main): Likewise.
10205         * soelim/soelim.cc (main): Likewise.
10206         * addftinfo/addftinfo.cc (main): Likewise.
10207         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
10208         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
10210         * troff/token.h (process_input_stack): Don't declare as static.
10211         * troff/input.cc: Likewise.
10213         * troff/node.c (invalidate_fontno): Make it a static member of
10214         class font_family.  Change callers.
10215         * troff/node.c: Change declaration.
10217         * tbl/main.cc (struct input_entry_format): Add explicit public
10218         specifier.
10219         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
10220         struct double_hline_stuff): Likewise.
10221         * tbl/table.h (struct entry_format): Likewise.
10222         * pic/object.h (struct saved_state): Likewise.
10224         * include/stringclass.h: Add forward declarations of friend
10225         functions that are later declared as inline.  Don't include inline
10226         specifier in friend declaration.
10228         * libgroff/lib.h: Declare popen and pclose.
10229         * acgroff.m4 (GROFF_POPEN): New macro.
10230         * configure.in: Call it.
10232         * include/lib.h (PI): New constant. Undef first if necessary.
10233         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
10234         * grops/ps.cc (degrees, radians): Likewise.
10235         * libgroff/font.cc (font::get_skew): Likewise.
10237         * grops/ps.cc (is_ascii): New function.
10238         (ps_output::put_string): Use is_ascii.  Use csprint rather than
10239         isprint.
10240         (ps_printer::define_encoding): Use csspace.
10241         * libgroff/strtol.c (ISASCII): New macro.
10242         (strtol): Cast arguments to is*() and tolower() to unsigned char.
10243         Use ISASCII rather than isascii.
10244         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
10245         * libgroff/cset.cc: Likewise.
10246         * libdriver/input.cc: Include cset.h.
10247         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
10248         than isdigit().
10250         * refer/refer.cc (main): Use %ld rather than %d for longs.
10252         * libbib/index.cc (index_search_item_iterator::get_tag): Use
10253         S_ISREG macro.
10255         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
10257 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
10259         * troff/input.cc (hyphenation_code): Skip white space between
10260         char/code pairs.
10262 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
10264         * tbl/table.h (table::entry_list_tailp): New member.
10265         (table::table): Initialize it.
10266         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
10267         behaviour.
10269 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
10271         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
10272         with negative horizontal positions. Remove casts of glyph::hpos to
10273         int.
10274         (USHRT_MAX): Delete definition.
10275         (SHRT_MAX, SHRT_MIN): New definitions.
10276         (glyph::hpos): Change type to short.
10277         (tty_printer::end_page): Output multiple backspaces if necessary.
10278          Remove casts of glyph::hpos to int.
10279         
10280 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
10282         * tmac/tmac.s (@RT): New definition.
10284 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
10286         * refer/refer.cc (do_file): Make sure current_filename is set when
10287         filename is "-".
10289         * pic/common.cc (common_output::dot_line): Handle zero length
10290         lines.
10292 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
10294         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
10295         (par@init): Initialize \n[HY].
10297 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
10299         * troff/dictionary.cc (dictionary::remove): Continue when
10300         r < j < i.
10302 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
10304         * Makefile.com (.y.cc): Avoid ending up with two versions of
10305         $(YTABH).
10307 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
10309         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
10310         (\(,C): Likewise.  Also fix typo.
10312 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
10314         * lib.h: Delete extraneous semi-colon.
10316         * Add pso request: `so' from a pipe.
10317         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
10318         (file_iterator::close): New function.
10319         (file_iterator::~file_iterator, file_iterator::next_file): Use
10320         file_iterator::close.
10321         (file_iterator::backtrace): Say `process' rather than `file' when
10322         the stream is popened.
10323         (pipe_source): New function.
10324         (init_input_requests): Bind ".pso" to pipe_source.
10326 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
10328         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
10330         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
10331         digits in lower case.
10333 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
10335         * Version 1.08 released.
10337         * Makefile.in (dist): Insert || true after ln -s commands that
10338         might fail.
10340         * mm: Update to mm 1.16.
10342         * acgroff.m4 (GROFF_CSH_HACK): New macro.
10343         * configure.in: Call GROFF_CSH_HACK.  Substitute for
10344         SH_SCRIPT_SED_CMD.
10345         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
10346         MDEFINES.
10347         * nroff/Makefile.sub (nroff): New target.
10348         (install_data): Install nroff.
10349         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
10350         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
10352 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
10354         * eqn/Makefile.sub (neqn): Add chmod +x.
10356         * grog/Makefile.sub (grog): Remove spurious semi-colon.
10358 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
10360         * troff/input.cc (string_iterator::string_iterator()): Initialize
10361         lineno and count.
10363 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
10365         * troff/div.cc (macro_diversion::space,
10366         top_level_diversion::space): Don't set high_water_mark.
10367         (macro_diversion::output, top_level_diversion::output): Don't
10368         include post line space in high water mark.
10370 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
10372         * eqn/eqn.y: Don't define YYDEBUG.
10373         * pic/pic.y: Likewise.
10375 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
10377         * tmac/tmac.e ([3): Add space after comma following editors.
10378         Change double spaces to single spaces.
10379         ([4): Change double spaces to single spaces.
10381         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
10382         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
10383         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
10384         after %!PS-Adobe- (for Newsprint).
10386         * troff/div.cc (top_level_diversion::begin_page): When
10387         before_first_page is 1, set page_number to 1.
10389 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
10391         * eqn/box.cc (box::top_level): Protect equation with \&.
10393 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
10395         * groff/groff.cc (possible_command::set_name): Delete old name.
10397         * groff/groff.cc (possible_command::~possible_command): Use
10398         a_delete.
10400         * troff/node.cc (troff_output_file::begun_page): New member.
10401         (troff_output_file::troff_output_file): Initialize it.
10402         (troff_output_file::really_begin_page): Only output V command if a
10403         page has been begun.
10405         * pic/pic.y (placeless_element): Delete argument to PRINT after
10406         use.
10408 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
10410         * Make wrapman work.
10411         * troff/div.h (class top_level_diversion): Replace
10412         first_page_begun by before_first_page (with opposite sense).
10413         * Change first_page_begun to before_first_page inverting sense.
10414         * troff/div.cc (class nl_reg): New class.
10415         (init_div_requests): Use class nl_reg for \n(nl.
10416         (top_level_diversion::begin_page): Don't call
10417         output_file::begin_page if before_first_page is 2;
10418         reset before_first_page afterwards.  If have_next_page_number is
10419         false, then always increment page_number.
10420         * tmac/tmac.an: Set traps within TH rather than at the top-level.
10421         Restore compatibility mode after loading, and then disable
10422         compatibility mode in TH.
10424 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
10426         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
10427         past last line.
10428         * troff/node.h (output_file::trailer): Declare.
10429         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
10430         * troff/node.cc (output_file::trailer): New function.
10431         (troff_output_file::~troff_output_file): Move most code into...
10432         (troff_output_file::trailer): New function.
10433         (class troff_output_file): Delete page_length member. Declare
10434         trailer().
10435         (troff_output_file::really_begin_page): Use current page length
10436         for final V command.
10438         * tbl/main.cc (struct options): New decimal_point_char member.
10439         (options::options): Initialize this.
10440         (process_options): Implement decimalpoint option.
10441         (process_data): Pass decimal_point_char option to table::table.
10442         * tbl/table.h (class table): New decimal_point_char member.
10443         (table::table): Add additional argument.
10444         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
10445         second argument specifying decimal point character.  Use this
10446         instead of '.'.
10447         (table::table): Initialize decimal_point_char.
10448         (table::add_entry): Change call to find_dot.
10450         * troff/input.cc (get_copy, token::next): Implement \V.
10451         (interpolate_environment_variable): New function.
10453 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
10455         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
10456         * pic/pic.y: Likewise.
10458         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
10459         Add casts to int.
10460         * refer/ref.cc (reference::insert_field, reference::delete_field):
10461         Likewise.
10462         * troff/number.cc (parse_term): Likewise.
10464         * acgroff.m4 (GROFF_PROG_YACC): New macro.
10465         * configure.in: Use GROFF_PROG_YACC.
10467         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
10468         and g++.
10469         * Makefile.in (OPTIMIZE): New define.
10470         (DEBUG): Empty by default.
10471         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
10473         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
10474         (GROFF_ARRAY_DELETE): Likewise.
10475         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
10477         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
10479         * devps/psstrip.sed: Use different delimiter on last line (so that
10480         it works with BSD 4.4 sed.)
10482 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
10484         * devps/psstrip.sed: Delete comments.
10486         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
10487         optind, opterr, optarg.
10488         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
10489         opterr, optarg.
10491 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
10493         * Makefile.in (check): Dummy target.
10495 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
10497         * Version 1.07 released.
10499         * Integrate mm 1.11.
10501         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
10502         where start_col was meant.
10504 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
10506         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
10508 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
10510         * troff/input.cc (token::next): Make \z\o'...' and similar things
10511         work.
10513         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
10514         constants.
10515         (environment): Add margin_character_flags member.
10516         * env.cc (environment::environment(symbol),
10517         environment::environment(const environment *): Initialize
10518         margin_character_flags.
10519         (margin_character): Rewrite.
10520         (environment::output_line): Add a margin character if
10521         margin_character_flags is non-zero.  Turn off the
10522         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
10523         zero, use margin_character_node without copying and then set
10524         margin_character_node to 0.
10526         * devps/DESC.in: Change minimum size to 1000.
10528 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
10530         * troff/symbol.h (symbol::hash): Change return type to unsigned
10531         long.
10532         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
10533         Add casts to int.
10535         * test-groff: Use -r rather than -x.
10537         * grops/psfig.diff: Include in distribution again.
10539 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
10541         * Makefile.in (dist): Use gzip.
10543 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
10545         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
10546         unistd.h as well as in stdlib.h.
10547         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
10548         defined; otherwise include <sys/types.h> and <unistd.h> if
10549         UNISTD_H_DECLARES_GETOPT is defined.
10551         * configure.in: use builtin(include, ... rather than include(...
10552         * configure: Regenerate with autoconf 1.3.
10554         * libdriver/print.cc (printer::adjust_arc_center): Use new
10555         algorithm suggested by Andy Fyfe.
10557         * libdriver/printer.cc (printer::adjust_arc_center): New function.
10558         * include/printer.h: Declare this.
10559         * grops/ps.cc (ps_printer::draw): Use it.
10560         * grodvi/dvi.cc (dvi_printer::draw): Use it.
10562 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
10564         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
10566 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
10568         * eqn/main.cc (main): Handle "eqn -".
10570 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
10572         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
10574         * mm: Integrate version 1.08.
10576         * pic/troff.cc (troff_output::finish_picture): Set
10577         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
10578         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
10579         if it's not defined. Check whether the register is non-zero rather
10580         than whether it's not defined.
10581         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
10583         * indxbib/indxbib.cc: Move all signal handling into...
10584         * indxbib/signal.c: New file.
10585         * configure.in: Call AC_RETSIGTYPE.
10587         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
10588         * configure.in: Call GROFF_STRUCT_EXCEPTION.
10589         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
10591         * troff/input.cc (token::token, token::operator=): Work round SGI
10592         C++ bug.
10593         * pic/object.cc (position::position): Likewise.
10595 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
10597         * pic/pic.h: Move declaration of hypot().
10599 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
10601         * pic/pic.h: Declare hypot().
10603         * pic/pic.h: Define M_PI if necessary.
10605 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
10607         * tmac/tmac.e (re): Add alternative version that doesn't use groff
10608         `.ta T' feature.
10610         * devps/prologue.ps (RE): Handle the possibility that the old font
10611         doesn't have a FontName entry.
10613 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
10615         * tmac/tmac.e (fam): Redefine to set family in environment 2.
10616         (@C): Use @fam not fam.
10618 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
10620         * lookbib/lookbib.cc (main): Change type of start to const char *.
10621         * lkbib/lkbib.cc (main): Likewise.
10623         * eqn/lex.cc (definition::definition): Don't use member
10624         initializer syntax for members of anonymous unions.
10626         * troff/input.cc (input_stack::backtrace): Change type of to const
10627         char *.
10629 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
10631         * include/stringclass.h (class string): Declare inline friend
10632         functions as inline in class declaration.
10633         * troff/hvunits.h (class hunits, class vunits): Likewise.
10634         * include/refid.h (class reference_id): Likewise
10635         * troff/troff.h (points_to_units(units), scale(units, double)):
10636         Delete declarations.
10637         * libdriver/input.cc (get_char): Delete declaration.
10638         * include/lib.h: Change 2nd argument of getopt from const char **
10639         to char **.
10640         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
10641         char **' before assigning to a `const char **'.
10642         * tbl/table.cc: Delete extra declarations of prints().
10644 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
10646         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
10647         char **' before assigning to a `const char **'.
10649         * libgroff/errarg.cc (errarg::errarg): Don't use member
10650         initializer syntax for members of anonymous unions.
10652 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
10654         * mm: Integrate version 1.07.
10656 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
10658         * troff/input.c (translate2): Rename to
10659         (translate_no_transparent).
10660         (init_input_requests): Rename tr2 to trnt.
10662 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
10664         * troff/charinfo.h (class charinfo): Add transparent_translate field.
10665         (charinfo::set_translation, charinfo::set_special_translation):
10666         Add second argument that specifies value for
10667         transparent_translate.
10668         (charinfo::get_translation, charinfo::get_special_translation):
10669         Add optional second argument that specifies whether translation is
10670         being used for transparent throughput.
10671         * troff/input.cc (charinfo::set_translation,
10672         charinfo::set_special_translation): Handle second argument.
10673         (charinfo::charinfo): Initialize transparent_translate.
10674         (translate): Split main part off into
10675         (do_translate): New function.  Pass argument saying whether
10676         translation applies to transparent throughput.
10677         (translate2): New request.
10678         (init_input_requests): Bind translate2 to `tr2'.
10680 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
10682         * tbl/table.h (class table): Add `nokeep' flag.
10683         * tbl/main.cc (process_options): Handle `nokeep' option.
10684         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
10685         table::do_bottom): Don't output keep/release macro definitions or
10686         calls when `nokeep' option has been specified.
10688 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
10690         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
10692 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
10694         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
10695         block_entry::divert, alphabetic_block_entry::divert): Add extra
10696         argument giving column separation.
10697         (table::compute_widths): Pass column separation to
10698         table_entry::divert().
10699         (block_entry::do_divert): If an entry spans multiple columns and a
10700         minimumum width has been specified for each column, then set the
10701         line length to the sum of the widths (plus possibly the column
10702         separations).
10704         * troff/input.cc (set_escape_char): Don't set the escape_char
10705         until after calling has_arg().
10707 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
10709         * tbl/table.cc (table::do_top): Add missing \s0 for double box
10710         case.
10712         * tbl/table.cc (table::print_double_hline): Avoid extra new line
10713         in case where r > nrows - 1.
10715         * tbl/table.cc (BODY_HEIGHT): Deleted.
10716         (LINE_SEP): New definition.
10717         (table::print_single_hline, table::print_double_hline,
10718         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
10719         table::do_row, table::do_top): Use LINE_SEP space before a line
10720         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
10722         * tbl/table.cc (text_entry::print_contents): New function.
10723         (text_string_name, right_text_string_name): Deleted.
10724         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
10725         (simple_text_entry::do_width, numeric_text_entry::do_width,
10726         alphabetic_text_entry::do_width): Don't store the contents of the
10727         entry in a string.
10728         (left_text_entry::simple_print, right_text_entry::simple_print,
10729         center_text_entry::simple_print,
10730         alphabetic_text_entry::simple_print,
10731         numeric_text_entry::simple_print): Print the entry directly
10732         instead of using the stored string.
10734 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
10736         * devps/Makefile: Strip PostScript files.
10737         * devps/prologue: Rename to...
10738         * devps/prologue.ps.
10739         * devps/psstrip.sed: New file.
10740         * devps/download: Use .pfa rather than .ps for installed versions
10741         of fonts.
10743 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
10745         * troff/env.cc (input_trap): Give a warning if the argument is out
10746         of range.
10748         * troff/env.cc (adjust): Treat negative argument as missing. Round
10749         argument > 5 down to 5.
10751         * troff/env.cc (center, right_justify): Make negative argument zero.
10753         * troff/div.cc (page_offset, vertical_position_traps): Treat
10754         invalid argument as missing.
10755         * troff/env.cc (line_spacing, line_length, title_length, indent,
10756         underline, hyphen_line_max_request, control_char,
10757         no_break_control_char, widow_control_request, adjust, input_trap,
10758         point_size): Likewise.
10759         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
10760         constant_space): Likewise.
10761         * troff/input.cc (compatible, shift, warn_request,
10762         set_escape_char): Likewise.
10764         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
10765         * tbl/table.cc (table::table): Likewise.
10767         * Makefile.dev (install_dev): depends on $(DEVFILES).
10769 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
10771         * devX75, devX75-12, devX100, devX100-12: New directories.
10772         * Makefile.in: Add these to DEVDIRS.
10774         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
10775         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
10776         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
10777         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
10778         targets.
10779         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
10780         (uninstall): New target.
10781         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
10782         uninstall_prog, uninstall_dev): New targets.
10784         * troff/div.cc (return_request): Treat an invalid argument as
10785         missing.
10787 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
10789         * tmac/tmac.e ((f): Set up the environment even when there's a
10790         current diversion.  Transperently throughput a call to @N.
10791         (@N): New macro.
10793 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
10795         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
10796         up to vertical resolution.
10798         * tbl/table.cc (table::do_row): Change row number after printing
10799         stuff list.
10801         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
10803 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
10805         * Rename CHANGES to NEWS.
10807 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
10809         * libgroff/new.cc (operator new): Avoid calling malloc(0).
10811 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
10813         * man.ultrix: Removed.
10815 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
10817         * Makefile.comm (extraclean): Delete files whose names begin with
10818         `='.
10820         * pic/troff.cc (troff_output::text): Fix typo in implementation of
10821         aligned text.
10823 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
10825         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
10826         * troff/div.cc (page_length, need_space, space_request): Treat
10827         invalid optional argument as missing.
10828         * troff/env.cc (number_lines): If the first argument is present
10829         but not a number, turn on line numbering, don't change the next
10830         line number and parse the remaining arguments.
10832         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
10834 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
10836         * eqn/box.h: Change declaration accordingly.
10837         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
10838         the specified size was bad but don't give an error.  Check for
10839         overflow.
10840         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
10841         * eqn/lex (do_size): Likewise.
10843 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
10845         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
10846         compatible headers.
10848 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
10850         * tbl/table.cc (table::init_output): Improve error message when
10851         table won't fit on one page.
10853 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
10855         * pic/troff.cc (troff_output::start_picture): Generate line
10856         containing a horizontal motion equal to the width of the picture.
10858         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
10859         using GROFF_COMMAND_PREFIX environment variable.
10861 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
10863         * mdate.sh: Use $NF rather than $(NF).
10865 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
10867         * pic/main.cc (main):  Use %1 not %c in argument to warning.
10869         * eqn/main.cc (main): Output code to check that geqn was given the
10870         correct -T option.
10872 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
10874         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
10875         `ln -s ../Makefile .; make; rm -f Makefile'.
10877         * troff/hyphen: Rename to...
10878         * troff/hyphen.us:
10879         * troff/input.cc (main): Delete -H option. Don't call
10880         read_hyphen_file().
10881         * troff/env.cc: Include searchpath.h and macropath.h.
10882         (exception_dictionary): Deleted.
10883         (ht): Deleted.
10884         (read_hyphen_file): Deleted.
10885         (hyphenation_language): New struct.
10886         (class trie, class hyphen_trie): Move declarations up.
10887         (trie_node::~trie_node): Deleted.
10888         (trie::delete_trie_node): New function.
10889         (trie::do_delete): New pure virtual function.
10890         (hyphen_trie::do_delete): New function.
10891         (trie::~trie): New function.
10892         (hyphen_trie::~hyphen_trie): New function.
10893         (trie::clear): No need to chcek that tp is not 0.
10894         (current_language, language_dictionary): New variables.
10895         (hyphen_word): Give an error if no current language.  Use
10896         exceptions dictionary in current language.
10897         (hyphen_trie::read_patterns_file): Find file using macro_path.
10898         Allow comments (starting with %) in patterns file.  Don't make it
10899         a fatal error if the file can't be found.
10900         (hyphenate): Return if no current language.  Get the exceptions
10901         dictionary and the hyphenation patterns from the current language.
10902         (set_hyphenation_language): New variable.
10903         (hyphenation_patterns_file): New function.
10904         (hyphenation_language_reg): New class.
10905         (hyphenation_language_reg::get_string): New function.
10906         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
10907         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
10908         register.
10909         * groff/groff.cc (main, help, synopsis): Delete -H option.
10910         * include/Makefile.sub: Don't define HYPHENFILE.
10911         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
10912         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
10913         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
10914         hyphenation patterns.
10916 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
10918         * eqn/neqn.sh: New file.
10919         * eqn/Makefile.sub: Handle neqn.sh.
10921         * eqn/eqn.h: Declare `nroff' variable.
10922         * eqn/box.cc (param_table): Add `nroff' param.
10923         (nroff): Define it.
10924         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
10925         variable.
10926         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
10928         * troff/troff.h (WARN_FONT): New warning.
10929         (WARN_TOTAL): Change accordingly.
10930         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
10931         (warning_table): Add WARN_FONT.
10932         * troff/node.cc (mount_font_no_translate): Pass argument to
10933         font::load_font.  If this is non-zero, give a warning.
10934         Don't give an error message when accessing a font that has already
10935         been found to be invalid.
10936         * include/font.h (font::load, font::load_font): Add additional
10937         optional argument which suppresses error message if the font is
10938         not found.
10939         * libgroff/font.cc (font::load_font): Handle additional argument.
10940         (font::load): Add additional argument. If this is non-null, set it
10941         to 1 and don't give error message.
10943         * include/printer.h (printer::end_page): Add argument giving
10944         length of page.
10945         * libdriver/input.cc (do_file): Pass this.
10946         * grops/ps.cc (ps_printer::end_page): Add argument.
10947         * grodvi/dvi.cc (dvi_printer::end_page,
10948         draw_dvi_printer::end_page): Add argument.
10949         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
10950         columns_per_page members. New member nlines.
10951         (DEFAULT_LINES_PER_PAGE): Deleted.
10952         (tty_printer::tty_printer): Don't compute lines_per_page from
10953         font::paperlength. Don't compute columns_per_page from
10954         font::paperwidth.
10955         (tty_printer::add_char): Don't check horizontal position against
10956         columns_per_page. Grow glyphs vector if neccessary.
10957         (tty_printer::end_page): Add argument giving page_length in units.
10958         Discard lines past end of page.
10960 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
10962         * tmac/tmac.tty-char: Fix definition of \(/l.
10964         * tmac/tmac.X: Define \(en.
10966 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
10968         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
10969         lpq, then use lp rather than lpr.
10971         * tmac/tmac.s (par@reset): Don't call `ad'.
10972         (par*env-init): Call `ad'.
10974 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
10976         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
10977         date.
10979         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
10980         * indxbib/indxbib.cc: Likewise.
10982 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
10984         * libgroff/putenv.c: New file.
10985         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
10986         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
10987         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
10988         stdlib.h with AC_HAVE_HEADERS.
10990 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
10992         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
10993         does not exist.
10995 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
10997         * eqn/box.cc (gsize): Make it an int.
10998         (set_gsize): Parse argument handling increment or decrement.
10999         (box::top_level): Convert gsize to a string.
11001         * troff/input.cc (exit_troff): Make buf unsigned char [].
11002         Call to make_temp_iterator casts buf to char*.
11004         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
11006         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
11007         * Makefile.cpg (depend.temp): Likewise.
11009         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
11011         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
11013 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
11015         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
11017 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
11019         * Version 1.06 released.
11021         * Integrate mm 1.04.
11023 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
11025         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
11027 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
11029         * afmtodit/afmtodit.pl: Add -n option that disables generation of
11030         ligatures command.
11031         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
11032         afmtodit. Regenerate.
11034         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
11035         @f back past the current position.
11037         * tmac/tmac.e: Change calls to @R so that comments are not part of
11038         arguments.
11040 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
11042         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
11044         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
11045         check that we can link a call to a function declared in <stdio.h>.
11046         (GROFF_UNISTD_H): New macro.
11047         * configure.in: Call it.
11048         * Makefile.in: Document it.
11049         * include/posix.h: New file.
11050         * troff/troff.h: Don't include <osfcn.h>
11051         * troff/input.cc: Include posix.h.
11052         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
11053         osfcn.h.
11054         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
11055         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
11056         <fcntl.h>.
11057         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
11058         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
11059         * libbib/search.cc (O_RDONLY): Delete definition.
11060         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
11061         Don't include <osfcn.h>.
11063         * acgroff.m4 (GROFF_TIME_T): New macro.
11064         * configure.in: Call it.
11065         * Makefile.in: Document it.
11067         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
11068         * configure.in: Call it.
11069         * Makefile.in: Document -DTRADITIONAL_CPP.
11070         * include/ptable.h: Don't include generic.h.
11071         (name2): Define it.
11073         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
11074         Afterwards remove [T1 and [T2.
11075         (ref*spec!0, ref*spec!2): Use T1 rather than T.
11076         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
11077         (ref*add-T2): Renamed from ref*add-T.
11078         (ref*add-T1): New macro.
11080 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
11082         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
11084         * libbib/index.cc: Include <fcntl.h>.
11085         (O_RDONLY): Define if necessary.
11086         (make_index_search_item, index_search_item_iterator::get_tag,
11087         index_search_item::check_files): Use O_RDONLY.
11088         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
11089         (O_RDONLY): Define if necessary.
11090         (search_list::add_file): Use O_RDONLY.
11091         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
11092         <sys/stat.h>.
11093         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
11094         (main): Use these.
11096         * libbib/index.cc (S_ISREG): Define it if necessary.
11097         (index_search_item::load): Use S_ISREG.
11099         * include/driver.h: Include <errno.h>.
11101 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
11103         * eqn/box.cc (body_height): Increase default value to 85.
11104         (body_depth): Increase default value to 35.
11106 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
11108         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
11109         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
11110         protected from expansion with \E.
11112         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
11114         * Makefile (Makefile): New target.
11116         * Makefile.sub (configure, distfiles): New targets.
11118         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
11119         construct.
11121 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
11123         * eqn/box.cc (param_table): Add body_height and body_depth.
11125         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
11127 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
11129         * psbb/Makefile.sub: Don't link with libgroff.a.
11131         * acgroff.m4 (GROFF_PUTENV): New macro.
11132         * configure.in: Call GROFF_PUTENV.
11133         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
11134         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
11135         is defined.
11137         * troff/env.cc (distribute_space): Rename force_forward argument
11138         to force_reverse.  Reverse the list if force_reverse is true.
11140 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
11142         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
11144         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
11145         height or depth to be negative.  Guard against SUP_RAISE quantity
11146         being negative.
11148 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
11150         * devps/generate/textmap: Add `an' (arrowhorizex).
11151         * tmac/tmac.ps: \(an overlaps horizontally.
11152         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
11154         * devps/symbolchars: Add arrowverttp, arrowvertbt.
11155         * devps/textmap: Add arrowvertex.
11156         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
11157         updownarrow delimiters.
11158         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
11160         * tbl/table.cc (simple_entry::position_vertically,
11161         block_entry::position_vertically):  For a centered entry, perform
11162         the motion in two stages.
11164         * refer/refer.cc (split_punct): Don't call lookup_token if there
11165         is no token.
11167 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
11169         * troff/input.cc (token::next): Delete token_node after copying
11170         token.
11172         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
11173         cur_point_size.
11175         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
11177         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
11179 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
11181         * grops/ps.cc (usage): -b option takes an argument.
11183         * devps/prologue (PLG): New procedure.
11184         * grops/ps.cc (main, usage): New -g option.
11185         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
11186         length using PLG.
11188 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
11190         * include/cset.h: Include <limits.h> if we have it.
11192         * libgroff/illegal.cc: New file.
11193         * include/lib.h (illegal_input_char): Use table.
11194         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
11195         * pic/lex.cc (ARG1): Renumber to 14.
11196         * eqn/lex.cc (ARG1): Likewise.
11198         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
11199         (eg 1.05.90) correctly.
11201 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
11203         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
11204         Rename $r and $R registers to $v and $V.
11205         ($r, $R): Initialize to 0.
11206         (@v, @V): New macros.
11207         (sz): Call @v.
11208         (@M): Call @V.
11210         * troff/input.cc (main, usage): Add -R option that says not to
11211         load troffrc.
11212         * eqn/main.cc (main, usage): Rename -n to -R.
11214 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
11216         * devps/DESC.in: Leave font positions 5-9 blank.
11217         * devdvi/DESC.in: Likewise.
11219         * grog/grog.pl: Handle `.PS <file' correctly.
11221         * troff/input.cc (input_stack::push): Improve error message when
11222         input stack limit exceeded.
11224 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
11226         * refer/refer.cc (main): Fix typo in handling of `a' option.
11228         * refer/refer.cc (do_bib): In state START after a newline remain
11229         in state START.
11231         * groff/groff.sh: Deleted.
11232         * groff/Makefile.sub: Delete handling of groff.sh.
11234         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
11235         to determine whether to use \X'ps:...'.
11236         * tmac/troffrc: Set 0p register to 0.
11237         * tmac/tmac.ps: Set 0p register to 1.
11239         * groff/groff.cc: Support -X option. Give warning for -TXps and
11240         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
11241         * tmac/troffrc: Support -r.X=1.
11243         * pic/troff.cc (troff_output::dot): Don't test
11244         zero_length_line_flag.
11246 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
11248         * include/lib.h: Declare getopt() and friends unless
11249         STDLIB_H_DECLARES_GETOPT is defined.
11251         * doc/chars.tr: Delete.
11252         * man/groff_char.man: New file.
11254 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
11256         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
11257         user has changed register format.
11259 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
11261         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
11262         `postpro' command in DESC file.  Get spooler command from `print'
11263         command in DESC file.  Execute spooler command with /bin/sh.
11265         * groff/groff.cc: Split Unix-specific parts into...
11266         * groff/pipeline.c: New file.
11268         * LICENSE: Delete.
11269         * COPYING: New file.
11270         * all files: Update copyright notices.
11272         * Rearrange files.  Redo Makefiles.  Use autoconf.
11274 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
11276         * troff/input.c (charinfo_to_node_list): Interpret character
11277         definition with escape_char of `\'.
11279 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
11281         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
11282         Define INT_DIGITS as big enough for 64-bit integer.
11283         * lib/strtol.c: Don't include lib.h.
11284         * lib/lib.h: Delete ifdef __cplusplus stuff.
11286 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
11288         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
11289         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
11290         get DESC from current directory.
11292 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
11294         * tbl/main.c (main): Always reset the line number when reading
11295         from stdin.
11297         * tbl/table.c (table::print_single_hline, table::print_double_hline,
11298         table::define_bottom_macro, table::do_row, table::do_top): Round
11299         vertical spacing up to vertical resolution.
11301 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
11303         * ps/ps.h (enum resource_type): Avoid comma at end of
11304         enumerator-list.
11305         * dvi/dvi.c (class dvi_printer): Likewise.
11306         * dvi/tfmtodit.c (gf::load): Likewise.
11307         * refer/label.y (struct expression): Likewise.
11308         * refer/refer.c (class label_processing_state): Likewise.
11309         * refer/indxbib.c (do_file): Likewise.
11310         * troff/troff.c (enum warning_type): Likewise.
11311         * tbl/main.c (process_data): Likewise.
11312         * troff/charinfo.h (class charinfo):
11314 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
11316         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
11318 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
11320         * groff.c: Move to new groff subdirectory.
11321         * groff/Makefile: New file.
11322         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
11324         * man/mdate.sh: Use ls -L if supported.
11326         * Consolidate all header files produced by gendef into lib/defs.h.
11327         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
11328         Don't include path.h.
11329         * lib/Makefile (path.h): Don't generate.
11330         * troff/input.c: Include defs.h. Don't include config.h.
11331         * troff/Makefile (config.h): Don't generate.
11332         * refer/index.h: Don't include suffix.h.
11333         * refer/index.c: Include defs.h.
11334         * refer/indxbib.c: Include defs.h.
11335         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
11336         defs.h.
11337         * refer/Makefile (suffix.h, path.h): Don't generate.
11338         * groff.c: Don't include config.h. Include defs.h.
11339         * Makefile (config.h): Don't generate.
11340         (lib/defs.h): Generate.
11341         (topclean): Remove lib/defs.h.
11343 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
11345         * lib/malloc.c, lib/getpagesize.h: Deleted.
11346         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
11347         related stuff.
11348         * lib/Makefile: Delete malloc-related stuff.
11349         * lib/new.c: Workaround COOKIE_BUG if necessary.
11351         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
11352         needed header files directly.
11353         * refer/refer.h: Omit definition of DEFAULT_INDEX.
11354         * Makefile: Include definition of DEFAULT_INDEX in path.h.
11356 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
11358         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
11359         argument.
11360         * lib/font (font::load_desc, font::load): Don't split argument of
11361         unknown command.
11362         (font::handle_unknown_font_command): Change type.
11363         * ps/ps.c (ps_font::handle_unknown_font_command,
11364         handle_unknown_desc_command): Change type.
11365         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
11367 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
11369         * lib/font.h (font::handle_unknown_font_command): Add file and
11370         line arguments.
11371         * lib/font.c (font::handle_unknown_font_command):
11372         * ps/ps.c (ps_font::handle_unknown_font_command):
11373         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
11374         lineno arguments.  Use _with_file_and_line functions for error
11375         reporting.
11377         * lib/fontfile.c (font::unknown_desc_command_handler): New static
11378         data member.
11379         * lib/font.c (font::set_unknown_desc_command_handler): New
11380         function.
11381         (font::load_desc): For unknown commands, call
11382         unknown_desc_command_handler if not null.
11383         * lib/font.h (class font): Declare them.
11384         (FONT_COMMAND_HANDLER): New typedef.
11385         * ps/ps.c (handle_unknown_desc_command): New function.
11386         (main): Set bflag if we had a -b option. Call
11387         font::set_unknown_desc_command_handler.
11388         (broken.h): Don't include.
11389         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
11390         submake 
11391         * ps/devps/Makefile: Add `broken' command to DESC file using
11392         BROKEN_SPOOLER_FLAGS.
11394         * macros/tmac.e ([, ]): Add as synonyms for { and }.
11396         * macros/tmac.e ($p): Only exdent if \$3 > 0.
11398         * macros/tmac.e (@R, @S): New macros.
11399         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
11400         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
11401         Declare $H, $[0-9], .. macros with @S.
11402         Declare |0, |1, |2, |3 strings with @S.
11404         * macros/tmac.e (@S): Rename to @U.
11406         * macros/tmac.e (@z): Define @b and bp as empty instead of
11407         deleting them,
11409         * macros/tmac.e (@m): Deleted.
11410         (@h): Don't call @m.
11411         (@z): Don't set @m trap.
11413         * macros/tmac.e ($h, $f): Define |z as empty string.
11415         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
11416         (@q): Likewise.
11418         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
11419         removing them.
11420         ()f): Likewise for * register.
11422         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
11423         argument is missing, don't change $R.  Call sr with three
11424         arguments when initializing.
11426 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
11428         * macros/tmac.e (sr): New macro.
11429         Initialize $r and $R using sr.
11431         * macros/tmac.e (,): Delete \*(#[.
11433         * troff/env.c (set_tabs): Read the tab type even if the position
11434         is bad.  Allow the position of the first tab stop to be negative.
11436 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
11438         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
11439         _POSIX_VERSION.
11440         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
11441         rather than -DPATHCONF_MISSING.
11442         * Makefile: Get rid of PATHCONF_MISSING.
11444         * refer/map.c: New file.
11445         * refer/index.c: Interface to mmap through map.c.  Rename map_size
11446         to map_len.
11447         * refer/Makefile: Handle map.c.
11448         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
11450 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
11452         * Makefile: RANLIB should be `true' if there is no ranlib.
11453         * lib/Makefile (libgroff.a): Simplify.
11454         * driver/Makefile (libdriver.a): Simplify.
11456         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
11457         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
11458         defined.
11460 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
11462         * troff/env.c (compare_ranges): Declare as extern "C".
11464         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
11466         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
11468 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
11470         * pic/troff.c (troff_output::text): Merge in grops_output::text,
11471         but conditionalize use of \X based on \*(.T.
11472         (grops_output::*): Deleted.
11473         * pic/output.h: Delete declaration of make_grops_output.
11474         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
11475         by default. -n sets it to 0.
11476         (usage): Corresponding changes.
11477         * groff.c (main): Don't pass -x or -p to pic.
11478         * groff.sh: Likewise.
11480         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
11481         to be non-zero.
11483         * ps/devps/afmtodit: Change calculation of asc_boundary and
11484         desc_boundary.  Make these bounds inclusive.
11485         * ps/devps: Regenerate font files.
11487 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
11489         * macros/tmac.latin1: New file.
11490         * macros/tmac.tty-char: Use tmac.latin1.
11491         (tmac.tty-tr): Deleted.
11492         * macros/Makefile: Install tmac.latin1.
11493         * macros/tmac.dvi: Use tmac.latin1.
11494         * macros/troffrc: Translate \[char160] onto no-break space here.
11495         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
11497 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
11499         * macros/tmac.Xps: Use `do' request.
11501         * macros/tmac.ps: Use `do' request.
11503         * macros/tmac.e (@C): Use `do' request.
11505         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
11506         * macros/Makefile: Install tmac.X*.
11508         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
11509         * tty/Makefile: Don't install tmac.tty*.
11510         * macros/Makefile: Install tmac.tty*.
11512         * dvi/tmac.dvi: Move to macros.
11513         * dvi/Makefile: Don't install tmac.dvi.
11514         * macros/Makefile: Install tmac.dvi.
11516         * ps/tmac.ps*: Move to macros.
11517         * ps/Makefile: Don't install tmac.ps*.
11518         * macros/Makefile: Install tmac.ps*.
11520         * eqn/box.c: Provide draw_lines parameter corresponding to -D
11521         option.
11522         * macros/eqnrc: Set draw_lines parameter based on device.
11523         * groff.c: Don't pass -D flag to eqn.
11524         * groff.sh: Likewise.
11525         * eqn/main.c: Warn about use of -D.
11527         * troff/input.c (process_startup_file): New function.
11528         (main): Call process_startup_file().
11529         * macros/troffrc: New file.
11530         * macros/Makefile: Install troffrc.
11531         * groff.c (main): Don't pass extra -m option to troff. For a 
11532         pseudo device pass the name of the pseudo device to troff using
11533         -d.
11534         * groff.sh: Likewise.
11535         * groff.c (possible_command::prepend_arg): Deleted.
11537         * troff/input.c (do_request): New function.
11538         (init_input_requests): Bind "do" to do_request.
11540         * eqn/main.c (main): Instead of loading eqnchar from device directory,
11541         load eqnrc from macro directory.
11542         * macros/eqnrc: New file.
11543         * macros/Makefile: Install eqnrc.
11544         * ps/devps/eqnchar: Deleted.
11545         * ps/devps/Makefile: Don't install eqnchar.
11546         * dvi/devdvi/eqnchar: Deleted.
11547         * dvi/devdvi/Makefile: Don't install eqnchar.
11548         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
11549         variable optM.
11551         * lib/device.[ch]: New files.
11552         * lib/font.h (font::set_device_name, font::get_device_name):
11553         Deleted.
11554         * lib/fontfile.c: Use device.h.
11555         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
11556         * troff/input.c: Delete definition of `device'.
11557         (main): Don't initialize device.
11558         * troff/troff.h: Include device.h rather than declaring device.
11559         * troff/Makefile: No need to handle DEVICE.
11560         * driver/input.c: Include device.h. Don't use
11561         font::{set,get}_device_name.
11562         * groff.c, Makefile: Rename device.h to config.h.
11563         * groff.c: Use library device variable.
11564         * eqn/main.c: Use library device variable.
11565         * eqn/Makefile: No need to handle DEVICE.
11567         * lib/searchpath.[ch]: New files.
11568         * lib/Makefile: Handle searchpath.[ch].
11569         * troff/input.c (open_file, init_dirs): Deleted.
11570         (macro_dirs): Deleted.
11571         (open_mac_file, macro_source): Use class search_path.
11572         (add_string, struct string_list): Move definition.
11573         (main): Change -M option to use macro_path. Delete call to
11574         init_dirs().
11575         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
11576         Rewrite to use class search_path.
11577         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
11578         * lib/Makefile: fontfile.c depends on searchpath.h.
11579         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
11580         MACROPATH.
11581         * lib/macropath.[ch]: New files.
11582         * troff/Makefile: No need to handle MACROPATH.
11584         * troff/input.c: Delete DUMP code.
11585         * lib/fontfile.c, lib/font.h: Delete
11586         font::forget_command_line_font_dirs.
11588         * troff/input.c (push_token): New function.
11589         (handle_first_page_transition): Use push_token().
11590         (process_input_stack): Change handling of a space at the beginning
11591         of the line.
11593 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
11595         * troff/input.c (font_dirs): Delete unused variable.
11597         * eqn/lex.c (do_set): Correct error messages.
11599 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
11601         * troff/input.c (do_define_string): Allow the string name to be
11602         followed immediately by a tab.
11603         (define_character): Likewise.
11605 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
11607         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
11608         be negative.
11610         * troff/input.c (input_iterator::is_file): New virtual function.
11611         (file_iterator::is_file): New function.
11612         (input_stack::end_file): New function.
11613         (input_stack::next_file): Handle the situation where there is no
11614         file on the input stack correctly.  Avoid making two passes over
11615         the input stack.
11616         (next_file): Make the filename optional; in this case call
11617         input_stack::end_file().
11619 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
11621         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
11622         produce a real _ charater when the current font is CW and _
11623         otherwise.
11625         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
11626         expression to work around gcc 2.2 bug.
11628 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
11630         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
11632         * troff/env.c (environment::add_padding): New function.
11633         (environment::add_char): Use add_padding().
11634         (environment::space): Likewise.
11635         (environment::wrap_up_field): Add some padding if there is none
11636         and there's no current tab.
11637         * troff/env.h: Declare environment::add_padding.
11639 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
11641         * pic/pic.y: undef fmod and rand before declaring them.
11643 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
11645         * troff/input.c (main): If the DESC file specifies a font name of
11646         0, then leave the corresponding font position empty.
11648         * nroff.sh: New file.
11649         * Makefile (install.nobin): Install nroff.sh.
11651         * tty/devlatin1/R.proto: Add ao as synonym for de.
11652         * tty/tmac.tty-char: Define ao as o.
11654         * tty/dev{ascii,latin1}/R.proto: Add aq.
11655         * tty/tmac.tty-char: Delete definition of aq.
11657 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
11659         * troff/input.c (init_charset_table): Don't translate 0240.
11660         * ps/tmac.ps: Translate char160 to space.
11661         * dvi/tmac.dvi: Likewise.
11662         * tty/tmac.tty: Likewise.
11664 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
11666         * dvi/tmac.dvi: Add support for all Latin-1 characters.
11668         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
11669         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
11670         \(oe, \(r?, \(r!.
11672         * tty/tmac.tty-char: Add \(ah.
11674         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
11675         No need to define \(FM and \(!/. Conditionalize all character
11676         definitions.
11678         * ps/devps/lgreekmap: Add +h, +f, +p.
11680         * ps/tmac.psnew: New file.
11681         * ps/Makefile: Install tmac.psnew.
11683         * troff/input.c (charinfo_to_node_list): Don't ever interpret
11684         character definitions in compatible mode.
11686         * troff/input.c (remove_character): New function.
11687         (init_input_requests): Bind remove_character to "rchar".
11689         * ps/tmac.psold: New file.
11690         * ps/Makefile: Install tmac.psold.
11691         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
11692         characters into tmac.psold.  Make these definitions unconditional.
11694         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
11696         * ps/tmac.ps: Don't define \('c and \('C.
11698         * ps/devps/textmap: Move Greek characters to...
11699         * ps/devps/symbolchars:
11701 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
11703         * ps/devps/text.enc: Add quotesingle.
11704         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
11705         * tty/tmac.tty-char: Likewise.
11706         * dvi/devdvi/texmi.map: Add +h, +f, +p.
11707         * dvi/devdvi/texi.map: Add Fn.
11708         * dvi/devdvi/msam.map: Add lz.
11709         * dvi/tmac.dvi: Handle Bq, bq, aq.
11711         * pic/lex.c (get_token): Recognize 'th.
11712         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
11714 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
11716         * ps/devps/textmap: Move di, mu, +- to...
11717         * ps/devps/symbolchars:
11719         * macros/tmac.s (@XS): Don't call par@reset or fi.
11720         (XA): Call LP. Turn off adjustment. Reduce line length.
11722         * macros/tmac.s: Initially alias XS to LP.
11723         (XS): Rename to @XS.
11724         (cov*ab-init): Alias XS to @XS.
11726 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
11728         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
11729         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
11730         (token::is_size, token::changes_env): Deleted.
11731         * troff/number.c (parse_term): No need to process \s explicitly.
11732         Call tok.next() only after scale indicator has been processed.
11733         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
11734         \f etc explicitly.
11735         (token::next): Handle \s, \f, \S, \H immediately rather than
11736         returning them as tokens.
11737         (token::operator==, token::description, token::add_to_node_list,
11738         token::process): Remove handling of deleted tokens.
11740         * troff/env.c (environment::add_char): When adding padding
11741         indicator character, call start_line() if necessary.
11743 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
11745         * ps/devps/afmtodit: Don't output 0 kerns.
11747         * ps/devps/afmtodit: Remove directory from name of encoding in
11748         font description file.
11750         * ps/devps/afmtodit: Improve error messages.
11752         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
11754         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
11755         * ps/devps/FontMakefile: Deleted.
11756         * ps/devps/afmname: New file.
11758         * ps/devps/symbol.sed: New file.
11759         * ps/devps/symbol.diff: Deleted.
11760         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
11761         Generate zapfdr.afm from zapfd.afm.
11763         * tty/tmac.tty (tty-char): Prefix definition with ".
11765         * macros/tmac.an (TP): Don't start a diversion if one has already
11766         been started.
11768         * tty/tmac.tty-char: Add Latin-1 characters.
11770         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
11772 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
11774         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
11775         Move declaration of struct horizontal_span.
11777         * tbl/table.c (table::table): Initialize span_list.
11778         (table::~table): Delete span_list.
11780         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
11782         * ps/devps/Makefile: Avoid dependency on GNU make.
11784         * ps/tmac.ps: Check that character does not already exist before
11785         defining it.
11787         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
11788         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
11789         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
11790         files.
11792         * tty/tmac.tty-char: New file.
11793         * tty/Makefile: Install tmac.tty-char.
11794         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
11795         tmac.tty-char.
11797         * tty/tmac.tty: Fix definition of \(34.
11799         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
11800         bracket-drawing characters onto |. Add *o.
11802         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
11803         only if current_field.
11805         * troff/dictionary.c (dictionary::lookup): Free old_table after
11806         rehashing. 
11808 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
11810         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
11811         whose glyphs are identical to glyphs of some Roman character.
11813         * tty/devlatin1/R.proto (bu): Deleted.
11814         * tty/devascii/R.proto (bu): Deleted.
11815         * tty/tmac.tty: Add definition of \(bu.
11817         * eqn/main.c (do_file): Pass FILE as argument.
11818         (main): Automatically load eqnchar.  New options -F and -n.
11819         Pass do_file an opened FILE.
11820         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
11821         No need to include font.h.
11822         * groff.sh: Likewise.  Don't need to use - for standard input.
11823         Prefix files with -- if first file starts with -.
11825         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
11827         * troff/env.c (environment::possibly_break_line): Don't set line
11828         to 0 across call to output_line().  Don't call output_line() until
11829         after discarding nodes after break.
11831 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
11833         * request.h (macro::empty): Declare it.
11834         * input.c (macro::empty): New method.
11835         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
11836         macro is empty.
11838 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
11840         * troff/env.c (environment::start_field): Decrement space_total
11841         when a space is frozen.
11843 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
11845         * macros/tmac.an (R): Delete macro.
11847         * troff/input.c (get_copy, token::next): Support \# (like \" but
11848         newline is ignored).
11850         * troff/input.c (token::next): Fix error message in 'Y' case.
11852 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
11854         * eqn/delim.c (define_extensible_string): Recognize any prefix of
11855         a delimiter name.
11857 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
11859         * c++test.c: Include <osfcn.h>.
11861         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
11862         <errno.h> doesn't.
11864 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
11866         * tbl/table.c (table::divide_span): Don't count column separation
11867         if expand was specified.
11869         * tbl/main.c (process_format): Don't ignore width specs in
11870         continued format.  Give warning for changing equal widths or
11871         column separation in continued format.
11872         (process_data): Set column separation, minimum width, equal
11873         columns at end of table.
11875 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
11877         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
11878         node::add_discretionary_hyphen): Use soft_hyphen_char.
11879         (set_soft_hyphen_char): New function.
11880         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
11882         * Makefile (c++tested): Give more helpful message if test fails.
11884 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
11886         * troff/input.c (init_charset_table): Translate 0240 to
11887         an unbreakable space.
11889         * troff/token.h (token::hyphen_indicator): New function.
11890         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
11891         translation.
11892         * troff/input.c (translate): Allow translation to \%.
11893         * troff/node.c (node::add_char): Handle
11894         TRANSLATE_HYPHEN_INDICATOR.     
11895         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
11897         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
11898         for \(hy.
11900         * tty/devlatin1/R.proto: \(hy and - should print as 055.
11902 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
11904         * groff.c (run_commands): If the last command gets a SIGPIPE send
11905         a SIGPIPE to all children than haven't yet terminated.  When
11906         command terminates, set pid field to -1.
11908 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
11910         * groff.c (main): Pass an appropriate -filename option to gxditview.
11912 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
11914         * Makefile.bd (install): Remove existing program before copying.
11916         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
11917         programs which have Unix counterparts to be installed with
11918         user-specified prefix.
11920         * troff/input.c (exit_troff): Don't check if exit_started.
11921         (exit_request): Don't call exit_troff if exit_started.
11923         * Makefile.bd (install.mm): Rename to install.dwbmm.
11925 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
11927         * driver/input.c (do_file): Add missing break for '#' case.
11929 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
11931         * troff/input.c (input_stack::clear):  Clear past any boundaries and
11932         then add the boundaries back.
11934         * troff/input.c (exit_troff): Return immediately if already
11935         exiting.
11937         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
11938         end macro.
11939         (pg*end-page): If the text has ended and there are no more
11940         footnotes or keeps, exit.
11942         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
11944         * troff/input.c (init_charset_table): Make \(rq transparent by
11945         default.
11947         * macros/tmac.an: Define lq and rq strings.
11949         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
11951 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
11953         * troff/env.c (environment::final_break): New function.
11954         (environment::newline): Set prev_line_interrupted to 2 if
11955         exit_started.
11956         * troff/env.h: Declare environment::final_break.
11957         * troff/input.c (exit_troff): Call environment::final_break()
11958         instead of environment::do_break().
11960         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
11961         doesn't already exist.
11962         * macros/man.local: New file.
11963         * macros/tmac.an: Load man.local.
11964         * macros/man.ultrix: New file.
11966 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
11968         * troff/input.c (exit_groff): Rename to...
11969         (exit_troff): New function.
11971         * troff/div.c (exit_started, done_end_macro,
11972         seen_last_page_ejector): New global variables.
11973         (began_page_in_end_macro): New static variable.
11974         (exit_flag): Deleted.
11975         (top_level_diversion::top_level_diversion): Initialize
11976         last_page_count.
11977         (top_level_diversion): More elaborate test for whether
11978         cleanup_and_exit() should be called.
11979         Set began_page_in_end_macro if the end macro isn't yet finished.
11980         * troff/div.h (top_level_diversion::last_page_count): New data
11981         member.
11982         (top_level_diversion::set_last_page): New function.
11983         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
11984         * troff/env.c (do_break): Zero prev_line_interrupted.
11985         * troff/input.c (exit_flag): Delete declaration.
11986         (LAST_PAGE_EJECTOR): New magic cookie.
11987         (token::next): Handle LAST_PAGE_EJECTOR.
11988         (exit_groff): Set exit_started and done_end_macro instead of
11989         exit_flag.  Call top_level_diversion::set_last_page.  Push a
11990         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
11991         another ejection after setting seen_last_page_ejector.
11993 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
11995         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
11997         * macros/tmac.e (TH): Make sure there's room for the initial
11998         header.
12000         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
12001         Set FVS in points rather than units.
12003 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
12005         * troff/div.c (top_level_diversion::add_trap): Don't consider the
12006         position of empty slots.
12008 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
12010         * ps/devps/S: Fix height and depth of parenrightex.
12011         * ps/devps/symbol.diff: Regenerate.
12013 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
12015         * tmac.e (u): Do underlining as in -mgs.
12017 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
12019         * tty/tty.c (tty_printer::end_page): If overstriking is
12020         suppressed, still turn overstruck horizontal and vertical lines
12021         into +.
12023         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
12024         2.1.
12026         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
12028 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
12030         * Version 1.05 released.
12032 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
12034         * tty/tty.c: Instead of keeping an array of glyphs and then
12035         sorting it, keep a ordered linked list of glyphs for each line.
12037         * driver/driver.h: Include stddef.h.
12039         * tty/tty.c (compare_glyph):
12040         * refer/refer.c (rcompare):
12041         * troff/env.c (compare_ranges): Arguments of qsort comparison
12042         function should be const void *.
12044         * troff/number.c (parse_term):
12045         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
12046         switch statement.
12048         * refer/label.y (consider_authors): Don't access variables
12049         constructed under a condition outside that condition: put braces
12050         round for statement containing declaration; redeclare use of same
12051         variable later.
12053         * pic/pic.y (text_expr): Delete production that allows
12054         parenthesised text_expr.
12055         (expr): Allow a conditional_expr to appear in parentheses.
12056         (conditional_expr): Rename to any_expr.
12058         * mm: Install new version 1.01 from jh.
12060         * lib/font.c (font::get_width): Cache scaled widths.
12061         (font::font): Initialize widths_cache.
12062         (font::~font): Destroy widths_cache.
12063         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
12065 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
12067         * c++test.c, c++test.ref: New files.
12068         * Makefile: Check that the C++ compiler works.
12070         * ps/tmac.pspic (PSPIC): Do a break.
12072         * ps/tmac.ps: Move definition of PSPIC into...
12073         * ps/tmac.pspic: New file.
12074         (PSPIC): Draw box around picture, but make it invisible to grops.
12075         * ps/tmac.ps: Load tmac.pspic.
12076         * ps/Makefile: Install tmac.pspic.
12078 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
12080         * lib/font.c (scale_round): If n is negative,
12081         subtract .5 before truncating floating point result.
12083         * lib/fontfile.c: Include <errno.h>.
12085 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
12087         * driver/input.c (get_char): Inline. Don't update current_lineno.
12088         Change callers to up date current_lineno if necessary.
12089         Use get_char() instead of getc(current_file).
12091 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
12093         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
12095 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
12097         * tty/tty.c (tmac.tty): Define \(rg as (R).
12099 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
12101         * lib/lib.h: New define a_delete.
12102         * Use a_delete instead of delete when deleting an array of objects
12103         without destructors.
12105         * lib/lib.h: Rename adelete to ad_delete.
12106         * Change uses of adelete.
12108 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
12110         * eqn/eqn.y: Include lib.h.
12112         * troff/node.c (grow_font_table): Delete old_font_table.
12114         * mm: Install new version from jh.
12116 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
12118         * tbl/table.h (format_type): Make global instead of local to class
12119         entry_format.  Prefix enumerators with FORMAT_.
12120         * tbl/table.c, tbl/main.c: Corresponding changes.
12121         * refer/token.h (token_type): Make global.  Prefix enumerators
12122         with TOKEN_.
12123         * refer/token.[ch]: Corresponding changes.
12124         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
12126         * troff/div.c (node::set_vertical_size): Don't name argument.
12128 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
12130         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
12131         * lib/lib.h: Define adelete accordingly.
12132         * pic/object.c (graphic_object::graphic_object):
12133         * tbl/main.c (format::~format):
12134         * tbl/table.c (table::~table):
12135         * refer/ref.c (reference::~reference, reference::merge,
12136         reference::insert_field, reference::delete_field): Use adelete.
12138         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
12139         * refer/token.h:
12140         * tbl/table.h: Corresponding changes.
12142         * common.c (common_output::dashed_arc, common_output::dotted_arc):
12143         Ensure total_angle is positive.
12145 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
12147         * refer/ref.c (reference::merge, reference::insert_field,
12148         reference::delete_field): Avoid delete[0].
12150         * refer/token.c (init_special_chars): Move calls to cmupper
12151         outside calls to init_two_char_letter to work around bug in gcc
12152         2.0.
12154 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
12156         * lib/new.c (operator new): Use __builtin_new for g++.
12158         * pic/object.c (graphic_object::~graphic_object):  Don't use
12159         delete [] on 0.
12161         * pic/object.c (output::compute_scale): Initialize max_width and
12162         max_height.
12164 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
12166         * troff/input.c (write_request): Call fflush.
12168         * troff/node.h (class composite_node): Move declaration to node.c
12169         * troff/input.c (charinfo_to_node): Rename to ...
12170         (charinfo_to_node_list): Return node list rather than composite
12171         node.
12172         * troff/node.c (make_composite_node): New function.
12173         (make_node, add_char): Call make_composite_node instead of
12174         charinfo_to_node.
12175         (class composite_node): Add a tfont * member.  Delete font_size
12176         member.
12177         (composite_node::composite_node, composite_node::copy,
12178         composite_node::size): Corresponding changes.
12179         (composite_node::tprint): Provide constant spacing, emboldening
12180         and track kerning as specified in tfont.
12181         (composite_node::width): Change width calculation accordingly.
12182         * troff/env.h (environment::composite): New member.
12183         (environment::is_composite, environment::set_composite): New
12184         functions.
12185         * troff/env.c (environment::environment): Initialize composite.
12186         * troff/input.c (charinfo_to_node): Call
12187         environment::set_composite.
12188         * troff/node.c (make_composite_node, make_glyph_node): Use the
12189         plain version of the tfont if the environment is composite.
12191         * troff/node.c (font_info::get_space_width): Additional argument
12192         giving space_size.  Handle constant space correctly. Scale by
12193         space_size unless constant spaced.
12194         (env_sentence_space_width): New function.
12195         * troff/node.h: Declare it.
12196         * troff/env.h (environment::get_space_size,
12197         environment::get_sentence_space_size,
12198         environment::get_narrow_space_width,
12199         environment::get_half_narrow_space_width): Make inline.
12200         (environment::get_space_width): Make inline.  Just call
12201         env_space_width.
12202         * troff/env.c: Delete definitions for funtions made inline.
12203         (environment::space_newline, environment::space): Use
12204         env_sentence_space_width(). Don't scale by space_size.
12205         * troff/node.h: Move declarations of env*space_width() functions
12206         into env.h.
12208 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
12210         * macros/tmac.s (PS): Don't try to set negative indent.
12212 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
12214         * pic/pic.y: Fix min function.
12216 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
12218         * man/mdate.sh: Clear LANGUAGE.
12220 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
12222         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
12223         * pic/lex.c: New COMMAND keyword.
12224         * pic/pic.y (print_args, print_arg): New rules.
12225         (placeless_element): Use print_args for PRINT.
12226         New COMMAND element.
12228 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
12230         * troff/input.c (terminal): Handle missing argument correctly.
12232         * pic/pic.y (text_expr): New rule.
12234         * pic/pic.y: Implement := operator.
12236 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
12238         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
12239         mdoc.
12241 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
12243         * ps/devps/dingbatsrmap: Include this in the distribution.
12245         * macros/tmac.doc: Replace with new version from 2nd Networking
12246         Release. Fix loading of doc-* files.
12247         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
12248         * macros/tmac.doc.old: New file.  Apply fixes that had been
12249         applied to old tmac.doc.
12250         * macros/tmac.andoc: Check that we're running under groff.
12251         * macros/Makefile: Rework.
12253 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
12255         * tbl/table.h (format_type): 
12256         * refer/token.h (token_type): If NESTED_TYPES is defined, use
12257         typedef to make these types visible at file scope.
12258         * Makefile: Add NESTED_TYPES configuration option.
12260         * troff/div.c (mark): At the top level use the value of
12261         nl_reg_contents rather than the current vertical position.
12263 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
12265         * tty/tty.c: Implement \D for horizontal or vertical lines.
12266         (tty_printer::set_char): Use vec_used+2 as serial number.
12267         Don't allow size of vector to exceed USHRT_MAX-2.
12268         Split off part into...
12269         (tty_printer::add_char): New function.
12270         (tty_printer::draw): New function.
12271         (compare_glyph): Handle equal serial numbers.
12272         (tty_printer::end_page): Handle overstruck characters from \D.
12273         (main, usage): Implement -d option.
12275 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
12277         * tbl/main.c (process_format):
12278         * eqn/text.c (split_text):
12279         * troff/input.c (token::next): Use inner block for declarations
12280         with initializers in switch statement.
12282 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
12284         * pic/common.c (common_output::dash_line): Cope with zero-length
12285         lines.
12287 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
12289         * Version 1.04 released.
12291 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
12293         * macros/tmac.an (TH): Define a macro an-init to define variables
12294         based on command line arguments.
12295         (an-header): Call it.
12297 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
12299         * Makefile (install.mm): Rename to install.dwbmm.
12301         * Makefile: Integrate mm.
12302         * mm: New directory.
12304 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
12306         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
12307         <sys/types.h>.
12309         * pic/troff.c (troff_output::simple_spline,
12310         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
12311         shadowing parameter.
12313         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
12315         * lib/ptable.h: Add explicit casts when converting from unsigned
12316         long to unsigned.
12318         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
12319         * dvi/devdvi/Makefile: Install SA, SB.
12321         * refer/indxbib.c: Add declaration of mktemp.
12323         * refer/lookbib.c: Add declaration of isatty.
12325 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
12327         * pic/lex.c (interpolate_macro_with_args):  While collecting
12328         arguments, keep track of whether we're in a string.
12330 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
12332         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
12333         down with \v, so as to avoid problems with top of page trap
12334         setting no space mode.
12336 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
12338         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
12340 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
12342         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
12343         Improve error message.
12345 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
12347         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
12348         printf("%03o");
12350 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
12352         * groff.c (possible_command::execp): Always use _exit() after a
12353         failed exec.
12355         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
12356         NO_SYS_WAIT_H   configuration options.
12357         * groff.c: Use these options.  Use POSIX-style macros to extract
12358         fields from the status returned by wait().
12360 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
12362         * tbl/table.c (table::compute_separation_factor): Allow the
12363         separation factor to drop to 0.
12365 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
12367         * refer/search.c: Include <errno.h>.
12369 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
12371         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
12373         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
12374         C++. 
12376         * pic/lex.c (input_stack::bol): Move definition out of class body.
12378         * pic/main.c: On MSDOS munge argv[0].
12380         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
12382         * lib/ptable.c (hash_string): Use unsigned long rather than
12383         unsigned.
12384         (next_ptable_size): Use unsigned rather than int.  Give an error
12385         message if we've hit the largest table size.
12386         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
12387         table size.
12389         * pic/object.h (object_spec): Make flags unsigned long.  Declare
12390         flags as const unisgned long rather than as enums.
12392         * pic/output.c: Deleted.
12394         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
12396         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
12397         Add additional argument.
12398         (line_entry::note_double_vrule_on_{left,right}): Set value of
12399         douvle_vrule_on_{right,left} flag according to argument.
12400         (simple_line_entry::simple_print,
12401         simple_line_entry::double_line_print): If adjacent to double vrule
12402         on a corner extend rather than shorten the rule by half the double
12403         vrule sep.
12405         * troff/number.c (parse_term): In checking for overflow, handle the
12406         case where the current horizontal position is negative.
12408 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
12410         * pic/object.c (draw_arrow): Check for object having zero length.
12412 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
12414         * eqn/main.c (do_file): Split off inline equation handling into...
12415         (inline_equation): New function.  Search for starting delimiter
12416         using...
12417         (delim_search): New function. Don't recognize a delimiter that
12418         occurs in the name of an escape sequence, number register, string
12419         etc.
12421 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
12423         * eqn/delim.c (delim_box::compute_metrics): Don't call
12424         define_extensible_string if left is 0.
12425         (delim_box::output):  Don't print the left delimiter if left is 0.
12426         (delim_box::debug_print): Check for left == 0 before calling printf.
12428 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
12430         * troff/Makefile (majorminor.c): Include only digits in
12431         minor_version.
12433 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
12435         * refer/dirnamemax.c: new file.
12436         * refer/genlimits.c: Deleted.
12437         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
12438         Don't check path length.
12439         * refer/Makefile: Add dir_name_max.o; delete genlimits.
12440         * Makefile: Add PATHCONF_MISSING option.
12442         * refer/indxbib.c (get_cwd): New function.
12443         (main): Use get_cwd().
12444         * lib/getcwd.c: New file.
12445         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
12446         GETCWD in SUBFLAGS.
12447         * lib/Makefile: Compile getcwd.o.
12449         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
12450         userdict.
12452         * refer/indxbib.c (main): Check success of mktemp.
12454         * lib/tmpfile.c: New file.
12455         * lib/Makefile: Add tmpfile.c.
12456         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
12457         * ps/ps.h: Delete declaration of mktemp().
12458         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
12459         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
12460         * driver/driver.h: No need now to include errno.h.
12462         * everywhere: Set errno to 0 before calling fopen().
12464         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
12465         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
12466         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
12468 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
12470         * troff/env.h (translate_space_to_dummy): Declare it.
12471         * troff/env.c (environment::space_newline, environment::space):
12472         If translate_space_to_dummy is set then make the width of spaces 0.
12473         * troff/input.c (translate): If the second character of a
12474         translation is a space, translate to unbreakable space.  If the
12475         first character is a space, set or clear translate_space_to_dummy
12476         according to whether the second character is \&.  Weird!
12478 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
12480         * groff.c (run_commands): Don't use non-zero exit code because a
12481         command gets SIGPIPE.
12483         * groff.c, groff.sh: Use -mXps with -TXps.
12485         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
12486         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
12487         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
12488         (ps_printer::special): New specials invis and endinvis.
12489         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
12490         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
12491         (ps_printer::end_page): Check that invis_count == 0.
12492         (ps_printer::invis_count): New member.
12493         (ps_printer::ps_printer): Initialize invis_count to 0.
12495         * troff/env.c (environment::hyphenate_line): Hyphenation
12496         indicator at beginning of word inhibits splitting after -, \(em
12497         etc.
12499         * pic/pic.y (element): Allow another element to follow } without
12500         any intervening separator.
12502 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
12504         * pic/lex.c (get_delimited): Allow tabs before delimiter.
12506 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
12508         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
12509         declaration of wait() in header files.
12510         * Makefile: Get rid of -DHAVE_UNION_WAIT.
12512         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
12514         * lib/lib.h: Declare return type of strerror as char *.
12516         * man/Makefile: Add g flag to sed substitutions.
12517         * Makefile (shgroff, bindist): Likewise.
12519 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
12521         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
12522         * ps/devps/prologue (PBEGIN): Define showpage after pushing
12523         userdict.
12525 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
12527         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
12528         userdict.
12530 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
12532         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
12533         group.
12535 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
12537         * troff/input.c (define_number_reg):  If currently undefined,
12538         don't define it if the argument is an invalid expression.
12540         * Makefile: Ignore return value of `if' commands without `else'
12541         parts.
12543         * Makefile: Split up CPPDEFINES into a series of separate
12544         configuration options.
12546         * troff/input.c (init_registers): Use time_t instead of long
12547         unless LONG_FOR_TIME_T is defined.  Use returned result rather
12548         than passing pointer.
12549         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
12551         * lib/Makefile (fontpath.h): Use gendef.
12553 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
12555         * troff/input.c (input_iterator::shift): Delete argument name.
12556         * troff/node.c (suppress_output_file::really_begin_page,
12557         suppress_output_file::really_transparent_char, node::ascii_print,
12558         node::tprint): Delete names of unused arguments.
12560 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
12562         * refer/label.y (string):  Pass $4 to command_error.
12564 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
12566         * Version 1.03 released.
12568 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
12570         * Makefile: Pass definition of SHELL in SUBFLAGS.
12572         * gendef: New file.
12573         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
12574         ps/Makefile: Use gendef to construct header files that are
12575         constructed from the Makefile.
12577         * macros/Makefile: make all should build stripped version of tmac.e.
12579         * refer/Makefile (clean): Remove y.output.
12581 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
12583         * ps/pfbtops.c (main): Add -v option which prints out a version
12584         number.
12585         * ps/Makefile (pfbtops): Link with libgroff.a.
12587 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
12589         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
12590         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
12592         * refer/lkbib.c (main): Always terminate reference with blank
12593         line.
12594         * refer/lookbib.c (main): Likewise.
12596         * refer/linear.c (file_buffer::load): Check that the file is not a
12597         binary file.
12599         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
12600         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
12601         Delete second inclusion of <sys/param.h>.
12603 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
12605         * troff/token.h (token::special): Deleted.
12607         * tbl/main.c (process_format): Rework so that opt->tab_char is
12608         recognized only when appropriate.
12610         * ps/Makefile (clean): Remove pfbtops.
12612 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
12614         * lib/font.c (text_file::next): Don't return if we have got a
12615         blank line.
12617 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
12619         * refer/refer.c (store_reference): Get hash code from old_table[i]
12620         when rehashing the table.
12622 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
12624         * eqn/box.c (box::top_level): Save size and prev size using \R and
12625         restore it afterwards. Set the size to the size at the beginning
12626         of the line.
12627         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
12628         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
12630         * refer/Makefile (limits.h): Use ./genlimits.
12632 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
12634         * refer/index.c: Delete declarations of stat() and fstat().
12636 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
12638         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
12640 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
12642         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
12644 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
12646         * troff/input.c (token::get_char): Handle \e.
12648         * refer/linear.c: Delete declarations of fstat() and stat().
12650 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
12652         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
12653         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
12655 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
12657         * troff/input.c (do_define_macro): Improve error handling for end
12658         of file while defining macro.
12660 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
12662         * eqn/box.h: Fix declaration of set_gsize.
12663         * eqn/box.c (set_gsize): Make argument const char *.
12664         (gsize): Declare as char *.
12665         * eqn/main.c (main): Don't convert gsize to int.
12666         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
12668         * Version 1.02 released.
12670 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
12672         * macros/tmac.andoc: New file.
12673         * macros/Makefile: Install tmac.andoc.
12675         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
12676         operator new and delete on OP_DELETE_BROKEN not being defined.
12677         * Makefile: Mention OP_DELETE_BROKEN.
12679 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
12681         * Makefile (bindist): Pass SUBFLAGS.
12683 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
12685         * Makefile, groff.c: Pass definitions to groff.c via device.h.
12687         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
12688         parameter.
12690         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
12692         * ps/ps.h, ps/psrm.c: Make comment_table and
12693         header_comment_table local to resource_manager::process_file.
12695         * groff.sh: With -TXps pass -printCommand option to gxditview.
12697         * groff.c (possible_command::print): Implement using
12698         append_arg_to_string.
12700         * xditview: Merge in new implementation with own ChangeLog.
12702 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
12704         * groff.c (main): Implement PRINT_OPTION.
12705         (append_arg_to_string): New command.
12706         (device_table): Set PRINT_OPTION flag for Xps.
12708 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
12710         * troff/groff.h: Rename to troff.h.
12712         * pic/lex.c (lookup_keyword, docmp): New functions.
12713         (get_token): Use new lookup_keyword.
12714         Don't include key.h.
12715         * pic/key.[ch], pic/pic.gperf: Deleted.
12716         * pic/Makefile: Remove gperf stuff.
12718         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
12719         into output.h.
12720         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
12722         * troff/Makefile, troff/node.c: Move definition of
12723         STORE_WIDTH into node.c.
12725         * etc/grog.pl, etc/grog.sh: Support -mdoc.
12727 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
12729         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
12730         dvi/devdvi/texb.map: Add lq and rq.
12731         dvi/devdvi: Regenerate fonts.
12732         * ps/devps/textmap: Add lq and rq.
12733         * ps/devps: Regenerate fonts.
12734         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
12735         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
12737         * pic/object.c (position_rectangle): When checking radius
12738         cope with possiblity that width or height is negative.
12739         (box_object::box_object): Have separate xrad and yrad with
12740         signs matching signs of dim components.
12741         (box_object::{north,south}_{east,west}): Use xrad and yrad.
12742         (box_object::print): With rounded boxes use absolute values
12743         for dim and rad arguments.
12745         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
12746         in fontpath.h.
12748         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
12750         * various files: Add explicit destructors to keep Saber CC +d
12751         happy.
12753 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
12755         * eqn/box.c (box::top_level): Restore fonts correctly after
12756         font changes in line containing inline equation.  Also
12757         restore previous font as well as current font.
12758         * eqn/pbox.h: Define necessary string and register names.
12760         * troff/input.c (token::next): Case 'R' calls do_register.
12761         (do_register): New function.
12763 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
12765         * groff.c, groff.sh: Support Xps device.  Allow each device
12766         to have a pseudo_name and a real_name.
12768         * groff.c (run_commands): Don't print `Broken pipe' messages.
12770         * ps/pfbtops.c: New file.
12771         * ps/Makefile: Add pfbtops.
12773         * troff/number.c (parse_term): Improved error message.
12775 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
12777         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
12779         * Makefile: Integrate refer.
12780         * refer: New directory.
12781         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
12782         man/lkbib.man: New files.
12783         * man/Makefile: Support refer man pages.
12785         * lib/lib.h: Declare is_prime.
12786         * lib/prime.c: New file.
12788         * troff/input.c (macro_source): New function.
12789         (init_input_requests): Bind "mso" to macro_source.
12791         * troff/env.c (environment::possibly_break_line): Maintain
12792         pointer to pointer to node to be split in ndp so as to avoid
12793         using address of freed node.
12795         * troff/env.c (environment::hyphenate_line): Maintain pointer to
12796         pointer to first node to be hyphenated in startp so as to
12797         avoid using address of freed node.
12799         * troff/env.c (class trie, class hyphen_trie): Make the
12800         elements of the trie be of type char not unsigned char.
12801         Declare arguments to be const char* instead of unsigned char *.
12802         
12803         * troff/env.c (hyphenate): Initialize hbuf[0].
12805         * troff/input.c (set_string): Declare p to be char * and cast
12806         *p to unsigned char when necessary.
12808         * troff/input.c (do_define_macro): Declare s to be const
12809         char*. Cast element to unisgned char when necessary, Declare
12810         d to be an int.  Handle EOF better.
12812         * troff/Makefile, troff/input.c: Different scheme for passing
12813         definitions of MACROPATH, HYPHENFILE and DEVICE.
12815 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
12817         * tty/devascii/R.proto: Delete entry for em.
12818         * tty/devlatin1/R.proto: Likewise.
12820 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
12822         * troff/input.c (translate): Stop when we get a space. Treat eof
12823         like newline.
12825         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
12827 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
12829         * tbl/main.c (process_format): A font name following a `f'
12830         modifier that starts with a digit can be only one character long.
12831         Also deal with EOF on the second character of the font name.
12833 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
12835         * troff/input.c (token::next): Turn \~ into an
12836         unbreakable_space_node.
12837         * troff/node.c (unbreakable_space_node): New class.
12838         * troff/node.h: Declare it.
12840 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
12842         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
12843         it's >= 0, before outputting it as a single byte.
12845 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
12847         * lib/font.c: Make font_char_metric::code an int.
12848         (font::get_code): Change return type to int.
12849         (font::load): Allow code to be arbitrary integer.
12850         * lib/font.h (font::get_code): Change return type to int.
12851         (font::number_to_index): Change argument type to int.
12852         * troff/input.c (token::next):  In case 'N', allow any value.
12853         Store value in token::val.
12854         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
12855         (token::get_char, token::add_to_node_list, token::process): Get
12856         number from val.
12857         (charinfo::set_number): Change argument to int.
12858         (charinfo::get_number):  Require that NUMBERED flag be set.
12859         (get_charinfo_by_number): Store numbered characters not between 0
12860         and 255 in a dictionary.
12861         * troff/charinfo.h (get_charinfo_by_number): Change argument type
12862         to int.
12863         (charinfo::number): Change type to int.
12864         (charinfo::set_number): Change type of set_number to int.
12865         * troff/node.c (troff_output_file::put_char_width,
12866         troff_output_file::put_char): Test whether character is numbered
12867         using charinfo::numbered().
12868         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
12869         values of num.
12870         * lib/nametoindex.c: New implementation to cope with arbitrary
12871         number characters.
12873         * troff/input.c (token::operator==): Test val for
12874         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
12875         TOKEN_SIZE.
12877         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
12878         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
12880 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
12882         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
12883         variable.
12885         * all Makefiles: rm targets of cp and >.
12887         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
12888         it.
12890         * eqn/lex.c (def_table): Add dollar.
12892 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
12894         * troff/input.c (do_width): Push back newline before closing delim
12895         like do_bracket.
12897 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
12899         * groff.c (possible_command::prepend_arg): New function.
12900         (main): Prepend device -m option.
12901         * groff.sh: Put device -m options before command-line options.
12903 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
12905         * macros/tmac.an (IP): Quote argument to TP.
12907         * ps/ps.c (main): New option -b, which sets...
12908         (broken_flags): New variable.
12909         (ps_printer::~ps_printer): Incorporate the setup section in the
12910         prolog if (broken_flags & NO_SETUP_SECTION).
12911         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
12912         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
12913         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
12914         ps_printer::print_needed_font_comment,
12915         ps_printer::print_supplied_font_comment,
12916         ps_printer::print_include_font_comments,
12917         ps_printer::lookup_doc_font, ps_printer::download_fonts,
12918         ps_printer::read_download_file, read_document_fonts, add_font,
12919         skip_line, parse_fonts_arg, document_font::document_font,
12920         document_font::~document_font, document_font::download,
12921         ps_output::include_file):  Deleted.
12922         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
12923         rather than %!PS-Adobe-2.0.  Make calls to
12924         resource_manager::need_font for each font that we used. Replace
12925         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
12926         print_supplied_font_comment, print_needed_font_comment by call to
12927         resource_manager::print_header_comments. Output %%Orientation
12928         comment. Output %%Requirements: numcopies comment if ncopies > 1.
12929         Don't output the prolog directly.  Instead call
12930         resource_manager::output_prolog.  Only define #copies when ncopies
12931         > 1.  Delete calls to print_include_font_comments  and
12932         download_fonts.  Add call to resource_manager::document_setup.
12933         (ps_printer::do_file): Call resource_manager::import_file instead
12934         of including it ourselves.
12935         (ps_printer::do_import): Likewise.  Also don't call
12936         merge_import_fonts. Push userdict on the dictionary stack before
12937         and pop it afterwards.
12938         Move declaration of ps_output into ps.h.
12939         * ps/psrm.c: New file implementing resource_manager class.
12940         * ps/ps.h: New file declaring ps_output and resource_manager
12941         classes.
12942         * ps/devps/zapfdr.ps:
12943         * ps/devps/symbolsl.ps:
12944         * ps/devps/prologue:  Use 3.0 conventions.
12945         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
12946         Add default definition of BROKEN_SPOOLER_FLAGS.
12947         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
12948         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
12950 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
12952         * etc/grog.pl: New file.
12953         * Makefile (GROG): New variable.
12954         Add GROG to SUBFLAGS.
12955         * etc/Makefile (GROG): New variable.
12956         (install.nobin): Install $(GROG) rather than grog.sh.
12958 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
12960         * eqn/special.c (special_box::compute_metrics): Make the input and
12961         output strings the same.  Get the new height and depth from the
12962         predefined height and depth registers.  Also make subscript kern
12963         and skew available.
12964         (special_box::compute_subscript_kern, special_box::compute_skew):
12965         New functions.
12967         * eqn/box.c (pointer_box::compute_skew,
12968         simple_box::compute_metrics, box::top_level)
12969         * eqn/text.c (prime_box::compute_metrics,
12970         prime_box::comput_subscript_kern)
12971         * eqn/limit.c (limit_box::compute_metrics):
12972         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
12973         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
12974         negative numbers in `nr' requests with a leading 0.
12976 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
12978         * eqn/special.c: New file.
12979         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
12980         Add new rule for simple.
12981         * eqn/lex.c (token_table): Add SPECIAL.
12982         * eqn/box.h: Declare make_special_box.
12983         * eqn/Makefile: Add special.[co].
12985 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
12987         * ps/devps/prologue: Possibly set packing to true while defining.
12988         Create grops dictionary here.  Initialize local variables before
12989         defining procedures.
12990         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
12991         the dictionary stack. Set strokeadjust and overprint to false if
12992         the relevant operators are defined.
12993         (PEND): New procedure.
12994         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
12995         prologue.  Do everything else in the setup section.
12996         (ps_printer::do_import): Just call PBEGIN and PEND around the
12997         picture. Also push userdict before, and pop it afterwards.
12999 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
13001         * troff/node.c (bracket_node::tprint): Brackets were being printed
13002         1m too low.
13004         * macros/tmac.an (SH, SS): Set fill mode.
13006 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
13008         * troff/div.c (top_level_diversion::begin_page): Set
13009         high_water_mark to 0.
13011 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
13013         * man/mdate.sh: New file.
13014         * man/mdate.c: Deleted.
13015         * man/Makefile: Use mdate.sh instead of mdate.
13016         (mdate): Deleted.
13018         * eqn/lex.c (do_gsize): Supply missing argument to error message.
13020 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
13022         * man/mdate.c: New file.
13023         * man/*.man: Replace modification date by @MDATE@.
13024         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
13025         (mdate): New target.
13027         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
13028         Remove illegal input characters.
13030 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
13032         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
13034 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
13036         * troff/div.c (begin_page): Change behaviour when
13037         !first_page_begun and !break_flag.
13039         * troff/input.c (do_name_test): Return 0 if argument is empty.
13041         * troff/input.c (read_long_escape_name): Require closing ] to be
13042         at same input level as opening [.
13044         * troff/input.c (read_increment_and_escape_name): New function.
13045         (get_copy, process_input_stack): Use this for \n.
13047 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
13049         * troff/div.c (top_level_diversion::begin_page): Ignore the
13050         current value of page_number if !first_page_begun.
13052         * groff.c (main): Fix declaration of buf.
13054         * troff/input.c (do_name_test): New function.
13055         (token::next): Implement \A.
13056         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
13057         (token::description, token::add_to_node_list, token::process):
13058         Handle TOKEN_ESCAPE.
13059         * troff/token.h: New token TOKEN_ESCAPE.
13061 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
13063         * pic/main.c (do_picture): Allow space before and after filename
13064         following `<'.  Check that the filename is not empty.
13066 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
13068         * Version 1.01 released. 
13070         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
13072         * dvi/tmac.dvi: ftr HR to H.
13074         * macros/tmac.e: Round up computation of $r.
13076         * xditview/tmac.X:  Don't give up completely in compatibility mode.
13077         Use \n(.s instead of \n[.s].
13079         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
13080         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
13081         Add u to factors inside \s[...]. Rename frac to dvi-frac.
13082         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
13083         short names in the char definitions.
13085         * ps/tmac.ps: Don't give up completely in compatibility mode.
13086         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
13087         quote in front of \n(.s. Add u to factors inside \s[...].
13089 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
13091         * tty/tmac.tty: Call the nroff request.
13093         * macros/tmac.e ((x, )x):  Better definitions that work properly
13094         in a diversion.
13095         (@0, @1): Helper macros for (x.
13097         * macros/tmac.e ($s, hl): Use \l rather than \D.
13099         * tty/tmac.tty: Make it work better in compatibility mode.
13100         (pchar): Rename to tty-char.
13102         * macros/tmac.e (@E): New macro.
13103         (r, i, b, rb, bi): Use @E.
13105         * macros/tmac.e (@F): Don't use (;...) syntax.
13107         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
13108         it was modified for groff.
13110         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
13112         * macros/tmac.e (<., .>): Removed.
13113         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
13115         * macros/tmac.e: Remove check that groff is being used.
13117         * macros/tmac.e (@C): Change families only if using groff; turn
13118         compatibility mode off while changing familes. Save compatibility
13119         mode before changing families and restore it afterwards.
13121         * macros/tmac.e (@h): Remove test for offset + line length.
13123         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
13124         (lo, th, ac): Define to call @S instead of using als.
13126         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
13127         the ratio of the vertical spacing to the point size in units
13128         expressed as a percentage.  Use these instead of $10r and $10R,
13129         Delete $10r and $10R.
13131         * lib/font.c (font::load): In default computation of space_width,
13132         divide by sizescale.  Use scale_round.
13134         * macros/tmac.an (TP): Don't call `nf'.
13135         (an-do-tag): Don't call `fi'.
13137 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
13139         * troff/input.c (process_input_stack): Handle the case where
13140         spaces at the beginning of an input line are followed by a
13141         newline.
13143 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
13145         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
13146         * groff.sh: Use pic -x with the dvi device.
13148         * dvi/devdvi/FontMakefile (H): Don't use -s.
13150         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
13151         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
13152         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
13153         in FONTS.
13155 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
13157         * ps/psfig.diff: New file.
13158         * ps/tmac.psfig: New file.
13160 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
13162         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
13163         (]-): Don't call ref*do-tl.
13165         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
13167         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
13168         (fn@do-FS): Rename to fn*do-FS.
13170         * troff/input.c (transparent_translate): New function.
13171         (process_input_stack): Apply transparent_translate before calling
13172         diversion::transparent_output(unsigned char).
13174 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
13176         * troff/input.c (do_define_macro): Define the macro before calling
13177         skip_line.
13179         * xditview/Makefile: Add DEVICES variable.  Change install target
13180         to use this.
13182 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
13184         * groff.c (run_commands): Handle the possibility that there are
13185         child processes other than those forked by us.
13187 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
13189         * lib/string.c (string::append): New function.
13190         * lib/stringclass.h: Declare it.
13192 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
13194         * eqn/main.c (main): New option -N which sets
13195         no_newline_in_delim_flag. 
13196         (do_file): If no_newline_in_delim_flag is set don't allow newlines
13197         in delimiters.
13198         * groff.c (main): Pass -N on to eqn.
13199         (help, synopsis): Mention -N.
13200         * groff.sh: Implement -N.
13202 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
13204         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
13205         (]-): Call ref*do-tl if ref*need-tl is non-zero.
13206         (XP): Allow as initializer.
13208 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
13210         * troff/env.c (environment::wrap_up_field): If field_spaces are
13211         non-zero and we have a current_tab, subtract padding from
13212         tab_distance.  If this makes tab_distance <= 0, use the next tab
13213         stop instead.  If there isn't any next tab or it's a left tab,
13214         wrap up the current tab.
13215         (environment::start_field): Initialize tab_precedes_field.
13216         (environment::wrap_up_tab): If there's a current field, update
13217         pre_field_width, field_distance and tab_precedes_field.
13218         * troff/env.h (environment::tab_precedes_field): New member.
13220 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
13222         * ps/ps.c (ps_printer::do_file): New function.
13223         (ps_printer::special): Bind to `file' special.
13224         (ps_printer::do_exec): Set ndefined_styles to 0.
13226 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
13228         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
13229         Avoid stripping first character from the start of unrecognized
13230         escapes.  Use lex_error instead of error to report errors.
13231         * eqn/lex.c (get_token): Rework handling of escapes.
13232         (lex_error): Move declaration into...
13233         * eqn/eqn.h.
13235         * xditview/xditview.c (main): Make -page option work.
13237         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
13239 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
13241         * macros/tmac.s (B2): Correct size of box.
13243 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
13245         * macros/tmac.s (B2): Postpone drawing the box until in the
13246         top-level diversion.
13248         * tty/tmac.tty: Add font translations for C, CR, CW.
13250         * groff.c (synopsis, help): Document -i.
13251         * groff.sh: Implement -i.
13253         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
13254         Simplify the construction of SN.
13256         * troff/number.c (parse_term): Give `|' a higher precedence.
13257         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
13258         accordingly.
13260         * macros/tmac.s (B2): Use par@finish instead of par@reset.
13262 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
13264         * lib/string.c (string::move): New function.
13265         * lib/stringclass.h: Declare it.
13267 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
13269         * troff/env.c (distribute_space): Add optional argument
13270         `force_forward'.
13271         (environment::wrap_up_field): Call distribute_space with
13272         `force_forward' argument of 1.
13274 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
13276         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
13277         Inline it.  Move reallocation into...
13278         (string::grow1): New function.
13279         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
13280         dependencies to include library header files.
13281         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
13283 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
13285         * macros/tmac.s (@NH): Use the same number registers than -ms does
13286         for the heading level counters.  Use the same string that -ms does
13287         for the number for this heading.
13289 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
13291         * lib/new.c (operator new): Cast result of malloc to char *.
13293         * troff/input.c (spring_trap, lookup_request): Add assert that nm
13294         is not null.
13296 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
13298         * groff.c (main): Support -i.
13300 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
13302         * pic/pic.h: Include <osfcn.h>.
13304         * ps/ps.c: Add declaration of mktemp.
13306         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
13307         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
13308         argument as union wait *.
13309         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
13310         argument to union wait *.
13312 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
13314         * tty/tmac.tty: Add definition of \(co.
13316         * pic/object.c (make_arc): Only increase radius when radius
13317         strictly less than d.
13318         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
13319         more than once.
13321         * troff/env.c (environment::environment(symbol),
13322         environment::environment(const environment *)):  Initialize
13323         input_trap_count.
13325 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
13327         * tbl/main.c (main): Add exit(0).
13329         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
13331         * pic/main.c (main):
13332         * eqn/main.c (main):
13333         * tbl/main.c (main):
13334         * etc/soelim.c (main):
13335         * driver/printer.c (printer::~printer):
13336         * troff/node.c (real_output_file::~real_output_file,
13337         real_output_file::flush):  Check for errors on stdout.
13339         * most files: Add 1991 to copyright notice.
13341         * macros/tmac.s: Don't test \n(.x and \n(.y.
13343         * troff/input.c (token::next): Rename `escape_char' label to
13344         `handle_escape_char' and `normal_char' label to
13345         `handle_normal_char'.
13347 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
13349         * groff.c (main, synopsis, help): Support -a option.
13350         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
13351         to trflags while parsing options.
13353 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
13355         * troff/number.c (parse_term): With `m', `M' and `n' scale
13356         indicators, convert scale factor to hunits before scaling.
13358 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
13360         * lib/font.c (scale_round): Better test for overflow when n is
13361         negative.
13363 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
13365         * tbl/main.c (process_format): Add second argument of type
13366         options*. Change callers.  Allow opt->tab_char as well as '\t'
13367         between format items.
13369 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
13371         * macros/tmac.an (PD): With no arguments, make sure register PD is
13372         at least \n[.V].
13373         (TH): Call PD with no argument, instead of setting register PD
13374         directly.
13376 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
13378         * Version 1.00 released.
13380 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
13382         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
13384         * dvi/devdvi/DESC: Mount CW instead of CR.
13386         * dvi/tmac.dvi: Add definition of \(tm.
13388         * dvi/devdvi/texsy.map: Add lh, and rh.
13389         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
13390         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
13392         * dvi/devdvi/FontMakefile: Generate H from cmss10.
13393         * dvi/devdvi/Makefile: Install H.
13394         * dvi/devdvi/H: New file.
13396 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
13398         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
13399         be 0.
13401 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
13403         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
13405         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
13407         * macros/tmac.s (@EN): Handle the case where the equation is empty
13408         but the label is not.
13410 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
13412         * troff/groff.h: New warning category WARN_SPACE.
13413         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
13414         WARN_SPACE to warning_table.
13415         (interpolate_macro): Give a warning of type WARN_SPACE if the name
13416         is longer than two characters and is not defined, but the first
13417         two characters do make a defined name.
13419         * PROBLEMS: New file.
13421         * CHANGES: New file.
13422         * README-0.6, README-1.00: Deleted.
13424         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
13425         * xditview/devX75/Makefile: Make devX75-12.
13426         * xditview/devX100/Makefile: Make devX100-12.
13428         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
13429         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
13431 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
13433         * README-0.7: Rename to README-1.00.
13435         * macros/tmac.pic: New file.
13436         * macros/Makefile (install.nobin): Install tmac.pic.
13438 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
13440         * troff/env.c (hyphen_word): Correct the test for whether the
13441         token is a hyphen.  Reset npos to 0.
13443         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
13445 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
13447         * macros/tmac.s (ds*common-end): Call par*reset.
13448         (PE): Likewise.
13449         (par@reset-indent): Deleted.
13451         * macros/tmac.s (@IP): Divert the label.
13453 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
13455         * xditview/draw.c (setGC): Use a line width of .1m rather than
13456         .04m by default; round rather than truncate value.
13458         * tbl/table.c (class empty_entry): New class.
13459         (empty_entry::empty_entry, empty_entry::line_type): New functions.
13460         (table::add_entry): Represent empty entries by objects of type
13461         empty_entry.
13462         (table_entry::line_type): Return -1.
13463         (table::determine_row_type): Ignore entries with line_type 0.
13464         Treat type -1 as non-lines.
13466 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
13468         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
13469         macros/tmac.s: Rename \(-d to \(Sd.
13471 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
13473         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
13474         * xditview/libXdvi/DviChar.c: Likewise.
13475         * dvi/devdvi/texsy.map: Add `<<', `>>'.
13477 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
13479         * troff/div.c (top_level_diversion::begin_page): Call
13480         init_output() if the_output is 0.
13482 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
13484         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
13485         ESCAPE_c.
13486         (get_copy): Turn \E into ESCAPE_E.
13487         (token::process, asciify): Handle ESCAPE_E.
13489         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
13490         (RD): New macro.
13491         (DS): Implement `.DS R'.
13493 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
13495         * macros/tmac.s (FS): New macro.
13497         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
13499         * macros/tmac.s (cov*tl-init): Remove after first execution
13500         instead of aliasing to @nop.  Call top of page macro explicitly
13501         instead of setting trap; call @init first.  Set pg@top as top of
13502         page macro.
13503         (cov*auto-init): Deleted.  Set cov*tl-init instead of
13504         cov*auto-init as top of page trap. 
13505         (TL, LP): Do a break instead of calling cov*tl-init.
13506         (cov*print): With RP format but no TL, alias FS and FE to @FS and
13507         @FE; in this case also give a warning and always start another
13508         page. No need to set pg@top here.
13509         (cov*tl-init): Rename to cov*first-page-init.
13511         * macros/tmac.s (RP): Do `.pn 0'.
13512         (cov*tl-init): With RP format don't do `.pn 0'.
13514         * macros/tmac.s (pg@cs-top): Set no space mode.
13516         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
13517         (cov*ab-init): Alias TL, AU and AI to these.
13519 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
13521         * macros/tmac.s (@EQ): Move the space before the equation into @EN
13522         (@EN): Do nothing unless \n[dl] is > 0.
13524 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
13526         * pic/object.c (ellipse_object::radius): New function.
13528         * VERSION: Change version to 0.7.
13530         * tbl/table.c (block_entry::do_divert): Declare return type as
13531         void.
13532         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
13534 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
13536         * troff/column.c: New file.
13537         * troff/Makefile: Corresponding changes.
13539         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
13540         Friend of vunits.
13542         * troff/div.c (top_level_diversion::space): If the space causes
13543         the first-page transition and springs a trap, truncate the space
13544         to 0.
13546 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
13548         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
13549         the document.
13551         * pic/troff.c (troff_output::line_thickness,
13552         troff_output::set_fill): Do a horizontal motion to compensate for
13553         the width of the \D escape sequence.
13555 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
13557         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
13558         (not X75).
13560         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
13561         to printf.
13563         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
13564         Supply empty definition.
13565         (text_entry::simple_print, simple_text_entry::simple_print):
13566         Delete declarations.
13567         (table::add_entry): Represent empty entries by objects of type
13568         `simple_entry'.
13570 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
13572         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
13574         * tbl/table.c (left_text_entry::add_tab): New function.
13576         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
13577         initialize like LP.
13579 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
13581         * troff/env.c (environment::start_field): Give an error message if
13582         there is no next tab.
13584 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
13586         * troff/env.c (hyphenate): Skip initial elements with zero
13587         hyphenation code.
13589         * macros/tmac.s (par@init): Keep VS in points rather than units.
13591 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
13593         * pic/main.c (main): Implement `-c' option.
13594         * pic/output.h: Declare make_tpic_output().
13595         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
13596         protected.
13597         (tpic_output): New class.
13598         (tpic_output::tpic_output, tpic_output::set_pen_size,
13599         tpic_output::command, make_tpic_output): New functions.
13601 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
13603         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
13604         if they're not already defined.
13605         * tbl/table.c (init_output): Don't test \n(.g.
13607         * troff/input.c (do_if_request): Delete `g' condition. Recognize
13608         `d', `r' and `c' conditions even in compatibility mode.
13610 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
13612         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
13613         box.
13615 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
13617         * troff/env.h (environment::prev_line_interrupted): New member.
13618         (environment::get_prev_line_interrupted): New function.
13619         * troff/env.c (environment::newline): Set prev_line_interrupted.
13620         (environment::environment(const environment *),
13621         environment::environment(symbol)): Initialize
13622         prev_line_interrupted.
13623         * troff/input.c (process_input_stack): Don't give special
13624         treatment to space and newline at the beginning of the line if the
13625         previous line was interrupted.
13627 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
13629         * eqn/eqn.y: Disallow PRIME by itself.
13630         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
13631         PRIME.
13632         (def_table): Remove definition of '.  Define prime to be `.
13634         * eqn/eqn.y: Split off part of rule `script' into a new rule
13635         `nonsup'.
13637 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
13639         * macros/tmac.s ({, }): New string aliases.
13641 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
13643         * README-0.7: New file.
13645 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
13647         * macros/tmac.s: New file.
13648         * man/groff_ms.man: New file.
13649         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
13650         * Makefile.bd: Similarily.
13651         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
13652         definition of TMAC_S.
13653         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
13654         * macros/TODO: New file.
13656 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
13658         * troff/env.c (right_justify): New function.
13659         (init_env_requests): Bind this to request "rj".
13660         (center_lines): Set right_justify_lines to 0. If we get a bad
13661         integer, center 1 line.
13662         (environment::environment(symbol), environment::environment(const
13663         environment *)): Initialize right_justify_lines.
13664         (environment::get_right_justify_lines): New function.
13665         (init_env_requests): Bind this to number_register ".rj".
13667         * troff/env.c (environment::choose_breakpoint): Implement
13668         hyphenation_margin and hyphenation_space.
13669         (environment::get_hyphenation_space,
13670         environment::get_hyphenation_margin): New functions.
13671         (init_env_requests): Bind these to .hys and .hym.
13672         (hyphenation_space_request, hyphenation_margin_request): New
13673         functions
13674         (init_env_requests): Bind these to hys and hym.
13675         (environment::environment(symbol), environment::environment(const
13676         environment *)): Initialize hyphenation_margin and
13677         hyphenation_space.
13678         * troff/env.h: Corresponding changes to class environment.
13680 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
13682         * troff/div.c (blank_line): Always do a break.
13684         * eqn/box.c (do_text): Turn off escapes while appending text to
13685         string.
13687 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
13689         * troff/input.c (while_break_request, while_continue_request): New
13690         functions.
13691         (init_input_requests): Bind these to "break" and "continue".
13692         (while_depth, while_break_flag): New variables.
13693         (while_request): Update while_depth.  Break out of loop if
13694         while_break_flag is set.
13696 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
13698         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
13699         rather than 0.
13701 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
13703         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
13705         * stringify: New file.
13706         * Makefile (groff.o): Use stringify.
13708         * xditview/tmac.X: Remove definition of \(rn.
13709         * xditview/libXdvi/DviChar.c: Remove radicalex from
13710         Adobe_symbol_map.
13712 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
13714         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
13715         (alphabetic_block_entry::alphabetic_block_entry,
13716         alphabetic_block_entry::divert, alphabetic_block_entry::print):
13717         New functions.
13718         (block_entry::divert): Split off body into ...
13719         (block_entry::do_divert): If the block is alphabetic, subtract 2n
13720         from the line length; also update the span width to dl+2n, and the
13721         alphabetic span width to dl.
13723         * driver/input.c (do_file):  While reading argument to D command,
13724         when expanding buffer, multiply szp by sizeof(int) rather than 2
13725         in the argument to memcpy.
13727         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
13728         width of alphabetic columns.
13730 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
13732         * troff/node.c (lookup_family): Supply second argument to lookup.
13734         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
13735         search, return immediately if v is 0.
13737         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
13738         (troff_output::start_picture): Set this reg.
13739         (troff_output::end_picture): Remove this reg
13740         * eqn/box.c (box::extra_space): Don't produce `\x's if
13741         EQN_NO_EXTRA_SPACE_REG is defined.
13743         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
13744         * eqn/text.c (split_text): Map ' to \(fm when it's the first
13745         character.
13747 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
13749         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
13750         requests.
13752         * troff/div.c (top_level_diversion::top_level_diversion):
13753         Initialize page_number to 0.
13755 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
13757         * groff/troff (environment::environment(const environment *)):
13758         Initialize name to e->name, rather than "anonymous".
13760 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
13762         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
13763         requested_page.  Split middle part into ...
13764         (FindPage): New function.
13765         (SetValues): If we don't yet know the last page, and the requested
13766         page is greater than the current page, call FindPage.
13767         Update the font_map_string before doing this.
13769         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
13770         Translate \(lh and \(rh into left and right double arrows.
13772         * troff/node.c (class hyphen_inhibitor_node): New class.
13773         (hyphen_inhibitor_node::hyphen_inhibitor_node,
13774         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
13775         hyphen_inhibitor_node::type,
13776         hyphen_inhibitor_node::get_hyphenation_type): New functions.
13777         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
13778         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
13779         word.
13781 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
13783         * troff/node.h (dummy_node::get_hyphenation_type,
13784         transparent_dummy_node::get_hyphenation_type):  Declare them.
13785         * troff/node.c: (dummy_node::get_hyphenation_type,
13786         transparent_dummy_node::get_hyphenation_type): New functions.
13788 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
13790         * xditview/libXdvi/draw.c: If M_PI not defined after including
13791         math.h, then define it.
13793         * xditview/Makefile: Add definition of AR. Pass it to the submake
13794         in libXdvi.
13795         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
13797 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
13799         * troff/dictionary.h (object_dictionary::alias): Declare return
13800         value as int.
13801         * troff/dictionary.c (object_dictionary::alias): Return non-zero
13802         if the old name was defined.
13803         * troff/input.c (alias_macro): Give a warning if the old name was
13804         not defined.
13805         * troff/reg.c (alias_reg): Likewise.
13807 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
13809         * troff/input.c (token::next): Delete implementation of \R.
13811         * macros/Makefile: Strip comments from tmac.e while installing it.
13813         * troff/input.c: New variable `nroff_mode'.
13814         (troff_request, nroff_request): New functions.
13815         (init_input_requests): Bind `troff' and `nroff' to troff_request
13816         and nroff_request.
13817         (do_if_request): Compute results of t and n conditions from
13818         nroff_mode.
13820         * text/text.c (split_text): Fix typo in >=.
13822         * eqn/lex.c: Add definition of `==' to def_table.
13824 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
13826         * pic/tex.c (tex_output::start_picture): Change the definitions of
13827         \graph and \graphtemp so that they work properly with Plain TeX.
13829         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
13830         argument to `ar' is not less than the first.
13832         * pic/pic.y: Allow a comma between elements of the variable list
13833         in the argument to `reset'.
13835         * pic/object.c (arc_object::arc_object): Fix computation of
13836         radius.
13838         * eqn/main.c (main): Add exit(0).
13840 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
13842         * troff/div.c (begin_page): Test no_space_mode after doing the
13843         break, but still push the page ejector cookie before doing the
13844         break.  Also set the next page number after doing the break.
13845         
13846         * xditview/xditview.c (NewFile): Don't set the title and icon name
13847         if this is the first file and its name is `-'.
13848         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
13849         the X75 and X100 devices.
13850         (main): If a device has the XT_OPTION flag set and there's exactly
13851         one file argument, pass the driver -xrm and -title options to set
13852         the icon name and window title to the name of the file.
13854         * troff/env.c (environment_switch): If there was an argument but
13855         it wasn't a valid number or name, then pop an environment but
13856         don't give an error message on underflow.
13858         * troff/number.c (start_number): Correct spelling in error message.
13860         * troff/input.c (token::delimiter): Don't print an error message
13861         if err is false.
13863         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
13864         ParseDrawFunction if dw->display_enable is true.
13866 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
13868         * pic/pic.y: Parse text positioning like normal attributes, so as
13869         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
13870         positioning attribute.
13872 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
13874         * tbl/main.c (process_data): When in state START while reading a
13875         text block, don't change to state MIDDLE if c is a newline.
13877 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
13879         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
13880         so as to avoid shadowing parameter.
13882 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
13884         * tbl/table.c (trim_space): Deleted.
13885         (table::add_entry): Don't call trim_space.
13887 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
13889         * VERSION: Change version to 0.6.
13891         * troff/number.c (parse_expr): Make == work.
13893 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
13895         * man/grog.man: New file.
13896         * man/Makefile: Add grog.n to MAN1PAGES.
13897         * etc/grog.sh: New file.
13898         * etc/Makefile: Install grog.sh as grog.
13900 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
13902         * troff/input.c (token::next): Implement \E.
13904 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
13906         * xditview/tmac.X: Change font translations to match tmac.ps.
13908         * troff/input.c (non_empty_name_warning): Don't give a warning if
13909         `\{' terminates the name.
13911 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
13913         * ps/devps/symbol.diff: New file.
13914         * ps/devps/FontMakefile: Mention symbol.diff.
13916 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
13918         * troff/node.c (font_position): Use get_long_name to read the
13919         external_name.
13921         * troff/env.c (environment_switch): If we get a number that's < 0
13922         or >= NENVIRONMENTS, treat it like a name.
13923         Change NENVIRONMENTS to 10.
13925         * troff/groff.h: Remove definition of FONTS_MAX.
13926         * troff/node.h (class font_family): Make map a pointer instead of
13927         an array. Add a map_size member. Make it a class. Make nm const
13928         and public. Make invalidate_fontno a friend.
13929         * troff/node.c: Define font_table_size. Make font_info a pointer
13930         rather than an array.
13931         (class troff_output_file): Allocate font_position dynamically. Add
13932         nfont_positions member.
13933         (troff_output_file::set_font): Grow font_position if necessary.
13934         (troff_output_file::~troff_output_file): Delete font_position.
13935         (troff_output_file::troff_output_file): Allocate font_position.
13936         (grow_font_table): New function.
13937         (troff_output_file::really_begin_page,
13938         troff_output_file:really_copy_page): Use nfont_positions rather
13939         than FONTS_MAX.
13940         (mount_font_no_translate, mount_style): Call grow_font_table if
13941         necessary.
13942         (font_family::font_family): Allocate map.
13943         (font_family::make_definite): Grow map if necessary. Use
13944         font_table_size instead of FONTS_MAX.
13945         (font_family::~font_family): New function.
13946         (invalidate_fontno): Use font_family::map_size.
13947         (get_fontno, env_space_width, env_half_narrow_space_width,
13948         env_narrow_space_width, symbol_fotno, is_good_fontno,
13949         get_bold_fontno, make_glyph_node): Use font_table_size rather than
13950         FONTS_MAX.
13951         (next_available_font_position): Never return 0.
13953 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
13955         * ps/tmac.ps: Add font translations for compatibility with dpost.
13957 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
13959         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
13960         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
13961         Move definitions baseline_sep, shift_down, column_sep,
13962         matrix_side_sep into...
13963         * eqn/box.c: Add them to param_table.
13964         * eqn/pbox.h: Add declarations to pbox.h.
13966         * troff/input.c (set_string): Cast value to unsigned char *.
13968         * troff/token.h (process_input_stack): Declare it static before
13969         declaring it a friend.
13971 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
13973         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
13974         and bottom.
13975         * dvi/devdvi/EX: Regenerate.
13977         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
13978         transparent.
13980 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
13982         * eqn/lex.c: In defaults_table, make definition of `dot' call
13983         `dot_def'.  Don't explicitly make it roman.  Similarily for other
13984         accents.
13986         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
13987         argument.
13988         (for_input::get, for_input::peek): Use this.
13989         (do_for): Add by_is_multiplicative argument.
13990         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
13991         Change semantic value of optional_by to be a double plus a flag
13992         saying whethet the by clause is multiplicative.
13994         * eqn/lex.c (get_delimited_text): Remember location of start of
13995         definition.  Improve error handling when EOF is encountered.
13997         * lib/font.h: Rename handle_x_command to
13998         handle_unknown_font_command.
13999         * lib/font.c (font::load): Call handle_unknown_font_command for
14000         any unknown command in the font description file.  Don't call
14001         handle_x_command. Include the name of the command in the argv.
14002         Improve message for unknown command after kernpairs or charset
14003         command.
14004         * ps/ps.c (ps_font::handle_x_command): Rename to
14005         handle_unknown_font_command.  Remove message about `x download'
14006         command.  Give error message for wrong number of arguments.
14007         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
14008         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
14009         handle_unknown_font_command. Give an error message for wrong
14010         number of arguments.  Rename design_size to designsize.
14011         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
14012         checksum', `designsize' instead of `design_size'.
14014 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
14016         * eqn/*.[chy]: Change underaccent to uaccent.
14018         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
14019         give it the same precedence as ACCENT.
14020         * eqn/other.c (make_underaccent_box): New function.
14021         * eqn/box.h: Declare it.
14022         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
14023         def_table.
14025 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
14027         * pic/pic.y (reset_all): New function. Called in rule for RESET.
14028         (parse_init): Call reset_all.
14029         (define_variable): When defining scale reset only those
14030         pre-defined variables that are scaled.
14031         (defaults_table): Add `scale' as non-scaled value.
14033         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
14034         together with the text; allow any number of positioning words;
14035         allow center as a positioning word.
14037         * pic/object.c (output::compute_scale): Get picture maximum height
14038         and width from variables called maxpswid and maxpsht.
14039         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
14041 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
14043         * pic/object.c (object_spec::make_text): Multiply textht by number
14044         of text items.
14046         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
14047         occur.
14048         (do_sprintf): New function.
14049         (pic.gperf): Add sprintf token.
14050         (text, sprintf): New rules.
14052         * pic/pic.y: `rand()' with no arguments returns a random number
14053         in the range [0,1).
14055         * pic/pic.y: Allow a bare expression to be an attribute: change
14056         precedences to support this.  Change optional_ordinal rule to
14057         optional_ordinal_last to avoid reduce/reduce conflict.
14058         * pic/object.c (object_spec::object_spec): Initialize direction.
14060         * pic/pic.y: Implement ^ operator meaning exponentiation.
14062         * troff/node.h: Add default argument to mount_font.
14063         * troff/node.c (font_position): Read an optional third argument
14064         giving the external_name.
14065         (mount_font): Add optional argument giving the external_name.
14066         (mount_font_not_translate): Have additional argument giving
14067         external name.  Use this name to load the font.  Pass both names
14068         to font_info::font_info.
14069         (font_info::font_info): Have additional argument giving
14070         external_name.
14071         (class tfont): New member external_name.
14072         (font_info::get_tfont): Use external name to construct tfont_spec.
14074 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
14076         * eqn/lex.c (init_table): Add argument giving device.  Define
14077         name of device to be "1".
14078         (do_ifdef): Counts as true if the argument has been defined with
14079         `define'.
14080         * eqn/main.c (main): Call init_table with device argument. Make
14081         device local to main.
14082         * eqn/eqn.h: Change declaration of init_table. Remove declaration
14083         of device.
14085         * pic/lex.c (get_delimited): Allow text to be delimited by
14086         matching {}s.  Don't recognize ending delimiter within a string.
14088         * troff/input.c (get_delim_name): New function.
14089         (token::next): Implement \C.
14091         * lib/font.c (font::load): Grok ---.  Add an alias for each
14092         character based on its code.
14093         (font::get_code_width): Deleted.
14094         * lib/font.h (class font): Declare font::number_to_index().
14095         Remove declaration of font::get_code_width.
14096         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
14097         to indices of named characters.
14098         (font::number_to_index): New function.
14099         * troff/input.c (font::number_to_index): New function.
14100         (get_charinfo_by_number, charinfo::get_number,
14101         charinfo::set_number): New functions.
14102         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
14103         (token::process, token::description, token::get_char,
14104         token::add_to_node_list, token::operator==): Handle
14105         TOKEN_NUMBERED_CHAR.
14106         * troff/charinfo.h: Declare get_charinfo_by_number,
14107         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
14108         charinfo class.
14109         (charinfo::numbered): New function.
14110         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
14111         * troff/env.h (class environment): Remove declaration of ...
14112         * troff/env.c (environment::make_numbered_char_node): Deleted.
14113         * troff/node.c (make_numbered_node): Deleted.
14114         (class numbered_glyph_node): Remove.
14115         (troff_output_file::put_char_width, troff_output_file::put_char):
14116         Handle numbered chars.
14117         (troff_output_file::numbered_char): Removed.
14118         (tfont::get_code_width): Removed.
14119         (make_glyph_node): Don't search special fonts for numbered
14120         characters.
14121         * troff/node.h: Remove declaration of make_numbered_node.
14122         * driver/input.c (do_file): Handle N command.
14123         * driver/printer.h: Add declaration of ...
14124         * driver/printer.c (printer::set_numbered_char): New function.
14125         * dvi/tfmtodit.c (main): Generate unnamed entries.
14126         * ps/devps/afmtodit: Likewise.
14127         * xditview/xtotroff.c (MapFont): Likewise.
14128         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
14130         * tbl/main.c (process_format): If multiple widths are specified
14131         for a column but all the widths are the same, don't give an error
14132         message.
14134         * tbl/table.c (table::do_row): If the current row is all lines and
14135         the stuff doesn't contains a line, mark the top of the row after
14136         printing stuff before the row.  If the current row is not all
14137         lines and the stuff doesn't contain a line, don't unnecessarily
14138         mark the top of the row before printing the stuff.
14139         
14140 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
14142         * troff/groff.h: Remove MAX_PATH.
14143         * troff/input.c (open_file): Dynamically allocate space for the
14144         path.
14145         (open_mac_file, process_macro_file): Corresponding changes.
14147 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
14149         * troff/node.h (class output_file): Make copy_file pure.  Add
14150         vspace method ifdef COLUMN. Add is_printing method.
14151         * troff/node.c: Add class printing_reg. Add class
14152         real_output_file. Derive other output_file classes from
14153         real_output_file; in these classes rename begin_page to
14154         really_begin_page, print_line to really_print_line, copy_file to
14155         really_copy_file, transparent_char to really_transparent_char.
14156         Move output_file::flush to real_output_file. Add printing member
14157         to class output_file.
14158         * troff/div.h: Remove printing member from top_level_diversion.
14159         Add vspace member function to class diversion ifdef COLUMN. Add
14160         some declarations ifdef COLUMN.
14161         * troff/div.c (top_level_diversion::copy_file,
14162         top_level_diversion::transparent_output,
14163         top_level_diversion::output): Don't test printing member before
14164         output.
14165         * troff/input.c: Handle initial variable_space_request ifdef
14166         COLUMN.
14167         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
14168         but comment it out.
14170 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
14172         * troff/div.c (diversion::need): Make any space forced.  If we
14173         sprung a trap, set truncated_space to minus the distance to the
14174         trap and set needed_space to the amount that was needed.
14175         (top_level_diversion::space): A forced space turns no_space_mode
14176         off.
14177         (class constant_vunits_reg): New class.
14178         (init_div_requests): Implement number registers .trunc and .ne
14179         using constant_vunits_reg.
14180         (class truncated_space_reg): Deleted.   
14182         * troff/div.h: Don't have a no_space_mode member in diversion.
14183         Instead have it in top_level_diversion.
14184         * troff/div.c (diversion::diversion): Don't initialize
14185         no_space_mode.
14186         (top_level_diversion::top_level_diversion): Initialize
14187         no_space_mode.
14188         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
14189         (macro_diversion::output): Don't clear no_space_mode.
14191         * troff/input.c (diverted_space_node::reread): Don't call
14192         environment::do_break.  In fill mode, act like a blank line.
14193         (diverted_copy_file_node::reread): Don't call
14194         environment::do_break.
14196         * troff/div.c (blank_line): New function.
14197         * troff/div.h: Declare it.
14198         * troff/input.c (process_input_stack): Call it.
14200         * troff/div.c (truncated_space_reg::get_string): New function.
14201         (init_div_requests): Bind to .trunc.
14202         (space_request, top_level_diversion::space,
14203         top_level_diversion::output, macro_diversion::space,
14204         macro_diversion::output): Update truncated_space.
14205         (macro_diversion::output): Redo calculations when trap sprung.
14206         (macro_diversion::output, macro_diversion::space): No need for
14207         trap_flag.
14209         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
14210         after truncating post line spacing.
14212 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
14214         * ps/devps/prologue (MF, SF): Make them work even if setfont is
14215         defined as a procedure rather than as an operator.
14217 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
14219         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
14221 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
14223         * troff/div.c (top_level_diversion::output): Merge
14224         output_file::print_line and output_file::end_of_line member
14225         functions.
14226         * troff/div.h (class output_file):
14227         * troff/node.c (troff_output_file::print_line,
14228         troff_output_file::end_of_line, output_file::end_of_line,
14229         ascii_output_file::print_line, suppress_output_file::print_line):
14230         Corresponding changes.  
14232 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
14234         * troff/input.c (token::next): Don't give a warning for `\.'.
14236         * troff/env.c (environment::get_center_lines): New function.
14237         (init_env_requests): Bind number register .ce to it.
14238         * troff/env.h: Declare it.
14239         * tbl/table.c (table::init_output): Define reset macro to restore
14240         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
14241         Then do .ce 0.
14242         (table::print): If center option not given, then imply center
14243         option if SAVED_CENTER_REG > 0.
14245 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
14247         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
14248         Troff.ps from DOWNLOAD.
14249         
14250         * troff/Makefile: Change comment in DEFINES to avoid confusing
14251         System V make.
14253         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
14254         code.  Don't try to catch errors with stopped.
14255         (check_line_lengths): New function.
14256         * ps/devps/prologue (EXEC): Deleted.
14257         (EBEGIN, EEND): New procedures.
14259 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
14261         * troff/input.c: Include request.h before node.h.
14262         * troff/node.c: Likewise.
14263         * troff/env.c: Likewise.
14264         * troff/div.c: Likewise.
14265         * troff/node.h (class special_node): Store argument as a macro
14266         rather than a char *.
14267         * troff/node.c (special_node::special_node, special_node::copy):
14268         Grok this.
14269         (special_node::~special_node): Deleted.
14270         (special_node::tprint): Deleted.
14271         (special_node::tprint_start, special_node::tprint_end,
14272         special_node::tprint_char): New functions.
14273         (troff_output_file::special): Deleted.
14274         (troff_output_file::start_special, troff_output_file::end_special,
14275         troff_output_file::special_char): New functions.
14276         * troff/input.c (special_node::tprint): New function.
14277         (do_special): Use macro not char *.
14278         (do_transparent_macro): Deleted.
14279         (token::next): Don't call do_transparent_macro.
14281         * troff/input.c (token::next): Add 'Y' case.
14282         (do_transparent_macro): New function.
14283         * troff/node.c (troff_output_file::special): Handle newlines with
14284         argument using new continuation convention.
14285         * driver/input.c (get_string): Cope with continuation convention.
14286         (do_file): Don't call skip_line after calling get_string(1).
14287         * ps/ps.c (ps_printer::special, ps_printer::do_import,
14288         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
14289         arg.
14290         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
14291         with +.
14293 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
14295         * troff/input.c (asciify): By default, illegal input characters
14296         should return empty string.
14298         * troff/input.c (copy_file): Handle first page transition like title.
14299         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
14301         * troff/input.c (token::next): Improve error message for EOF after
14302         escape character.
14303         (input_char_description): New function.
14304         (get_char_for_escape_name): Use input_char_description.
14305         (token::next): Warn about unrecognized escape sequences.
14306         (warning_table): Add WARN_ESCAPE.
14307         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
14308         accordingly.
14310         * troff/token.h: Remove declaration of process_input_stack.
14312         * troff/input.c: Remove declaration of init_hyphen_requests.
14313         * troff/request.h: Correct spelling in declaration of same.
14315         * troff/input.c (token::next): Check whether escape_char is 0.
14317 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
14319         * groff.c (main, usage, help): Implement -P and -L options.
14320         * groff.sh: Likewise.
14322         * troff/input.c (token::next): Use some gotos to avoid code
14323         duplication.
14325         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
14326         Avoid calling symbol::symbol if name empty.
14328 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
14330         * troff/input.c (init_input_requests): Make \n(.x return the major
14331         version number and \n(.y return the minor version number.
14332         * troff/Makefile: Construct file majorminor.c defining
14333         major_version and minor_version automatically from ../VERSION.
14335         * troff/node.c (class glyph_node): Make operator new and operator
14336         delete public.
14337         (class ligature_node): Similarily.
14339         * troff/input.c (operator==(const macro &, const macro &)): New
14340         function.
14341         (non_interpreted_node::same): Use this.
14342         (string_iterator::string_iterator): Make macro& argument const.
14344         * troff/input.c (input_iterator::get): New function. Don't make
14345         asciify_macro or class non_interpreted_node friends of class
14346         input_iterator.
14347         (non_interpreted_node::interpret): Use input_iterator::get.
14348         (asciify_macro): Likewise.
14350         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
14351         ~non_interpreted_node): Deleted.
14352         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
14353         Deleted.
14355         * troff/symbol.h: Make all symbol member functions const.
14357         * lib/strtol.c: New file.
14358         * lib/Makefile: Add strtol.c.
14359         * Makefile: Define STRTOL as strtol.o to include strtol in
14360         libgroff.a.
14362 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
14364         * pic/troff.c (troff_output::simple_circle): Divide by scale.
14366 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
14368         * troff/input.c (do_special): Use input_level.
14370         * troff/token.h (TOKEN_BACKSPACE): New token.
14371         (token::backspace): New function.
14372         * troff/input.c (token::description, token::next, token::process):
14373         Grok TOKEN_BACKSPACE.
14374         (do_special): Turn TOKEN_BACKSPACE back into \b.
14376         * troff/token.h (token::leader): New function.
14377         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
14379         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
14381         * troff/input.c (do_special): Use token::description in error
14382         message.
14384 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
14386         * troff/input.c (decode_args): Combine quoted and
14387         quote_input_level variables. Make it a for (;;) loop.
14389         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
14391         * troff/input.c (read_long_escape_name): The test for whether to
14392         expand buffer was off by 1.
14393         (read_string): Similarily.
14395 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
14397         * troff/input.c: Use `const int' rather than `static const int'.
14399         * troff/div.h (diversion::copy_file): Declare as pure virtual.
14400         (macro_diversion::copy_file): New function.
14401         * troff/node.h: New class diverted_copy_file_node.
14402         * troff/node.c: Implement it.
14403         * troff/input.c (copy_file): Use diversion::copy_file. Handle
14404         first page transition by pushing a diverted_copy_file_node.
14405         * troff/input.c (token::next, process_input_stack): Don't handle
14406         COPY_FILE_REQUEST.
14408 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
14410         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
14411         whether space widths need adjusting.
14413         * troff/charinfo.h: Generalize translated_to_space to
14414         special_translation so as to allow translation to \&.
14415         * troff/input.c (translate): Allow translation to \&.
14416         (charinfo::*): Corresponding changes.
14417         * troff/node.c (make_node, node::add_char): Corresponding changes.
14418         * troff/node.h (dummy_node::dummy_node): Allow optional first
14419         argument.
14421         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
14422         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
14423         TOKEN_REQUEST.
14424         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
14425         TOKEN_REQUEST with an argument of TITLE_REQUEST.
14426         (token::process): Grok that.
14427         * troff/input.c (copy_file): Handle first page transition like
14428         title by pushing a COPY_FILE_REQUEST cookie.
14429         (token::next, process_input_stack): Grok that.
14430         * troff/node.h (output_file::copy_file): Add x and y arguments.
14431         Make it non-pure.
14432         * troff/div.c (top_level_diversion::copy_file): Supply them.
14433         * troff/node.c (troff_output_file::copy_file): Add x and y
14434         arguments; moveto specified position.  Invalidate font_position
14435         array after copying file.
14436         (output_file::copy_file): New function.
14437         (suppressed_output_file::copy_file, ascii_output::copy_file):
14438         Removed.
14439         * troff/input.c (transparent_file): New function.
14440         (init_input_requests): Bind to "trf".
14441         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
14442         (process_input_stack): Likewise.
14444         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
14446         * troff/node.c (init_node_requests): New number registers .kern
14447         pointing to global_kern_mode, and .lg pointing to
14448         global_ligature_mode.
14450         * troff/node.c (ligature): Don't change it if we get a bad
14451         integer.
14453         * troff/input.c (do_define_string): Don't strip tabs.
14455         * troff/input.c (asciify_macro): Make the string_iterator auto.
14457         * troff/node.c (init_font_requests): Rename to...
14458         (init_node_requests):
14459         * troff/node.h: Change declaration.
14460         * troff/input.c (main): Change call.
14462         * troff/input.c (node::reread, diverted_space_node::reread): New
14463         methods.
14464         (process_input_stack): Call reread rather than
14465         get_diverted_space_node.
14466         * troff/node.c (node::get_diverted_space_node,
14467         diverted_space_node::get_diverted_space_node): Removed.
14468         * troff/node.h: Declare reread methods instead of
14469         get_diverted_space_node methods. Make `n' member private.
14470         * troff/input.c: (token::diverted_space): Removed.
14471         * troff/token.h: Removed declaration.
14472         
14474 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
14476         * eqn/script.c (script_box::compute_metrics): Don't let
14477         SUP_RAISE_FORMAT become negative.
14479         * tbl/table.c (table::do_row): Entries that don't end in the
14480         this row shouldn't make the row non-blank.
14481         
14482         * tbl/table.c (table::make_columns_equal): Only set the width of
14483         columns which are marked as equal.
14484         
14485         * tbl/main.c (process_data): Before issuing excess data error,
14486         if last character was a newline unget it; then get it again after
14487         the error.  Also include the contents of the entry in the message.
14489         * groff.c: New file.
14490         * Makefile: Build groff from groff.c.  Make it possible to use
14491         either groff.sh or groff.c as groff.
14492         * Makefile.bd: Similarily.
14494 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
14496         * groff.sh: Don't delay expansion of $@ in assignment to files.
14497         Remove occurrences of \".
14499 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
14501         * all Makefiles: Simplify and rearrange.
14503         * Makefile: Handle fmod like malloc.
14504         * lib/Makefile: Similarily.
14505         * lib/fmod.c: Remove #ifdef NEED_FMOD.
14507         * Makefile: Rename OPTIMISE to OPTIMIZE.
14509         * groff.sh: Remove assignment to PATH.
14510         * Makefile: Remove SHPATH variable.
14511         * Makefile.bd: Similarily.
14513         * groff.sh: Add -V option to print the pipeline instead of
14514         executing it.
14516 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
14518         * lib/font.c: Split off file searching into ...
14519         * lib/fontfile.c: New file.
14521         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
14523 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
14525         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
14526         Also change misleading comment.
14527         (table::do_vspan): Change similarily misleading comment.
14528         * tbl/main.c (process_data): A format row with an explicit `s'
14529         uses up a data line, even if all the other columns are `_' or `='.
14531         * troff/input.c (token::description): Fix description of
14532         TOKEN_DUMMY and TOKEN_EMPTY.
14534 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
14536         * groff.sh: Fix description of -Z in help message.
14538 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
14540         * pic/object.c (object_spec::make_object): Allow negative and zero
14541         line thicknesses.
14542         * pic/pic.y: Give linethick default value of -1.0.
14543         * pic/troff.c (troff_output::troff_output): Initialize
14544         last_line_thickness to BAD_THICKNESS.
14545         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
14546         (troff_output::line_thickness): Canonicalize negative thicknesses
14547         to RELATIVE_THICKNESS.
14548         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
14549         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
14550         to -1.0.
14551         (tex_output::start_picture): Set pen_size to -2.0.
14553         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
14554         0, then use 0 linewidth.
14555         (ps_printer::ps_printer): Initialize line_thickness to -1.
14557         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
14559         * ps/devps/symbolchars: Remove `or'.
14560         * ps/tmac.ps: Implement \(or with .char.
14562         * ps/devps/symbolchars: Move most characters into textmap.
14563         * ps/devps/textmap: Add names for troff bracket characters. Remove
14564         ul, ru, br, bv.
14566         * ps/devps/TSymbol.ps: Removed.
14567         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
14568         * ps/tmac.ps: Do with .char what TSymbol did.
14569         * ps/devps/download: Remove TSymbol.
14571         * ps/devps/T: Removed.
14572         * ps/devps/Troff.ps: Removed.
14573         * ps/devps/Troff.afm: Removed.
14574         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
14575         * ps/devps/download: Remove Troff.
14576         * ps/devps/FontMakefile: Remove T target.
14577         * ps/devps/DESC-A4: Remove T from font list.
14578         * ps/devps/DESC-letter: Likewise.
14580         * troff/input.c (macro_to_node): Rename to ...
14581         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
14582         character's definition while processing it.
14583         * troff/node.c (node::add_char, make_node): Change calls to
14584         macro_to_node accordingly.
14586         * troff/input.c (token::next): Translate \_ to \(ul.
14588         * tty/devascii/R.proto: Add `|'.
14589         * tty/devlatin1/R.proto: Likewise.
14591 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
14593         * man: Put the version number in all the man pages.
14595 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
14597         * Makefile.bd: New file.
14598         * README.bd: New file.
14600         * VERSION: New file.
14601         * lib/version.c: Removed.
14602         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
14603         in clean target.
14605         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
14606         environment variable.
14608         * all Makefiles: Split install target into install.bin for
14609         binaries, and install.nobin for everything else.
14610         * Makefile: Add bindist target.
14612         * man/afmtodit.man: New file.
14613         * man/Makefile: Add afmtodit.n to MAN1PAGES.
14614         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
14615         in BINDIR.
14616         * ps/Makefile: Pass BINDIR to make install in devps.
14618         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
14619         the space character.
14621         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
14623 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
14625         * ps/ps.c: Redo font downloading.
14626         * ps/devps/download: New file.
14627         * ps/devps/Makefile: Add download to DEVICEFILES.
14628         * ps/devps/afmtodit: Remove -d option.
14629         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
14630         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
14631         * ps/devps/zapfdr.ps: Likewise.
14632         * ps/devps/TSymbol.ps: Likewise.
14634 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
14636         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
14638 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
14640         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
14641         then strip the first line if it starts with %.
14642         * Makefile: Add a comment about this.
14644         * man/tfmtodit.man: New file.
14645         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
14646         * dvi/Makefile: Install tfmtodit in BINDIR.
14648         * dvi/tfmtodit.c (usage): Mention -v option.
14650 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
14652         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
14653         * troff/node.c (troff_output_file::transparent_char): Don't call
14654         flush_tbuf.
14656         * eqn: Add check_tabs method to most box classes.
14657         * eqn/box.c (box::top_level): Call check_tabs.
14659         * eqn/script.c (script_box::output): Use \Z.
14660         * eqn/limit.c (limit_box::output): Use \Z.
14662         * eqn/box.c (box::top_level): Use itoa.
14664 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
14666         * dvi/tmac.dvi: Add font translations for CR, C, TT.
14667         * dvi/devdvi/Makefile: Don't make links to CW.
14669         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
14670         HX, HD.
14671         * xditview/tmac.X: Likewise.
14673         * troff/node.c: Add font translation feature.
14674         (get_font_translation): New function.
14675         (symbol_fontno): Translate the font name.
14676         (mount_font_no_translate): Rename to mount_font to this.
14677         (mount_font): New function.
14678         (font_family::make_definite): Call mount_font_no_translate instead
14679         of mount_font.
14680         (mount_style): Translate the font name.
14681         (font_translate): New function.
14682         (init_font_requests): Bind "ftr" to font_translate.
14684         * ps/devps/prologue (SN): New procedure that rounds a position to
14685         the nearest (pixel + (.25,.25)).
14686         (DL): Use SN to round endpoints.
14688         * lib/version.c: Changed version to 0.5.
14690 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
14692         * Makefile: Move definition of PAGE to the very beginning, so that
14693         people are less likely to miss it.
14695 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
14697         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
14699         * troff/env.c (environment::choose_breakpoint): Make `can't find
14700         breakpoint' error a warning of type WARN_BREAK.  Change message to
14701         `can't break line'.
14702         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
14703         code 040000.
14704         * troff/input.c: Add WARN_BREAK to warning_table.  Include
14705         WARN_BREAK in DEFAULT_WARNING_MASK.
14707         * tty/tmac.tty: Add definition of \(+-.
14709         * groff.sh: Remove `--' option to set command.
14711         * dvi/devdvi/texsy.map: Remove duplicate md entry.
14713         * ps/devps/eqnchar: Better definition of cdot using md.
14714         * dvi/devdvi/eqnchar:  Likewise.
14715         * xditview/devX100/eqnchar:  Likewise.
14716         * xditview/devX75/eqnchar: Likewise.
14717         * eqn/lex.c: Add definition of cdot.
14719 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
14721         * troff/input.c (get_optional_char): New function.
14722         * troff/input.c (set_page_character): Use get_optional_char(),
14723         rather than has_arg() and tok.get_char(1).
14724         * troff/env.c (tab_character, leader_character, hyphen_char,
14725         field_characters): Likewise.
14726         (margin_character): Likewise.  Also always delete the
14727         margin_character_node.
14729         * troff/input.c (token::get_char): Use token::description.
14731         * troff/input.c (has_arg): Don't skip over tab and \}.
14732         * troff/number.c (start_number): Give a warning if the number
14733         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
14735 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
14737         * troff/input.c (empty_name_warning, non_empty_name_warning): New
14738         functions.
14739         (get_name, get_long_name): Use these.  Rename `warn' argument to
14740         `required'.
14742         * troff/node.c (get_fontno): Test that the symbol is not null.
14744         * troff/input.c (token::description): New function.
14745         * troff/number.c (parse_term): Use token::description in `numeric
14746         expression expected' message.
14747         * troff/groff.h: Add WARN_MISSING.
14748         * troff/number.c (start_number): New function.
14749         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
14750         get_incr_number): Use start_number().
14751         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
14752         default.
14753         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
14754         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
14755         token::descripion.
14756         * troff/input.c (token::get_char): Use WARN_MISSING.
14757         * troff/input.c (token::delimiter): Use token::description.
14758         * troff/env.c (environment_switch): Back out Aug 3 change.
14759         * troff/input.c (has_arg): Skip over \}s and tabs but give a
14760         warning.
14761         * troff/token.h (token::tab): New function.
14762         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
14763         * troff/reg.c (alter_format): Likewise.
14764         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
14766 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
14768         * troff (most files): Redo warnings. Divide warnings into various
14769         categories; warning() has an additional first argument indicating
14770         the category it falls into.
14771         * troff/input.c (main): -w now takes an argument. New option -W.
14772         (enable_warning, disable_warning): New functions.
14774         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
14775         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
14777 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
14779         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
14780         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
14781         * xditview/devX75/eqnchar: Likewise.
14782         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
14784         * eqn/other.c: When bar or over applies to a single character
14785         don't produce an overline_box or an underline_box. Instead produce
14786         an accent_box or an underaccent_box, with the accent a line
14787         whose width is accent_width.  New classes underaccent_box,
14788         overline_char_box and underline_char_box.
14789         * eqn/box.h: Move overline_box, underline_box, accent_box class
14790         declarations into eqn/other.c. Add declarations of
14791         make_underline_box, make_overline_box, make_accent_box.
14792         * eqn/eqn.y: Call make_overline_box, make_underline_box
14793         make_accent_box instead of constructors.
14794         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
14796         * eqn/other.c: Add accent_box::~accent_box.
14797         * eqn/box.h: Declare it.
14799         * groff.sh: With -Tps, use eqn -D.
14801         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
14802         rather than \l.
14803         (underline_box::output): Similarily.
14804         (accent_box::output): Use \Z.
14806         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
14807         bit smaller.)
14809 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
14811         * troff/div.c (top_level_diversion::transparent_output(unsigned
14812         char)): Use asciify.
14813         * troff/input.c (asciify): Don't make it static.
14814         * troff/token.h (asciify): Declare it.
14815         
14816         * troff/input.c (get_name, get_long_name, token::get_char,
14817         token::delimiter): Add an extra default argument which says
14818         whether a warning should be printed.
14819         * troff: Pass a non-zero argument to one of these rather than
14820         printing a warning directly.
14822 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
14824         * troff: Consistently use symbol::is_null.
14826         * troff/dictionary.h: Move some inline functions into
14827         dictionary.c.
14829         * troff/request.h: Move inline functions into input.c.
14830         (request_or_macro::invoke): Make it pure.
14832         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
14833         * troff/input.c (init_input_requests): Use class constant_int_reg.
14834         (class compatible_reg): Deleted.
14835         * troff/div.c (init_div_requests): Use class constant_int_reg.
14836         (class last_post_line_extra_space_reg): Deleted.
14838         * troff/env.c (tab_character): Don't change the tab character if
14839         we get an invalid argument.
14840         (hyphen_char): Similarily.
14842         * troff/reg.c (alter_format): Check that nm is not null.
14844         * Makefile, groff.sh: Make it possible to customize the commands
14845         used for printing PostScript and dvi files. Also make it possible
14846         to customize the path used by groff.sh.
14848         * eqn/eqn.y: Make `left' right associative.
14850 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
14852         * pic/pic.h: Added definition of M_SQRT2 for those systems that
14853         don't have it.
14855         * pic/pic.h: Removed definition of INT_MAX.
14857         * troff/node.c (italic_corrected_node::vertical_extent): Omit
14858         `return'.
14860         * troff/input.c (token::next):  Handle \R like \n.
14862 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
14864         * ps/tmac.pc (PSPIC): Simplify.
14866         * troff/env.c (tab_stops::to_string):
14867         * pic/pic.y (object_type_name):
14868         * pic/troff.c (simple_output::line):
14869         * pic/tex.c (tex_output::spline):
14870         * pic/object.c (object_spec::make_object):
14871         * tbl/main.c (process_data):  Add cases to switch statements to
14872         avoid cfront warnings. (Some of these are spurious, since the
14873         switch already has a default case.)
14875         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
14876         `ps-'.  Don't test systat; instead check number of arguments to
14877         ps-bb.
14879 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
14881         * macros/tmac.e: Do not decrease the page offset by 0.5i.
14883         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
14884         Unlink the file as soon as we have opened it, so that we don't
14885         have to bother with signal handlers.
14886         (handler): Deleted.
14887         (fatal_error_exit): Deleted.
14888         (main): Don't call signal.
14890         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
14891         can be ignored.
14892         * dvi/devdvi/Makefile: Use the -k option with S and MI.
14894         * pic/pic.y:  If there is a label, or an nth construction before
14895         the first `.' in the argument to `with', ignore it and generate a
14896         warning.
14897         * pic/lex.c (lex_warning): New function.
14899         * tbl/table.c (table::init_output): In section keep and release
14900         macro, use 0 indent when diverting and the correct indent when
14901         rereading.
14903         * troff/input.c (interpolate_number_format): Do not interpolate
14904         anything if the number register is not defined.
14906         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
14908 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
14910         * ps/devps/prologue (PICTURE): Set components of graphics state to
14911         their default values.
14913         * ps/devps/text.enc: Add trademark
14914         * ps/devps/textmap: Add names for club, spade, heart, diamond,
14915         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
14916         * ps/devps/symbolchars: Add names for summation and product.
14918         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
14919         suchthat. Add pp. Add upper-case letters.
14921         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
14922         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
14923         Upsilon.
14925         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
14926         rA (right angle bracket) to ra.  Introduce names for double-headed
14927         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
14928         * ps/devps/textmap: Likewise for ps device.
14929         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
14930         * tty/devascii/R.proto: Rename lA to la and rA to ra.
14931         * tty/devascii/R.proto: Likewise.
14932         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
14933         \(uA, \(dA.
14934         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
14936         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
14938         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
14939         def_table.
14941 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
14943         * troff/div.c (when_request): Use symbol::is_null rather than
14944         has_arg to determine whether we have an argument.
14945         (change_trap): Remove the trap if we get an invalid number. Give
14946         an error if we don't get at least the macro name.
14947         (diversion_trap): Remove trap if we get an invalid name or number.
14949         * troff/env.c (environment_switch): Pop if we get an invalid
14950         symbol or numeric expression.
14952         * troff/input.c (do_define_macro):  If EOF is encoutered while
14953         defining the macro, do tok.next() before returning.
14955         * troff/token.h (has_arg): Move definition from here, to ...
14956         * troff/input.c (has_arg): ... here
14958         * troff/env.c (space_size): Do nothing if we get an invalid argument.
14959         * troff/input.c (shift): Likewise.
14961         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
14962         for `.c'.
14964         * pic/troff.c (troff_output::start_picture):  Comment out calls to
14965         `..'.
14967         * eqn/main.c (do_file): Subtract 1 from current_lineno if
14968         interpret_lf_args succeeds.
14970         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
14971         \\.  This avoids problems with \$N.
14973         * groff.sh: Pass -C to preprocessors.
14975         * lib/lf.c (interpret_lf_args):  Be more flexible.
14977         * tbl/main.c (main): Add -C option.
14978         (table_input::get): Do not recognize TE if followed by character
14979         other than a space or newline unless -C option given.
14980         (process_input_file): Likewise for lf, TS.
14981         (process_data): Likewise for lf in text blocks.
14983         * eqn/main.c (main): Add -C option.
14984         (do_file): Don't recognize EQ, EN or lf if followed by character
14985         other than space or newline unless -C option given.
14986         * eqn/lex.c (file_input::read_line): Similarily.
14987         * eqn/eqn.h: Declare compatible_flag.
14989         * etc/soelim.c (main): Add -C option.
14990         (interpret_lf_args): Use version in libgroff.
14991         (do_file):
14993         * pic/main.c (main): Add -C option, which sets compatible_flag.
14994         (top_input::get), (top_input::peek):  If -C option not given,
14995         do not recognize .PS/.PE/.PF/.lf if followed by a character
14996         other than space or newline.
14997         * pic/lex.c (file_input::read_line): Similarily.
14998         * pic/pic.h: Add declaration of compatible_flag.
15000 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
15002         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
15004         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
15005         derived from node.  New class space_char_hmotion_node.
15006         * troff/input.c (asciify_macro): New function.
15007         * troff/input.c (init_input_requests): New request `asciify' bound
15008         to asciify_macro.
15009         * macros/mm.diff: New file.
15010         * Makefile:  In install.mm target use `patch' to apply
15011         macros/mm.diff.
15013         * troff/input.c (macro::print_size): Just print the size in bytes.
15015         * troff/div.c (return_request): Correct the argument
15016         interpretation.
15018 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
15020         * troff/node.h (class composite_node): Add sz member.
15021         * troff/node.c (composite_node::size): Return sz.
15022         * troff/input.c (macro_to_node):  Use the initial size in the
15023         environment as the size of the composite_node.
15025         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
15026         default.
15028 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
15030         * troff/div.c (change_trap): If we get a bad number expression,
15031         do nothing.
15033 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
15035         * lib/matherr.c (matherr): Define this only if math.h defines
15036         TLOSS.
15038 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
15040         * troff/div.c (macro_diversion::distance_to_next_trap): If there
15041         no diversion trap return vunits(INT_MAX - vresolution).
15043 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
15045         * troff/input.c (do_zero_width): New implementation that doesn't
15046         use a temporary environment. Use instead:
15047         (token::add_to_node_list): New function.
15048         * troff/env.c (environment::get_prev_char_height),
15049         (environment::get_prev_char_height),
15050         (environment::get_prev_char_skew): New functions.
15051         (environment::get_prev_char): New function.
15052         (environment::get_prev_char_width): Change to use get_prev_char.
15053         (init_env_request): Implement new registers .cht, .cdp, .csk.
15054         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
15055         \Z being processed in a separate environment.
15057 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
15059         * tbl/table.c: Removed TABLE_BOTTOM_REG.
15061         * tbl/table.c (table::init_output): In the section release macro,
15062         give a warning message if the section won't fit on one page.
15064         * tbl/table.c (table::do_top): Emit table keep only if table is
15065         boxed.
15066         (table::do_bottom): Likewise for table release.
15067         (table::table), (table::add_vertical_rule):  Remove reference to
15068         keep member.
15069         * tbl/table.h: Remove keep member.
15071         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
15072         SECTION_RELEASE_MACRO, if there's not enough space before the next
15073         trap to output the diversion, call T# ourselves, set
15074         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
15075         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
15076         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
15077         vertical position and return to it before turning traps on again.
15078         
15079 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
15081         * troff/node.c, troff/node.h: In classes derived from node,
15082         replace prev_char_width method by last_char_node method.
15083         * troff/env.c (environment::get_prev_char_width): Use
15084         node::last_char_node rather than node::get_prev_char_width.
15086         * Makefile: Added comment about -fno-inline on 68030-based
15087         Apollos.
15089         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
15090         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
15091         expressions using sizeof to int.
15092         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
15094         * macros/tmac.e (TS):  Don't move @f back past the current
15095         position.
15097 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
15099         * ps/ps.c (main): Buffer stderr.
15100         * dvi/dvi.c (main): Likewise.
15101         * tty/tty.c (main): Likewise.
15103         * ps/ps.c (ps_printer::do_import): Improve error handling.
15105         * troff/input.c (abort_request): Use asciify.
15107         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
15108         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
15109         type of first argument int rather than char.  This works around a
15110         bug on the 68030 based Apollo using g++ 1.37.1.
15112         * tbl/table.h (class table): Add `keep' member.
15113         * tbl/table.c (table::table): Initialize `keep'.
15114         (table::add_vertical_rule): Set `keep' to 1.
15115         (table::do_top): Only emit table keep macro is `keep' is non-zero.
15116         (table::do_bottom): Likewise for table release macro.
15117         (table::do_row): Emit section keep macro even if the row is 0.
15119 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
15121         * macros/tmac.e (@C): Preserve the font family across the change
15122         in environments.
15124 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
15126         * lib/font.c: Initialize font::hor and font::vert to 1.
15127         (font::load_desc): Check the values of font::hor and font::vert.
15129         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
15130         be included in a C compilation.
15131         (iftoa): Use INT_DIGITS. Include lib.h.
15132         (itoa): Likewise.
15133         (as_string): Likewise.
15134         * tbl/table.c: Removed definition of INT_DIGITS.
15135         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
15136         * troff/input.c (input_input_requests): Likewise.
15137         * ps/ps.c (make_encoding_name): Likewise.
15138         (ps_printer::set_style): Likewise.
15139         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
15141         * tty/devascii/R.proto: Map fm onto '.
15142         * tty/devlatin1/R.proto: Likewise.
15144 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
15146         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
15147         argument to \w is at a different input level.
15149         * tbl/table.c (table::init_output): Define a new macro
15150         REPEATED_VPT_MACRO, like vpt but if in a diversion also
15151         transparently outputs itself.
15152         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
15153         vpt.
15154         (table::do_row): Likewise.
15156         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
15157         TRANSPARENT_STRING_NAME.
15159         * tbl/table.c (table::init_output): In the table release macro
15160         print an error message and don't produce any output if after
15161         issuing the need request the table still will not fit.  Also
15162         remove the diversion after bringing it back.
15164         * tbl/table.c (table::init_output): Define a new macro
15165         REPEATED_MARK_MACRO, like mk but if in a diversion also
15166         transparently outputs itself.
15167         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
15168         is necessary because .TH might not call .T#.
15169         (table::do_top): Likewise TOP_REG.
15170         (table::define_bottom_macro): If TOP_REG is no longer valid, use
15171         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
15172         table header might contain just the two top rules.
15174 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
15176         * troff/div.c: Implement new request `ptr' to print all traps.
15178         * troff/env.c (init_env_requests): Implement `.tabs' reg with
15179         init_string_env_reg.
15180         * troff/env.c (class tab_reg): Deleted.
15182 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
15184         * troff/div.c: New number register .pn returns the number of the
15185         next page as set by the pn request.
15187         * macros/tmac.an: Redid headers and footers.  Number each manual
15188         entry starting from 1 unless \nC is > 0, like Sun.  Added an
15189         optional 5th argument to .TH which specifies the manual name and
15190         appears in the center of the header.  Understand the X, P and D
15191         registers like Sun.
15193 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
15195         * troff/env.c (init_env_requests): New number register `.lt' to
15196         return the title length.
15198         * troff/node.h (class transparent_dummy_node): New class.
15199         * troff/node.c (class transparent_dummy_node): Provide member
15200         functions. 
15201         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
15202         than a dummy_node.
15204         * troff/input.c (token::next): New escape sequence \).
15205         * troff/input.c (get_copy): Recognize \) in copy mode.
15207         * troff/input.c (input_stack::clear): New function.
15208         * troff/input.c (exit_request): Use input_stack::clear.
15210         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
15211         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
15213         * troff/env.c: Move set_page_character to input.c.  Move
15214         page_character to input.c also.
15215         * troff/env.c (title): Split off the reading of the parts of the
15216         title into read_title_parts.
15217         * troff/input.c (read_title_parts): New function.  Check the
15218         input_level when testing whether a token matches the delimiter.
15220         * troff/input.c (exit_request): New function.
15221         * troff/input.c (init_input_requests): Bind ex request to
15222         exit_request rather than exit_groff.
15224         * troff/input.c (exit_groff): Call tok.next() before
15225         process_input_stack().
15227 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
15229         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
15230         * troff/env.h: ditto.
15231         * troff/input.c: ditto.
15233         * troff/env.c (environment::is_empty): Test pending_lines.
15235         * troff/env.c (environment::have_pending_lines): Removed.
15237         * troff/input.c: Add request to flush pending lines from the
15238         environment.
15240         * troff/env.c, troff/env.h: Add automatic widow control feature.
15242         * troff/input.c (exit_groff):  Do process_input_stack() after
15243         do_break() but before setting exit_flag to 2.
15245         * troff/input.c: Remove FLUSH_PENDING_LINES and
15246         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
15247         environment after END_TRAP token seen, but only if there aren't
15248         any more traps still unfinished.
15249         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
15251 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
15253         * troff/env.c: Rename the `retain_size' member of class
15254         pending_output_line to `no_fill'.
15256         * troff/env.c (title): When the line is output, make the
15257         retain_size argument !fill.
15259         * troff/node.h: Add `hyphenated' member to struct breakpoint.
15260         * troff/node.c (space_node::get_breakpoints),
15261         (dbreak_node::get_breakpoints):  Fill this in.
15262         * troff/env.c:  Allow specification of maximum number of
15263         consecutive hyphenated lines.
15265         * troff/env.c (environment::is_empty): Add test for !current_tab.
15267 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
15269         * troff/env.c (environment::hyphenate_line): Don't completely give
15270         up if the word is not to be hyphenated; continue so that breaks
15271         can be made at break_char_node's.
15273         * lib/lib.h: Only define INT_MAX if it's not already defined;
15274         undef INT_MIN if it's already defined.
15276         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
15278         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
15279         This works around a bug in AT&T C++ 2.0 used with an ANSI C
15280         compiler.
15281         
15282         * macros/tmac.an (an-header): Set no-space mode.
15284         * macros/tmac.an (TH): Start a new page if necessary.
15286         * Started using ChangeLog at version 0.4.
15288 Local Variables:
15289 version-control: never
15290 coding: latin-1
15291 End: