* tmac/doc-common (doc-header): Emit vertical space of 1v instead of
[s-roff.git] / ChangeLog
blob43cfe26a6af75b0982cf2872e46bbee4114f748a
1 2003-05-03  Werner LEMBERG  <wl@gnu.org>
3         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
4         `doc-header-space' after header line if register `cR' is set.
6 2003-05-02  Werner LEMBERG  <wl@gnu.org>
8         * TODO: Updated.
10 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
12         * tmac/doc-common (Nd): Use \[em].
14 2003-05-01  Werner LEMBERG  <wl@gnu.org>
16         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
17         doc-footer-space): Initialize to 0.5i.
18         (doc-setup-page-layout): Don't set doc-header-space and
19         doc-footer-space.
21 2003-04-30  Werner LEMBERG  <wl@gnu.org>
23         * REVISION: Set to 1.
25         * doc/pic.ms: Document possible problems with `figname'.
27 2003-04-29  Werner LEMBERG  <wl@gnu.org>
29 Version 1.19 released
30 =====================
32         * VERSION: Set to 1.19.
33         * REVISION: Set to 0.
34         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
36         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
37         Define charset as `US-ASCII' in html output.
39         * tmac/www.tmac (ULE): Add missing scaling indicator.
41         * win32-diffs: Removed.
43 2003-04-28  Werner LEMBERG  <wl@gnu.org>
45         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
46         `.da' and `.boxa'.
47         Document how to insert discardable whitespace with `.ss'.
49 2003-04-27  Werner LEMBERG  <wl@gnu.org>
51         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
52         work with plain TeX also.
54         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
56 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
58         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
59         Use a loose DTD.
61 2003-04-24  Werner LEMBERG  <wl@gnu.org>
63         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
64         vbox with positive height and zero depth if in TeX mode.
66         * NEWS: Document glyph name changes for grodvi and grolj4.
68 2003-04-23  Werner LEMBERG  <wl@gnu.org>
70         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
71         * doc/pic.ms: Fixed.
73 2003-04-21  Werner LEMBERG  <wl@gnu.org>
75         HP-UX 10.20 has `snprintf' but it isn't declared.
77         * configure.ac: Add declaration test for snprintf.
78         * configure: Regenerated.
79         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
80         * src/include/config.hin: Regenerated.
82 2003-04-19  Werner LEMBERG  <wl@gnu.org>
84         Add keyword `figname' to pic, specifying the name of the picture
85         box in TeX mode.  Based on a patch from William J Poser
86         <wjposer@unagi.cis.upenn.edu>.
88         * src/preproc/pic/pic.y: New token `FIGNAME'.
89         (macro_name): New rule of type <str>.
90         (placeless_element): Handle `FIGNAME'.
91         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
92         * src/preproc/pic/main.cpp (graphname): New global variable.
93         (do_picture): Initialize `graphname'.
94         * src/preproc/pic/pic.h: Updated.
95         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
96         `graphname'.
97         Simplify TeX code.
98         (tex_output::text): Beautify output.
99         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
100         `shaded' and `outlined' unconditionally.
101         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
102         Minor improvements.
104         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
105         greater is necessary.
107 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
109         Add option -r to soelim to avoid emission of `.lf' lines.
110         Add option -t to produces TeX comment lines instead of `.lf' lines.
112         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
113         and `tex_flag'.
114         (usage): Updated.
115         (main): Handle `-r' and `-t'.
116         (set_location): Handle `raw_flag' and `tex_flag'.
117         * src/preproc/soelim/soelim.man, NEWS: Updated.
119 2003-04-17  Werner LEMBERG  <wl@gnu.org>
121         * tmac/hyphenex.sh: Replaced with...
122         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
123         nightmares.
125         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
126         if --quiet is used for the configure script.
127         * configure: Regenerated.
129 2003-04-16  Werner LEMBERG  <wl@gnu.org>
131         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
132         Add `const' to second argument.
133         (html_printer::add_table_end): Add `const' to argument.
134         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
135         `const' to arguments.
136         * src/devices/grohtml/html-text.h: Updated.
138         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
139         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
140         argument.
142         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
143         cast for integer constant.
145         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
146         (writeNbytes): Add `const' to first argument.
147         (writeString): Add `const' to argument.
148         (char_buffer::can_see): Add `const' to third argument.
149         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
150         `const' to argument.
151         * src/preproc/html/pushback.h: Updated.
153         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
154         (include_path_append): Add `const' to argument.
155         (do_file): Updated.
157         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
158         for `value'.
159         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
160         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
161         for `value'.
162         (unicode_decompose_init::unicode_decompose_init): Updated.
163         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
164         for `value'.
165         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
166         * src/roff/troff/input.cc (process_startup_file): Add `const' to
167         argument.
169         * tmac/hyphenex.sh: Make script more portable by using a here
170         document.
172 2003-04-15  Werner LEMBERG  <wl@gnu.org>
174         Renamed all `*.cc' files to `*.cpp'.
175         Updated all configuration files, makefiles, and documentation.
177 2003-04-14  Werner LEMBERG  <wl@gnu.org>
179         * tmac/hyphenex.sh: Slight improvements.
181 2003-04-13  Werner LEMBERG  <wl@gnu.org>
183         * font/devascii/R.proto, font/devcp1037/R.proto,
184         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
185         character slots with unnamed glyphs.
187         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
188         (an-first): New global variable.
189         (an-header): Emit vertical space between multiple man pages.
191 2003-04-11  Werner LEMBERG  <wl@gnu.org>
193         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
194         values.
196 2003-04-10  Werner LEMBERG  <wl@gnu.org>
198         * PROBLEMS: Revised.
200 2003-04-10  Bernd Warken  <bwarken@mayn.de>
202         * doc/webpage.ms: Improved.
204 2003-04-09  Werner LEMBERG  <wl@gnu.org>
206         Add register \n[.height] which returns the value of \H.
207         Add register \n[.slant] which returns the value of \S.
209         * src/roff/troff/env.cc (init_env_requests): Implement.
210         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
211         Document.
213 2003-04-08  Werner LEMBERG  <wl@gnu.org>
215         * tmac/html.tmac: Move some of the data into html-end.tmac.
216         Remove most of the character translations for eqn since html fonts
217         now cover those characters.
218         Load www.tmac.
219         * tmac/html-end.tmac: New file.
220         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
221         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
222         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
224 2003-04-07  Werner LEMBERG  <wl@gnu.org>
226         * man/groff_out.man: Document negative values of `N' if -Thtml is
227         used.
229 2003-04-06  Werner LEMBERG  <wl@gnu.org>
231         * Makefile.comm (depend.temp): Check location of YTABC.
233 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
235         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
236         binary path.
237         (groff_bin_path): Rename to GROFF_BIN_PATH.
238         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
239         * doc/Makefile.in (TROFFBIN): New variable for troff
240         binary path.
241         (GROFFBIN): New variable for groff binary path.
242         (groff_bin_path): Rename to GROFF_BIN_PATH.
243         (TROFF): Use TROFFBIN.
244         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
245         * doc/Makefile.sub (GROFFBIN): New variable for groff
246         binary path.
247         (groff_bin_path): Rename to GROFF_BIN_PATH.
248         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
250         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
251         with INSTALL_SCRIPT.
252         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
253         * Makefile.dev (all): Depend on DEVSCRIPTS.
254         (install_dev): Likewise.
255         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
256         scripts.
257         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
258         (DEVGENSCRIPTS): New variable to hold generated scripts.
260 2003-04-05  Werner LEMBERG  <wl@gnu.org>
262         * src/libs/libdriver/input.cc (IntArray::operator[],
263         IntArray::get_data): Remove meaningless `const' in return value.
265         * README.CVS: New file.
267 2003-04-04  Werner LEMBERG  <wl@gnu.org>
269         Check for stdint.h in C++, not in C.
271         * aclocal.m4 (GROFF_STDINT_H): New function,
272         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
273         AC_CHECK_HEADERS.
274         * configure, src/include/config.hin: Regenerated.
275         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
278         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
279         with a negative value, representing the width of the unbreakable
280         space (only for -Thtml).  grohtml then converts this back to
281         &nbsp; and uses the value of N as its width.
283         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
284         unbreakable_space_node::tprint): Emit `N-<width>'.
285         * src/include/printer.h (printer::set_numbered_char): Make it
286         virtual.
287         Make members `font_table' and `nfonts' protected instead of private.
288         * src/devices/grohtml/post-html.cc
289         (html_printer::set_numbered_char): New member function.
292         * src/libs/libgroff/maxfilename.cc:
293         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
295         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
296         emit word marker.
298 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
300         * man/roff.man: Small fixes.
302 2003-04-03  Werner LEMBERG  <wl@gnu.org>
304         Make groff independent from locale's numeric settings.
306         * configure.ac: Check for `setlocale'.
307         * configure, src/include/config.hin: Regenerated.
309         * src/include/lib.h: Handle HAVE_SETLOCALE.
311         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
312         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
313         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
316         * doc/groff.texinfo: Change dir category to `Typesetting'.
317         (Man font macros): Mention that there is no space between arguments
318         of .BI and friends.
320         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
321         (*printer::change_color, *printer::change_fill_color): Add missing
322         `const'.
324 2003-04-02  Werner LEMBERG  <wl@gnu.org>
326         * src/devices/grohtml/html-table.cc (html_table::emit_col,
327         html_table::is_gap): Compute table widths after converting border
328         positions to avoid rounding errors.
330 2003-04-01  Werner LEMBERG  <wl@gnu.org>
332         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
333         `space_emitted' properly.
335 2003-03-31  Werner LEMBERG  <wl@gnu.org>
337         * src/devices/grohtml/html-table.cc: Fix column width calculation.
338         (html_table::set_linelength): Don't add 1.
339         (html_table::add_indent): Don't subtract 1.
341         * tmac/html.tmac: Set default page offset to zero.
343 2003-03-30  Werner LEMBERG  <wl@gnu.org>
345         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
347         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
348         unbreakable_space_node::tprint): New functions.
349         (troff_output_file): Make space_char_hmotion_mode::tprint and
350         unbreakable_space_node::tprint to friends.
351         * src/roff/troff/node.h: Updated.
353         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
354         in the HTML standard).
356 2003-03-29  Werner LEMBERG  <wl@gnu.org>
358         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
359         Otherwise, the following code
361           .di xxx
362           .ps 10
363           a
364           .br
365           .di
366           x\*[xxx]
368         produces `x a' instead of `xa'.  This is a temporary fix, disabling
369         font changes in diversions for -Thtml.
371         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
372         `HTML-TAG'.
373         (an-do-tag-html): Merge with ...
374         (an-do-tag): This macro.
375         Change code slightly to circumvent grohtml bug.
376         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
378         * src/devices/grohtml/html-table.cc (html_table::emit_col,
379         html_table::is_gap): Round `width' properly.
381         * tmac/html.tmac: Provide some default layout parameters for
382         grohtml.
384         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
385         command.
387 2003-03-28  Werner LEMBERG  <wl@gnu.org>
389         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
391 2003-03-27  Werner LEMBERG  <wl@gnu.org>
393         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
394         defined.
396 2003-03-20  Werner LEMBERG  <wl@gnu.org>
398         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
399         `.vs'.
400         * doc/groff.texinfo: Updated.
402 2003-03-19  Werner LEMBERG  <wl@gnu.org>
404         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
405         TOKEN_END_TRAP>: Reset `have_input'.
407 2003-03-18  Werner LEMBERG  <wl@gnu.org>
409         * src/roff/groff/groff.man: Mention groff_trace man page.
411 2003-03-16  Werner LEMBERG  <wl@gnu.org>
413         * Makefile.in (LIBEXT): New variable to indicate the file extension
414         of library files.  Computed heuristically from $(OBJEXT).
415         (MDEFINES): Add $(LIBEXT).
416         * Makefile.lib, Makefile.comm: Use it.
418         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
419         overlong lines into smaller chunks.
420         (get_binary): New function.
421         (main): Use them.
422         * src/utils/pfbtops/pfbtops.man: Updated.
424 2003-03-15  Colin Watson  <cjwatson@debian.org>
426         * src/roff/groff/groff.man: Minor syntax fix.
428 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
430         * src/devices/grops/ps.cc (ps_printer::media_set,
431         ps_printer::~ps_printer): Handle zero paper width and length.
433 2003-03-13  Werner LEMBERG  <wl@gnu.org>
435         Add options -p and -l to grodvi.
437         * src/devices/grodvi/dvi.cc: Include paper.h.
438         (landscape_flag, user_paper_length, user_paper_width): New global
439         variables.
440         (dvi_printer::begin_page): Emit `papersize' special.
441         Set color after initialization of `cur_h' and `cur_v'.
442         (main): Add options `-l' and `-p'.
443         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
444         * src/devices/grodvi/grodvi.man, NEWS: Updated.
446         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
448 2003-03-12  Werner LEMBERG  <wl@gnu.org>
450         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
451         * man/groff_tmac.man: This man page.
452         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
453         deprecated.
455         * tmac/X.tmac: Don't load pspic.tmac.
457 2003-03-11  Werner LEMBERG  <wl@gnu.org>
459         Make variable `pr' local to libdriver/input.cc.  Based on a patch
460         by Bernd Warken <bwarken@mayn.de>.
462         * src/include/driver.h (pr): Removed.
464         * src/libs/libdriver/input.cc (pr): New global variable.
465         (do_file): Deallocate `pr'.
466         * src/libs/libdriver/printer.cc (pr): Removed.
468         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
469         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
470         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
471         (main): Don't delete `pr'.
473 2003-03-10  Werner LEMBERG  <wl@gnu.org>
475         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
476         * tmac/papersize.tmac: New file.
477         * tmac/troffrc: Include `papersize.tmac'.
478         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
479         * tmac/an-old.tmac: Set LT to LL by default.
481         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
482         doc/groff.texinfo: Updated.
484         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
485         bug which caused all odd iso papers to have wrong dimensions.
487         * src/devices/grops/ps.cc (user_paper_width): New global variable.
488         (main) <'p'>: Set `user_paper_width' also.
489         (ps_printer::media_width, ps_printer::media_height): Use values
490         given with option `-p'.
492 2003-03-09  Werner LEMBERG  <wl@gnu.org>
494         * src/include/nonposix.h: Provide default for SET_BINARY.
496         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
497         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
498         unconditionally.
500         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
501         (main): Treat \r\n as \n.
503 2003-03-08  Werner LEMBERG  <wl@gnu.org>
505         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
506         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
508 2003-03-07  Werner LEMBERG  <wl@gnu.org>
510         Added support to access more than 256 glyphs in Type 1 fonts.
512         * src/devices/grops/ps.cc (subencoding): New structure.
513         (style): Add `sub' field.
514         Updated all users.
515         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
516         Add `set_subencoding', `get_subfont' and `encode_subfont' member
517         functions.
518         Updated all users.
519         (ps_printer::set_char): Use `set_subencoding'.
520         (make_subencoding_name): New function.
521         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
522         (ps_printer::~ps_printer): Emit subencoding definitions.
524         * src/devices/grops/psrm.cc (valid_input_table): New array to
525         properly support EBCDIC.
526         (white_space): Add `\f'.
527         (ps_get_line): Change first argument to be of type `string &'.
528         Updated all callers.
529         This allows to get lines of arbitrary length.
530         Use `valid_input_table'.
531         Remove warning about non-conforming PS line length.  This seems
532         not to be of great importance -- for example, dvips don't emit
533         a warning either.
534         (PS_LINE_MAX): Removed.
535         (matches_comment): Change first argument to be of type `string &'.
537         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
539         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
540         %AGL_to_unicode, %default_ligatures): New hash tables.
541         Read all map entries.
542         Add unencoded characters.
543         Check for default ligatures if there are no `L' entries.
544         Print all kern entries.
545         Print all characters in charset.
546         * src/utils/afmtodit/afmtodit.man: Updated.
548         * font/devps/*: Regerated all fonts.
550         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
551         of characters, just use `.trin'.  Otherwise the mapping depends
552         on the font encoding.
553         * tmac/ps.tmac: Add `fi' and `fl'.
554         Improve `Fi' and `Fl'.
555         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
556         * tmac/Xps.tmac: Fix `em'.
558         * NEWS: Updated.
560 2003-03-04  Werner LEMBERG  <wl@gnu.org>
562         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
563         `have_input'.
565 2003-03-03  Werner LEMBERG  <wl@gnu.org>
567         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
569         * font/devps/generate/textmap: Remove entry `similarequal'.
570         * font/devps/symbolmap: Updated.
572 2003-03-02  Werner LEMBERG  <wl@gnu.org>
574         * src/libs/libgroff/font.cc (font::load): Fix error message for
575         bad character type.
577         * src/devices/grops/grops.man: Improve documentation of the -b
578         flag.
580         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
581         `ascii' and `cp1047'.
583 2003-03-01  Werner LEMBERG  <wl@gnu.org>
585         Document composite glyphs and the `composite' request.
587         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
589 2003-02-28  Werner LEMBERG  <wl@gnu.org>
591         * font/devdvi/generate/ec.map: Add some more Unicode entities.
592         * font/devdvi/*EC: Updated.
594         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
595         * tmac/latin1 (latin1-tr): Undo any previous mapping.
596         * tmac/troffrc: Load `composite.tmac'.
597         * tmac/Makefile.sub (NORMALFILES): Updated.
599         * doc/groff.texinfo (Input Encodings): New section.
600         * NEWS: Updated.
602 2003-02-27  Werner LEMBERG  <wl@gnu.org>
604         * doc/texinfo.tex: New version 2003-02-11.06.
606         * tmac/doc-common (Dt): Don't emit warning for unknown section.
607         * tmac/groff_mdoc.man: Fix description of `Dt'.
609 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
611         * font/devps/prologue.ps: Fix for included Postscript that does
612         a setpagedevice -- which is now safely ignored.
614         * NEWS: Updated.
616         * src/devices/grops/ps.cc: Now sets the page size in the generated
617         document.  This is done in two ways: Via a %%-comment for gv and
618         the like, and via a PageSize and setpagedevice for programs that
619         understands Postscript proper, like ps2pdf.
621         * src/devices/grops/ps.h: New broken-flag to avoid page size
622         definition, if required.
624         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
626         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
627         Not really necessary due to the fix in prologue.ps, but cleaner:
628         Such information does not belong in an .eps file.
630         * doc/Makefile.sub: See doc/Makefile.in.
632 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
634         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
635         instead of P1 since the latter is broken in some versions of netpbm.
636         * configure: Updated.
638 2003-02-26  Larry Kollar  <kollar@alltel.net>
640         Make man pages more customizable.
642         * tmac/an-old.tmac (FT): New register holding footer distance from
643         bottom.
644         (HF): New string holding the default heading font.
645         (TH): Handle registers `IN' and `SN' set on the command line.
646         Use `FT'.
647         (PT, BT): New strings to customize header and footer lines.
648         (an-header, an-footer): Use them.
649         (SH, SS): Use `HF'.
650         * tmac/groff_man.man: Document changes.
652         * doc/groff.texinfo: Document man changes.
653         Document Ultrix extensions of man.
655 2003-02-26  Werner LEMBERG  <wl@gnu.org>
657         * src/roff/troff/input.cc (do_width, do_if_request): Reset
658         `have_input' after changing back to old environment.
660         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
661         function up to be defined before first call.  This is necessary to
662         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
664         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
665         the default font directory also.  Based on a patch from James
666         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
667         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
668         * src/utils/afmtodit/afmtodit.man: Document it.
670         * NEWS: Updated.
672         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
674 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
676         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
677         (GROFF_PNMTOPS_NOSETPAGE): New macro.
678         * configure.ac: Use it.
679         * configure: Regenerated.
680         * Makefile.in: Updated.
682         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
683         (CLEANADD): Add www.tmac-sed.
684         (pnmtops_nosetpage): Define default.
685         (install_data): Handle www.tmac-sed and substitute
686         @PNMTOPS_NOSETPAGE@.
687         (stamp-sed): Add www.tmac.
688         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
689         It now breaks URLs at suitable places.
690         (www:substring_ok): New register set by...
691         (www:@test_substring): New macro.
692         (www:error): New alias to www-error.
693         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
694         New macros.
695         (URL): Use www:url_breaks.
696         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
697         (CDS, CDE): New macros.
699 2003-02-25  Werner LEMBERG  <wl@gnu.org>
701         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
702         buffer overflow.
704 2003-02-24  Werner LEMBERG  <wl@gnu.org>
706         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
707         can be negative also.
709         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
710         `int16'.
711         (read_char_table): Avoid negative ascenders.
712         (output_charset): Add cast.
713         * font/devlj4/*: Regenerated.
715         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
716         possible.
718         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
719         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
720         of `<>'.
721         * font/devdvi/*: Regenerated.
723         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
724         normal width, while the previously used characters (U+2329 and
725         U+232A) are classified as wide due to canonical equivalence with the
726         CJK punctuation characters U+3008 and U+3009.
728         * font/devutf8/R.proto: Updated.
729         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
731         * man/groff_char.man: Simplify handling of table traps by
732         introducing `start block' and `end block' macros.
733         (Ns, Ne, 2s, 2e, Ds, De): New macros.
734         (DL): Make it work with Unix troff also.
735         Fix code values of `la' and `ra'.
737         * tmac/dvi.tmac: Define `<>' for CW and CWI.
739 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
741         * src/devices/grohtml/post-html.cc (element_list::~element_list):
742         New destructor, fixing a major memory leak.
744 2003-02-22  Werner LEMBERG  <wl@gnu.org>
746         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
747         to be in conformance with Unicode 3.0 and newer.
749         * font/devlj4/generate/text.map: Add `Eu'.
750         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
751         * font/devlj4/S: Regenerated.
753         * man/groff_char.man: Completely rewritten.
755         * doc/groff.texinfo: Fix description of request and macro arguments.
757 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
759         Valgrind fixes.
761         * src/devices/grohtml/html-table.cc (html_table::~html_table):
762         Deallocate `columns' list.
763         * src/devices/grohtml/post-html.cc (char_block::~char_block):
764         New destructor.
765         (text_glob::text_glob_html, text_glob::text_glob_special,
766         text_glob::text_glob_line, text_glob::text_glob_auto_image,
767         text_glob::text_glob_tag): Avoid memory leaks.
768         (text_glob::remember_table): Free memory before reassigning.
770 2003-02-19  Werner LEMBERG  <wl@gnu.org>
772         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
773         alias `hbar'), the Planck constant over two pi.
775         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
776         `+e' for position 34.
777         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
778         `u2662' and `u2661'.
779         * font/devdvi/{MI,S}: Regenerated.
780         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
781         * font/devlbp/*: Add `hbar' alias.
782         * font/devlj4/generate/special.map: Ditto.
783         * font/devlj4/S: Regenerated.
784         * font/devps/generate/symbolchars: Add `+e'.
785         * font/devps/generate/textmap: Fix PS name for `-h'.
786         Add `hbar' alias.
787         * font/devps/symbolmap: Regenerated.
789         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
791         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
792         `-h', `hbar'.
793         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
794         `-h'.
796         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
797         `hbar'.
798         * tmac/tty-char.tmac: Add `+e'.
800 2003-02-17  Werner LEMBERG  <wl@gnu.org>
802         Another round trying to really fix problems with `have_input'.
804         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
805         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
807         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
808         handling if both foreground and background colors are default.
810         * doc/groff.texinfo (Debugging): Document .lf differences to
811         AT&T troff.
813 2003-02-16  Werner LEMBERG  <wl@gnu.org>
815         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
816         null-bytes in created string.
818         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
819         alias_macro, lookup_request): Improve warning messages.
821         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
822         not `strdup'.
823         Free `last_image_filename'.
825         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
826         `buffer'.
827         (imageList::createPage, imageList::createImage): Use `free', not
828         `a_delete'.
829         (imageItem::~imageItem): Free `imageName'.
830         (addRegDef): Use `strsave', not `strdup'.
831         (get_resolution): Free `pathp'.
833 2003-02-15  Werner LEMBERG  <wl@gnu.org>
835         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
836         to `dummy'.
838 2003-02-14  Werner LEMBERG  <wl@gnu.org>
840         Add memory management for colors to deallocate unnamed colors
841         properly.
843         * src/include/color.h (color): New members `free_list' and `next'.
844         New member functions `new' and `delete'.
845         Add destructor.
846         * src/libs/libgroff/color.cc: Implement it.
848         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
849         for array size of new operator.
851         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
852         redundant comparison.
854         * src/roff/troff/input.cc (word_space_node::reread,
855         hmotion_node::reread): Avoid warning about unused parameter.
856         (reset_output_registers): Remove redundant parameter.
857         (define_color): Undo change 2003-02-12.
859         * src/roff/troff/reg.h: Updated.
861         * src/roff/troff/node.cc (troff_output_file::really_print_line,
862         output_file::put_filename, real_output_file::really_put_filename,
863         ascii_output_file::really_print_line,
864         break_char_node::get_hyphen_list): Avoid warning about unused
865         parameter.
866         (suppress_node::tprint): Updated.
868         * configure.ac: Check declaration for rand() and srand().
869         * configure: Regenerated.
871         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
872         conditionally.
873         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
874         and srand().
876         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
877         to avoid compiler warnings.
879         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
880         unused.
882         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
883         is unused.
884         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
885         (unused) parameter.
886         Updated all callers.
888         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
889         is unused.
890         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
891         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
893         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
894         Parameter is unused.
895         (html_printer::add_table_end): Define parameter conditionally.
896         * src/devices/grohtml/output.cc (simple_output::special): Parameter
897         is unused.
899         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
900         (lbp_printer::set_char): Last parameter is unused.
902         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
904 2003-02-13  Werner LEMBERG  <wl@gnu.org>
906         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
907         Make \D'f ...' move horizontally again for backwards compatibility.
908         Replace it with \D'Fg ...' where appropriate to avoid dependency
909         on horizontal resolution.
911         * src/roff/troff/input.cc (do_get_long_name): New function.
912         (get_long_name): Call it.
914         (read_draw_node): Handle `\D'Fx ...' by calling ...
915         (read_color_draw_node): New function.
917         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
918         `end'.
919         Pass it to `do_get_long_name' which is used instead of
920         `get_long_name'.
922         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
923         unnecessary value guard.
924         (parse_D_command) <'f'>: Add horizontal shift.
926         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
927         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
928         (FILL_MAX): Removed.
930         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
931         Updated.
933 2003-02-12  Werner LEMBERG  <wl@gnu.org>
935         * src/roff/troff/input.cc (do_name_test, do_expr_test,
936         do_zero_width): Push `\n' if closing delimiter is missing.
938         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
939         <'F'>: Make \F non-transparent at the beginning of line.
940         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
941         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
942         `have_input'.
944         (define_color): Free color in case of reassignment.
946         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
947         @DefescListEnd): Use @Var, not @var.
948         Fix all calls.
950         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
952         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
953         `shaded' and `outlined' arrays.
954         (object_spec::object_spec): Initialize `shaded' and `outlined'.
955         (graphic_object::set_fill_color, graphic_object::set_outline_color):
956         Use strsave.
957         (closed_object::set_fill_color): Ditto.
958         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
959         instead of strdup.
960         (troff_output::reset_color): Use a_delete instead of free.
961         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
963 2003-02-11  Werner LEMBERG  <wl@gnu.org>
965         * doc/groff.texinfo: Improve documentation of `ad'.
966         Document that \D'f...' is dependent on the horizontal resolution.
967         * man/groff_diff.man: Improve documentation of \D'f...'.
969         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
970         compensating \h'...' for \D'f ...' since the latter no longer moves
971         current position.
972         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
974 2003-02-10  Werner LEMBERG  <wl@gnu.org>
976         Improve error messages for `x F' (and `F') commands.
978         * src/include/error.h: Add declaration for
979         `current_source_filename'.
980         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
981         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
982         parameter for source file string.
983         Updated all callers.
985         * src/libs/libdriver/input.cc: Add `current_source_filename'.
986         (remember_source_filename): New function.
987         (parse_x_command <'F'>, do_file <'F'>): Use it.
989 2003-02-09  Werner LEMBERG  <wl@gnu.org>
991         Make grotty not emit warnings about unknown colors more than
992         necessary.
994         * src/devices/grotty/tty.cc: Include `ptable.h'.
995         (TTY_MAX_COLORS): Removed.
996         (DEFAULT_COLOR_IDX): Defined to -1.
997         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
998         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
999         Change `tty_colors' to be a ptable.
1000         First arg of `put_color' is now `char'.
1001         New functions `make_rgb_string' and `tty_color'.
1002         (tty_printer::tty_printer): Use `tty_color'.
1003         (tty_printer::color_to_idx): Return value is now `char'.
1004         Use `tty_color'.
1006         * src/include/color.h (color): Add `print_color' member function.
1007         * src/libs/libgroff/color.cc (color::print_color): Implement it.
1009 2003-02-08  Werner LEMBERG  <wl@gnu.org>
1011         Valgrind fixes.
1013         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
1014         encoding file.
1016         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
1017         assume that value has been allocated with `new[]', thus use
1018         `a_delete' for deallocation.
1020         * src/libs/libdriver/input.cc (get_integer_arg,
1021         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
1022         where appropriate.
1024         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
1025         * src/libs/libgroff/nametoindex.cc
1026         (character_indexer::named_char_index): Use `new <type>[1]'.
1028         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
1029         <type>[1]'.
1030         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
1031         (split_text): Use `a_delete'.
1033         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
1034         <type>[1]'.
1036         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
1037         harmless memory leak.
1038         (hyphen_trie::read_patterns_file): Initialize `buf'.
1039         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
1040         Initialize `current_fill_color'and `current_glyph_color'.
1041         * src/roff/troff/glyphuni.cc
1042         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
1043         * src/roff/troff/uniuni.cc
1044         (unicode_decompose_init::unicode_decompose_init): Ditto.
1045         * src/roff/troff/uniglyph.cc
1046         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
1048 2003-01-26  Werner LEMBERG  <wl@gnu.org>
1050         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
1051         `access' before calling `unlink'.
1052         (do_file): Handle __EMX__.
1054         * src/include/nonposix.h: Handle __EMX__.
1056         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
1057         (fontpath,tmacpath): Use it.
1058         (MDEFINES): Add it.
1059         Sorted alphabetically.
1061         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
1062         @SEP@.
1063         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
1064         @SEP@.
1066 2003-01-27  Werner LEMBERG  <wl@gnu.org>
1068         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
1069         New files, copied from gnulib.
1070         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
1071         * configure.ac: Updated.
1072         * configure: Regenerated.
1074         * src/include/config.hin: Regenerated.
1075         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
1076         Don't define `strcasecmp' as `strcmp'.
1077         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
1078         Dont define `strncasecmp' as `strncmp'.
1080         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
1081         Removed.
1083 2003-01-26  Werner LEMBERG  <wl@gnu.org>
1085         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
1086         s/unline/unlink/.
1088 2003-01-25  Werner LEMBERG  <wl@gnu.org>
1090         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
1092 2003-01-24  Werner LEMBERG  <wl@gnu.org>
1094         Add US-english hyphenation exceptions (converted from Barbara
1095         Beeton's hyphenation exception log reports which appear irregularly
1096         in TUGBoat).
1098         * tmac/hyphen.us: Updated to latest version.
1099         * tmac/README: Updated.
1100         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
1101         * tmac/troffrc: Load `hyphenex.us'.
1102         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
1103         * doc/groff.texinfo: Updated.
1105 2003-01-23  Werner LEMBERG  <wl@gnu.org>
1107         Improve hyphenation slightly.  This is a first step in redesigning
1108         the hyphenation algorithm to make it more flexible (e.g. allowing
1109         kerns and ligatures between the hyphenation character and the
1110         following character -- while not used normally in English, other
1111         languages like German would benefit).
1113         * src/roff/troff/env.cc (environment::hyphenate_line): Use
1114         assertion instead of if-clause.
1115         Let `get_hyphen_list' return the number of involved characters in
1116         the hyphenation pattern instead of computing it directly (which
1117         often yields too small values).
1118         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
1119         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
1120         parameter.
1122 2003-01-22  Werner LEMBERG  <wl@gnu.org>
1124         Fixing a bug which caused groff to hang if the hyphenation exception
1125         dictionary tried to grow.
1127         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
1128         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
1129         pointer to dictionary.
1131 2003-01-20  Werner LEMBERG  <wl@gnu.org>
1133         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
1134         negative left italic correction.
1135         * src/utils/afmtodit/afmtodit.man: Document it.
1137         * font/devps/generate/Makefile (RFLAG): Add `-m'.
1138         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
1139         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
1141         * NEWS: Updated.
1143 2003-01-16  Werner LEMBERG  <wl@gnu.org>
1145         * NEWS: Updated.
1147 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
1149         * src/preproc/refer/refer.man: Mention REFER environment variable.
1151 2003-01-05  Werner LEMBERG  <wl@gnu.org>
1153         Similar to \[is], the square root glyph (\[sr]) and the square root
1154         extension glyph (\[radicalex]) are now text symbols.  The new
1155         mathematical versions are called \[sqrt] and \[sqrtex],
1156         respectively.
1158         * font/devX*/S: Regenerated.
1159         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
1160         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
1161         * font/devdvi/EX, font/devdvi/S: Regenerated.
1162         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
1163         * font/devlj4/generate/special.map: Add `sqrt'.
1164         * font/devlj4/S: Regenerated.
1165         * font/devps/generate/textmap: Add `sqrt'.
1166         * font/devps/S, font/devps/symbolmap: Regenerated.
1168         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
1169         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
1170         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
1171         overlap horizontally.
1173         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
1174         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
1175         Fix `radicalex'.
1177         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
1178         and `sqrtex' are overlapping glyphs.
1180 2003-01-04  Werner LEMBERG  <wl@gnu.org>
1182         * font/devdvi/generate/texsy.map: Add `is'.
1183         * font/devps/symbolmap: Regenerated.
1184         * font/devdvi/*TC, MI, S: Regenerated.
1186         * tmac/dvi.tmac: Remove `is'.
1188 2003-01-03  Werner LEMBERG  <wl@gnu.org>
1190         `is' is now a text symbol (only relevant for dvi).  The math variant
1191         can be accessed with `integral'.
1193         * font/devX*/S: Regenerated.
1194         * font/devdvi/generate/texex.map: Remove `is'.
1195         * font/devdvi/EX: Updated.
1196         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
1197         * font/devlj4/generate/special.map: Ditto.
1198         * font/devlj4/S: Regenerated.
1199         * font/devps/generate/textmap: Add `integral'.
1200         * font/devps/S: Regenerated.
1202         * tmac/dvi.tmac: Define `is'.
1204         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
1206         * src/preproc/tbl/main.cc (process_format): Fix error message.
1208 2003-01-02  Werner LEMBERG  <wl@gnu.org>
1210         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
1211         * font/devps/textmap: Fix entries for `ne' and `nc'.
1212         * font/devps/symbolmap: Regenerated.
1214         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
1215         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
1216         `38', `58', `78', `-+', `|=', `nc', `ne'.
1218         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
1219         Use `schar' for `aq'.
1220         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
1221         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
1222         * tmac/tty.tmac: Add `ne'.
1224         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
1225         for fallback glyphs.
1227 2002-12-29  Werner LEMBERG  <wl@gnu.org>
1229         Add glyph `|='.
1231         * font/devX*/*: Regenerated.
1232         * font/devdvi/generate/ec.map: Remove `eq'.
1233         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
1234         Assign `|=' to position 39.
1235         * font/devdvi/*EC, S: Regenerated.
1236         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
1237         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
1238         Assign `|=' to position 549.
1239         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
1240         `equalmath'.
1241         Add `uni2243' for `|='.
1243         * tmac/ec.tmac: Add `eq'.
1244         * tmac/dvi.tmac: Add `=~'.
1245         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
1246         `|='.
1248 2002-12-21  Werner LEMBERG  <wl@gnu.org>
1250         * font/devdvi/generate/tc.map: Remove `**'.
1251         * font/devdvi/*TC: Regenerated.
1252         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
1253         `78', `<<', `>>'.
1254         * font/devutf8/NOTES: Updated.
1256         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
1257         Don't give default parameter to `set_macro'.
1258         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
1259         instead of `set_macro'.
1260         (charinfo::setx_macro): Implement it.
1261         (charinfo::set_macro): Don't change `mode'.
1263         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
1264         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
1265         * tmac/dvi.tmac: Define `!=' with `.schar'.
1267 2002-12-20  Werner LEMBERG  <wl@gnu.org>
1269         * font/devX*/S: Regenerated.
1270         * font/devdvi/generate/ec.map: Remove `pl'.
1271         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
1272         * font/devdvi/*{TC,EC}: Regenerated.
1273         * font/devhtml/R.proto: Add `-+'.
1274         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
1275         * font/devlbp/*: Remove `or'.
1276         * font/devlj4/generate/special.map: Remove `or'.
1277         * font/devlj4/S: Regenerated.
1278         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
1279         `seveneighths', `threeeighths'.
1280         Remove `plusmath'.
1281         Replace `minusplus' with `uni2213'.
1282         * font/devps/symbolmap: Regenerated.
1283         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
1284         Add `-+'.
1286         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
1287         function.
1288         * src/roff/troff/node.cc (troff_output_file::put_char_width):
1289         Call glyph_color and fill_color even if tcommand_flag isn't set.
1290         (make_node, node::add_char): Check not ci->is_fallback but
1291         ci->is_normal.
1293         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
1294         * tmac/ec.tmac: Add .rchar entry for `f/'.
1295         Don't remove `12', `14', `34'.
1296         Define `pl' to be always roman.
1297         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
1298         Define `18', `38', `58', `78'.
1299         * tmac/tty.tmac: Add `-+'.
1300         * tmac/dvi.tmac: Define `f/'.
1301         (dvi-frac): Use `f/'.
1302         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
1303         Define `18', `38', `58', `78'.
1305 2002-12-15  Colin Watson  <cjwatson@debian.org>
1307         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
1309 2002-12-10  Werner LEMBERG  <wl@gnu.org>
1311         Add glyph `tno', a textual variant of `no'.
1313         * font/devX*/*: Regenerated.
1314         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
1315         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
1316         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
1317         * font/devdvi/*: Regenerated.
1318         * font/devlbp/*: Add `tno'.
1319         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
1320         * font/devlj4/*: Regenerated.
1321         * font/devps/generate/textmap: Replace `no' with `tno'.
1322         * font/devps/generate/symbolchars: Add `no'.
1323         * font/devps/*: Regenerated.
1325         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
1327         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
1328         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
1330         * NEWS: Updated.
1332         * tmac/dvi.tmac: Replace most `\\' with `\E'.
1333         Add definition for `sd'.
1334         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
1336         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
1338 2002-12-08  Werner LEMBERG  <wl@gnu.org>
1340         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
1341         mode to avoid rounding errors.
1342         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
1344         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
1345         src/roff/troff/troff.man: Improve documentation of -T.
1347 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
1349         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
1350         (run_pipeline) [_WIN32]: Provide working function without `fork'.
1352 2002-12-06  Werner LEMBERG  <wl@gnu.org>
1354         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
1355         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
1356         Scaling Euro.sansserif glyphs down to have the same height as
1357         digits.
1358         Removed unnecessary points; added some extrema.
1360         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1361         Regenerated.
1363 2002-12-04  Werner LEMBERG  <wl@gnu.org>
1365         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
1366         and `Euro.symbol.bold.slanted'.
1367         Improve some glyph offsets and widths.
1368         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1369         Regenerated.
1370         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
1371         typo.
1372         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
1373         direcory.
1375         * tmac/europs.tmac: Updated to new glyph indices.
1376         Use Euro.symbol for font familiy `A'.
1378         * doc/groff.texinfo: Minor improvements.
1380 2002-12-02  Werner LEMBERG  <wl@gnu.org>
1382         * font/devdvi/generate.tc.map: s/%O/%0/.
1383         * font/devdvi/*TC: Regenerated.
1385         * src/roff/troff/div.cc (init_div_requests): Sorted.
1387         * tmac/dvi.tmac: Remove `Ye'.
1388         * tmac/ec.tmac: Remove `Ye'.
1389         Add .rchar entry for `de'.
1391         * man/groff.man, man/groff_diff.man: Document register `.pe'.
1392         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
1393         * NEWS: Updated.
1395 2002-11-30  Werner LEMBERG  <wl@gnu.org>
1397         Add PS font for various Euro glyphs.
1399         * font/devps/generate/freeeuro.sfd: New master font file for
1400         pfaedit.
1401         * font/devps/generate/sfdtopfa.pe: New conversion script for
1402         pfaedit.
1403         * font/devps/generate/Makefile (FONTS): Add `EURO'.
1404         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
1405         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
1406         `freeeuro.sfd'.
1407         * font/devps/EURO: Generated from `freeeuro.afm'.
1408         * font/devps/download: Add `freeuro.pfa'.
1409         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
1410         `freeeuro.pfa'.
1412         * tmac/europs.tmac: New file.
1413         * tmac/ps.tmac: Include `europs.tmac'.
1414         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
1416 2002-11-29  Werner LEMBERG  <wl@gnu.org>
1418         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
1419         * font/devdvi/S: Regenerated.
1420         * font/devhtml/R.proto: Fix `CR' and `ci'.
1421         Add `OK'.
1422         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
1423         Remove `bs'.
1424         * font/devps/symbolmap: Regenerated.
1425         * font/devutf8/R.proto: Fix `CR' and `ci'.
1426         Add `OK'.
1427         * font/devutf8/NOTES: Updated.
1429         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
1430         `ci'.
1431         Add `OK'.
1432         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1434         * tmac/dvi.tmac: Add `lh' and `rh'.
1435         * tmac/Xps.tmac: Fix `lh' and `rh'.
1436         * tmac/X.tmac: Add `OK'.
1437         * tmac/lj4.tmac: Ditto.
1439 2002-11-24  Werner LEMBERG  <wl@gnu.org>
1441         * font/devX*/S: Regenerated.
1442         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
1443         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
1444         * font/devdvi/generate/texsy.map: Remove `or' glyph.
1445         * font/devdvi/S: Regenerated.
1446         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
1447         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
1448         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
1449         `bracketleftbt', `bracketrighttp', `bracketrightex',
1450         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
1451         `braceex', `braceleftex', `bracerightex', `bracerighttp',
1452         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
1453         `rb', and `bv'.
1454         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
1455         * font/devutf8/NOTES: Updated.
1456         * font/devlj4/generate/special.map: Add glyph `braceex'.
1457         * font/devlj4/S: Regenerated.
1459         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
1461 2002-11-14  Werner LEMBERG  <wl@gnu.org>
1463         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
1464         and `vA'.
1465         Fix code for `an'.
1466         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1468         * doc/texinfo.tex: New version from texinfo 4.3.
1469         * doc/groff.texinfo: Updated for texinfo 4.3.
1470         Use @tie{} where appropriate.
1471         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
1472         * font/devdvi/generate/tc.map: Remove `rn'.
1473         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
1474         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
1475         Fix code for `an'.
1476         * font/devX100/*, font/devX100-12/*, font/devX75/*,
1477         font/devX75-12/*: Regenerated.
1479         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
1480         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
1481         Improve definition of `an'.
1482         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
1483         `ru'.
1484         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
1485         * tmac/X.tmac: Add definition for `or'.
1486         * tmac/Xps.tmac: Undo change 2002-11-05.
1487         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
1489 2002-11-11  Werner LEMBERG  <wl@gnu.org>
1491         * src/roff/troff/node.cc (troff_output_file::put_char): Always
1492         call flush_tbuf.
1494 2002-11-10  Werner LEMBERG  <wl@gnu.org>
1496         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
1497         defines a glyph which is searched after the check for fonts declared
1498         with `.special' (and before the check for all mounted special
1499         fonts).  `fschar' defines a glyph for a particular font which is
1500         searched after the check for fonts declared with `.fspecial' (and
1501         before the check for fonts declared with `.special').  `rfschar'
1502         removes glyphs defined with `fschar'.
1504         * src/roff/troff/token.h (char_mode): New enum.
1505         Declare do_define_character.
1506         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
1507         `mode'.
1508         (charinfo::is_fallback): Updated.
1509         (charinfo::is_special): New method.
1510         * src/roff/troff/input.cc (do_define_character): Add and use
1511         optional second parameter used as a prefix for font-specific glyph
1512         names.
1513         (define_character, define_fallback_character): Updated.
1514         (define_special_character): New function.
1515         (init_input_requests): Add `schar'.
1516         (charinfo::charinfo, charinfo::set_macro): Updated.
1517         * src/roff/troff/node.cc: Include `stringclass.h'.
1518         (make_glyph_node): Handle special glyphs defined with `.schar' and
1519         `.fschar'.
1520         (define_font_special_character, remove_font_special_character): New
1521         functions.
1522         (init_node_requests): Sorted.
1523         Add `fschar' and `rfschar'.
1524         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1525         Document new requests.
1527         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
1528         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
1530 2002-11-08  Werner LEMBERG  <wl@gnu.org>
1532         Added new font `SC' (cmtex10) to devdvi.
1534         * devdvi/generate/Makefile (FONTS): Add `SC'.
1535         (SC): New rule.
1536         * devdvi/generate/textex.map: New map file for cmtex.
1537         * devdvi/SC: New.
1538         * devdvi/Makefile.sub (DEVFILES): Updated.
1539         * tmac/dvi.tmac: Add fspecial entries for SC.
1540         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
1541         found before `S' since the font position of `SC' is lower due to the
1542         gaps in DESC's `font' line.
1543         * tmac/ec.tmac: Add a `special' call.
1544         * NEWS: Updated.
1546         * font/devhtml/R.proto: Remove double entry for `ti'.
1547         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
1548         * tmac/tty-char.tmac: Remove entry for `bq'.
1549         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
1550         * tmac/ec.tmac: Don't remove `aq' glyph.
1551         * tmac/X.tmac: Fix entry for `em'.
1552         Add entries for `fo' and `fc'.
1553         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
1555         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
1556         documentation of `special' and `fspecial' requests.
1558 2002-11-05  Werner LEMBERG  <wl@gnu.org>
1560         * font/devascii/R.proto, font/devcp1047/R.proto,
1561         font/devlatin1/R.proto: Remove entry for `.i'.
1562         * font/devdvi/generate/textt.map: Add entry for `ad'.
1563         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
1564         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
1565         We need this for getting kerning values to compose `/l' and `/L'.
1566         * font/devdvi: Regenerated font definition files for CM fonts.
1567         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
1568         * font/devutf8/R.proto: Ditto.
1569         Remove double entry for `ti'.
1571         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
1572         for (groff) ligatures, `la', and `ra'.
1573         Add "'C", "'c", `IJ', and `ij'.
1574         Remove double entry for `ti'.
1575         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
1576         double entries.
1577         Add "'C", "'c", `IJ', and `ij'.
1578         Fix entries for (groff) ligatures, `la', and `ra'.
1580         * tmac/ps.tmac (ps-achar): New macro.
1581         Define "'c" and "'C".
1582         * tmac/tty.tmac: Add entry for `.i'.
1583         * tmac/X.tmac (X-achar): New macro.
1584         Define "'c", "'C", and `:Y'.
1585         Add entries for `IJ' and `ij'.
1586         * tmac/Xps.tmac (Xps-achar): New macro.
1587         Define "'c" and "'C".
1588         Add entries for `IJ' and `ij'.
1589         * tmac/lbp.tmac (lbp-achar): New macro.
1590         Add fallback characters for all groff ligatures and many other
1591         glyphs.
1592         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
1593         Add entries for `/l' and `/L'.
1594         Define "'c" and "'C".
1595         Add entries for `IJ' and `ij'.
1597 2002-11-02  Larry Kollar  <kollar@alltel.net>
1599         * PROBLEMS: Document how to solve Mac OS X compilation problems.
1601 2002-11-02  Werner LEMBERG  <wl@gnu.org>
1603         Adding support for composite glyphs: \[xxx yyy ...] and the
1604         `composite' request.
1606         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
1607         to Unicode-based glyph names.
1608         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
1609         glyph names to groff glyph names.
1610         * src/roff/troff/uniuni.cc: New file for canonically decomposing
1611         Unicode-based glyph names.
1612         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
1613         for handling Unicode glyph names.
1614         * src/roff/troff/input.cc: Include unicode.h.
1615         (composite_glyph_name): New function.
1616         (token::next) <'['>: Handle Unicode glyph names and composite
1617         glyphs.
1618         (composite_dictionary): New dictionary for the `composite' request.
1619         (composite_request): Implement `composite' request.
1620         (init_input_requests): Add `composite'.
1621         Alphabetically sorted.
1622         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
1623         commented out).
1624         (init_env_requests): Alphabetically sorted.
1625         Removed `tas' and `tar' (already commented out).
1626         * src/roff/troff/Makefile.sub: Updated.
1628 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
1630         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
1631         of options.
1633 2002-10-29  Werner LEMBERG  <wl@gnu.org>
1635         Fix computation of .trunc register.  Additionally, its value (and
1636         the value of the .ne register) is now always set before entering the
1637         trap.
1639         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
1640         `needed_space' before calling `space'.
1641         (top_level_diversion::space): Remove special code for 'sp before the
1642         first page.
1643         Call `begin_page' with the discarded space as a parameter.
1644         (top_level_diversion::begin_page): Add optional parameter to set
1645         `truncated_space'.
1646         * src/roff/troff/div.h: Updated.
1648         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
1649         \n[.ne].
1651         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
1652         (LP): Remove superfluous call to `br'.
1653         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
1654         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
1656 2002-10-26  Werner LEMBERG  <wl@gnu.org>
1658         * tmac/doc-ditroff: Remove useless switch/variable -rC.
1659         (doc-setup-header): Don't set page register `%'.
1660         * tmac/doc-nroff: Remove variable `C'.
1661         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
1662         (doc-setup-header): Don't set page register `%'.
1663         Don't call `bp'.
1664         * tmac/doc-common (doc-header): Call `ns'.
1665         (doc-paragraph): Protect .sp with .br so that it survives traps
1666         possibly set by the user.
1667         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
1669         * tmac/doc*: Replace ' with . for consistency if no effect.
1671 2002-10-26  Werner LEMBERG  <wl@gnu.org>
1673         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
1674         so that it survives traps possibly set by the user.
1676         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
1677         (troff_output_file::set_font): Call flush_tbuf if necessary.
1678         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
1679         flush_tbuf and do_motion only if necessary.
1680         (troff_output_file::start_special,
1681         troff_output_file::put_char_width, troff_output_file::put_char,
1682         troff_output_file::draw): Updated.
1683         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
1684         vmotion_node::tprint): Undo change 2002-10-23.
1686 2002-10-25  Werner LEMBERG  <wl@gnu.org>
1688         * tmac/www.tmac (DC): Fix case of overlapping images.
1690 2002-10-23  Werner LEMBERG  <wl@gnu.org>
1692         * src/roff/troff/node.cc (troff_output_file::fill_color,
1693         troff_output_file::glyph_color): Set current color before testing
1694         color_flag.
1695         (troff_output_file::put_char_width, troff_output_file::put_char,
1696         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
1697         before glyph_color.
1698         (troff_output_file::file_color, troff_output_file::glyph_color):
1699         Call do_motion.
1700         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
1701         vmotion_node::tprint): Move first, then call fill_color.
1703 2002-10-20  Werner LEMBERG  <wl@gnu.org>
1705         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
1706         possible to use multiple main macro packages.
1708 2002-10-19  Werner LEMBERG  <wl@gnu.org>
1710         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
1711         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
1712         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
1713         is set.
1714         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
1715         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
1717 2002-10-16  Werner LEMBERG  <wl@gnu.org>
1719         * NEWS, doc/webpage.ms: Updated.
1721 2002-10-14  Werner LEMBERG  <wl@gnu.org>
1723         * src/roff/troff/node.cc (troff_output_file::put_char_width,
1724         troff_output_file::put_char, troff_output_file::fill_color,
1725         troff_output_file::glyph_color): Handle case where color pointer
1726         is null.
1728 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
1730         Add the new -r option to grotty.  It is similar to the -i option
1731         except it tells grotty(1) to use the "reverse video" attribute to
1732         render italic fonts.
1734         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
1735         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
1736         (tty_printer::make_underline, tty_printer::put_color,
1737         tty_printer::end_page): Use it.
1738         (main): Add -r switch.
1739         (usage): Updated.
1740         * src/devices/grotty/grotty.man: Document it.
1742 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
1744         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
1745         cast to `unsigned char' to properly read patterns with 8bit
1746         characters.
1748 2002-10-08  Werner LEMBERG  <wl@gnu.org>
1750         * REVISION: Increased to 2.
1752 Version 1.18.1 released
1753 =======================
1755 2002-10-08  Werner LEMBERG  <wl@gnu.org>
1757         * doc/webpage.ms, NEWS: Updated.
1759 2002-10-07  Werner LEMBERG  <wl@gnu.org>
1761         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
1762         suppress additional whitespace after the header.
1764         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
1765         with NetBSD.
1767         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
1769 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
1771         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
1772         (Dt): Use it to improve language localization (especially Russian
1773         and French).
1775 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
1777         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
1778         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
1779         drawing commands.
1780         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
1781         curve type.
1782         Call `picurve' for BSPLINE.
1783         (HGPrintElt): Handle BSPLINE.
1784         * src/preproc/grn/README: Document it.
1786 2002-10-03  Werner LEMBERG  <wl@gnu.org>
1788         * src/roff/troff/node.cc (break_char_node::col): New variable.
1789         Updated constructor.
1790         (space_node::tprint, word_space_node::tprint): Call `fill_color'
1791         unconditionally.
1792         (space_node::space_node): Remove assertion.
1793         (break_char_node::add_self): Pass color argument to space node.
1794         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
1795         Ditto.
1796         * src/roff/troff/env.cc (environment::do_break,
1797         environment::add_padding): Ditto.
1799 2002-10-02  Werner LEMBERG  <wl@gnu.org>
1801         Redesigning color support in troff.  Colors are no longer
1802         represented as separate nodes but are now part of glyph nodes and
1803         friends.  This fixes the current formatting misbehaviour due to the
1804         changes introduced on 2002-09-20.  Some extra code is necessary for
1805         proper grotty support: Without adding color variables to
1806         space-related nodes, the background color would be changed too late.
1808         * src/roff/troff/node.h, src/roff/troff/node.cc:
1809         s/current_pagecolor/current_fill_color/.
1810         s/current_glyphcolor/current_glyph_color/.
1811         (glyph_color_node, fill_color_node): Removed.
1812         (node::get_glyph_color, node::get_fill_color): New virtual member
1813         functions.
1814         (space_node::col): New variable.
1815         Updated constructors of space_node and derived classes accordingly.
1816         (hmotion_node::col): New variable.
1817         Updated constructors of hmotion_node and space_char_hmotion_node
1818         accordingly.
1819         (vmotion_node::col): New variable.
1820         Updated constructor accordingly.
1821         (draw_node::gcol, draw_node::fcol): New variables.
1822         Updated constructor accordingly.
1823         (special_node::gcol, special_node::fcol): New variables.
1824         Updated constructors accordingly.
1825         (troff_output_file::put_char, troff_output_file::put_charwidth,
1826         troff_output_file::draw): Set glyph and fill color.
1827         (troff_output_file::start_special): Set glyph and fill color.
1828         Always set current font.
1829         (troff_output_file::fill_color, troff_output_file::glyph_color):
1830         Don't call `do_motion'.
1831         (glyph_node::gcol, glyph_node::fcol): New variables.
1832         Updated constructors of glyph_node and ligature_node accordingly.
1833         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
1834         member functions.
1835         (glyph_node::merge_glyph_node,
1836         kern_pair_node::add_discretionary_hyphen,
1837         node::add_discretionary_hyphen): Updated.
1838         (break_char_node::merge_self): Updated.
1839         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
1840         vmotion_node::tprint): Handle color.
1841         (make_glyph_node, make_node, node::add_char): Updated.
1843         * src/roff/troff/env.cc (environment::space_newline,
1844         environment::space, environment::output_line, environment::do_break,
1845         environment::make_tab_node, environment::add_padding, title):
1846         Updated.
1847         (environment_switch, environment_copy): Don't add color nodes.
1849         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
1850         nothing.
1851         (token::next): Updated.
1852         \m and \M now are as transparent as \s.
1853         (process_input_stack, token::add_to_node_list, token::process,
1854         read_draw_node): Updated.
1855         (charinfo_to_node_list): Don't add color nodes.
1857         * doc/groff.texinfo: Updated.
1859 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
1861         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
1862         strings.
1864 2002-09-27  Colin Watson  <cjwatson@debian.org>
1866         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
1868 2002-09-23  Werner LEMBERG  <wl@gnu.org>
1870         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
1871         appropriate.
1872         (DEFAULT_LINEWIDTH_FACTOR): New macro.
1873         (linewidth_factor): New global variable.
1874         (lbp_printer::set_line_thickness): Fix case for size < 0, using
1875         linewidth_factor.
1876         (long_options): Add -w/--linewidth option.
1877         (usage): Updated.
1878         (main): Handle -w option to set linewidth_factor.
1879         (lbp_printer::lbp_printer): Initialize req_linethickness, not
1880         line_thickness.
1882         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
1884 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
1886         Fixed a bug in the line thickness setting code.
1888         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
1889         variable.
1890         (lbp_printer::set_line_thickness): Pass environment as second
1891         parameter.
1892         Implement it actually.
1893         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
1894         and `set_line_thickness, depending on the current font size.
1896 2002-09-21  Werner LEMBERG  <wl@gnu.org>
1898         Some Debian patches.
1900         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
1901         * src/roff/troff/node.cc (bracket_node::copy): Initialize
1902         `list->last'.
1904 2002-09-20  Werner LEMBERG  <wl@gnu.org>
1906         * configure: Regenerated with autoconf 2.54.
1908 2002-09-20  Werner LEMBERG  <wl@gnu.org>
1910         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
1911         glyph_color.
1912         Rename cur_fill_color to fill_color.
1913         * src/roff/troff/env.cc: Updated.
1915 2002-09-20  Werner LEMBERG  <wl@gnu.org>
1917         * src/roff/troff/env.cc (title): Copy color status after processing
1918         title.
1919         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
1920         fill color nodes to reset colors properly.
1922         * tmac/www.tmac (DC): Fix color handling.
1924         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
1925         * doc/groff.texinfo: Fixing documentation of `tl' request.
1926         * doc/webpage.ms: Updated.
1928 2002-09-19  Werner LEMBERG  <wl@gnu.org>
1930         * src/roff/troff/env.cc (environent_switch, environment_copy):
1931         Emit glyph and fill color nodes to initialize colors properly.
1933 2002-09-17  Colin Watson  <cjwatson@debian.org>
1935         * src/roff/troff/env.cc (environment::set_glyph_color,
1936         environment::set_fill_color): Fix typo which prevented \m[] work
1937         correctly.
1939 2002-09-17  Werner LEMBERG  <wl@gnu.org>
1941         Add left and right italic correction to non-slanted PS fonts.  This
1942         is an experimental feature to improve image rendering of grohtml.
1944         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
1945         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
1946         * font/devps/*: All non-slanted fonts regenerated.
1947         * NEWS: Updated.
1949 2002-09-16  Werner LEMBERG  <wl@gnu.org>
1951         Add a site-specific font directory.
1953         * Makefile.in (localfontdir, legacyfontdir): New variables.
1954         (fontpath): Use them.
1955         (MDEFINES, uninstall_dirs): Updated.
1956         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
1957         Remove `FONTPATH' and `MACROPATH'.
1959         * src/roff/troff/troff.man, NEWS: Updated.
1960         * doc/groff.texinfo (Font Directories): New section.
1961         Other minor fixes.
1963         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
1964         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
1965         src/preproc/grn/grn.man: Minor fixes.
1967         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
1968         Remove unused variable.
1970 2002-09-11  Werner LEMBERG  <wl@gnu.org>
1972         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
1973         * man/groff_out.man: Fix documentation of 'N'.
1975 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
1977         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
1978         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
1979         set.
1980         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
1981         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
1982         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
1983         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
1984         PRE_TAG>: Call `begin' with `FALSE'.
1986 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1988         * src/libs/libgroff/string.cc (string::extract): Fix position of
1989         terminating null byte.
1991 2002-09-08  Werner LEMBERG  <wl@gnu.org>
1993         Add global option `nospaces' to tbl so that leading and trailing
1994         spaces in data items are ignored.
1996         * src/libs/libgroff/string.cc (string::remove_spaces): New member
1997         function to remove leading and trailing spaces.
1998         * src/include/stringclass.h: Updated.
2000         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
2002         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
2003         option.
2004         Fix typo in error messages.
2005         (process_data): Implement `nospaces' option.
2006         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
2008 2002-09-07  Werner LEMBERG  <wl@gnu.org>
2010         * src/include/config.hin: Add `HAVE_ISATTY'.
2011         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
2012         `fname' member.
2013         * src/libs/libgroff/tmpname.cc: Include `time.h'.
2014         * src/libs/libdriver/input.cc (Char): Add `operator==' and
2015         `operator!=' for `char'.
2016         * doc/groff.texinfo: Replace @ifnottex block for top node with
2017         @ifhtml block.
2019 2002-09-06  Werner LEMBERG  <wl@gnu.org>
2021         * doc/Makefile.in (.texinfo.html): Add -I switch.
2022         * doc/groff.texinfo: Add @ifnottex block for top node to make
2023         translation to HTML work.
2025 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
2027         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
2028         (get_papersize, determine_vertical_offset): Removed.
2029         (char_buffer::do_image): Always specify letter size.
2030         (main): Updated.
2031         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
2032         -sPAPERSIZE.
2034 2002-09-05  Werner LEMBERG  <wl@gnu.org>
2036         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
2037         default indentation.
2039 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
2041         * src/preproc/html/pre-html.cc (imageList::createPage): Use
2042         -sPAPERSIZE for gs.
2043         (generateImages): Clean up push-back buffer.
2045 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2047         * doc/groff.texinfo: Minor fixes.
2049 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2051         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
2052         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
2053         (gsPaper): Removed.
2054         (determine_vertical_offset): Use LETTER_LENGTH.
2055         (createPage): Moved to ...
2056         (imageList::createPage): This.
2057         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
2058         (imageList::getMaxX): New function.
2059         (createImage): Moved to ...
2060         (imageList::createImage): This.
2061         (imageList::createImages): New function.
2062         (generateImages): Read `maxx' directly.
2063         Updated.
2064         (scanArguments): Don't specify `gsPaper' for `-o'.
2065         (makeTempFiles): Call `xtmpfile' with the last argument set to
2066         `TRUE'.
2068 2002-08-24  Werner LEMBERG  <wl@gnu.org>
2070         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
2071         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
2072         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
2073         * src/preproc/html/pushback.cc: Include nonposix.h.
2074         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
2075         conditionally.
2077 2002-08-23  Werner LEMBERG  <wl@gnu.org>
2079         Use $(OBJEXT) for the object file extension.
2081         * Makefile.comm (.SUFFIXES): Add .obj.
2082         (.cc.obj, .c.obj): New implicit rules.
2083         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
2084         (MDEFINES): Add EXEEXT and OBJEXT.
2085         * */Makefile.sub: s/.o/.$(OBJEXT)/.
2087 2002-08-22  Werner LEMBERG  <wl@gnu.org>
2089         * INSTALL: Mention texinfo 4.2 as a prerequisite.
2091 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2093         * src/devices/grohtml/post-html.cc (colType): Make enum global to
2094         the file.
2095         (html_printer::update_min_max, html_printer::add_table_end): New
2096         methods.
2097         (html_printer::lookahead_for_tables): Use them.
2098         Reset page offset correctly.
2099         (html_printer::~html_printer): Add creation of creator comment up.
2101 2002-08-20  Werner LEMBERG  <wl@gnu.org>
2103         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
2104         * man/groff_tmac.man: Fix typos.
2105         * man/groff_font.man: Minor reordering.
2106         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
2107         * contrib/groffer/groffer.man: Fix typos.
2109 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
2111         Avoid endless loops while scanning for tables.
2113         * src/devices/grohtml/post-html.cc (list::insert): Set
2114         ptr->right->left.
2115         (html_printer::next_horiz_pos): Add `text_glob' argument; update
2116         all callers.
2117         Return immediately if that argument is NULL.
2118         (html_printer::calc_nf): Don't test if `g' is NULL.
2119         (html_printer::lookahead_for_tables): Use
2120         `glyphs.move_right_get_data'.
2121         Don't test if `g' is NULL.
2123 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
2125         A better fix, replacing fix 2002-08-15, for increasing SIZE.
2127         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
2128         a pointer.
2129         (char_block::char_block): Allocate `buffer'.
2130         (char_buffer::add_string): Use it.
2132 2002-08-15  Werner LEMBERG  <wl@gnu.org>
2134         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
2135         src/devices/grodvi/grodvi.man: Document default line thickness.
2137 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
2139         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
2140         8192.
2142 2002-08-14  Werner LEMBERG  <wl@gnu.org>
2144         * doc/webpage.ms: Updated.
2146 2002-08-09  Werner LEMBERG  <wl@gnu.org>
2148         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
2149         unbreakable space.
2151 2002-08-08  Aaron Campbell  <aaron@monkey.org>
2153         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
2154         (&& -> &).
2156 2002-08-08  Werner LEMBERG  <wl@gnu.org>
2158         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
2159         tok.next().
2160         (read_gray): Ditto.
2161         Don't push back a space but a newline onto the stack.
2163 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
2165         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
2166         inadvertently.
2168         * src/devices/grohtml/post-html.cc (html_printer::end_font,
2169         html_printer::start_font): Handle them.
2170         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
2171         reset bold and tt.
2172         (html_text::do_bold): Don't reset italic and tt.
2173         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
2174         * font/devhtml/DESC.proto: Add those fonts.
2175         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
2177 2002-08-07  Werner LEMBERG  <wl@gnu.org>
2179         * MORE.STUFF: Added gpresent.
2181         * tmac/trace.tmac: Show nesting level by a corresponding amount of
2182         whitespace before printing the logging message.
2184 2002-07-31  Colin Watson  <cjwatson@debian.org>
2186         * src/devices/grohtml/html-table.cc (html_table::finish_row):
2187         Initialize `n' to zero.  This fixes a segfault on ARM.
2189 2002-07-30  Werner LEMBERG  <wl@gnu.org>
2191         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
2193 2002-07-29  Werner LEMBERG  <wl@gnu.org>
2195         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
2196         final semicolon.
2198 2002-07-28  Colin Watson  <cjwatson@debian.org>
2200         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
2201         `.ps'.
2202         (html_printer::html_printer): Initialize `pointsize'.
2204 2002-07-26  Werner LEMBERG  <wl@gnu.org>
2206         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
2207         gnu.png.
2208         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
2209         (gnu.eps): Add -rle switch to pnmtops.
2210         (distfiles): Add gnu.eps and gnu.png.
2212 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
2214         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
2215         Add `operator!='.
2217 2002-07-24  Werner LEMBERG  <wl@gnu.org>
2219         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
2220         ' \+' but '  *' for sed.
2221         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
2223 2002-07-23  Werner LEMBERG  <wl@gnu.org>
2225         * doc/groff.texinfo: Document `papersize' keyword.
2226         * NEWS, man/groff_font.man: Updated.
2228 2002-07-23  Colin Watson  <cjwatson@debian.org>
2230         Extend papersize keyword to accept more than a single entry.  The
2231         first valid will be used.
2233         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
2234         (font::scan_papersize): Really skip final newline.
2235         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
2237 2002-07-23  Werner LEMBERG  <wl@gnu.org>
2239         * configure.ac: Test for isatty.
2240         * configure: Regenerated.
2241         * src/include/posix.h: Check HAVE_ISATTY.
2242         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
2243         * src/utils/lookbib/lookbib.cc: Include posix.h.
2244         Don't declare isatty.
2246 2002-07-21  Werner LEMBERG  <wl@gnu.org>
2248         * NEWS: Add `output' request.
2250         * REVISION: Increased to 1.
2252 Version 1.18.0 released
2253 =======================
2255 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
2257         Allow internal glyph indices > 0xFF in grohtml for input characters.
2259         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
2260         as parameter.
2261         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
2262         Updated all callers.
2263         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
2264         (html_printer): Updated.
2266 2002-07-19  Werner LEMBERG  <wl@gnu.org>
2268         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
2269         * font/devutf8/R.proto: Adding some missing glyphs.
2270         * font/devutf8/NOTES: Updated.
2272         * tmac/dvi.tmac: Add more composite glyphs.
2273         * tmac/html.tmac: Updated.
2275         * man/groff_char.man: Add `sum' and `product' entities.
2277         * NEWS: Updated.
2279 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
2281         Improved table, tab, and indenting support.
2283         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
2284         string_iterator::suppress_newline_flag): Removed.  Updated all
2285         function which have used it.
2287         * src/roff/troff/env.cc: Include `input.h'.
2288         (environment::add_node): Accept 0 as parameter.
2289         (environment::add_html_tag): Add `force' parameter.
2290         Updated all callers.
2291         (environment::add_html_tag_tabs): Ditto.
2292         For the moment, support left-aligned tabs only.
2293         (environment::make_html_tag): New function.
2294         (fill, no_fill): Set .br html tag additionally.
2295         (environment::newline): Emit `eol.ce' or `eol' tag for html.
2296         (environment::add_html_tag_eol): Removed.
2297         (tab_stops::distance_to_next_tab): Add variant for handling 
2298         nextpos'.
2299         (environment::distance_to_next_tab): Ditto.
2300         Updated all callers.
2301         (environment::handle_tab): Handle tabs for html.
2302         
2303         * src/roff/troff/env.h: Updated.
2305         * src/roff/troff/div.cc: Updated all callers of
2306         `environment::add_html_tag'.
2308         * src/devices/grohtml/html-table.cc,
2309         src/devices/grohtml/html-table.h: New files.
2311         * src/devices/grohtml/html-text.cc (html_text): New members
2312         `blank_para' and `start_space'.
2313         (html_text::issue_tag): Don't emit TABLE_TAG.
2314         Handle indentation for PRE_TAG and P_TAG.
2315         (html_text::end_tag): Updated.
2316         (html_text::table_is_void, html_text::issue_table_begin,
2317         html_text::issue_table_end): Removed.
2318         (html_text::do_push): Simplified.
2319         [DEBUGGING]: Small fix.
2320         (html_text::push_para): Add new parameter for indentation; updated
2321         all callers.
2322         Handle PRE_TAG.
2323         (html_text::do_indent, html_text::do_table, html_text::done_table,
2324         html_text::is_in_table): Removed.
2325         (html_text::do_pre): Handle P_TAG also.
2326         (html_text::shutdown): Handle p->indent.
2327         (html_text::check_emit_text): Simplified.
2328         (html_text::do_emittext): Reset `blank_para'.
2329         (html_text::do_para): Add new parameter for indentation; updated
2330         all callers.
2331         (html_text::remove_indent): New function.
2332         (html_text::do_space): Handle verbatim text properly.
2333         (html_text::ever_emitted_text, html_text::starts_with_space,
2334         html_text::remove_para_align): New functions.
2335         (html_text::dump_stack_element, html_text::dump_stack): Updated.
2337         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
2338         Updated.
2340         * src/devices/grohtml/post-html.cc: Include html-table.h.
2341         (INDENTATION): Removed.
2342         (text_glob): Added many `is_<foo>' functions.
2343         Added table description `tab'.
2344         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
2345         member functions.
2346         (list): Add `insert' and `move_to' member functions.
2347         (page): Add `insert_tag' member function.
2348         (page::dump_page) [DEBUG_TABLES]: Improved.
2349         (html_printer): Add `table' and `max_linelength' elements.
2350         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
2351         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
2352         `remove_tabs', `remove_courier_tabs'.
2353         (html_printer::emit_raw): Handle indentation.
2354         (html_printer::do_center, html_printer::write_header): Updated.
2355         (html_printer::is_courier_until_eol): Check for tag.
2356         (html_printer::do_linelength): Handle max_linelength.
2357         (html_printer::do_page_offset, html_printer::do_indentation): Handle
2358         fill_on.
2359         (html_printer::do_tempindent): Updated.
2360         (html_printer::do_indentedparagraph): Removed.
2361         (html_printer::do_indent): Simplified.
2362         (html_printer::do_eol): Use `ever_emitted_text'.
2363         (html_printer::do_flush, html_printer::do_links): Don't call
2364         done_table.
2365         (html_printer::do_break): Handle end_tempindent.
2366         (html_printer::troff_tag): Get argument.
2367         Don't handle `.ip'.
2368         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
2369         (html_printer::flush_page): Call `lookahead_for_tables'.
2370         Don't call `done_table'.
2371         (html_printer::add_to_sbuf): Always call do_indent.
2373         * src/devices/grohtml/Makefile.sub: Updated.
2375         * tmac/an-old.tmac (TP): Don't handle html device specially.
2376         (an-do-tag-html): New function which will be used instead of
2377         `an-do-tag' if html device is used.
2379         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
2381         * tmac/s.tmac (@IP): Don't handle html device specially.
2382         (@IP-html): New function which will be used instead of `@IP' if
2383         html device is used.
2385         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
2386         is a hack which will eventually vanish again.
2387         (PIMG): Handle `-C' option correctly if not html.
2388         (HR): Use HTML-NS.
2390 2002-07-17  Werner LEMBERG  <wl@gnu.org>
2392         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
2394 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
2396         * contrib/pic2graph/pic2graph.*: Use convert(1).
2397         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
2399 2002-07-14  Bernd Warken  <bwarken@mayn.de>
2401         * tmac/groff_trace.man: New file.
2402         * tmac/Makefile.sub: Updated.
2403         * NEWS: Updated.
2405 2002-07-13  Werner LEMBERG  <wl@gnu.org>
2407         * src/roff/groff/groff.man: Add some cross references.
2409 2002-07-12  Werner LEMBERG  <wl@gnu.org>
2411         * src/roff/troff/input.cc (substring_request): Add warnings for
2412         string indices out of range.
2414 2002-07-11  Werner LEMBERG  <wl@gnu.org>
2416         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
2417         * font/devdvi/*EC: Regenerated.
2419 2002-07-10  Bernd Warken  <bwarken@mayn.de>
2421         * man/groff_char.man: Updated and extended.
2423 2002-07-10  Werner LEMBERG  <wl@gnu.org>
2425         * src/roff/troff/input.cc (length_macro): Renamed to...
2426         (length_request): This.
2427         Move call of `tok.next()' to the very end, otherwise the register
2428         value hasn't been updated yet.
2429         (init_input_requests): Updated.
2431 2002-07-09  Werner LEMBERG  <wl@gnu.org>
2433         * src/roff/troff/input.cc (substring_macro): Renamed to...
2434         (substring_request): This.
2435         (init_input_requests): Updated.
2436         * src/roff/troff/request.h: Updated.
2438 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
2440         * src/roff/grog/grog.sh: Fix typo.
2442 2002-07-08  Werner LEMBERG  <wl@gnu.org>
2444         * win32-diffs: Updated.
2446         Handle `papersize' keyword properly in DESC.
2448         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
2449         type.
2450         Updated all callers.
2451         * src/libs/libgroff/paper.cc: Add four more paper formats used by
2452         grolj4.
2453         * src/include/paper.h: Updated.
2455         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
2456         Other minor C syntax fixes.
2457         (papersize, paperlength, paperwidth): Renamed to `user_*'.
2458         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
2459         members.
2460         (lbp_printer::lbp_printer): Pass three arguments.
2461         Set paper dimensions properly.
2462         (make_printer, main): Updated.
2463         (handle_unknown_desc_command): Fix error messages.
2464         (main): Handle papersize keyword in DESC properly.
2466         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
2467         `user_paper_size'.
2468         (lbp_printer::lbp_printer): Pass an argument.
2469         Set paper_size properly.
2470         (handle_unknown_desc_command): Removed.
2471         (make_printer, main): Updated.
2472         * src/devices/grolj4/grolj4.man: Minor documentation fix.
2474         * man/groff_font.man, NEWS: Updated.
2476 2002-07-07  Werner LEMBERG  <wl@gnu.org>
2478         Integrated eqn2graph, contributed by Eric S. Raymond.
2480         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
2481         files.
2482         * Makefile.in, NEWS: Updated.
2484 2002-06-04  Werner LEMBERG  <wl@gnu.org>
2486         Changing the substring request to make it fit better with other
2487         string manipulation functions in other programming languages:
2488         Index 0 is now the first character in the string, and index -1
2489         indicates the last character.  Since this request didn't work
2490         properly anyway in the last release, it doesn't harm too much to
2491         change the syntax.
2493         * src/roff/troff/input.cc (substring_macro): Use loops to get
2494         the real string length (ignoring COMPATIBLE_SAVE and
2495         COMPATIBLE_RESTORE) and offsets.
2496         Implement change described above.
2498         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
2499         (doc-do-Bd-args, doc-do-Bl-args: Changed accordingly.
2501         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
2503 2002-06-03  Werner LEMBERG  <wl@gnu.org>
2505         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
2506         COMPATIBLE_RESTORE are completely ignored.
2508         * src/roff/troff/input.cc (char_list::set, char_list::get): New
2509         functions.
2510         (macro): `length' field renamed to `len'.
2511         Added new field `empty_macro' (1 if macro is empty), to be used
2512         instead of checking `len'.
2513         Updated all callers.
2514         (macro::empty): Updated.
2515         (macro::length, macro::set, macro::get): New functions.
2516         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2517         Set `empty_macro'.
2518         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
2519         COMPATIBLE_RESTORE pairs.
2520         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2521         * src/roff/troff/request.h: Updated.
2523         * doc/groff.texinfo: Document .chop's behaviour better.
2525 2002-06-02  Werner LEMBERG  <wl@gnu.org>
2527         * doc/pic.ms: Fix documentation for the addition of positions.
2529         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
2531 2002-06-29  Werner LEMBERG  <wl@gnu.org>
2533         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
2535         * src/roff/troff/input.cc (have_string_arg): New global variable.
2536         (read_mode): New enumeration.
2537         (read_escape_name): Use it.  Update all calls.
2538         (read_long_escape_name): Use it.  Update all calls.
2539         Set have_string_arg if appropriate.
2540         (get_char_for_escape_name): Add parameter for handling space
2541         character.
2542         (interpolate_string_with_args, decode_string_args): New functions.
2543         (get_copy, token::next): Call it if necessary.
2544         (interpolate_string): Fix error message.
2546         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
2547         Document it.
2549 2002-06-24  Bernd Warken  <bwarken@mayn.de>
2551         * man/groff_tmac.man: Updated and extended.
2553 2002-06-24  Werner LEMBERG  <wl@gnu.org>
2555         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
2557 2002-06-23  Werner LEMBERG  <wl@gnu.org>
2559         * doc/pic.ms: Improve documentation of composite block objects.
2561 2002-06-22  Werner LEMBERG  <wl@gnu.org>
2563         * src/roff/troff/input.cc (init_registers): Add three registers
2564         `seconds', `minutes', and `hours' to hold the current time.
2566         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
2567         Updated.
2569 2002-06-20  Werner LEMBERG  <wl@gnu.org>
2571         Make \X accept both `\ ' and `\~', converting them to single space
2572         characters.
2574         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
2575         (token::unstretchable_space): New inline function.
2576         * src/roff/troff/input.cc (token::next, token::delimiter,
2577         token::description, token::add_to_node_list, token::process): Handle
2578         TOKEN_UNSTRETCHABLE_NODE.
2579         (encode_char): Handle tok.stretchable_space and
2580         tok.unstretchable_space.
2582         * NEWS, doc/groff.texinfo: Document it..
2584 2002-06-19  Werner LEMBERG  <wl@gnu.org>
2586         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
2588         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
2589         keyword to enable/disable SGR output.
2590         (tty_printer::change_fill_color): New function.
2591         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
2593         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
2594         call.
2596 2002-06-18  Werner LEMBERG  <wl@gnu.org>
2598         Add a `color' request and a `.color' register to control usage of
2599         colours.
2601         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
2602         (color_flag): This (which is the inverse).
2603         (activate_color): New function.
2604         (main, init_input_requests): Updated.
2605         * src/roff/troff/troff.h, src/roff/troff/node.cc
2606         (troff_output_file::fill_color, troff_output_file::glyph_color):
2607         Updated.
2609         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
2610         Document the changes.
2612 2002-06-17  Colin Watson  <cjwatson@debian.org>
2614         Circumvent bug in autoconf 2.53 regarding top_builddir.
2616         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
2617         * Makefile.in, doc/Makefile.in:
2618         s/@top_builddir@/@groff_top_builddir@/.
2619         * configure: Regenerated (with autoconf 2.53).
2621 2002-06-17  Werner LEMBERG  <wl@gnu.org>
2623         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
2624         `paperwidth' and `paperlength' for the `papersize' keyword.
2626 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
2628         * src/devices/grops/grops.man: Add info about Type 42 fonts.
2630 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
2632         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
2633         html_printer::do_linelength, html_printer::do_pageoffset,
2634         html_printer::do_indentation, html_printer::do_tempindent,
2635         html_printer::do_break, html_printer::begin_page): Clear indented
2636         text.
2637         * tmac/html.tmac: Disable hyphenation.
2639 2002-06-15  Werner LEMBERG  <wl@gnu.org>
2641         Don't produce HTML files if utility programs are missing.
2643         * Makefile.in (make_html, make_install_html): New variables.
2644         (MDEFINES): Updated.
2646         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
2647         utility programs.
2648         * configure.ac: Use it.
2649         * configure: Regenerated.
2651         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
2652         (HTMLEXAMPLESFILES): This new variable.
2653         (EXAMPLESIMAGEFILES): Renamed to...
2654         (HTMLEXAMPLEIMAGEFILES): This.
2655         (CLEANADD): Add HTMLEXAMPLEFILES.
2656         (all): Use `make_html'.
2657         (html): New target.
2658         (install_data): Use `make_install_html'.
2659         Move html stuff to...
2660         (install_html): This new target.
2661         (uninstall_sub): Updated.
2663 2002-06-14  Bernd Warken  <bwarken@mayn.de>
2665         * src/roff/grog/Makefile.sub (grog): Renamed to...
2666         (grog.old): This.
2667         (grog): New rule to always install grog.sh as grog.
2669 2002-06-08  Bernd Warken  <bwarken@mayn.de>
2671         * src/roff/grog/grog.pl: Fix typo.
2673 2002-06-07  Werner LEMBERG  <wl@gnu.org>
2675         * doc/groff.texinfo: Add more info on .tr arguments.
2677 2002-06-05  Werner LEMBERG  <wl@gnu.org>
2679         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
2681         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
2682         * configure: Regenerated.
2684 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2686         * src/roff/troff/symbol.cc (table_sizes): Add more values.
2688         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
2690 2002-06-04  Werner LEMBERG  <wl@gnu.org>
2692         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
2693         is not initialized at the time we need it in case `--prefix' hasn't
2694         been set.  Check for `ac_default_prefix' also.
2695         Test for `papersize' keyword also and generalize allowed whitespace.
2696         * configure: Regenerated.
2698         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
2699         `paperlength'.
2701         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
2702         with...
2703         (src_version, src_revision): New variables to avoid overwriting
2704         from parent make process.
2705         (version.cc): Updated.
2707         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
2708         (linebuf, linebufsize): New global variables.
2709         (sys_fatal): Use `fatal' to abort properly.
2710         (get_line): New function.
2711         (get_resolution): Use it.
2712         Improve error messages.
2713         (get_papersize): Check `papersize' also.
2714         Use `get_line'.
2715         Improve error messages.
2717 2002-06-03  Werner LEMBERG  <wl@gnu.org>
2719         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
2720         should be removed only if builddir is not srcdir.
2721         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
2722         (clean): Depend on `mostlyclean'.
2723         (distclean): Depend on `clean'.
2724         (realclean, extraclean): Depend on `distclean'.
2725         (.y.cc, .y.o): Simplified.  The output files are no longer written
2726         to srcdir but to builddir.
2727         * Makefile.in (MDEFINES): Add `version' and `revision'.
2728         (uninstall_dirs): Fix order of directories.
2729         * doc/Makefile.sub (version, revision): Removed.
2730         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
2731         Added `HTMLDOCFILES'.
2732         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
2733         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
2734         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
2735         as prefix.
2737         * doc/texinfo.tex (\authortt): New macro.
2738         (\shortcontt): Define.
2739         (\titlepage): Set \tt to \authortt while defining \authorfont.
2740         (\appendixbox): New macro.
2741         (\chapmacro, \appendixentry): Use \appendixbox to get even
2742         indentation for letters.
2743         (\summarycontents): Set \tt.
2744         (\internalpagesize): Add two arguments for real paper width and
2745         height as needed by pdfTeX.
2746         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
2747         Updated.
2748         (\tempdima, \tempdimb): New temporary dimensions.
2749         (\pagesizesyyy): Updated.
2751 2002-06-02  Werner LEMBERG  <wl@gnu.org>
2753         Adding a new keyword `papersize' to the DESC file format (similar
2754         but not completely identical to grolbp's extension).  grops now has
2755         a -p command line option to override `papersize'.  Finally, grolbp
2756         has been adapted to the new syntax.
2758         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
2759         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
2760         elements.
2761         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
2762         (CCSRCS): Add `paper.cc'.
2764         * src/include/font.h (font): Add `papersize' element.
2765         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
2766         (font::scan_papersize): New function.
2767         (font::load_desc): Use it for handling `papersize' keyword.
2768         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
2770         * src/devices/grops/ps.cc: Include paper.h.
2771         (user_paper_length): New global variable.
2772         (ps_printer): Use paper length as initializer.
2773         (make_printer): Updated.
2774         (main): Handle new `-p' option.
2775         * src/devices/grops/grops.man: Updated.
2777         * src/devices/grolbp/lbp.cc: Include paper.h.
2778         s/papersizes/lbp_papersizes/.
2779         (set_papersize): Use new `papersizes' array.
2780         (handle_unknown_desc_command): Don't handle `papersize'.
2781         (main): Use `font::scan_papersize' for handling `-p' option.
2782         * src/devices/grolbp/grolbp.man: Updated.
2784         * man/groff_font.man: Document `papersize'.
2785         * NEWS: Updated.
2787 2002-05-30  Werner LEMBERG  <wl@gnu.org>
2789         * src/devices/grops/TODO: Updated.
2790         * src/devices/grops/grops.man: More info on paper formats.
2791         * man/groff_font.man: Document `paperheight' and `paperwidth'.
2793 2002-05-29  Werner LEMBERG  <wl@gnu.org>
2795         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
2796         to list only if srcdir != currdir.
2797         (distfiles): New target.
2799         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
2800         (NOMAKEDIRS): New variable.
2801         (DISTDIRS): Use it.
2803 2002-05-26  Werner LEMBERG  <wl@gnu.org>
2805         Add .output request, similar to \! at top-level.
2807         * src/roff/troff/input.cc (transparent): Remove unused declaration.
2808         (output_request): New function.
2809         (init_input_requests): Add it.
2810         Sorted.
2811         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
2812         Document it.
2814         * Makefile.in (MDEFINES): Add INSTALL_INFO.
2815         (prepare_examples): Fix typo.
2816         * doc/groff.texinfo (@direntry): Fix it.
2818 2002-05-25  Werner LEMBERG  <wl@gnu.org>
2820         Including the doc subdir into groff's Makefile system.
2822         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
2823         * configure.ac: Use it.
2824         Generate `doc/Makefile'.
2825         * configure: Regenerated.
2827         * Makefile.in (infodir, INSTALL_INFO): New variables.
2828         (MDEFINES, uninstall_dirs): Updated.
2829         (OTHERDIRS): Add `doc'.
2830         * Makefile.comm (CLEANDIRADD): New variable.
2831         (mostlyclean): Use it.
2833         * doc/Makefile.sub, doc/Makefile.in: New files.
2834         * doc/Makefile: Removed.
2836         * NEWS, INSTALL: Updated.
2838 2002-05-24  Werner LEMBERG  <wl@gnu.org>
2840         * doc/homepage.ms: Renamed to ...
2841         * doc/webpage.ms: This.
2842         Use `.NHR'.
2844 2002-05-23  Werner LEMBERG  <wl@gnu.org>
2846         Integrating the `mom' macro package, contributed by Peter Schaffter
2847         <df191@ncf.ca>.
2849         * contrib/mom/*: New subdirectory tree.
2850         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
2851         be used for documentation files.
2852         (MDEFINES, uninstall_dirs): Use them.
2853         (OTHERDIRS): Add contrib/mom.
2854         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
2855         @HTMLDOCDIR@.
2856         * MANIFEST, NEWS: Updated.
2858 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
2860         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
2861         if at outer level; at start-up we are at outer level.
2863         * src/roff/troff/input.cc (do_suppress): Implement it.
2864         Simplify \O[3].
2866         Add option -p to show progress information.
2867         pre-grohtml will now render only one page at a time, reducing the
2868         size of needed disk resources enormously.
2870         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
2871         (imagePageName): New global variable.
2872         (psPageName, show_progress, currentPageNo): New global variables.
2873         (html_system): Close saved stderr and stdout handles.
2874         (write_end_image): Accept a parameter to control \O escape.
2875         (write_start_image): Adapted to new \O meaning.
2876         (char_buffer::write_upto_newline): Updated.
2877         (createAllPages): Replaced with...
2878         (createPage): This new function to create a single page for images.
2879         It uses `psselect' from the psutils package.
2880         (removeAllPages): Removed.
2881         (createImage): Updated.
2882         Handle progress display.
2883         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
2884         (scanArguments): Add option -p.
2885         (makeTempFiles): Updated to create temp files for psPageName and
2886         imagePageName.
2887         (removeTempFiles): Removed.
2888         (main): Updated.
2890         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
2891         html_printer::write_header): Append `\0' to `buffer'.
2892         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
2893         (main): Handle -p.
2894         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
2895         Handle `text_emitted'.
2896         (html_text::table_is_void): Slightly rewritten.
2897         (stop): New external symbol.
2898         (html_text::do_push) [DEBUGGING]: Use it and simplify.
2899         (html_text::shutdown): Call `dump_stack'.
2900         (html_text::do_space): Rewritten.
2901         * src/devices/grohtml/grohtml.man: Document -p and the need of
2902         `psselect'.
2904         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
2905         new \O syntax.
2906         Call \O[0] if `ps4html' is active.
2907         * tmac/s.tmac (@EQ, @EN): Handle html better.
2908         (@TS, TE): Ditto.
2909         * tmac/html.tmac: Don't use black for background colour.
2911         * src/roff/troff/node.cc: Include `div.h'.
2912         (troff_output_file::really_print_line): Don't use `is_on'. 
2913         (troff_output_file::word_marker, troff_output_file::flush_tbuf
2914         troff_output_file::check_charinfo,
2915         troff_output_file::put_char_width, troff_output_file::put_char,
2916         troff_output_file::determine_line_limits, troff_output_file::draw,
2917         real_output_file::begin_page, glyph_color_node::tprintf,
2918         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
2919         Use `is_on'.
2920         (troff_output_file::really_on): Call `do_motion'.
2921         (suppress_node::tprint): Use `get_page_number' instead of `%'
2922         register.
2923         Call `reset_output_registers' conditionally on `is_on'.
2925         * doc/groff.texinfo: Document new syntax of \O.
2926         * NEWS, man/groff_diff.man: Updated.
2928 2002-05-22  Werner LEMBERG  <wl@gnu.org>
2930         * MORE.STUFF: Add info about David Frey's deroff implementation.
2931         Mention troff.org.
2933 2002-05-16  Werner LEMBERG  <wl@gnu.org>
2935         Pic's `with' attribute now accepts positions.
2937         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
2938         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
2939         conflicts.
2940         (object_spec): Add rule for `WITH' and `position'.
2941         (relative_path): Give `corner' the precedence of `CHOP'.
2942         * src/preproc/pic/object.h (path): New members `pos' and
2943         `is_position'.
2944         * src/preproc/pic/object.cc: Updated initializers of `path'.
2945         (path::follow): Handle `is_position'.
2947         * doc/pic.ms: Completely updated grammar description.
2948         Many typographical improvements.
2950 2002-05-15  Werner LEMBERG  <wl@gnu.org>
2952         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
2953         code of x in range 0-127) also.
2954         * doc/groff.texinfo, man/groff_diff.man: Updated.
2956         Added keywords `north', `south', `east', and `west' for corners
2957         in pic.
2959         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
2960         and WEST.
2961         (yylex): Handle them.
2962         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
2963         (corner): Handle them.
2965 2002-05-14  Werner LEMBERG  <wl@gnu.org>
2967         * src/devices/grops/grops.man: Clarify handling of `download' file.
2969 2002-05-11  Werner LEMBERG  <wl@gnu.org>
2971         Adding `warnscale' and `spreadwarn' requests, based on a patch from
2972         Jeffrey Friedl <jfriedl@yahoo.com>.
2974         * src/roff/troff/input.cc (spread_limit, warn_scale,
2975         warn_scaling_indicator): New global variables.
2976         (warnscale_request, spreadwarn_requests): New functions.
2977         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
2978         (init_input_requests): Updated.
2979         (error_type): Add `OUTPUT_WARNING'.
2980         (do_error): Handle it.
2981         (output_warning): New warning function which shows output location.
2982         * src/roff/troff/env.h (spread_limit): New external variable.
2983         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
2984         `output_warning'.
2985         (distribute_space): Emit warning if added space is larger than
2986         `spread_limit'.
2987         (environment::possibly_break_line): Emit warning if a line can't
2988         be adjusted on both sides.
2990         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
2992 2002-05-08  Werner LEMBERG  <wl@gnu.org>
2994         * src/roff/troff/node.cc (special_node::special_node): Use
2995         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
2996         \X''\% crashes, for example.
2998         * doc/groff.texinfo: Document \! and \? used at top-level.
3000 2002-05-06  Werner LEMBERG  <wl@gnu.org>
3002         * src/preproc/pic/pic.man: Fix some keyword syntax.
3003         Other minor typographical fixes.
3005         * src/roff/groff/groff.man: Fix typos.
3007 2002-05-04  Werner LEMBERG  <wl@gnu.org>
3009         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
3010         (ShortOpt[]): This to avoid problems with refer.
3012         * doc/pic.ms: Fix typo.
3013         Fix pic grammar description.
3015         * tmac/an-old.tmac (ne): Use de1, not de.
3017 2002-05-03  Werner LEMBERG  <wl@gnu.org>
3019         * doc/groff.texinfo: Finished separation of glyphs and characters.
3020         Don't use the string `Appendix' for appendix headers (both in
3021         the text and the table of contents).
3022         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
3023         directories.
3025         Use registers LL and LT (similar to -ms) for controlling the
3026         length of title and line, respectively, in the -man and -mdoc
3027         macro packages.
3029         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
3030         (doc-setup-page-layout): Use \n[LL] and \n[LT].
3031         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
3032         (TH): Use \n[LL].
3033         (an-header, an-p-footer): Use \n[LT].
3034         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
3035         doc/groff.texinfo: Document it.
3037 2002-05-02  Werner LEMBERG  <wl@gnu.org>
3039         * doc/fdl.texi: New file.
3040         * doc/groff.texinfo: Include it.
3041         Define and use @copying.
3042         Starting with separating glyph, symbol, and character.
3044 2002-04-27  Werner LEMBERG  <wl@gnu.org>
3046         * Makefile.in (EXEEXT): Set it.
3047         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
3048         programs.
3050         * src/include/nonposix.h: Define GS_NAME.
3051         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
3053         Some preliminary changes for EMX support under OS/2.
3055         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
3056         __EMX__ similar to __MSDOS__.
3057         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
3059 2002-04-25  Werner LEMBERG  <wl@gnu.org>
3061         * doc/groff.texinfo: Integrated groff_out.man.
3062         Some macro fixes.
3064 2002-04-23  Werner LEMBERG  <wl@gnu.org>
3066         * man/groff_out.man: Minor fixes.
3068 2002-04-23  Werner LEMBERG  <wl@gnu.org>
3070         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
3071         correct page references.
3072         Fixed many index entries.
3074 2002-04-23  Bernd Warken  <bwarken@mayn.de>
3076         * man/roff.man: Enlarged.
3078 2002-04-22  Werner LEMBERG  <wl@gnu.org>
3080         * doc/groff.texinfo: More examples, other fixes.
3082 2002-04-20  Werner LEMBERG  <wl@gnu.org>
3084         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
3085         will now form a chain, e.g.
3087           .pi foo
3088           .pi bar
3090         is now the same as
3092           .pi foo | bar
3094         This is for compatibility with plan 9's troff.
3096         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
3097         with UNIX troff.
3098         * NEWS: Updated.
3100         * doc/groff.texinfo: Add documentation of remaining requests and
3101         registers.
3103 2002-04-19  Werner LEMBERG  <wl@gnu.org>
3105         * doc/groff.texinfo: Add documentation of remaining escapes.
3107         * font/devdvi/generate/tc.map: Remove entry for `sr'.
3108         * font/devdvi/*TC: Regenerated.
3110 2002-04-18  Werner LEMBERG  <wl@gnu.org>
3112         * src/roff/troff/input.cc (token::next): Make \H behave consistently
3113         if not in compatibility mode, i.e., increment relative to the
3114         previous height.
3115         * doc/groff.texinfo: Updated accordingly.
3117 2002-04-17  Werner LEMBERG  <wl@gnu.org>
3119         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
3121 2002-04-16  Bernd Warken  <bwarken@mayn.de>
3123         * src/roff/groff/groff.man: Improve documentation of -P option.
3124         Other minor fixes.
3126 2002-04-15  Werner LEMBERG  <wl@gnu.org>
3128         Add new escape \F to switch font family.
3130         * src/roff/troff/input.cc (token::next): Handle \F.
3131         * src/roff/troff/env.cc (environment::set_family): Handle
3132         `interrupted' flag.
3133         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3134         Document it.
3136 2002-04-14  Werner LEMBERG  <wl@gnu.org>
3138         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
3139         spaces in tags.
3141 2002-04-13  Werner LEMBERG  <wl@gnu.org>
3143         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
3144         \m[] and \M[], respectively.
3146         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
3147         (symbol::symbol): Handle NULL string and empty string differently.
3148         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
3149         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
3150         Add optional parameter.
3151         Updated calling functions.
3152         (get_copy, do_glyph_color, do_fill_color, token::next): Use
3153         `symbol::is_empty'.
3154         * src/roff/troff/env.cc (environment::set_font): Ditto.
3156         * src/preproc/pic/troff.cc (troff_output::set_fill,
3157         troff_output::reset_color: Updated.
3159         * tmac/www.tmac: Updated.
3161         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
3162         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
3163         Updated.
3165         * tmac/Xps.tmac: Remove some redundant code.
3167         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
3168         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
3169         man/groff_out.man, man/groff.man, man/groff_diff.man,
3170         src/roff/groff/groff.man: Replace \f[P] with \f[].
3172 2002-04-13  Bernd Warken  <bwarken@mayn.de>
3174         * src/include/printer.h, src/libs/libdriver/printer.cc
3175         (printer::change_fill_color): New member function.
3176         * src/libs/libdriver/input.cc (parse_D_command): Use it.
3178 2002-04-12  Werner LEMBERG  <wl@gnu.org>
3180         * doc/groff.texinfo: Completed pass on gtroff reference.
3182 2002-04-11  Werner LEMBERG  <wl@gnu.org>
3184         * doc/groff.texinfo: More fixes.
3186 2002-04-11  Bernd Warken  <bwarken@mayn.de>
3188         * src/include/color.h: Decorate with `const'.
3189         Use `size_t'.
3190         Include `stddef.h'.
3191         * src/libs/libgroff.color.cc: Decorate with `const'.
3192         Use `size_t'.
3193         (color::color): Initialize members.
3194         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
3195         command according to the documentation.
3197         * man/groff_out.man: Updated.
3198         Minor fixes.
3200 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
3202         * src/preproc/html/pre-html.cc (write_start_image): Remove
3203         redundant output.
3204         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
3206         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
3207         \C'hy' caused an assertion failure.
3209         * src/roff/troff/env.cc (environment::environment): Initialize
3210         `emitted_node'.
3211         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
3213 2002-04-10  Werner LEMBERG  <wl@gnu.org>
3215         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3216         Document pvs request and .pvs register.
3218 2002-04-09  Werner LEMBERG  <wl@gnu.org>
3220         * doc/groff.texinfo: Improve and fix documentation of diversions
3221         and environments.
3223 2002-04-08  Werner LEMBERG  <wl@gnu.org>
3225         * doc/groff.texinfo: Fix documentation of drawing functions.
3226         Other minor fixes.
3228 2002-04-07  Werner LEMBERG  <wl@gnu.org>
3230         * doc/groff.texinfo: Better documentation of double quotes as
3231         arguments.
3232         Other minor fixes.
3234 2002-04-06  Werner LEMBERG  <wl@gnu.org>
3236         * man/groff_font.man: Document names of special characters better.
3237         * doc/groff.texinfo: Minor improvements.
3239         * tmac/lbp.tmac: Load latin1.tmac.
3240         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
3242         * font/devX*/*: Regenerated (all chars > 0x80 removed).
3244 2002-04-05  Werner LEMBERG  <wl@gnu.org>
3246         * tmac/tty.tmac: Don't use shc request.
3247         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
3248         * NEWS: Updated.
3250         * man/groff_diff.man: Minor fixes.
3252         * font/devlbp/*: Remove all `charXXX' entities.
3254         * src/libs/libgroff/font.cc (font::~font): Deallocate
3255         `special_device_coding'.
3256         (font::load): Use `new' for allocating `special_device_coding'.
3257         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
3258         Removed unused member.
3260 2002-04-05  Werner LEMBERG  <wl@gnu.org>
3262         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
3263         (resource_manager::do_begin_binary,
3264         resource_manager::do_begin_data): Use it.
3266         * doc/texinfo.tex: Updated to version 4.2.
3268         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
3269         (token::zero_width_break): New inline function.
3270         * src/roff/troff/input.cc (token::next): Use it.
3271         (token::description): Updated.
3272         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
3273         (token::add_to_node_list, token::process): Use it.
3274         * NEWS, doc/groff.texinfo: Updated.
3276         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
3277         * tmac/tty.tmac: Add missing backslash.
3279 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
3281         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
3282         `.ps' register instead of `.s' to handle fractional point sizes.
3283         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
3284         limit_box::output): Ditto.
3285         * src/preproc/eqn/other.cc (size_box::compute_metrics,
3286         size_box::output): Ditto.
3287         * src/preproc/eqn/over.cc (over_box::compute_metrics,
3288         over_box::output): Ditto.
3289         * src/preproc/eqn/script.cc (script_box::compute_metrics,
3290         script_box::output): Ditto.
3291         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
3292         sqrt_box::output): Ditto.
3294 2002-04-03  Michael Selway  <mas@ssl.co.uk>
3296         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
3297         Fix typo.
3299 2002-04-03  Werner LEMBERG  <wl@gnu.org>
3301         * doc/homepage.ms: Reduce title size.
3302         * doc/groff.texinfo: Fix documentation of .t register.
3303         Fix handling of colon.
3304         Fix `\' vs. `\\'.
3306         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
3307         only if page length is positive to avoid a loop.
3309         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
3310         tbl.
3312 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
3314         * src/include/nonposix.h, src/roff/groff/pipeline.c:
3315         s/__CYGWIN32__/__CYGWIN__/.
3317 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
3319         * doc/gnu.xpm: New image contributed by Emily Mulley.
3320         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
3321         (homepage.html): Be dependent on gnu.eps.
3322         * doc/homepage.ms: Updated to new image.
3324         * src/devices/grohtml/post-html.cc (html_printer): New member
3325         `sbuf_prev_hpos'.
3326         (html_printer::flush_sbuf, html_printer::set_char): Set it.
3327         (html_printer::sbuf_continuation): Use it.
3329 2002-03-28  Werner LEMBERG  <wl@gnu.org>
3331         * src/libs/libgroff/getopt.c: Updated to latest version.
3333         * tmac/README: More on hyphen.tex license.
3335 2002-03-26  Larry Kollar  <kollar@alltel.net>
3337         * doc/groff.texinfo: Add documentation of most missing requests.
3339 2002-03-25  Werner LEMBERG  <wl@gnu.org>
3341         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
3342         of `+-', `mu', and `di', respectively.
3344         * font/devascii/R.proto, font/devutf8/R.proto,
3345         font/devlatin1/R.proto, font/devhtml/R.proto,
3346         font/devcp1047/R.proto, font/devlpb/*: Add them.
3347         * font/devps/generate/textmap: Ditto.
3348         * font/devps/*: Regenerated.
3349         * font/devlj4/generate/text.map: Add them.
3350         * font/devlj4/*: Regenerated.
3351         * font/devdvi/generate/tc.map: Use them.
3352         * font/devdvi/generate/texsy.map: Add them.
3353         * font/devdvi/*: Regenerated.
3354         * font/devX*/*: Regenerated.
3356         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
3357         tmac/tty-char.tmac: Updated.
3359         * NEWS, man/groff_char.man: Updated.
3361 2002-03-24  Werner LEMBERG  <wl@gnu.org>
3363         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
3364         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
3365         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
3366         we use `.fchar' in dvi.tmac.
3367         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
3368         * tmac/Xps.tmac: Simplify some char definitions.
3369         Add definition for \[f/].
3370         * man/groff_char.man: Updated for new X.tmac.
3372         * tmac/README: New file.
3374 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
3376         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
3377         internal .y.o rule took precendence over the .y.cc rule, compiling
3378         the yacc files with gcc instead of g++.
3380 2002-03-23  Werner LEMBERG  <wl@gnu.org>
3382         * tmac/dvi.tmac: Add replacement font for `CB'.
3384         * tmac/doc.tmac: s/request/macro/ in messages.
3385         (doc-generic-macro): Improve error message.
3386         * tmac/groff_mdoc.man: Minor improvements.
3388 2002-03-22  Werner LEMBERG  <wl@gnu.org>
3390         * doc/groff.texinfo: Document possible conflict between `tr' and
3391         `char' requests.
3393 2002-03-21  Werner LEMBERG  <wl@gnu.org>
3395         Improve handling of hyphenation patterns.  It is now possible to
3396         use most of TeX's pattern files unmodified.  To make the process
3397         more flexible, a new request `hpfcode' has been added which
3398         provides a character code mapping for the `hpf' request.  See
3399         comment before hpf_getc() for more details.
3401         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
3402         functions.
3403         (read_patterns_file): Additional parameter for exception dictionary.
3404         Extended to recognize \pattern, \hyphenation, and \endinput.
3405         (do_hyphenation_patterns_file): Updated.
3406         * src/roff/troff/env.h (hpf_code_table): New extern.
3408         * src/roff/troff/input.cc (hpf_code_table): New array.
3409         (init_hpf_code_table, hyphenation_patterns_file_code): New
3410         functions.
3411         (hyphenation_code): Handle translation from `trin' correctly.
3412         (main, init_input_requests): Updated.
3413         (charinfo::set_translation): Handle hyphenation code also.
3415         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
3416         inline function.
3418         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
3419         char' is used for offsets in hyphenation exceptions.
3421         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
3423         * NEWS, man/groff_diff.man, man/groff.man: Document it.
3425 2002-03-20  Larry Kollar  <kollar@alltel.net>
3427         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
3428         requests.
3430 2002-03-18  Werner LEMBERG  <wl@gnu.org>
3432         * tmac/html.tmac: Fix serious typo.
3434 2002-03-17  Larry Kollar  <kollar@alltel.net>
3436         * doc/groff.texinfo: Add documentation for `writec' request.
3438 2002-03-17  Werner LEMBERG  <wl@gnu.org>
3440         Added request `hpfa' to append hyphenation patterns.
3442         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3443         parameter `append'.
3444         (hyphenation_patterns_file): Renamed to...
3445         (do_hyphenation_patterns_file): This.
3446         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
3447         functions.
3448         (init_hyphen_requests): Updated.
3449         * NEWS, man/groff.man, man/groff_diff.man: Document it.
3451 2002-03-16  Werner LEMBERG  <wl@gnu.org>
3453         Added request `writec' in analogy to `tmc'.
3455         * src/roff/troff/input.cc (write_request): Renamed to...
3456         (do_write_request): This.
3457         Added one parameter.
3458         (write_request, write_request_continue): New functions.
3459         (init_input_requests): Updated.
3460         * NEWS, man/groff.man, man/groff_diff.man: Document it.
3462         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
3463         5-10000pt.
3464         * NEWS: Document it.
3466 2002-03-15  Werner LEMBERG  <wl@gnu.org>
3468         * man/groff.man: Add writem request.
3470         Add request `trin' (translate input) to make `.asciify' work
3471         correctly.  This is necessary since `charXXX' entity names are no
3472         longer hardcoded in font definition files.
3474         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
3475         `translate_input' members.
3476         (charinfo::set_asciify_code, charinfo::get_asciify_code,
3477         charinfo::set_translation_input): New methods.
3478         (charinfo::set_translation): Add third argument.
3479         * src/roff/troff/input.cc (charinfo:set_translation): Set
3480         `asciify_code'.
3481         (do_translate): Add second argument.
3482         (translate_input): New function.
3483         (init_input_requests): Updated.
3484         * src/roff/troff/node.cc (glyph_node::asciify,
3485         composite_node::asciify): Use `get_asciify_code'.
3487         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
3489         * NEWS, man/groff.man, man/groff_diff.man: Updated.
3491 2002-03-14  Larry Kollar  <kollar@alltel.net>
3493         * doc/groff.texinfo: Improve documentation of .RS and .RE.
3495 2002-03-14  Werner LEMBERG  <wl@gnu.org>
3497         Add a new request `sizes' similar to the `sizes' command in DESC
3498         files.
3500         * src/roff/troff/env.cc (override_sizes): New function.
3501         (init_env_requests): Use it.
3502         * src/roff/troff/token.h: Export `read_string'.
3503         * NEWS, man/groff_diff.man, man/groff.man: Document it.
3505 2002-03-12  Werner LEMBERG  <wl@gnu.org>
3507         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
3509 2002-03-10  Werner LEMBERG  <wl@gnu.org>
3511         * tmac/pspic.tmac: Add support for -Tdvi.
3512         * tmac/dvi.tmac: Include pspic.tmac.
3513         * src/devices/grodvi/grodvi.man: Document it.
3514         * NEWS: Updated.
3516         * font/devlj4/generate/Makefile: Fix URL of metric files.
3518 2002-03-09  Werner LEMBERG  <wl@gnu.org>
3520         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
3522 2002-03-09  Larry Kollar  <kollar@alltel.net>
3524         * tmac/groff_ms.man: Add documentation for RS and RE macros.
3526 2002-03-08  Werner LEMBERG  <wl@gnu.org>
3528         * doc/groff.texinfo: Fixes for texinfo 4.1.
3530 2002-03-07  Werner LEMBERG  <wl@gnu.org>
3532         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
3533         included.
3534         Handle CYGWIN properly.
3536 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
3538         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
3539         * tmac/lbp.tmac: Add some font translations.
3541 2002-03-02  Werner LEMBERG  <wl@gnu.org>
3543         * font/devcp1047/R.proto, font/devlatin1/R.proto,
3544         font/devhtml/R.proto: Remove `charXXX'  entries.
3545         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
3546         where appropriate.
3548         * font/devlj4/generate/text.map: Remove `charXXX' entries.
3549         * font/devlj4/*: Regenerated all font definition files.
3550         * tmac/lj4.tmac: Load latin1.tmac.
3552         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
3553         from 2000-06-17: LJ4 metric files are *not* text files.
3555         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
3556         register to test for EBCDIC.
3558 2002-03-01  Werner LEMBERG  <wl@gnu.org>
3560         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
3561         files (as grops already does).
3562         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
3563         files.
3564         * src/devices/grops/grops.man: Document comment lines in encoding
3565         files.
3567         * tmac/cp1047.tmac: New file.
3568         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
3569         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
3570         * tmac/Makefile.sub (NORMALFILES): Updated.
3572         * tmac/ec.tmac: Don't load latin1.tmac again.
3574         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
3575         font/devps/generate/dingbats.map,
3576         font/devps/generate/dingbats.rmap, font/devps/text.enc,
3577         font/devps/generate/Makefile (symbolmap): Add header comment.
3578         * font/devps/generate/textmap: Ditto.
3579         Remove `charXXX' entries.
3580         * font/devps/symbolmap: Regenerated.
3581         * font/devps/*: Regenerated all font definition files.
3583 2002-02-28  Werner LEMBERG  <wl@gnu.org>
3585         Add color support to grodvi (for drawing colors are currently
3586         translated to gray values).
3588         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
3589         (dvi_printer): Add `cur_color' member.
3590         (dvi_printer::set_color): New function.
3591         (draw_dvi_printer): Remove `fill'.
3592         (draw_dvi_printer::fill_next): Pass environment as parameter.
3593         Update code for new color support translated to gray.
3594         (dvi_printer::set_char): Updated.
3595         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
3596         changes crossing the page border.
3597         (dvi_printer::draw): Updated.
3598         Remove cases `f' and `F'.
3599         * tmac/dvi.tmac: Add color definitions.
3600         * NEWS, src/devices/grodvi/grodvi.man: Updated.
3602         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
3603         used incorrectly.
3605         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
3606         versions of autoconf.
3607         * configure: Updated.
3609         * doc/homepage.ms: Use `.blm'.
3610         * tmac/www.tmac (www-depth): New auxiliary variable.
3611         (www-pop-level): Don't issue HTML tag.
3612         (ULS, ULE, LI): Use absolute indentation.
3614         * src/devices/grops/ps.cc (ps_printer::begin_page,
3615         ps_printer::end_page): Switch forth and back to default color while
3616         starting a new page.
3618 2002-02-27  Werner LEMBERG  <wl@gnu.org>
3620         Add EC and TC fonts to devdvi.
3622         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
3623         * font/devdvi/generate/cork.map: Renamed to...
3624         * font/devdvi/generate/ec.map: This.
3625         Remove entry for `aq'.
3626         * font/devdvi/generate/tc.map: New file.
3627         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
3628         EC and TC fonts.
3629         (FONTS): Updated.
3630         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
3631         * font/devdvi/Makefile.sub (DEVFILES): Updated.
3632         * tmac/ec.tmac: New file.
3633         * tmac/Makefile.sub (NORMALFILES): Updated.
3634         * NEWS, src/devices/grodvi/grodvi.man: Updated.
3635         * man/groff_char.man: Check `ECFONTS' register.
3637         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
3639 2002-02-26  Werner LEMBERG  <wl@gnu.org>
3641         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
3642         * font/devdvi/generate/cork.map: Add 'y and 'Y.
3643         * font/devdvi/*: Updated.
3644         * tmac/dvi.tmac: Formatting.
3646         Add font `HBI' for the dvi output.
3647         Add support for font families `T' and `H'.
3649         * font/devdvi/HBI: New file.
3650         * font/devdvi/B: Renamed to ...
3651         * font/devdvi/TB: This.
3652         * font/devdvi/BI: Renamed to ...
3653         * font/devdvi/TBI: This.
3654         * font/devdvi/I: Renamed to ...
3655         * font/devdvi/TI: This.
3656         * font/devdvi/R: Renamed to ...
3657         * font/devdvi/TR: This.
3658         * font/devdvi/H: Renamed to ...
3659         * font/devdvi/HR: This.
3660         * font/devdvi/Makefile.sub (DEVFILES): Updated.
3661         * font/devdvi/generate/Makefile (HBI): New rule.
3662         (FONTS): Updated.
3663         (R, I, B, BI, H): Renamed to ...
3664         (TR, TI, TB, TBI, HR): This, respectively.
3665         (srcdir): Fixed.
3666         * NEWS, src/devices/grodvi/grodvi.man: Updated.
3667         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
3668         Add `styles' and `family' keywords.
3669         * tmac/dvi.tmac: Alias `H' to `HR'.
3670         Add some fspecial requests for italic fonts.
3671         Add TR and TI as special.
3672         Add support for `_' with font CWI.
3674         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
3675         operator `:'.  Until now, the expression `0:1' would return 2
3676         instead of 1.
3678 2002-02-25  Werner LEMBERG  <wl@gnu.org>
3680         * man/groff_char.man: Added some missing PS glyph names (from the
3681         Adobe Glyph List).
3682         * font/devps/generate/textmap, font/devps/symbolmap: Add
3683         `arrowupdn'.
3685         * doc/groff.texinfo: Minor additions and fixes.
3686         * man/groff_diff.man: Remove documentation of fp request.  This
3687         is already covered in the original troff manual.
3688         Updated to be consistent with other doc files.
3689         * NEWS: Updated.
3691 2002-02-24  Werner LEMBERG  <wl@gnu.org>
3693         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
3694         TTYDEVDIRS.
3695         Define new variable OTHERDEVDIRS (containing `font/devlj4
3696         font/devlbp' if not EBCDIC).
3697         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
3698         (OTHERDEVDIRS): New variable.
3699         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
3700         * configure: Regenerated.
3702         * NEWS, src/devices/grotty/grotty.man: Updated.
3704 2002-02-23  Werner LEMBERG  <wl@gnu.org>
3706         * src/roff/troff/input.cc (do_overstrike, do_bracket,
3707         get_line_arg): Honour input level.
3709         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
3711         * font/*/*: Implement it in all font files.
3712         * font/devps/generate/textmap, font/devps/generate/symbolchars,
3713         * font/devps/symbolmap: Updated.
3714         * font/devlj4/generate/text.map: Updated.
3715         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
3716         * font/devdvi/generate/texmi.map: Updated.
3718         * font/devutf8/R.proto: Remove all `charXXX' entries.
3719         * font/devutf8/NOTES: Updated.
3721         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
3722         version 4.1.0.
3724         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
3726         * NEWS, man/groff_char.man: Updated.
3728 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
3730         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
3732 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3734         * src/roff/grog/grog.pl: Fix computation of $refer.
3736 2002-02-19  Werner LEMBERG  <wl@gnu.org>
3738         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
3739         `snprintf' and `vsnprintf'.
3741         * src/include/htmlindicate.h: Renamed to...
3742         * src/include/htmlhint.h: This.
3743         * src/include/Makefile.sub: Updated.
3744         * src/preproc/eqn/main.cc: Updated.
3746 2002-02-18  Werner LEMBERG  <wl@gnu.org>
3748         * man/roff.man, man/groff_out.man, man/groff.man,
3749         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
3750         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
3752         * win32-diffs: Updated.
3754 2002-02-17  Werner LEMBERG  <wl@gnu.org>
3756         * doc/Makefile (clean): Add *.eps.
3757         (MEMACROS): Removed.
3758         (TFLAG): New variable.
3759         (TROFF): Use it.
3760         Add -ww.
3761         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
3762         (.me.dit): Fixed.
3763         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
3765         * tmac/www.tmac: Use dummy diversion while resetting and disabling
3766         `.tl'.
3767         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
3768         unstripped.
3769         * src/roff/troff/troff.man: Fix order of parameter description.
3771         * NEWS: Updated.
3773 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
3775         Simplify image handling for grohtml.
3776         Fix <p> bug.
3778         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
3779         comment out.
3780         (html_text::dump_stack): Don't emit newline while debugging.
3781         (html_text::do_push) [DEBUGGING]: Print more info.
3782         (html_text::check_emit_text): Fix handling of <p>.
3783         * src/devices/grohtml/html.h: Updated.
3784         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
3785         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
3786         send its data to stderr also.
3787         Update all callers.
3788         (simple_output::space_or_newline) [DEBUGGING]: Removed.
3789         * src/devices/grohtml/post-html.cc (html_printer::do_links,
3790         html_printer::html_printer): Remove `DEBUGGING' conditionals.
3792         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
3793         Removed.
3794         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
3795         is_inline_image): Removed.
3796         (html_begin_suppress, html_end_suppress): Don't take a parameter.
3797         (graphic_start, graphic_end): Removed.
3798         * src/include/htmlindicate.h: Updated.
3799         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
3800         (macroset_template): New global variable.
3801         (makeFileName): Use `macroset_template'.
3802         (write_end_image): Don't take a parameter.
3803         Don't emit newline.
3804         (write_start_image: Don't emit newline.
3805         (char_buffer::write_upto_newline): Updated.
3806         (char_buffer::skip_to_newline): Renamed to ...
3807         (char_buffer::skip_until_newline): This.
3808         Fix code.
3809         (char_buffer::write_file_troff, char_buffer::write_file_html):
3810         Simplified.
3811         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
3812         (removeAllPages): Remove `DEBUGGING' conditionals.
3813         (addRegDef, dump_args): New functions.
3814         (char_buffer::do_html, char_buffer::do_image): Handle
3815         `www-image-template' command line variable.
3816         Add more debugging code.
3817         (addps4html): Removed.
3818         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
3820         * src/preproc/eqn/main.cc: Include `ctype.h'.
3821         (suppress_html): Removed.
3822         (do_file): Updated.
3823         (inline_equation): Use `html_begin_suppress' and
3824         `html_end_suppress'.
3825         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
3826         (troff_output::start_picture, troff_output::finish_picture):
3827         Updated.
3828         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
3829         (process_input_file): Updated.
3831         * src/roff/troff/div.cc (page_number): Set page number only if the
3832         `ps4html' register isn't defined.
3833         * src/roff/troff/input.cc (image_no): New external variable.
3834         (do_suppress): Use it.
3835         * src/roff/troff/node.h (suppress_node::image_id): New member.
3836         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
3837         (suppress_node::suppress_node): Initialize `image_id' member.
3838         (suppress_node::same): Handle `image_id' also.
3839         (suppress_node::copy): Updated.
3840         (last_image_id): New global variable.
3841         (suppress_node::tprint): Use it.
3843         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
3844         HTML-IMAGE-END.
3845         * tmac/pspic.mac (PSPIC): Fix html support.
3846         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
3847         * tmac/www.tmac (www-image-template): Set up.
3848         (HTMLINDEX): Renamed to...
3849         (HX): This.
3850         (BODYCOLOR): Renamed to...
3851         (BCL): This.
3852         (BACKGROUND): Renamed to...
3853         (BGIMG): This.
3854         (URL): Change order of parameters for consistency.
3855         (MAILTO): Renamed to...
3856         (MTO): This.
3857         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
3858         (IMG, PIMG, MPIMG): This.
3859         (HTML-H-BEGIN, HTML-H-END): Renamed to...
3860         (HnS, HnE): This.
3861         (LINKS): Renamed to...
3862         (LK): This.
3863         (LINE): Renamed to...
3864         (HR): This.
3865         (NO-AUTO-RULE): Renamed to...
3866         (NHR): This.
3867         (HTML-TL): Renamed to...
3868         (HTL): This.
3869         (UL-BEGIN, UL-END): Renamed to...
3870         (ULS, ULE): This.
3871         (DROPCAP): Renamed to...
3872         (DC): This.
3873         (TS, TE, EQ, EN): Provide default definitions.
3874         (www-make-unique-name): Updated.
3875         (HTML-IMAGE-INLINE): Fix typo.
3876         * tmac/groff_www.man: Updated.
3878         * doc/Makefile (homepage.html): Add option -r to grohtml.
3879         Use shortened image name.
3880         * doc/groff.texinfo: Updated info on grohtml strings and macros.
3881         * doc/homepage.ms: Updated and extended.
3883 2002-02-14  Werner LEMBERG  <wl@gnu.org>
3885         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
3887         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
3888         SGR_BACK_DEFAULT_COLOR): Replaced with ...
3889         (tty_printer::put_color): Use it.
3890         (ttr_printer::end_page): Simplify.
3892 2002-02-13  Werner LEMBERG  <wl@gnu.org>
3894         * tmac/groff_tmac.man: Moved to...
3895         * man/groff_tmac.man: This place.
3896         * tmac/Makefile.sub, man/Makefile.sub: Updated.
3898 2002-02-12  Werner LEMBERG  <wl@gnu.org>
3900         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
3901         $(COMPILE.c) to not include groff's assert.h.
3903         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
3904         variable.
3905         * NEWS, src/drivers/grotty/grotty.man: Document it.
3907 2002-02-11  Werner LEMBERG  <wl@gnu.org>
3909         * src/libs/snprintf/snprintf.c: Updated to latest version
3910         (2002-02-11).
3912         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
3913         test whether there is `.]' also.
3914         Don't check for spaces after `.['.
3915         * src/roff/grog/grog.sh: Do the same.
3917 2002-02-10  Werner LEMBERG  <wl@gnu.org>
3919         Illegal -> Invalid.
3921         * src/libs/libgroff/illegal.cc: Renamed to ...
3922         * src/libs/libgroff/invalid.cc: This.
3923         (illegal_char_table): Renamed to ...
3924         (invalid_char_table): This.
3925         * src/libs/libgroff/Makefile.sub: Updated.
3926         * win32-diffs: Updated.
3928         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
3929         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
3930         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
3931         font::load), src/preproc/eqn/main.cc (read_line, main),
3932         src/preproc/eqn/lex.cc (file_input::read_line),
3933         src/preproc/pic/lex.cc (file_input::read_line,
3934         simple_file_input::get, simple_file_input::peek),
3935         src/preproc/pic/main.cc (top_input::get, top_input::peek),
3936         src/preproc/pic/pic.man, src/preproc/refer/main.cc
3937         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
3938         do_bib), src/preproc/tbl/main.cc (table_input::get),
3939         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
3940         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
3941         do_zero_width, read_request, encode_char, ps_get_line,
3942         transparent_file, get_char_for_escape_name, transparent_translate,
3943         asciify, input_char_description, read_string, set_string),
3944         src/roff/troff/env.cc (environment::add_html_tag),
3945         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
3947         * src/include/lib.h: Updated.
3949         * src/preproc/eqn/eqn.cc: Removed.
3951         * NEWS: Updated.
3953         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
3955 2002-02-09  Werner LEMBERG  <wl@gnu.org>
3957         * doc/gnu.xpm: New image.
3958         * doc/Makefile (DOCS): Add homepage.ps.
3959         Add rules for converting xpm->png and xpm->eps.
3960         Use `gnu.{xpm,eps}' as image names.
3961         * doc/homepage.ms: Updated.
3963 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
3965         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
3966         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
3967         Remove calls to `B1' and `B2'
3968         (PNG-IMAGE): New macro for inclusion of images in PNG format.
3969         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
3970         auxiliary variables for MARGIN-PNG-IMAGE.
3971         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
3972         auxiliary macros for MARGIN-PNG-IMAGE.
3973         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
3974         the margin.
3975         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
3976         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
3977         (DROPCAP): New macro to produce dropcap characters.
3978         (www-do-image): Renamed back to...
3979         (HTML-DO-IMAGE): This.
3980         Updated all callers.
3982         * doc/Makefile (gnubw.eps): Updated.
3983         * doc/homepage.ms: Updated.
3985 2002-02-08  Werner LEMBERG  <wl@gnu.org>
3987         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
3988         Added `linethick' to table in section `Style Variables'.
3990 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
3992         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
3994 2002-02-07  Werner LEMBERG  <wl@gnu.org>
3996         Adding options -C (compatibility mode) and -c (grotty's old output
3997         scheme) to nroff.
3999         * src/roff/nroff/nroff.sh: Implement it.
4000         Remove `-Wall'.
4001         * NEWS, src/roff/nroff/nroff.man: Updated.
4003         * PROBLEMS: Document bison 1.32 bug.
4005         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
4007         * src/roff/troff/node.cc (make_tfont): Define it earlier.
4008         * src/roff/troff/div.h: Add prototype for `end_diversions'.
4009         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
4010         * src/roff/troff/env.h: Add prototype for `title'.
4012         Adding EBCDIC support to grotty.
4014         * src/devices/grotty/tty.cc (CSI): New macro.
4015         (SGR_*, tty_printer::put_color): Use it.
4017 2002-02-06  Werner LEMBERG  <wl@gnu.org>
4019         Implementing color support in grotty.  The new switch -c activates
4020         the old drawing scheme, disabling color at the same time.  The new
4021         switch `-i' selects italic instead of underlining (SGR only).
4023         * src/devices/grotty/tty.cc (putstring): New define instead of
4024         `fputs'.  Updated all callers.
4025         (old_drawing_scheme): New global variable.
4026         (COLOR_CHANGE): New enum value.
4027         (SGR_*): New defines containing color handling escape sequences.
4028         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
4029         (glyph): New members `back_color_idx' and `fore_color_idx'.
4030         (glyph::order): Add COLOR_CHANGE.
4031         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
4032         `is_underline', `is_bold', `cu_flag', `tty_colors'.
4033         New methods `make_underline', `make_bold', `color_to_idx',
4034         `change_color', `put_color'.
4035         (cu_flag): Moved into `tty_printer' class.
4036         (tty_printer::tty_printer): Initialize colors.
4037         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
4038         tty_printer::draw, tty_printer::end_page): Handle colors also.
4039         (main): Add options `-c' and `-i'.
4040         (usage): Updated.
4041         * NEWS, src/devices/grotty/grotty.man: Updated.
4043         * src/include/errarg.h (errarg): Add support for `unsigned int'.
4044         * src/libs/libgroff/errarg.c: Implement it.
4046         * src/include/printer.h (printer): Add `change_color' method
4047         (currently used by grotty only).
4048         * src/libs/libdriver/printer.cc: Implement it.
4049         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
4050         call to `pr->change_color'.
4052         * src/roff/troff/node.cc (troff_output_file::fill_color,
4053         troff_output_file::glyph_color): Call `do_motion'.
4055         * tmac/tty.tmac: Add color definitions.
4057         * src/roff/groff/groff.man: Minor fixes.
4059 2002-02-05  Bernd Warken  <bwarken@mayn.de>
4061         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
4062         it.  This is a preparation for future changes.
4064 2002-02-05  Werner LEMBERG  <wl@gnu.org>
4066         * src/roff/troff/input.cc (process_input_stack): Fix the case
4067         where leading spaces are followed by \f or \s; previously, an
4068         incorrect space width has been used.
4070         * doc/roff.man (quoted_char): Fix argument.
4071         (comment): Define string.
4073 2002-02-04  Larry Kollar  <kollar@alltel.net>
4075         * doc/groff.texinfo: More fixes.
4077 2002-02-04  Werner LEMBERG  <wl@gnu.org>
4079         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
4080         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
4081         `restore_compatibility' before `output_string' -- the LINE_STRING
4082         register now already contains proper switches from and to
4083         compatibility mode.
4085         * man/groff_char.man: Add Euro symbol.
4086         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
4087         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
4088         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
4089         Other minor fixes.
4091         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
4092         texinfo->pdf.
4093         (.texinfo.html): Add support for texinfo->html.
4095 2002-02-03  Werner LEMBERG  <wl@gnu.org>
4097         Added three new requests `ds1', `as1', and `ami'.  The former two
4098         are equivalent to `ds' and `as' with the difference that
4099         compatibility mode is saved on entry, switched off during string
4100         expansion, and restored on exit.  The latter is the pendant to `dei'
4101         for `am'.
4103         (do_define_string): Use `define_mode' and `calling mode'.
4104         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
4105         end of string, respectively.
4106         (define_string, append_string): Use `calling_mode'.
4107         (define_nocomp_string, append_nocomp_string,
4108         define_string_indirect): New functions.
4109         (init_input_requests): Updated.
4110         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4112         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
4113         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
4114         mm macro package accesses this string register directly.
4115         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
4117         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
4118         compatibility mode.
4120 2002-02-02  Larry Kollar  <kollar@alltel.net>
4122         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
4124 2002-01-31  Werner LEMBERG  <wl@gnu.org>
4126         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
4128 2002-01-31  Bernd Warken  <bwarken@mayn.de>
4130         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
4131         * man/groff_out.man: Revised and updated.
4133 2002-01-30  Bernd Warken  <bwarken@mayn.de>
4135         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
4136         out the unused `{' and `}' commands.  Undefined by default.
4137         (IntArray): Make `data' private.
4138         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
4139         new methods instead.
4140         (skip_line_D, skip_to_end_of_line): New functions.
4141         (get_D_fixed_args): Use `skip_line_D'.
4142         Changed to handle dummy odd arguments by ...
4143         (get_D_fixed_args_odd_dummy): This new function.
4144         (get_D_variable_args): Split some code into ...
4145         (get_possibly_integer_args): This new function.
4146         (send_draw): Use more `const'.
4147         (delete_current_env): New function.
4148         (position_to_end_of_args): Use `size_t'.
4149         Updated.
4150         (send_draw): Updated.
4151         (parse_D_command): Handle `c', `C', and `t' better.
4152         Updated.
4153         (do_file): Updated.
4155 2002-01-29  Werner LEMBERG  <wl@gnu.org>
4157         * NEWS: Revised.
4158         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
4159         @Def...ListEnd which replaces @Def...x.  This is necessary to get
4160         proper HTML output -- see the comment in the file for more
4161         information.
4162         Updated all calls.
4164 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
4166         Fixes to make color changes of 2002-01-21 work with grohtml.
4168         * src/devices/grohtml/post-html.cc (style): Updated.
4169         (html_printer): Remove unused methods.
4170         (html_printer::do_font, html_printer::draw, html_printer::set_char,
4171         html_printer::special): Updated.
4172         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
4173         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
4174         Added some debugging code.
4175         (html_text::start_tag): Updated.
4176         (html_text::do_push): New method.
4177         (html_text::push_para): Call it.
4178         Add method for handling color.
4179         (html_text::do_color): Updated.
4180         (html_text::shutdown): Handle color.
4181         * src/devices/grohtml/html-text.h (tag_definition): New member
4182         `col'.
4183         Updated.
4185 2002-01-28  Werner LEMBERG  <wl@gnu.org>
4187         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
4189 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
4191         Add two switches -a and -g to control the antialiasing bits for
4192         text and graphics, respectively.
4194         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
4195         `-g'.
4196         * src/devices/grohtml/grohtml.man: Document them.
4197         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
4198         New macros.
4199         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
4200         (setupAntiAlias): New function.
4201         (createAllPages): Updated.
4202         (scanArguments): Handle `-a' and `-g'.
4203         (main): Call `setupAntiAlias'.
4204         * NEWS: Updated.
4206 2002-01-27  Werner LEMBERG  <wl@gnu.org>
4208         * doc/groff.texinfo (Def*): Call index function after deffn.
4210         * tmac/html.tmac: Call `nroff' request.
4212 2002-01-26  Larry Kollar  <kollar@alltel.net>
4214         * tmac/groff_ms.man: Add some omissions.
4216 2002-01-25  Larry Kollar  <kollar@alltel.net>
4218         * tmac/groff_ms.man: Typographical improvements.
4220 2002-01-25  Werner LEMBERG  <wl@gnu.org>
4222         * doc/groff.texinfo: Updated version and copyright.
4223         * src/devices/grops/grops.man: Updated.
4225         * tmac/groff_tmac.man: Fix `ig' macro.
4227         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
4228         nroff mode.
4229         Use `.ne' unconditionally everywhere.
4230         (TS): Only insert some vertical space.  Doing a page break is no
4231         longer necessary due to the redefinition of the `ne' request.
4233         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
4234         warning for unknown subcommands but parse and pass them to the
4235         device driver.
4237 2002-01-24  Werner LEMBERG  <wl@gnu.org>
4239         * tmac/groff_www.man, NEWS: Fix typos.
4241 2002-01-21  Werner LEMBERG  <wl@gnu.org>
4243         Complete revision of color support:
4245           Adapt programs to the new libdriver/input.cc.
4247           Color spaces are no longer converted to RGB but transferred as-is
4248           in the troff intermediate output format.
4250           Handle default color gracefully.  troff now supports a `default'
4251           color (which can't be changed).
4253           grops will now use the proper color space functions if available.
4255           Update pic.
4257         Note that currently grohtml doesn't handle colors properly.  This
4258         has to be fixed.
4260         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
4261         (ui_to_a): New function.
4262         * src/include/lib.h: Updated.
4264         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
4265         (color): Simplified; removed all `double' members and methods.
4266         A new array `components' now holds the color parameters.
4267         (color::is_default, color::get_components): New methods.
4268         (color::operator==, color:operator!=): New.
4269         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
4270         to make access to the `components' array more comprehensible.
4271         * src/libs/libgroff/color.cc: Implement new color support.
4272         (atoh): Small fixes.
4273         (color::read_encoding): Simplified for new troff intermediate color
4274         output format.
4275         (default_color): New global variable.
4277         * src/roff/troff/input.cc (default_symbol): New global variable.
4278         (lookup_color): Use it.
4279         (default_black): Removed.
4280         (do_glyph_color, do_fill_color): Simplified.
4281         (define_color): Handle default color.
4282         Improve warnings.
4283         (do_if_request): Handle default color.
4284         * src/roff/troff/env.cc (environment::environment): Initialize
4285         colors with `default_color'.
4286         * src/roff/troff/node.cc (troff_output_file::put): Add method
4287         for `unsigned int'.
4288         (troff_output_file::hex): Removed.
4289         (troff_output_file::fill_color, troff_output_file::glyph_color):
4290         Updated to include/color.h and libdriver/input.cc.
4292         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
4293         fill color properly (identically to the outline color).  \D'f...'
4294         doesn't work any more.
4295         All function calls to it updated.
4297         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
4298         Updated.
4299         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
4300         Updated.
4302         * src/devices/grops/ps.cc (ps_output::put_color): New method.
4303         (ps_printer::sbuf_color): Make a real member instead of pointer.
4304         (ps_printer::fill_color, ps_printer::output_color): Removed.
4305         (ps_printer::ps_printer): Updated.
4306         (ps_printer::set_char): Ditto.
4307         (ps_printer::set_color): Use various color schemes.
4308         Use `put_color' method.
4309         (ps_printer::flush_sbuf): Don't set color.
4310         (ps_printer::fill_path): Take `environment' as parameter.
4311         Simplify color handling.
4312         (ps_printer::set_line_thickness): Renamed to ...
4313         (ps_printer::set_line_thickness_and_color): This (and updated).
4314         (ps_printer::set_color): Change second parameter from `complete'
4315         to `fill' which better describes what it does.
4316         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
4317         and text in the right order.
4318         Updated.
4319         Remove branches for `f' and `F'; this is handled by
4320         libdriver/input.cc.
4321         * src/devices/grops/ps.h: Updated.
4322         * font/devps/prologue (FL): Redefined.
4323         ({F,C}r,k,g: New color functions (with and without filling).
4325         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
4326         * man/groff_diff.man, man/groff.man, man/groff_out.man,
4327         doc/groff.texinfo, NEWS: Updated.
4329 2002-01-20  Bernd Warken  <bwarken@mayn.de>
4331         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
4332         in this file for what has been changed.
4334 2002-01-19  Werner LEMBERG  <wl@gnu.org>
4336         * test-groff: Fix GROFF_FONT_PATH.
4337         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
4338         is read before .TH or .Dd is parsed.
4340 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
4342         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
4343         quadrant boundaries.
4345 2002-01-18  Werner LEMBERG  <wl@gnu.org>
4347         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
4348         applied last patch.
4350 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
4352         * tmac/doc.common: Initialize %I register for the %I macro to
4353         avoid (harmless) warning.
4354         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
4355         when in the SYNOPSIS section.
4357 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
4359         * src/preproc/pic/lex.cc (get_token): Fix typo.
4361 2002-01-17  Werner LEMBERG  <wl@gnu.org>
4363         * devices/grops/ps.cc: Fix incorrectly applied last patch.
4365 2002-01-17  Larry Kollar  <kollar@alltel.net>
4367         * tmac/groff_ms.man: Completely rewritten.
4369 2002-01-16  Werner LEMBERG  <wl@gnu.org>
4371         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
4373 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
4375         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
4376         fill colors.
4377         (ps_printer::draw): Ditto.
4379 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
4381         * tmac/groff_mdoc.man: Minor fixes.
4383 2002-01-13  Werner LEMBERG  <wl@gnu.org>
4385         * man/groff_out.man: Some fixes.
4387 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
4389         * doc/pic.ms: Fix typos.
4391 2002-01-12  Werner LEMBERG  <wl@gnu.org>
4393         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
4395 2002-01-10  Werner LEMBERG  <wl@gnu.org>
4397         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
4398         symbols.
4399         * NEWS: Updated.
4401 2002-01-09  Bernd Warken  <bwarken@mayn.de>
4403         * man/groff_out.man: Revised.
4404         * man/roff.man: Minor fixes.
4405         * src/roff/troff/troff.man: Some reordering.
4407 2002-01-09  Werner LEMBERG  <wl@gnu.org>
4409         * tmac/an-old.tmac: Add dummy macros for equation support.
4411 2002-01-07  Werner LEMBERG  <wl@gnu.org>
4413         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
4415         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
4416         man pages.
4417         * tmac/groff_man.man: Small improvements.
4419 2002-01-07  Bernd Warken  <bwarken@mayn.de>
4421         * man/groff_diff.man: Revised.
4423 2002-01-06  Werner LEMBERG  <wl@gnu.org>
4425         * tmac/www.tmac: Remove extraneous backslash.
4427 2002-01-06  Bernd Warken  <bwarken@mayn.de>
4429         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
4431 2002-01-05  Werner LEMBERG  <wl@gnu.org>
4433         Integrated groffer, contributed by Bernd Warken.
4435         * contrib/groffer/*: New.       
4436         * Makefile.in, NEWS: Updated.
4438 2002-01-04  Werner LEMBERG  <wl@gnu.org>
4440         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
4441         registers defined in macro packages.
4442         Revising the ms part.
4444 2002-01-04  Larry Kollar  <kollar@alltel.net>
4446         * doc/groff.texinfo: Add documentation for ms macros.
4448 2002-01-02  Werner LEMBERG  <wl@gnu.org>
4450         First step in adding PS support for the Euro symbol.  `eu' is the
4451         official Euro logo, `Eu' is a font-specific glyph variant.
4453         * font/devps/text.enc: Add `Euro' at position 9.
4454         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
4455         * font/devps/symbolmap: Regenerated.
4457         * NEWS: Updated.
4459 2002-01-02  Bernd Warken  <bwarken@mayn.de>
4461         * man/roff.man: Revised.
4463 2002-01-01  Bernd Warken  <bwarken@mayn.de>
4465         * src/roff/groff/groff.man: Completely rewritten.
4467 2001-12-31  Werner LEMBERG  <wl@gnu.org>
4469         * doc/Makefile: Updated.
4471 2001-12-30  Werner LEMBERG  <wl@gnu.org>
4473         * tmac/www.tmac: Make all names of internal macros/registers/strings
4474         lowercase, and prepend `www-'.
4475         Other minor changes.
4476         * src/roff/troff/troff.man: Add preprocessor string at BOF.
4478 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
4480         Implement option `-b' in grohtml to set the HTML background colour.
4482         * src/devices/grohtml/post-html.cc (default_background): New global
4483         variable.
4484         (html_printer::html_printer): Initialize `background' to
4485         `default_background'.
4486         (main): Implement option `-b'.
4487         (usage): Updated.
4488         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
4489         of `-b' option.
4490         * src/devices/grohtml/grohtml.man: Updated.
4491         * doc/Makefile (.ms.html): Use `-b'.
4492         * tmac/html.tmac: Don't set background color.
4494         Add new grohtml tag `.html-tl'.
4496         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
4497         member variable.
4498         (title_desc::title_desc): Updated.
4499         (html_printer::troff_tag): Handle `.html-tl'.
4500         (html_printer::write_title): Use `with_h1'.
4501         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
4502         (HTML-TL): New macro.
4504         Add support for unordered lists in HTML.
4506         * tmac/www.tmac (www-level): New auxiliary register.
4507         (www-level1, www-level2, www-level3): New auxiliary strings.
4508         (www-push-level, www-pop-level): New auxiliary macros
4509         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
4511         Miscellaneous.
4513         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
4514         (DEFAULT_VERTICAL_OFFSET): Removed.
4515         (IMAGE_BOARDER_PIXELS): Set to 0.
4516         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
4517         (vertical_offset): Initialize with 0.
4518         (gsPaper): New global variable.
4519         (get_resolution): Scan for and return unsigned int.
4520         (get_papersize): New function to get paper length from devps/DESC.
4521         (determine_vertical_offset): New function.
4522         (createAllPages): Produce gray-level images and use proper page
4523         length.
4524         (createImage): Use `-quiet' option of pnmcrop.
4525         (addZ): Fix passing of `-Z'.
4526         (scanArguments): Fix handling of `-o'.
4527         (main): Call `determine_vertical_offset'.
4528         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
4529         code for `l'.
4531         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
4532         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
4533         glyph descenders properly.
4535         * doc/homepage.ms: Include `gnubw.eps'.
4536         * doc/Makefile (gnubw.eps): New rule.
4537         (homepage.html): Depend on `gnubw.eps'.
4539 2001-12-25  Werner LEMBERG  <wl@gnu.org>
4541         * src/roff/troff/input.cc (default_black): Fix return value.
4543 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
4545         * tmac/doc-common (Dt): Change output of architecture strings.
4546         Do some syntax cleanup.
4547         * tmac/groff_mdoc.man: Updated.
4549 2001-12-23  Werner LEMBERG  <wl@gnu.org>
4551         Adding an `itc' request (input line trap accepting \c).
4553         * src/roff/troff/env.h (environment): New member
4554         `continued_input_trap'.
4555         Make `do_input_trap' a friend function instead of `input_trap'.
4556         * src/roff/troff/env.cc (environment::environment,
4557         environment::copy): Updated.
4558         (environment::newline): Implement it.
4559         (do_input_trap): New function.
4560         (input_trap): Call `do_input_trap'.
4561         (input_trap_continued): New function.
4562         (init_env_requests): Updated.
4563         * src/roff/troff/TODO: Updated.
4565         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
4566         `.it'.
4568         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
4570 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
4572         * tmac/doc-common, tmac/doc-syms: Small updates.
4574 2001-12-22  Colin Watson  <cjwatson@debian.org>
4576         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
4578 2001-12-22  Bernd Warken  <bwarken@mayn.de>
4580         * MANIFEST: New file.
4582 2001-12-22  Werner LEMBERG  <wl@gnu.org>
4584         * src/preproc/grn/grn.man: Updated.
4586 2001-12-22  Solar Designer  <solar@openwall.com>
4588         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
4589         (DBRead): Use it.
4591 2001-12-19  Werner LEMBERG  <wl@gnu.org>
4593         Implement a fallback character request `.fchar'.
4595         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
4596         (is_fallback): New inline function.
4597         * src/roff/troff/input.cc (do_define_character): New function.
4598         (define_character): Call `do_define_character'.
4599         (define_fallback_character): New function.
4600         (init_input_requests): Add `fchar'.
4601         (charinfo::charinfo): Updated.
4602         (charinfo::set_macro): New argument to set `fallback' flag.
4603         * src/roff/troff/node.cc (make_glyph_node, make_node,
4604         node::add_char): Check `fallback' flag.
4605         * NEWS, man/groff_diff.man, man/groff_man: Updated.
4607 2001-12-16  Werner LEMBERG  <wl@gnu.org>
4609         * groff.texinfo: Document exact search algorithm for glyphs.
4611 2001-12-15  Werner LEMBERG  <wl@gnu.org>
4613         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
4614         the left side of $(MANPAGES) rule to make it always non-empty.
4616 2001-12-14  Werner LEMBERG  <wl@gnu.org>
4618         * src/roff/troff/input.cc (default_black): Define default color
4619         `black' if not yet defined.
4621 2001-12-13  Werner LEMBERG  <wl@gnu.org>
4623         Implement new string-valued register `.fn' to return the current
4624         real (internal) font name.
4626         * env.cc (environment::get_font_name_string): New function.
4627         (init_env_requests): Add `.fn' register.
4628         * env.h (environment): Updated.
4629         * node.cc (font_info): Make `get_font_name' a friend.
4630         (get_font_name): New function.
4631         * node.h: Updated.
4633         * man/groff_diff.man, man/groff.man, NEWS: Updated.
4635 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4637         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
4639 2001-12-12  Werner LEMBERG  <wl@gnu.org>
4641         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
4643 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
4645         * man/groff_diff.man: Adding documentation for \O.
4647 2001-12-10  Werner LEMBERG  <wl@gnu.org>
4649         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
4650         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
4652 2001-12-09  Werner LEMBERG  <wl@gnu.org>
4654         * man/roff.man: Revised.
4655         * src/roff/groff/groff.man: Replace man page references with a
4656         pointer to roff.man.
4658 2001-12-09  Bernd Warken  <bwarken@mayn.de>
4660         * man/roff.man: Completely rewritten.
4662 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4664         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
4666 2001-12-05  Werner LEMBERG  <wl@gnu.org>
4668         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
4669         longer used.
4670         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
4671         order of initializers.
4672         * NEWS: Updated.
4674 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
4676         * doc/groff.texinfo: Fix documentation of \O.
4678         * src/devices/grohtml/html-text.cc (html_text::do_indent,
4679         html_text::do_table, html_text::do_emittext, html_text::do_para):
4680         Use `const' for first argument.
4681         (html_text::do_table): Use cast.
4682         * src/devices/grohtml/html-text.h: Updated.
4683         * src/devices/grohtml/output.cc (simple_output::put_string): Add
4684         method for `const string &s'.
4685         * src/devices/grohtml/html.h: Updated.
4686         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
4687         (ANCHOR_TEMPLATE): Modified.
4688         (manufacture_headings): New global variable to handle `-h' option.
4689         (is_subsection): Removed.
4690         (char_buffer::add_string): Add `const' to first argument.
4691         Protect against invalid string argument.
4692         Add method for `const string &s'.
4693         (text_glob): Completely redesigned.
4694         (page): Use `const' for strings and remove string length variable.
4695         (page::add_html): Removed.
4696         (page::add_end_encode): New member function.
4697         (to_unicode): Moved upwards.
4698         (title_desc, header_desc): Updated.
4699         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
4700         definition.
4701         (html_printer::is_bold, html_printer::make_bold): New member
4702         functions.
4703         (html_printer::end_of_line): Updated.
4704         (generate_img_src, html_printer::do_auto_image,
4705         html_printer::do_title, html_printer::write_header,
4706         html_printer::determine_header_level, html_printer::do_heading,
4707         html_printer::do_linelength, html_printer::do_pageoffset,
4708         html_printer::do_indentation, html_printer::do_tempindent,
4709         html_printer::do_indentedparagraph, html_printer::do_break,
4710         html_printer::flush_sbuf, get_html_translation,
4711         html_printer::begin_page, html_printer::special): Rewritten to get
4712         rid of static string length limit.
4713         (html_printer::troff_tag): Added `.no-auto-rule'.
4714         (html_printer::flush_globs): Small fix.
4715         (html_printer::determine_space): Don't compute `space_width'.
4716         (html_printer::translate_to_html): Renamed to ...
4717         (html_printer::emit_html): This (with updates).
4718         (html_printer::write_header): Implement `-h' option.
4719         (html_printer::draw): Remove commented-out code.  Handle `F'
4720         command.
4721         (html_printer::add_char_to_sbuf): Removed.
4722         (html_printer::add_to_sbuf): Rewritten.
4723         (html_printer::sbuf_continuation): Fixed.
4724         (html_printer::seen_backwards_escape, reverse,
4725         html_printer::remove_last_char_from_sbuf): Removed.
4726         (char_translate_to_html, str_translate_to_html): Removed.
4727         (html_printer::overstrike): New function member.
4728         (html_printer::set_char): Use it.
4729         (html_printer::do_body): New function member.
4730         (html_printer::~html_printer): Use it.
4731         (main): Handle `-h' option.
4732         (usage): Updated.
4733         * src/devices/grohtml/grohtml.man: Document -h switch.
4735         * src/preproc/html/pre-html.cc: Include searchpath.h
4736         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
4737         (get_resolution): New function.
4738         (checkImageDir): Use `0777' permissions in mkdir()
4739         (write_start_image): Rewritten to use `\O[5...]'.
4740         (createImage, generateImages): Updated.
4741         (main): Handle `F' and `h' options.
4742         Use `get_resolution'.
4744         * src/roff/troff/input.cc (begin, end, image): Removed.
4745         (do_suppress): Take parameter.
4746         Handle modified syntax of `\O'.
4747         (token::next): Updated.
4748         (init_markup_requests): Removed.
4749         (main): Updated.
4751         * src/roff/troff/div.h: Add declaration for begin_page().
4753         * tmac/color-html.tmac: Removed.  Contents moved to...
4754         * tmac/html.tmac: Here.  Set background color.
4755         * tmac/color.tmac: Removed.  Contents moved to...
4756         * tmac/ps.tmac: Here.
4757         * tmac/www.tmac: Remove the title command when generating images
4758         for html.
4759         (NO_AUTO_RULE): New macro.
4760         (HTML_DO_IMAGE): Use revised `\O' escapes.
4761         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
4763 2001-12-02  Werner LEMBERG  <wl@gnu.org>
4765         * tmac/groff_mdoc.man: Fix typo.
4767 2001-12-01  Colin Watson  <cjwatson@debian.org>
4769         * man/roff.man: Fix typo.
4771 2001-11-29  Werner LEMBERG  <wl@gnu.org>
4773         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
4774         stdlib.h.
4776         * src/roff/troff/input.cc (read_draw_node): Emit error message if
4777         more than one argument to \D'f ...'.
4779         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
4781 2001-11-28  Werner LEMBERG  <wl@gnu.org>
4783         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
4784         loaded only once.
4786         * tmac/groff_man.man: Minor cosmetic fix.
4788 2001-11-27  Werner LEMBERG  <wl@gnu.org>
4790         * src/roff/groff/groff.man, tmac/groff_tmac.man,
4791         tmac/groff_www.man: s/mwww/www/.
4793 2001-11-26  Werner LEMBERG  <wl@gnu.org>
4795         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
4796         * configure: Regenerated.
4797         * win32-diffs: Updated.
4799         * tmac/groff_mwww.tmac: Renamed to ...
4800         * tmac/groff_www.tmac: This.
4801         * tmac/mwww.tmac: Removed.
4802         * NEWS, tmac/Makefile.sub: Updated.
4804 2001-11-21  Werner LEMBERG  <wl@gnu.org>
4806         * doc/groff.texinfo: Improve documentation of the `\v' escape.
4807         Fix explanation of `\D' and `rt'.
4809 2001-11-20  Werner LEMBERG  <wl@gnu.org>
4811         * tmac/an-old.tmac (an-header): Set header length equal to page
4812         width.
4813         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
4814         minor fixes.
4815         * NEWS: Small fix.
4817 2001-11-19  Werner LEMBERG  <wl@gnu.org>
4819         * NEWS, man/Makefile.sub: Updated.
4821 2001-11-19  Bernd Warken  <bwarken@mayn.de>
4823         * man/ditroff.man: New file.
4825 2001-11-17  Werner LEMBERG  <wl@gnu.org>
4827         * man/groff_differences.man: Renamed to ...
4828         * man/groff_diff.man: This.  Updated.
4829         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
4831         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
4832         * src/preproc/html/pushback.cc: This.  Updated.
4833         * src/preproc/html/pushbackbuffer.h: Renamed to ...
4834         * src/preproc/html/pushback.h: This.
4835         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
4836         Updated.
4838         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
4839         * src/libs/libgroff/htmlhint.cc: This.
4840         * src/libs/libgroff/Makefile.sub: Updated.
4842         * tmac/an-old.tmac (an-end): Fix page length.
4844 2001-11-16  Werner LEMBERG  <wl@gnu.org>
4846         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
4847         * man/Makefile.sub: Include groff_differences.man.
4848         * VERSION: Set to 1.18.
4849         * REVISION: Set to 0.
4851 2001-11-16  Bernd Warken  <bwarken@mayn.de>
4853         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
4854         the second dot (or ending macro name) to end a macro.
4855         * doc/groff.texinfo: Doc fix.
4857 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
4859         * tmac/doc-common (doc-header): Handle very long document titles
4860         better.
4862 2001-11-16  Werner LEMBERG  <wl@gnu.org>
4864         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
4866 2001-11-15  Werner LEMBERG  <wl@gnu.org>
4868         * src/roff/troff/troff.man: Revised and split into troff.man and...
4869         * man/groff_differences.man: New file.
4870         * NEWS: Updated.
4872 2001-11-13  Werner LEMBERG  <wl@gnu.org>
4874         * tmac/an-old.tmac (TS, TE): New macros for table support.
4876 2001-11-12  Werner LEMBERG  <wl@gnu.org>
4878         * src/include/lib.h: Provide a fix for emx to not include
4879         groff-getopt.h.
4881 2001-10-27  Werner LEMBERG  <wl@gnu.org>
4883         * src/roff/troff/input.cc (substring_macro): Fix computation of
4884         boundary values.
4886 2001-10-20  Werner LEMBERG  <wl@gnu.org>
4888         Undo change from 2001-08-28.
4890         * src/roff/troff/input.cc (have_input): New global variable.
4891         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
4892         in compatibility mode.
4893         (process_input_stack): Use it.
4895 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
4897         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
4898         being handled as end-of-sentence characters,
4900 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
4902         * src/roff/troff/input.cc (file_iterator): New members
4903         `suppress_newline_flag' and `seen_escape'.
4904         (file_iterator::next_file): Updated.
4905         (file_iterator::fill): Use it.
4906         (string_iterator): New member `suppress_newline_flag'.
4907         (string_iterator::fill): Set it.
4908         (get_color_element): Use MAX_COLOR_VAL.
4909         * src/roff/troff/env.cc (environment): Remove `need_eol'.
4910         (no_fill): Don't set `env->ignore_next_eol'.
4911         (environment::newline): Handle `eol' tag properly.
4912         Emit `eol.ce'.
4913         (environment::add_html_tag): Set `env->ignore_next_eol'.
4914         Don't handle `.ce'.
4915         * src/roff/troff/env.h (environment): Updated.
4917         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
4918         member function.
4919         (html_printer::outstanding_eol): New member function.
4920         (html_printer::do_title): Use new functions.
4921         (html_printer::troff_tag): Test `id_eol_ce'.
4923 2001-10-10  Werner LEMBERG  <wl@gnu.org>
4925         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
4926         files work with -C also.
4928 2001-10-05  Werner LEMBERG  <wl@gnu.org>
4930         * doc/pic.ms: Minor fix.
4931         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
4932         as a valid command line switch.
4933         * src/devices/grohtml/post-html.cc (main): Ditto.
4934         (usage): Updated.
4935         * src/devices/grohtml/grohtml.man: Updated.
4936         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
4938 2001-10-04  Werner LEMBERG  <wl@gnu.org>
4940         Implementing color support in troff, pic, grops, and grohtml.  These
4941         changes are based on a major patch provided by Gaius Mulley
4942         <gaius@glam.ac.uk>.
4944         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
4945         definitions with both hex values and fractions.
4947         New escapes: \m and \M for drawing and background color,
4948         respectively.  This corresponds to the troff output commands `m'
4949         and `DF'.
4951         groff and troff accept command line switch `-c' to disable color
4952         output (which is automatically disabled in compatibility mode).
4954         New scaling indicator `f' for fractions (1f = 65536u).
4956         New conditional operator `m' to test for defined colors with `if'
4957         and `ie'.
4959         New keywords `color' (or `colour', `colored', `coloured'), `outline'
4960         (or `outlined'), and `shaded' added to pic.
4962         * src/include/color.h: New file.
4963         * src/include/driver.h: Include it.
4964         * src/include/printer.h: Include color.h.
4965         (environment): New members `col' and `fill'.
4966         (printer): Remove `adjust_arc_center' member function.
4967         * src/include/Makefile.sub: Updated.
4969         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
4970         `env.fill'.
4971         Handle `m' and `DF' troff commands.
4972         * src/libs/libgroff/color.cc: New file.
4973         * src/libs/libgroff/Makefile.sub: Updated.
4975         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
4976         (stop): Removed.
4977         (createImage): Fix computation of `y2'.
4978         Use `pnmcrop' also.
4979         (buffer::write_file_html): Remove calls to `stop'.
4981         * src/preproc/pic/common.h (common_output): New abstract function
4982         members `set_color', `reset_color', `get_last_filled', and
4983         `get_outline_color'.
4984         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
4985         (object_spec): Add members `shaded' and `outlined'.
4986         * src/preproc/pic/output.h (output): `command' is now abstract.
4987         New function members `set_color', `reset_color', `get_last_filled',
4988         and `get_outline_color'.
4989         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
4990         `outline[d]', and `shaded'.
4991         * src/preproc/pic/object.cc (output::command): Removed.
4992         (output::set_location): Moved to output.h.
4993         (graphic_object): Add protected members `outline_color' and
4994         `color_fill'.
4995         Add member functions `set_outline_color', `get_outline_color', and
4996         `set_fill_color'.
4997         (closed_object): Add member function `set_fill_color'.
4998         Add member `color_fill'.
4999         (graphic_object::print_text): Use `out->set_color' and
5000         `out->reset_color'.
5001         (box_object::print, ellipse_object::print, circle_object::print,
5002         line_object::print, spline_object::print, arc_object::print): Ditto.
5003         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
5004         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
5005         `SHADED', making them `%left'.
5006         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
5007         * src/preproc/pic/tex.cc (tex_output): New dummy function members
5008         `set_color', `reset_color', `get_last_filled', and
5009         `get_outline_color'.
5010         * src/preproc/pic/troff.cc (simple_output): New abstract function
5011         members `set_color', `reset_color', and `get_last_filled'.
5012         (simple_output::polygon, simple_output::circle,
5013         simple_output::ellipse): Use `get_last_filled'.
5014         (troff_output): New members `last_filled' and `last_outlined'.
5015         New function members `set_color', `reset_color', `get_last_filled',
5016         and `get_outline_color'.
5017         (troff_output::finish_picture): Use `reset_color'.
5018         (troff_output::set_fill): Test `last_filled'.
5019         * src/preproc/pic/pic.man: Updated.
5021         * src/roff/groff/groff.cc (main): Implement `-c' option.
5022         (synopsis, help): Updated.
5023         src/roff/groff/groff.man: Updated.
5025         * src/roff/troff/troff.h: Include color.h.
5026         (warning_type): Add WARN_COLOR.
5027         * src/roff/troff/env.h (environment): New members
5028         `{cur,prev}_{glyph,fill}_color'.
5029         New member functions `get_{prev_,}{glyph,fill}_color'.
5030         * src/roff/troff/env.cc: Initialize and implement them.
5031         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
5032         Replace `NULL' with `0' everywhere for consistency.
5033         (lookup_color, default_black, do_glyph_color, do_fill_color,
5034         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
5035         define_color): New functions.
5036         (token::next): Implement \M and \m escapes.
5037         (do_if_request): Implement `m' operator.
5038         (usage): Updated.
5039         (main): Implement `-c' option.
5040         (init_markup_requests): Add `defcolor' request.
5041         (warning_table): Add `color' warning.
5042         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
5043         classes.
5044         * src/roff/troff/node.cc (troff_output_file): New members
5045         `current_{page,glyph}color'.  New member functions `put_hex',
5046         `glyph_color', and `fill_color'.
5047         (glyph_color_node::*, fill_color_node::*): Implement it.
5048         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
5049         (parse_term): Add support for `f'.
5050         * src/roff/troff/troff.man: Updated.
5052         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
5053         entry for `F'.
5054         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
5055         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
5057         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
5058         (tag_definition): Use `void *' for arg1.
5059         (html_text): New member functions `do_color' and `done_color'.
5060         Use `void *' for second parameter of `push_para' member function.
5061         New `push_para' member function with a single parameter.
5062         Use `char *' for parameter of `issue_table_begin' member funtion.
5063         New `issue_color_begin' member function.
5064         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
5065         COLOR_TAG.
5066         (html_text::issue_color_begin): New function.
5067         (html_text::issue_table_begin): Use `char *' for parameter.
5068         (html_text::start_tag, html_text::shutdown,
5069         html_text::check_emit_text): Updated.
5070         (html_text::push_para): Use `void *' for second parameter.
5071         Add same function with only one parameter.
5072         (html_text::do_*): Updated.
5073         (html_text::do_color, html_text::done_color): New functions.
5074         * src/devices/grohtml/post-html.cc (style): New member `col'.
5075         Mew member `style' with 6 parameters.
5076         (style::style, style::operator==): Updated.
5077         (html_printer::do_font): Use it.
5078         (html_printer::draw): Add dummy entry for `F'.
5079         (html_printer::set_char): Updated.
5080         * src/devices/grohtml/grohtml.man: Updated.
5082         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
5083         trailing zeroes removed.
5084         (ps_printer): New members `sbuf_color', `fill_color', and
5085         `output_color'.
5086         Removed member `fill'.
5087         New member function `set_color'.
5088         (ps_printer::ps_printer, ps_printer::set_char): Updated.
5089         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
5090         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
5092         * tmac/color-html.tmac, tmac/color.tmac: New files.
5093         * tmac/troffrc: Include them.
5094         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
5095         * tmac/Makefile.sub: Updated.
5097         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
5098         man/groff.man: Updated.
5099         * font/devps/prologue.ps: Define FC and CO functions.
5101 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
5103         Fix incorrect cropping of images and incorrect handling of special
5104         characters.  Fix handling of file names in \O.
5106         * src/include/geometry.h: New file.
5107         * src/libs/libgroff/geometry.cc: New file.
5108         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
5109         to `geometry.cc'.
5110         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
5111         initial spaces.
5112         (do_suppress): Updated.
5113         * src/roff/troff/node.cc: Include geometry.h.
5114         (troff_output_file::flush_tbuf): Fixed parameters to
5115         `check_output_limits'.
5116         (troff_output_file::check_charinfo): Ditto.
5117         (troff_output_file::determine_line_limits): Add support for `Da'
5118         and `Dl' commands.
5120         * src/devices/grohtml/post-html.cc (str_translate_to_html):
5121         Add new parameter `is_special' to decode special characters from
5122         escape sequences.
5123         (html_printer::do_title, html_printer::do_heading,
5124         html_printer::do_indentedparagraph,
5125         html_printer::translate_to_html, html_printer::special): Updated.
5127 2001-10-03  Werner LEMBERG  <wl@gnu.org>
5129         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
5130         Fix entry for config.h.
5131         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
5132         * tmac/troffrc: Translate nonbreakable space character to `\~'.
5133         * src/preproc/eqn/eqn.man: Document -d command line option.
5135 2001-09-27  Werner LEMBERG  <wl@gnu.org>
5137         * man/groff.man: Use
5139           .ev xxx
5140           .na
5141           .nh
5142           <table>
5143           .ev
5145         instead of the old code (`.ad .hy' after the table) to suppress
5146         incorrect hyphenation for grohtml output.
5148 2001-09-22  Werner LEMBERG  <wl@gnu.org>
5150         * man/groff_font.man, man/groff_out.man: Minor fixes.
5152 2001-09-20  Werner LEMBERG  <wl@gnu.org>
5154         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
5155         Arnold Robbins <arnold@skeeve.com>).
5157 2001-09-09  Werner LEMBERG  <wl@gnu.org>
5159         * configure: Regenerated with autoconf 2.52.
5161         * doc/groff.texinfo: Complete revision of indices.
5163 2001-09-07  Werner LEMBERG  <wl@gnu.org>
5165         * doc/Makefile (clean): Updated to delete all indices.
5167 2001-09-05  Werner LEMBERG  <wl@gnu.org>
5169         * src/roff/troff/troff.man: Remove superfluous line.
5171         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
5172         given on the command line (or rather, if only the default warnings
5173         are set).
5175 2001-09-03  Werner LEMBERG  <wl@gnu.org>
5177         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
5178         use .ne for TTY devices.
5180 2001-08-31  Werner LEMBERG  <wl@gnu.org>
5182         * src/roff/troff/token.h, src/roff/troff/input.cc:
5183         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
5185 2001-08-28  Werner LEMBERG  <wl@gnu.org>
5187         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
5188         * src/roff/troff/input.cc (token::next): Return
5189         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
5190         compatibility mode.
5191         (token::description): Updated.
5192         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
5193         (token::add_to_node_list, token::process): Ignore
5194         TOKEN_TRANSPARENT_ESCAPE.
5196 2001-08-27  Werner LEMBERG  <wl@gnu.org>
5198         * tmac/an-old.tmac: Fix `S' string.
5200 2001-08-26  Werner LEMBERG  <wl@gnu.org>
5202         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
5204 2001-08-25  Werner LEMBERG  <wl@gnu.org>
5206         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
5207         backslashes).
5208         Many other minor fixes.
5210         * configure.ac: Add message at end to inform how to compile
5211         xditview.
5212         * configure: Regenerated.
5214 2001-08-24  Werner LEMBERG  <wl@gnu.org>
5216         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
5217         Updated to latest version of libc.
5219 2001-08-23  Werner LEMBERG  <wl@gnu.org>
5221         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
5222         Autoconf 2.50 and newer can handle this.
5223         * configure: Regenerated.
5225 2001-08-21  Werner LEMBERG  <wl@gnu.org>
5227         * doc/pic.ms: Fix typo.
5228         * src/preproc/tbl/tbl.man: Document case of global options.
5230 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5232         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
5233         handling of `CR' font.
5235 2001-08-20  Werner LEMBERG  <wl@gnu.org>
5237         Use a config.h file.
5239         * src/include/lib.h: Include config.h.
5240         * All C files: Ditto (if necessary).
5241         * All C++ source and header files: Include lib.h first (if
5242         necessary).
5244         * src/include/config.hin: New file (autogenerated by autoheader).
5245         * stamp-h.in: New file.
5246         * configure.ac: Updated.
5247         * aclocal.m4: Add third parameters to AC_DEFINE macros.
5248         (GROFF_ARRAY_DELETE): Simplified.
5249         * Makefile.sub (DISTCLEANFILES): Updated.
5250         Added targets for remaking config.status, config.hin, config.h,
5251         stamp-h.in, and stamp-h.
5252         * configure: Regenerated.
5254 2001-08-19  Werner LEMBERG  <wl@gnu.org>
5256         * NEWS: Updated.
5258 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
5260         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
5261         (do_sprintf): Use snprintf().
5263 2001-08-18  Werner LEMBERG  <wl@gnu.org>
5265         * src/libs/snprintf/*: Added an snprintf module written by Mark
5266         Martinec.
5267         * src/libs/libgroff/Makefile.sub: Updated.
5268         * configure.ac: Add test for snprintf().
5269         * Makefile.in: Updated.
5270         * configure: Regenerated.
5272         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
5273         uses snprintf().
5275 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
5277         * tmac/doc.tmac (Ex): New implementation.
5278         * tmac/doc-common, tmac/groff_tmac.man: Updated.
5280 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
5282         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
5283         argument.
5284         * tmac/groff_tmac.man: Updated.
5286 2001-08-13  Werner LEMBERG  <wl@gnu.org>
5288         * src/preproc/tbl/tbl.man: Minor documentation update.
5290 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5292         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
5293         * configure.ac: Add declaration test for gettimeofday().
5294         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
5295         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
5296         * configure: Regenerated.
5298 2001-08-11  Werner LEMBERG  <wl@gnu.org>
5300         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
5301         * configure.ac: Add declaration test for strcasecmp().
5302         * Makefile.in: Updated.
5303         * configure: Regenerated.
5304         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
5305         this is necessary because groff's mkstemp.cc is C++.
5306         Add declaration conditionally for strcasecmp().
5308 2001-08-10  Werner LEMBERG  <wl@gnu.org>
5310         Integrated pic2graph, contributed by Eric S. Raymond.
5312         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
5313         files.
5314         * Makefile.in, NEWS: Updated.
5316         * src/preproc/tbl/tbl.man: Revised.
5318 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
5320         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
5322 2001-08-09  Werner LEMBERG  <wl@gnu.org>
5324         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
5325         requests.
5327 2001-08-08  Paul Eggert  <eggert@twinsun.com>
5329         * Makefile.sub (configure): Depend on configure.ac, not
5330         configure.in.
5331         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
5333 2001-08-07  Werner LEMBERG  <wl@gnu.org>
5335         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
5336         fixes.
5338 2001-08-06  Werner LEMBERG  <wl@gnu.org>
5340         * src/roff/troff/troff.man: Improve documentation of -E option.
5342 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5344         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
5345         Simplified.
5347 2001-07-27  Werner LEMBERG  <wl@gnu.org>
5349         * src/preproc/refer/refer.cc: Undo last change.
5350         * src/devices/grohtml/post-html.cc: Ditto.
5352 2001-07-26  Werner LEMBERG  <wl@gnu.org>
5354         * src/preproc/refer/refer.cc: Include `lib.h'.
5355         * src/devices/grohtml/post-html.cc: Ditto.
5357 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
5359         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
5360         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
5361         * Makefile.in: Comment updated.
5362         * configure: Regenerated.
5364 2001-07-25  Werner LEMBERG  <wl@gnu.org>
5366         * src/preproc/pic/pic.cc: Removed.
5367         * src/preproc/pic/pic_tab.h: Removed.
5368         * src/preproc/refer/label.cc: Removed.
5370         * doc/Makefile (.ms.html): Don't use a file name extension in
5371         argument to grohtml's -I option.
5372         * Makefile.in (dist): Remove CVS directories.
5373         Call `distfiles' target.
5375         * src/devices/grohtml/grohtml.man: Add information about valid
5376         versions of pnmtopng.
5377         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
5378         name instead of number.
5380 2001-07-24  Werner LEMBERG  <wl@gnu.org>
5382         * doc/groff.texinfo: Minor fixes.
5384 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
5386         * doc/Makefile (.ms.html): Put image files into a subdirectory.
5387         (clean): Updated.
5389 2001-07-20  Werner LEMBERG  <wl@gnu.org>
5391         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
5392         * src/libs/libgroff/mkstemp.cc: New file.
5393         * src/libs/libgroff/mksdir.cc: New file.
5394         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
5395         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
5396         * src/libs/libgroff/Makefile.sub: Updated.
5397         * src/include/lib.h: Add mksdir() prototype.
5398         * src/include/posix.h: Define S_IXUSR if not yet defined.
5400         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
5401         (createAllPages): Use mksdir() instead of current code.
5402         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
5403         (main): [!HAVE_MKSTEMP]: Removed.
5405         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
5406         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
5407         macros.
5408         * configure.ac: Add tests for stdint.h, sys/time.h, and
5409         gettimeofday().
5410         Call new GROFF_xxx macros.
5411         * configure: Regenerated.
5412         * Makefile.in: Comments updated.
5414 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
5416         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
5417         instead of current code.
5418         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
5419         * src/roff/groff/groff.cc (possible_command::insert_args): New
5420         function.
5421         (main): Use it for predriver handling instead of insert_arg().
5423 2001-07-19  Werner LEMBERG  <wl@gnu.org>
5425         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
5426         groff also.
5428         * src/include/posix.h: Define S_IWUSR if not yet defined.
5430 2001-07-18  Werner LEMBERG  <wl@gnu.org>
5432         * NEWS: Updated.
5434 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
5436         * tmac/groff_mdoc.man: Document new -width and -column syntax.
5437         Some other minor fixes.
5438         * tmac/an-old.tmac: Add `AT' and `UC' macros.
5440 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
5442         Replace call to `troff' with `groff -Z' to make it aware of
5443         GROFF_BIN_PATH.
5445         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
5446         (troff_command, command_prefix): Removed.
5447         (alterDeviceTo): Use groff.
5448         (addZ): New function.
5449         (char_buffer::do_html): Use it.
5450         (scanArguments): Use TROFF_COMMAND.
5451         (findPrefix): Removed.
5452         (main): Updated.
5453         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
5455 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
5457         * doc/pic.ms: Documentation fixes.
5459 2001-07-17  Werner LEMBERG  <wl@gnu.org>
5461         Replace atexit() with global destructor.
5463         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
5464         (xtmpfile_list_init): New global structure to deallocate
5465         xtmpfile_list on exit.  Its destructor inherits most code from
5466         remove_tmp_files().
5467         (remove_tmp_files): Deleted.
5468         (add_tmp_file): Simplified.
5470 2001-07-16  Werner LEMBERG  <wl@gnu.org>
5472         Replace strdup() with strsave().
5474         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
5475         (set_papersize): Use strsave() and a_delete.
5476         (main): Use strsave().
5477         * src/preproc/html/pre-html.cc (make_message, createAllPages,
5478         removeAllPages): Use strsave() and a_delete.
5480         * configure.ac: Remove test for strdup.
5481         * Makefile.in: Comment updated.
5482         * configure: Regenerated.
5484 2001-07-15  Werner LEMBERG  <wl@gnu.org>
5486         * win32-diffs: Updated.
5488 2001-07-14  Werner LEMBERG  <wl@gnu.org>
5490         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
5491         removing the old one.
5492         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
5494 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5496         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
5498 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
5500         Merge -xwidth into -width.  Add -xwidth functionality to -column
5501         also.
5503         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
5504         avoid warning.
5505         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
5506         string immediately following a leading dot starts with a valid mdoc
5507         argument.
5508         Add similar code to the -column branch.
5509         (doc-Bl-usage): Updated.
5510         * groff_mdoc.man: s/-xwidth/-width/.
5512 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
5514         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
5515         running into centered or non-formatted text.
5517 2001-07-11  Werner LEMBERG  <wl@gnu.org>
5519         Introduce short and long prefixes to have the selection at run-time
5520         whether there is a 8+3 limit for names of temporary files.
5522         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
5523         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
5524         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
5525         variables.
5526         (temp_init): New global structure to initialize above three
5527         variables.
5528         (xtmptemplate): Use two parameters for long and short prefix.
5529         Simplify code use above three variables.
5530         (xtmpfile): Use long and short prefixes as parameters.
5531         * src/include/lib.h: Updated.
5533         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
5534         with ...
5535         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
5536         (createAllPages, makeTempFiles): Updated.
5538 2001-07-09  Werner LEMBERG  <wl@gnu.org>
5540         * REVISION: Increased to 3.
5542 Version 1.17.2 released
5543 =======================
5545 2001-07-07  Werner LEMBERG  <wl@gnu.org>
5547         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
5548         to size_t.
5550 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
5552         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
5553         Fix synopsis.
5554         * tmac/groff_mdoc.man: Fix synopsis.
5556 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
5558         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
5559         Restore `doc-Pa-font'.
5561 2001-07-04  Werner LEMBERG  <wl@gnu.org>
5563         * src/utils/indxbib/dirnamemax.c: Moved to ...
5564         * src/libs/libgroff/maxfilename.cc: Here.
5565         s/dir_name_max/file_name_max/.
5566         Add copyright.
5567         * src/include/lib.h: Add file_name_max.
5568         * src/utils/indxbib/indxbib.cc: Updated.
5569         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
5570         Updated.
5572         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
5573         as empty.
5574         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
5576         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
5577         REGION_TEMPLATE): New macros.
5578         (createAllPages, makeTempFiles): Use them.
5579         Include `nonposix.h'.
5580         (html_system): New function.
5581         (createAllPages, createImage): Use it.
5582         Use EXE_EXT.
5584         * tmac/www.tmac: Fix typos.
5586 2001-07-03  Werner LEMBERG  <wl@gnu.org>
5588         * tmac/www.tmac: Disable hyphenation in normal text only if output
5589         device is html.
5590         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
5591         * tmac/groff_mwww.man, NEWS: Updated.
5593 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
5595         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
5596         image location.
5598 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
5600         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
5601         doc-display-ps-stack): Implement font and font size stack for
5602         displays.
5604 2001-07-02  Werner LEMBERG  <wl@gnu.org>
5606         * REVISION: Increased to 2.
5607         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
5609         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
5610         beginning of a line.
5611         * src/groff/grog/grog.sh: Ditto.
5613 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
5615         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
5616         make it portable.
5618 2001-06-27  Werner LEMBERG  <wl@gnu.org>
5620         Fix problems with preprocessor string for `man' program.
5622         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
5623         Updated/added copyright.
5624         Moved Emacs's local variable to identify nroff mode to the end of
5625         the file; add local variable if missing.
5627 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
5629         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
5630         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
5631         * configure: Regenerated.
5633 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
5635         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
5636         * configure: Regenerated.
5638 2001-06-24  Werner LEMBERG  <wl@gnu.org>
5640         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
5641         but www.tmac.
5642         * doc/pic.ms: Fix typos.
5644 Version 1.17.1 released
5645 =======================
5647 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
5649         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
5650         * configure: Updated.
5652 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
5654         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
5655         image names.
5656         * src/roff/troff/dic.cc (blank_line): Add html tag.
5658 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
5660         * src/roff/troff/input.cc (do_suppress): Fix typo.
5662 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
5664         Added two new options (-D and -I) to specify image names and a
5665         subdirectory to place the images in.
5667         Change syntax from \\Ox to \\O[x].
5669         * src/devices/grohtml/post-html.cc (main): Add options.
5670         (usage): Updated.
5671         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
5672         Use `NULL' instead of `0' for null string pointers.
5673         (MAX_RETRIES): New macro.
5674         (lengthOfintToStr, intToStr, make_message): New functions.
5675         (makeFileName): Make function static.
5676         Implement -D and -I options.
5677         (checkImageDir): New function.
5678         (write_end_image, write_start_image): Use new syntax of \O.
5679         (createAllPages, removeAllPages): Implement -D and -I options.  Use
5680         make_message().
5681         (createImage): Use make_message().
5682         (addps4html): Add guard for malloc().
5683         (usage, scanArguments): Updated.
5684         (makeTempFiles): Use mkstemp().
5685         (removeTempFiles): Use unlink().
5686         (findPrefix): Add guard for malloc().
5687         (main): Updated.
5688         * src/roff/troff/input.cc (get_delim_file_name): New function to
5689         parse \O.
5690         (do_suppress): Updated to parse new syntax.
5691         * src/devices/grohtml/grohtml.man: Updated.
5692         * tmac/www.tmac: Updated to new syntax.
5694         * NEWS: Updated.
5696 2001-06-15  Werner LEMBERG  <wl@gnu.org>
5698         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
5700         * src/devices/grohtml/grohtml.man: Minor improvements.
5702 2001-06-14  Werner LEMBERG  <wl@gnu.org>
5704         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
5706 2001-06-11  Werner LEMBERG  <wl@gnu.org>
5708         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
5709         line to specify preprocessor options -- mandb 2.3.1 only recognizes
5710         the former.
5711         * src/preproc/grn/grn.man: Add proper '\" string.
5713 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
5715         * test-groff: Don't use PATH but GROFF_BIN_PATH.
5717 2001-06-08  Werner LEMBERG  <wl@gnu.org>
5719         Updated to autoconf 2.50.
5721         * configure.in: Renamed to...
5722         * configure.ac: This.
5723         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
5724         (GROFF_OS390): Updated.
5725         * configure: Regenerated.
5727 2001-05-18  Werner LEMBERG  <wl@gnu.org>
5729         * src/roff/troff/env.c, src/roff/troff/env.h,
5730         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
5731         from 2000-12-21.
5733 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
5735         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
5737 2001-05-16  Werner LEMBERG  <wl@gnu.org>
5739         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
5740         less than or equal zero; set it to 1 then.
5741         * src/roff/troff/node.h (node::node): Initialize `last'.
5743 2001-05-08  Werner LEMBERG  <wl@gnu.org>
5745         * tmac/an-old.tmac: Make predefined strings work in compatibility
5746         mode.
5747         Add troff version guard.
5748         * tmac/doc.tmac: Simplify version guard.
5750 2001-05-07  Werner LEMBERG  <wl@gnu.org>
5752         The .ns and .rs requests are now honoured not only in the top-level
5753         but in all diversions (similar to UNIX troff).
5755         This change is based on a patch from Tadziu Hoffmann
5756         <hoffmann@usm.uni-muenchen.de>.
5758         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
5759         (top_level_diversion): Remove `no_space_mode' member.
5760         * src/roff/troff/div.cc (diversion::diversion,
5761         top_level_diversion::top_level_diversion): Updated.
5762         (macro_diversion::output): Reset `no_space_mode'.
5763         (no_space, restore_spacing): Use `curdiv' unconditionally.
5764         (space_request, blank_line): Check `curdiv->no_space_mode'.
5765         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
5766         `curdiv' unconditionally.
5767         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
5768         Updated.
5770 2001-05-06  Werner LEMBERG  <wl@gnu.org>
5772         Added two new requests `de1' and `am1' which are similar to `de' and
5773         `am' with the difference that compatibility mode is saved on entry,
5774         switched off during macro execution, and restored on exit.
5776         * src/roff/troff/input.h: Added two new special characters
5777         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
5778         * src/roff/troff/input.cc (input_iterator): Added two member
5779         functions `save_compatible_flag' and `get_compatible_flag'.
5780         (input_stack): Ditto.
5781         (string_iterator): Ditto.  Also add private member
5782         `saved_compatible_flag'.
5783         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5784         (calling_mode): New enumeration.
5785         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
5786         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
5787         (define_macro, define_indirect_macro, append_macro, ignore): Use
5788         `calling_mode'.
5789         (define_nocomp_macro, append_nocomp_macro): New functions.
5790         (init_input_requests): Updated.
5791         (do_request): Rename local variable `saved_compatible_flag' to
5792         `old_compatible_flag'.
5793         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5795         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
5796         public and trap-invoked macros.  As a consequence, the man macros
5797         work in compatibility mode also.
5799 2001-05-06  Solar Designer  <solar@openwall.com>
5801         * Makefile.in: Use $(mandir).
5803 2001-05-06  Alexios Zavras  <zvr@pobox.com>
5805         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
5807 2001-05-05  Werner LEMBERG  <wl@gnu.org>
5809         Added `.ns' number register: Returns 1 in no-space mode (if in
5810         top-level diversion), 0 otherwise.
5812         * src/roff/troff/div.cc (no_space_mode_reg): New class.
5813         (init_div_requests): Updated.
5814         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
5815         Document it.
5817 2001-05-04  Werner LEMBERG  <wl@gnu.org>
5819         * src/roff/nroff/nroff.man: Improved documentation (especially
5820         locales).
5822 2001-05-02  Werner LEMBERG  <wl@gnu.org>
5824         Added `brp' request: This is \p as a request.
5826         * src/roff/troff/env.cc (environment::do_break): Add parameter
5827         `spread'.
5828         (do_break_request): New function (was `break_request').
5829         (break_request): Calls `do_break_request'.
5830         (break_spread_request): New; calls `do_break_request'.
5831         (init_env_requests): Updated.
5832         * src/roff/troff/env.h: Updated.
5833         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5835         * REVISION: Increased to 1.
5836         * win32-diffs: Updated.
5838 2001-05-01  Werner LEMBERG  <wl@gnu.org>
5840         * tmac/an-old.tmac: Fix minor compatibility mode issue.
5841         * tmac/troffrc-end: Make it really work in compatibility mode.
5843 2001-04-27  Werner LEMBERG  <wl@gnu.org>
5845         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
5846         stdlib.h.
5848 2001-04-22  Werner LEMBERG  <wl@gnu.org>
5850         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
5851         latest versions from glibc CVS archive.
5853         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
5854         <c.zeelenberg@hccnet.nl>.
5856 2001-04-21  Werner LEMBERG  <wl@gnu.org>
5858         * configure.in: Move check for mkstemp() to...
5859         * aclocal.m4 (GROFF_MKSTEMP): This new function.
5860         * configure: Regenerated.
5862         * src/include/groff-getopt.h: Don't use variable names in
5863         declarations.
5865         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
5866         * src/devices/grohtml/Makefile.sub,
5867         src/devices/grohtml/post-html.cc: Updated.
5869 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
5871         * configure.in: Add special check for mkstemp().
5872         * src/libs/libgroff/tmpfile.cc: Use it.
5873         * src/utils/indxbib/indxbib.cc: Ditto.
5874         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
5875         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
5876         `const'.
5878 2001-04-20  Bruce Lilly  <blilly@erols.com>
5880         `Version_string' as C++ object was not visible to linker from C
5881         object files.
5882         Add `const' to `Version_string'.
5884         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
5885         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
5886         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
5887         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
5888         (scanArguments), src/preproc/refer/refer.cc (main),
5889         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
5890         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
5891         (main), src/devices/grohtml/post-html.cc (main),
5892         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
5893         (main), src/utils/hpftodit/hpftodit.cc (main),
5894         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
5895         (main), src/utils/lkbib/lkbib.cc (main),
5896         src/utils/addftinfo/addftinfo.cc (main): Implement it.
5898         * src/roff/groff/pipeline.c: Add _UWIN.
5899         * src/include/nonposix.h: Ditto.
5901 2001-04-20  Werner LEMBERG  <wl@gnu.org>
5903         * src/include/lib.h: Use HAVE_STRERROR.
5904         * src/roff/groff/pipeline.c: Ditto.
5905         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
5906         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
5907         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
5908         * win32-diffs: Updated.
5909         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
5911 2001-04-19  Werner LEMBERG  <wl@gnu.org>
5913         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
5914         instead of hardwired `"troff"'.
5915         (char_buffer::read_file): Remove unused variables.
5916         (char_buffer::write_file_troff): Ditto.
5917         (char_buffer::write_file_html): Ditto.
5918         (generateImages): Ditto.
5919         (abs): Removed.
5920         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
5922         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
5924         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
5925         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
5926         index_search_item::search1): Ditto.
5927         * src/roff/troff/node.h (width_list): Reorder members.
5928         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
5929         (lookup_warning): Ditto.
5930         (prepend_string): Commented out.
5931         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
5932         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
5933         * src/preproc/tbl/main.cc (process_format): Ditto.
5934         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
5935         compiler warnings.
5936         * src/preproc/pic/pic.cc: Updated.
5937         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
5938         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
5939         * src/preproc/refer/command.cc (execute_command): Ditto.
5940         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
5941         * src/preproc/refer/token.cc (lookup_token): Ditto.
5942         * src/preproc/soelim/soelim.cc: Ditto.
5943         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
5944         (isHexDigit): Commented out.
5945         (pushBackBuffer::isString): Remove unused variable.
5946         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
5947         warning.
5948         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
5949         resource_manager::read_resource_arg, read_one_of, parse_extensions):
5950         Ditto.
5951         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
5952         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
5953         lookup_paper_size): Ditto.
5954         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
5955         (text_glob, element_list): Reorder members.
5956         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
5957         compiler warning.
5958         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
5959         return value to `void'.
5960         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
5961         of initializers.
5962         * src/devices/grohtml/html.h (simple_output::check_newline,
5963         simple_output::space_or_newline, simple_output::enable_newlines):
5964         Add return value.
5965         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
5966         compiler warnings.
5967         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
5968         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
5969         output_ligatures, output_charset, read_map): Ditto.
5970         * src/utils/lookbib/lookbib.cc (main): Ditto.
5971         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
5972         (do_file): Fix typo (`=' -> `==').
5973         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
5974         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
5976 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
5978         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
5979         Fix usage of GROFF_BIN_PATH.
5980         * src/roff/nroff/nroff.man: Updated.
5982 2001-04-18  Werner LEMBERG  <wl@gnu.org>
5984         * NEWS: Fixing typos.
5985         Updated.
5987 Version 1.17 released
5988 =====================
5990 2001-04-17  Werner LEMBERG  <wl@gnu.org>
5992         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
5993         directory, not in $(srcdir).
5995 2001-04-16  Werner LEMBERG  <wl@gnu.org>
5997         * doc/groff.texinfo: More info on conditionals.
5999 2001-04-15  Werner LEMBERG  <wl@gnu.org>
6001         * doc/groff.texinfo: Added some info about groff internals.
6003         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
6004         about missing special character only if the name is non-null.
6006 2001-04-14  Werner LEMBERG  <wl@gnu.org>
6008         Removing the grohtml-old device driver which is now obsolete.
6010         * src/devices/grohtml-old/*: Removed.
6011         * font/devhtml-old/*: Removed.
6012         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
6013         Remove comments.
6014         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
6015         * test-groff (PATH): Updated.
6016         * tmac/Makefile.sub (NORMALFILES): Updated.
6017         * tmac/an-old.tmac: Remove special code for html-old device.
6018         Replace `html-or-html-old' register with `an-html'.
6019         * tmac/eqnrc: Updated.
6020         * tmac/html-old.tmac: Removed.
6021         * tmac/troffrc, tmac/troffrc-end: Updated.
6022         * tmac/www.tmac: Remove special code for html-old device.
6023         Replace `html-or-html-old' register with `www-html'.
6025         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
6026         src/libs/libgroff/htmlindicate.cc (graphic_end),
6027         include/htmlindicate.h, src/preproc/grn/*.cc,
6028         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
6029         single argument for consistency with rest of source code.
6031         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
6033 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
6035         * src/roff/troff/troff.man: Fixing typos.
6037 2001-04-13  Werner LEMBERG  <wl@gnu.org>
6039         * doc/pic.ms: Fixing many font switches.
6040         * doc/groff.texinfo: Fixes, additions.
6041         * MORE.STUFF: Updated.
6043 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
6045         * src/devices/grohtml/grohtml.man: Updated manual page regarding
6046         simple anchor.
6047         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
6048         cropping of images.
6049         (removeTempFiles): New function to tidy up temporary files.
6050         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
6051         Many fixes to do with the new inline suppress node and image regions
6052         are much tighter.
6053         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
6054         (generate_img_src): New function.
6055         (html_printer::do_auto_image): Utilizes it.
6056         (do_heading, do_title): Include inline images within their contents.
6057         (html_printer::begin_page): Tidied up comments that are issued to
6058         the html output file.
6059         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
6060         than courier.
6061         (text_glob::is_br): New method used by do_heading.
6062         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
6063         equivalent diversion.
6064         * src/include/html-strings.h: Altered image tags to reflect the
6065         inline image node.
6066         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
6067         parameter.
6068         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
6069         it is already inside a pic image.  Only emit tags if the argument
6070         `-Tps:html' is present.
6071         * src/preproc/tbl/main.cc: Changes to reflect additional
6072         `html_end_suppress' parameter.
6073         * src/roff/troff/env.cc: Only emit eol tag if a node has been
6074         emitted since the last eol tag was written.
6075         * src/roff/troff/env.h: New boolean `emitted_node'.
6076         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
6077         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
6078         * src/roff/troff/node.cc (check_charinfo): New method. 
6079         (troff_output_file::determine_line_limits): Alterations to limit
6080         checking.
6081         * tmac/www.tmac: Changes to reflect new suppress nodes.
6082           
6083 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
6085         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
6086         Escape the html_glyph in the buffer.
6087         (str_translate_to_html): Output the unescaped escaped_char.
6088         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
6089         `frame=void', not `frame=none'.  Add `border=0'.
6091 2001-04-12  Werner LEMBERG  <wl@gnu.org>
6093         * PROBLEMS: Add some words on how to avoid wrapper macros.
6095 2001-04-11  Blake McBride  <blake@florida-software.com>
6097         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
6099 2001-04-11  Werner LEMBERG  <wl@gnu.org>
6101         * font/devlbp/Makefile.sub (CLEANADD): Set it.
6102         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
6103         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
6104         * Makefile.sub (DISTCLEANFILES): Here.
6106         * libs/libgroff/new.cc: Include `nonposix.h'.
6107         * win32-diffs: Updated.
6109 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
6111         Added skeleton macro for defunct macros.
6113         Updated documentation.
6115         When inside displays, an empty input line warning should be
6116         suppressed.  If another macro call is put inside a display,
6117         all subsequent empty lines found in that display caused a
6118         warning to be emitted.
6120         * tmac/doc.tmac (doc-defunct-macro): New macro.
6121         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
6122         (doc-restore-global-vars): Fixed typo.
6123         (doc-empty-line): Check the `doc-display-depth' register to
6124         determine whether we are inside display or not.
6126         * tmac/doc-common: Removed `Or' and `Sf' registers.
6127         Moved obsolete `Ds' macro to doc.tmac.
6129         * tmac/groff_mdoc.man: Bump document date.
6130         Document `.Vt' under ``Variable Types''.
6131         Removed documentation for obsolete `.Or' macro.
6133 2001-04-10  Werner LEMBERG  <wl@gnu.org>
6135         * NEWS: Updated.
6136         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
6138 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
6140         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
6141         (usage): Add stream argument. Don't exit.
6142         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
6143         Write --version output to stdout, not stderr.
6144         (usage): Add stream argument. Don't exit.
6145         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
6146         (usage): Add stream argument. Don't exit.
6147         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
6148         constants.
6149         (usage): Add stream argument. Don't exit.
6150         (main): Write --help output to stdout, not stderr.
6151         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
6152         (usage): Add stream argument. Don't exit.
6153         * src/devices/grops/ps.cc (main): Accept --help and --version.
6154         (usage): Add stream argument. Don't exit.
6155         * src/devices/grotty/tty.cc (main): Accept --help and --version.
6156         (usage): Add stream argument. Don't exit.
6157         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
6158         (main): Accept --help and --version.
6159         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
6160         (main): Accept --help and --version.
6161         * src/preproc/html/pre-html.cc (usage): Add stream argument.
6162         (scanArguments): Accept --help and --version.
6163         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
6164         (main): Accept --help and --version.
6165         * src/preproc/refer/refer.cc (main): Accept --help and --version.
6166         (usage): Add stream argument. Don't exit.
6167         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
6168         exit.
6169         (main): Accept --help and --version.
6170         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
6171         (main): Accept --help and --version.
6172         * src/roff/groff/groff.cc (main): Accept --help and --version.
6173         (synopsis): Add stream argument.
6174         (help): Write --help output to stdout, not stderr.
6175         (usage): Add stream argument. Don't exit.
6176         * src/roff/grog/grog.pl: Accept --help and --version.
6177         (help): New sub.
6178         * src/roff/grog/grog.sh: Accept --help and --version.
6179         * src/roff/nroff/nroff.sh: Accept --help and --version.
6180         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
6181         (usage): Add stream argument. Don't exit.
6182         (main): Accept --help and --version.
6183         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
6184         (usage): New function with stream argument, doesn't exit.
6185         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
6186         (usage): New function with stream argument, doesn't exit.
6187         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
6188         (usage): Add stream argument. Don't exit.
6189         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
6190         (main): Accept --help and --version.
6191         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
6192         exit.
6193         (main): Accept --help and --version.
6194         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
6195         (main): Accept --help and --version.
6196         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
6197         (usage): Add stream argument. Don't exit.
6199 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
6201         Fix indentation in SYNOPSIS.
6203         Updated to include changes of latest BSD mdoc version (basically,
6204         the only change is that `.Fn' and `.Fc' put a final semicolon after
6205         a function declaration in the SYNOPSIS section).
6207         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
6208         (doc-in-synopsis-section): New variable.  Updated all related
6209         functions.
6210         (doc-indent-synopsis-active): New register.
6211         (Nd, Fn, Fo): Use it.
6212         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
6213         `.Cd' with long argument line produces indented wrapped lines. 
6214         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
6215         undesirable line break to be output.
6216         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
6217         `.rs'.
6218         (Fn, Fc): Add final `;' to output.
6219         (doc-save-global-vars, doc-restore-global-vars): Updated.
6220         * tmac/doc-common: Remove `Ex' register.
6221         Updated.
6222         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
6223         copyright.
6225 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
6227         * tmac/doc.tmac (Cd): Simplify code.
6228         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
6230 2001-04-06  Werner LEMBERG  <wl@gnu.org>
6232         Implement continuous underlining for nroff mode.  To do that, a new
6233         request in the ditroff language has been added: `x u N' (N is 0
6234         or 1).
6236         \X and \Y are now transparent to end-of-sentence recognition.
6238         * src/include/printer.h (printer): Add `type' parameter to `special'
6239         method.
6240         * src/libs/libdriver/printer.cc (printer::special): Updated.
6241         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
6243         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
6244         specials of type `p'.
6245         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
6246         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
6247         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
6248         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
6249         (glyph::order): New method.
6250         (tty_printer::add_char): Use it.
6251         (tty_printer::special): New method.
6252         (tty_printer::end_page): Implement it.
6254         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
6255         * src/roff/troff/node.cc (special_node::special_node): Add parameter
6256         to set `no_init_string'.
6257         (special_node::tprint_start): Use it.
6258         (special_node::same, special_node::copy): Updated.
6259         (special_node::ends_sentence): New method.
6260         (troff_output_file::start_special): Add parameter to include
6261         inititialization of special conditionally.
6263         * src/roff/troff/env.h (environment): New member `underline_spaces'.
6264         * src/roff/troff/env.cc (do_underline_special): New function.
6265         (environment::set_font): Use it.
6266         (do_underline): Use it.  This was `underline()'.
6267         (underline): Call `do_underline()'.
6268         (continuous_underline): New function which calls `do_underline()'.
6269         (environment::newline): Use `do_underline_special()'.
6270         (init_env_requests): Updated.
6272         * NEWS, man/troff_out.man: Updated.
6274 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
6276         * font/devutf8/R.proto: Fix code of 'shc'.
6278 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
6280         Many fixes.  Diag lists can now be nested also; additionally,
6281         `-compact' and `-offset' are supported.
6283         * tmac/doc.tmac (doc-have-indent): Replaced with ...
6284         (doc-list-have-indent-stackXXX): A new register stack.
6285         (doc-have-diag-list): Removed.
6286         (Bl): Use `doc-list-have-indent-stackXXX'.
6287         (El): Updated.
6288         (doc-diag-list): Use `doc-compact-list-stackXXX'.
6289         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
6290         (doc-set-vertical-and-indent): Ditto.
6291         (doc-next-list-depth): Removed.
6292         (doc-increment-list-stack): Updated.
6293         (doc-decrement-list-stack): Use `doc-list-depth' instead of
6294         `doc-next-list-depth'.
6295         (doc-end-list, doc-end-column-list): Don't use
6296         `doc-increment-list-stack'.
6297         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
6298         (doc-save-global-vars, doc-restore-global-vars): Updated.
6299         * tmac/doc-common: Updated.
6300         * tmac/groff_mdoc.man: Updated.
6301         * NEWS: Fix typo.
6303 2001-04-02  Werner LEMBERG  <wl@gnu.org>
6305         * src/devices/grotty/grotty.man: Fix grammatical error.
6307 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
6309         Remove .Ld from mdoc package; replace it with special handling of
6310         `...'.
6312         * tmac/doc-common: Remove `Ld' register.
6313         Uncomment `doc-volume-ds-*' strings.
6314         Remove `doc-operating-system-default'.
6315         (Os): Updated.
6316         * tmac/doc-syms (Ld): Removed.
6317         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
6318         `...' specially.
6319         * NEWS: Updated.
6321         * tmac/groff_mdoc.man: Many fixes and updates.
6323 2001-03-29  Werner LEMBERG  <wl@gnu.org>
6325         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
6326         Bond <tkb@tkb.mpl.com>.
6327         * tmac/www.tmac: Save compatibility mode.
6329 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
6331         * tmac/groff_mdoc.man: Many fixes.
6333 2001-03-28  Werner LEMBERG  <wl@gnu.org>
6335         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
6336         isn't recognized.
6338 2001-03-27  Werner LEMBERG  <wl@gnu.org>
6340         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
6341         diversion.  This fixes overlong tags.
6343 2001-03-26  Werner LEMBERG  <wl@gnu.org>
6345         * doc/groff.texinfo: Fixed and improved documentation of fonts.
6346         * tmac/doc-syms: Fix error messages.
6347         * tmac/an-old.tmac: Remove incorrect double backslashes.
6349 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
6351         * tmac/Makefile.sub: Strip mdoc.local also
6352         * tmac/strip.sed: Fixed.
6354 2001-03-24  Werner LEMBERG  <wl@gnu.org>
6356         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
6357         selecting the font size.
6358         * tmac/groff_mdoc.man, NEWS: Document it.
6360 2001-03-23  Werner LEMBERG  <wl@gnu.org>
6362         * src/roff/troff/div.cc (save_vertical_space): Add default argument
6363         to `sv' request.
6364         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
6365         argument to restore previous font family.
6366         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
6368         * doc/groff.texinfo: More fixes and additions (mainly for font
6369         manipulating commands).
6371         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
6372         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
6373         * tmac/Makefile.sub, NEWS: Updated.
6375 2001-03-23  Werner LEMBERG  <wl@gnu.org>
6377         Replaced mdoc implementation.  The new version is `state of the
6378         art', using almost all new features of groff 1.17 -- it won't run
6379         with older versions.
6381         * tmac/doc.tmac: Completely rewritten.
6382         * tmac/doc-common: Ditto.
6383         * tmac/doc-nroff: Ditto.
6384         * tmac/doc-ditroff: Ditto.
6385         * tmac/doc-syms: Ditto.
6386         * tmac/mdoc.local: New file.
6387         * tmac/groff_mdoc.samples.man: Replaced with ...
6388         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
6389         * tmac/strip.sed: Updated.
6390         * tmac/Makefile.sub: Updated.
6391         * INSTALL: Updated.
6393         * tmac/groff_man.man: Add `man.local' to the FILES section.
6395 2001-03-22  Werner LEMBERG  <wl@gnu.org>
6397         * doc/groff.texinfo: Added many @noindent.
6398         Replaced @end_Example -> @endExample.
6399         Added info whether registers are r/o.
6400         Many other additions and fixes.
6402 2001-03-21  Werner LEMBERG  <wl@gnu.org>
6404         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
6405         in makeinfo of texinfo 4.0) to be used in @Def* macros.
6406         Improved @Def* macros: Now the exact syntax of request, register,
6407         and escapes is shown.
6408         Added macros for parentheses and brackets to be used in @Def*.
6409         Many fixes and improvements of the documentation.
6411 2001-03-20  Werner LEMBERG  <wl@gnu.org>
6413         * doc/groff.texinfo: Added new index: `st' (for strings).
6414         Added macros @Defstr(x).
6415         Added macro @Example (adding @group).
6416         Other minor improvements.
6418 2001-03-19  Werner LEMBERG  <wl@gnu.org>
6420         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
6421         `rq' for requests.  `fn' is no longer used.
6422         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
6423         Removed @Deffn(x).
6425         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
6426         number with name of man page.
6428 2001-03-19  Larry Kollar  <kollar@alltel.net>
6430         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
6431         consistency.
6433 2001-03-19  Werner LEMBERG  <wl@gnu.org>
6435         * man/groff_font.man: Document `prepro', `postpro', and `print'.
6436         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
6437         * src/devices/grohtml/grohtml.man: Fixing typos.
6439 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
6441         * tmac/s.tmac (@IP): Pass `.ip' html tag.
6442         * tmac/groff_mwww.man: Remove .LINE macro
6443         * tmac/www.tmac (LINE): Add `.ti'.
6445         * src/devices/grohtml/post-html.cc (html_printer): New member
6446         `indent'.
6447         (html_printer::emit_raw): Use it.
6448         (html_printer::do_linelength): Ditto.
6449         (html_printer::do_pageoffset): Ditto.
6450         (html_printer::do_indentation): Ditto.
6451         (html_printer::do_tempindent): Ditto.
6452         (html_printer::do_break): Ditto.
6453         (html_printer::begin_page): Ditto.
6454         (html_printer::do_indentedparagraph): New function.
6455         (html_printer::troff_tag): Handle `.ip'.
6456         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
6457         Add `<td width=...>' handling.
6458         (html_text::do_table): Add parameter.
6459         (html_text::do_indent): Updated.
6460         * src/devices/groohtml/html-text.h: Updated.
6462 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
6464         Introduced simple html tables to implement indentation.
6466         * src/devices/grohtml/html.h (word, word_list): New structures.
6467         (simple_output): Use it.
6468         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
6469         (html_printer): Improve indentation handling.
6470         (html_printer::emit_raw): Set `in_table' element.  Handle
6471         indentation if set.
6472         (html_printer::write_header): Move conditional downwards.
6473         Don't allow whitespace in tags.
6474         (html_printer::do_linelength): Handle line length and indentation
6475         conditionally.
6476         (html_printer::do_pageoffset): Handle indentation conditionally.
6477         (html_printer::do_indentation): Ditto.
6478         (html_printer::do_tempindent): New function member.
6479         (html_printer::do_fill): Take care of indentation.
6480         (html_printer::do_flush): Finish table.
6481         (html_printer::do_links): Ditto.
6482         (html_printer::do_break): New function for handling `.br' and `.ti'.
6483         (html_printer::troff_tag): Use it.
6484         Handle `.ti'.
6485         (html_printer::flush_globs): Fix.
6486         (html_printer::flush_page): Finish table.
6487         (html_printer::html_printer): Fix error message.  Set up
6488         `linelength'.
6489         (html_printer::add_to_sbuf): Remove special handling of character
6490         code 255.
6491         (to_unicode): Remove `stop()'.
6492         (html_printer::write_title): Cleanup.
6493         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
6494         (html_printer::~html_printer): Flush text and end the line.
6495         Use `put_string()'.
6496         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
6497         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
6498         emission of tags.
6499         (html_text::start_tag): Disable newlines.
6500         (html_text::table_is_void): New function.
6501         (html_text::issue_table_begin): Ditto.
6502         (html_text::issue_table_end): Ditto.
6503         (html_text::push_para): Better table handling.
6504         (html_text::do_indent): New function.
6505         (html_text::do_table): Ditto.
6506         (html_text::done_table): Ditto.
6507         (html_text::do_tt): Handle PRE_TAG.
6508         (html_text::is_in_table): New function.
6509         (html_text::check_emit_text): Handle tables.
6510         (html_text::do_emittext): Use `nl()'.
6511         (html_text::do_para): Handle table.
6512         (html_text::remove_def): New function.
6513         * src/devices/grohtml/output.cc (word, word_list): Implement
6514         methods.
6515         (simple_output::end_line): Flush last word.
6516         (simple_output::simple_comment): Ditto.
6517         (simple_output::begin_comment): Recoded.
6518         (simple_output::end_comment): Ditto.
6519         (simple_output::comment_arg): Removed.
6520         (simple_output::check_newline): Improve test and flush last word.
6521         (simple_output::space_or_newline): Improved.
6522         (simple_output::write_newline): Replaced with...
6523         (simple_output::nl): This.
6524         (simple_output::put_raw_char): Flush last word.
6525         (simple_output::check_space): Removed.
6526         (simple_output::put_translated_string): Ditto.
6527         (simple_output::put_string): Simplified.
6528         (simple_output::put_number): Updated.
6529         (simple_output::put_float): Ditto.
6530         (simple_output::put_symbol): Removed.
6531         (simple_output::enable_newlines): Add `check_newline()'.
6532         (simple_output::flush_last_word): New function.
6534         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
6535         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
6537         * tmac/s.tmac (@PP, @IP): Add html conditional code.
6538         * tmac/an-old.tmac (TP): Ditto.
6540 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
6542         * mdate.sh: Make it POSIX compliant.
6544 2001-03-09  Werner LEMBERG  <wl@gnu.org>
6546         Added the `return' request to end a macro immediately.  It simply
6547         pops iterators from the input stack until a macro iterator is found.
6549         * src/roff/troff/input.cc (input_iterator::is_macro,
6550         macro_iterator::is_macro): New member.
6551         (input_return_boundary): New class to signal an immediate return
6552         to while_request().
6553         (input_stack::add_return_boundary, input_stack::is_return_boundary):
6554         New functions.
6555         (input_stack::clear): Use it.
6556         (input_stack::pop_macro): New function.
6557         (while_request): Use `is_return_boundary()'.
6558         (return_macro_request): New function.
6559         (init_input_requests): Use it.
6561         * src/roff/troff/TODO: Updated.
6562         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6564 2001-03-08  Werner LEMBERG  <wl@gnu.org>
6566         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
6567         cleanup.
6569 2001-03-07  Werner LEMBERG  <wl@gnu.org>
6571         Make `\B' more rigid.
6573         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
6574         parameter.
6575         (get_number_rigidly): New function.
6576         * src/roff/troff/input.cc (do_expr_test): Use it.
6577         * src/roff/troff/token.h: Updated.
6579         * src/roff/troff/request.h: Fix typo (init_html_request ->
6580         init_markup_request).
6582 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
6584         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
6585         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
6586         are now `.begin', `.end', `.image'.
6588         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
6589         (html_printer::add_to_sbuf): Changing type of `code' parameter.
6590         Use add_char_to_sbuf().
6591         (to_unicode): New function.
6592         (char_translate_to_html): Changing type of `ch' parameter.
6593         Use `to_unicode()'.
6594         (html_printer::~html_printer): Comment out doctype string.
6595         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
6596         instead of `.html-end'.
6597         (write_start_image): Use `.begin' and `.image' instead of
6598         `.html-begin' and `.html-image'.
6599         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
6600         (html_begin): Renamed to ...
6601         (begin): This.
6602         (html_end): Renamed to ...
6603         (end): This.
6604         (html_image): Renamed to ...
6605         (image): This.
6606         (init_html_requests): Renamed to ...
6607         (init_markup_requests): This.
6608         * tmac/www.tmac: Updated.
6610 2001-02-28  Bram  <bram@avontuur.org>
6612         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
6613         constructor.
6615 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
6617         * doc/meref.me: Fixing some typos.
6619 2001-02-16  Werner LEMBERG  <wl@gnu.org>
6621         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
6622         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
6623         * src/roff/troff/node.h: Updated.
6625 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
6627         * tmac/groff_tmac.man: Fix typo.
6629 2001-02-16  Werner LEMBERG  <wl@gnu.org>
6631         Fixing a bug which prevented proper end-of-sentence recognition
6632         between an `unformatted' box and the following text.  As a
6633         consequence, vertical line distances are no longer preserved in
6634         boxes after a call to `.unformat' -- because boxes aren't
6635         line-oriented (contrary to diversions), this doesn't make sense
6636         anyway.
6638         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
6639         value.
6640         (vertical_size_node::set_unformat_flag): New method.
6641         * src/roff/troff/node.hh: Updated.
6642         * src/roff/troff/input.cc (word_space_node::reread,
6643         hmotion_node::reread): Reset `unformat' flag after usage.
6644         (unformat_macro): Append only if `set_unformat_flag()' returns
6645         non-zero.
6646         * src/roff/troff/troff.man: Updated.
6648 2001-02-15  Werner LEMBERG  <wl@gnu.org>
6650         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
6651         documentation of `asciify' and `unformat' requests.
6653 2001-02-13  Werner LEMBERG  <wl@gnu.org>
6655         Redesigned the `unformat' request.  It is no longer connected with
6656         `asciify' but rather uses new `reread()' methods if the `unformat'
6657         flag is set.  Additionally, the handling of space characters after
6658         unformatting has been fixed so that they retain their width.
6660         * src/roff/troff/node.h (width_list): New structure to store
6661         original widths of spaces.
6662         (node): Added `unformat' member.
6663         Replaced `num_spaces' variable with `orig_width' list.
6664         * src/roff/troff/node.cc (*node::asciify,
6665         asciify_reverse_node_list): Removed `unformat_only' flag and related
6666         code.
6667         (word_space_node::asciify, word_space_node::word_space_node): Use
6668         `orig_width'.
6669         (word_space_node::~word_space_node): New destructor.
6670         (word_space_node::copy): Updated to handle `orig_width'.
6671         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
6672         (*node::merge_space): Update `orig_width' list if necessary.
6673         (*node::set_unformat_flag): New methods to set the `unformat' flag.
6674         * src/roff/troff/enc.cc (environment::space_newline): Use
6675         `width_list'.
6676         (environment::space): Added method to handle space width and
6677         sentence space width as parameters.  Use `width_list'.
6678         (environment::make_tab_node): Updated.
6679         * src/roff/troff/env.h: Updated.
6680         * src/roff/troff/input.cc (word_space_node::reread,
6681         unbreakable_space_node::reread, hmotion_node::reread): New methods
6682         to handle nodes specially if `unformat' flag is set.
6683         (do_asciify_macro): Renamed back to ...
6684         (asciify_macro): This.
6685         (unformat_macro): New implementation to simply set the `unformat'
6686         flag.
6688         * MORE.STUFF: Added more info about deroff.
6690 2001-02-08  Werner LEMBERG  <wl@gnu.org>
6692         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
6693         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
6694         and `add_self()' methods to avoid hyphenation.  For example, the
6695         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
6696         soft hyphen after `foo'.  Now the hyphen list is correctly
6697         `foo<ignore><ignore>bar'.
6699 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
6701         * tmac/groff_tmac.man: Fix `BIR' macro.
6703 2001-02-04  Werner LEMBERG  <wl@gnu.org>
6705         A new escape sequence `\:', inserting a zero-width break point.
6707         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
6708         * src/roff/troff/input.cc (get_copy, token::next, asciify):
6709         Implement it.
6710         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
6711         method.
6712         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
6713         and `asciify()' methods.
6714         * src/roff/troff/node.cc (space_node::space_node): Updated.
6715         (space_node::asciify): Handle `was_escape_colon'.
6716         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6718         Handle `\~' similar to other comparable requests.
6720         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
6721         label.
6722         (token::next): Move creation of an unbreakable_space_node to...
6723         (token::add_to_node_list): Here.
6725         Fix a bug which sometimes prevented hyphenation of words connected
6726         with `\~' or `\ ' (and other escape sequences handled as
6727         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
6728         (after a call to the `unformat' request).
6730         * src/roff/troff/env.h (environment::possibly_break_line,
6731         environment::hyphenate_line): Introducing `start_here' parameter.
6732         * src/roff/troff/env.cc (environment::space_newline,
6733         environment::space): Use it.
6734         (environment::possibly_break_line, environment::hyphenate_line):
6735         Implement it.
6736         * src/roff/troff/input.cc (process_input_stack): Use it.
6737         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
6738         space_char_hmotion_node, overstrike_node): Add
6739         `get_hyphenation_type()' method.
6740         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
6741         if `unformat_only' is active.
6743 2001-01-30  Werner LEMBERG  <wl@gnu.org>
6745         Implemented new read-only number register `.linetabs' which
6746         returns 1 if in line-tabs mode, 0 otherwise.
6748         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
6749         * src/roff/troff/env.cc (get_line_tabs): New function.
6750         (init_env_requests): Use it.
6751         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6753         * VERSION, REVISION: Changing to 1.17.0.
6755 2001-01-28  Werner LEMBERG  <wl@gnu.org>
6757         Fixed a bug which prevented hyphenation of words which are finished
6758         with `\)'.
6760         * src/roff/troff/token.h (token): Add enum type
6761         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
6762         * src/roff/troff/input.cc (token::next, token::description,
6763         get_line_arg, token::add_to_node_list, token::process): Use it.
6765 2001-01-27  Werner LEMBERG  <wl@gnu.org>
6767         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
6768         * src/roff/troff/div.cc (do_divert): Use it.
6770         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
6772 2001-01-25  Werner LEMBERG  <wl@gnu.org>
6774         Adding the `linetabs' request.  If set, tab distances are not
6775         computed relative to the input line but relative to the output line.
6777         * src/roff/troff/env.h (environment): New member `line_tabs'.
6778         * src/roff/troff/env.cc (line_tabs_request): Implement request.
6779         (environment::environment, environment::copy): Updated.
6780         (environment::distance_to_next_tab): Use `line_tabs'.
6781         (init_env_requests): Register request.
6782         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
6783         fixes.
6785 2001-01-24  Werner LEMBERG  <wl@gnu.org>
6787         Introducing a new read-only register `.int' which is set to a
6788         positive value if the last output line is interrupted (i.e., if it
6789         contains `\c').
6791         * src/roff/troff/env.cc (init_env_requests): Add it.
6792         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6794 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
6796         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
6797         * src/preproc/html/pre-html.cc (findPrefix): New function which
6798         generates the troff executable name via the system prefix.
6799         * src/preproc/eqn/main.cc: Modified warning message.
6801 2001-01-23  Werner LEMBERG  <wl@gnu.org>
6803         troff's `box' and `boxa' requests didn't preserve temporary
6804         indentation.
6806         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
6807         `saved_target_text_length' members.
6808         * src/roff/troff/div.cc (do_divert): Use them.
6810         Tabs (but not yet leaders and fields) are now handled correctly by
6811         `asciify' request.
6813         * node.h (hmotion_node): Add field `was_tab'.
6814         * env.cc (environment::make_tab_node): Set it.
6815         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
6817         Added new request `unformat' which will, contrary to `asciify',
6818         preserve font information after unformatting (i.e., only nodes
6819         dealing with horizontal space are converted back to input
6820         characters).
6822         * input.cc (asciify_macro): Renamed to ...
6823         (do_asciify_macro): this, having a new parameter `unformat_only'.
6824         (asciify_macro, unformat_macro): New; using do_asciify_macro.
6825         (init_input_requests): Added `unformat'.
6826         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
6827         parameter to control asciification process.
6828         * node.h (*_node::asciify): Ditto.
6829         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6831 2001-01-20  Werner LEMBERG  <wl@gnu.org>
6833         * doc/groff.texinfo: Minor improvement of `.in' documentation.
6835 2001-01-18  Werner LEMBERG  <wl@gnu.org>
6837         * tmac/ps.tmac: Remove call of psold.tmac.
6838         * tmac/psold.tmac: Comment updated.
6839         * tmac/psnew.tmac: Removed since no longer needed.
6840         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
6842         * font/devutf8/R.proto: Adding `shc' glyph.
6843         * font/devutf8/NOTES: Updated.
6845         * test-groff: Updated.
6847 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
6849         First cut of the new html device driver.  Changes to pre-html and
6850         the new grohtml are too numerous to be documented here.
6852         Stuff related to `html' has been renamed to `html-old' and `html2'
6853         stuff has been renamed to `html' (including directories).  The new
6854         html device driver is therefore invoked as `-Thtml'.
6856         Added new `\O' escape to suppress output (needed by html driver).
6858         Added functions and code to pass info about input-level commands
6859         (`.in', `.fl', etc.) to html driver.
6861         Three new functions (.html-begin, .html-end, and .html-image) for
6862         better html handling: `html-begin' will execute the remaining line
6863         if at the outermost nesting level, increasing an internal counter.
6864         `html-end' does the same but decreases the internal counter.
6865         `html_image' puts its arguments into a special node (suppress_node)
6866         to define an image region.
6868         The `output' request has been removed.
6870         * tmac/html-tags.tmac: Removed.
6871         * tmac/arkup.tmac: Updated and renamed to ...
6872         * tmac/www.tmac: New file.
6873         * tmac/markup.tmac Updated and renamed to ...
6874         * tmac/mwww.tmac: New file.
6875         * tmac/Makefile.sub: Updated.
6876         * tmac/an-old.tmac: Updated.
6877         * tmac/eqnrc: Updated.
6878         * tmac/groff_man.man
6879         * tmac/groff_markup.man: Updated and renamed to ...
6880         * tmac/groff_mwww.man: New file.
6881         * tmac/groff_tmac.man: Updated.
6882         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
6883         * tmac/html.tmac: Updated and renamed from html2.tmac.
6884         * tmac/pspic.tmac: Updated html support.
6885         * tmac/s.tmac: Added html output support.
6886         * tmac/troffrc, tmac/troffrc-end: Updated.
6888         * Makefile.in, doc/Makefile: Updated.
6889         * doc/groff.texinfo: Added info about new `\O' escape.
6890         * doc/homepage.ms: Use `MAILTO' macro.
6892         * font/devhtml/DESC.proto: Add `C' font.
6893         * font/devhtml/Makefile.sub: Updated.
6894         * font/devhtml/R.proto: Minor fixes.
6895         * font/devhtml-old/Makefile.sub: Updated.
6897         * src/devices/grohtml-old/Makefile.sub: Updated.
6899         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
6900         method.
6901         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
6902         graphic_start): Add `inline' parameter.  Update.
6903         (html_end_suppress, graphic_end): Update.
6905         * src/include/html-strings.h: New file.
6906         * src/include/htmlindicate.h: Comments updated.
6907         * src/include/printer.h: Updated.
6909         * src/preproc/eqn/main.cc (do_file, main): Updated.
6910         * src/preproc/pic/troff.cc (troff_output::start_picture,
6911         troff_output::finish_picture): Updated.
6912         * src/preproc/tbl/main.cc (process_input_file): Updated.
6914         * src/roff/groff/groff.cc (main): Updated.
6915         Pass device arguments to predrivers also.
6916         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
6917         * src/roff/troff/env.h (environment): Updated.
6918         New elements `need_eol' and `ignore_next_eol' (for html output).
6919         * src/roff/troff/env.cc (environment::environment): Add initializers
6920         for `need_eol' and `ignore_next_eol'.
6921         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
6922         functions.
6923         (point_size, fill, no_fill, center, right_justify, line_length,
6924         indent, temporary_indent, break_request, handle_tab): Use
6925         `add_html_tag()'.
6926         (set_tabs): Use `add_html_tag_tabs()'.
6927         (environment::add_html_tag): Updated.
6928         (environment::do_break): Updated.
6929         * src/roff/troff/div.cc (space_request, flush_output): Use
6930         `environment::add_html_tag()'.
6931         * src/roff/troff/input.cc: Updated.
6932         New variable `html_level' to indicate nested `html-begin' requests.
6933         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
6934         (non_interpreted_char_node, token_node, non_interpreted_node): Add
6935         `force_tprint()' method.
6936         (token::next): Handle `\O'.
6937         (do_suppress): Implement it.
6938         (html_begin, html_end, html_image): New functions.
6939         (init_output_requests): Renamed to ...
6940         (init_html_requests): this.
6941         (main): Use it.
6942         (macro::append_str, macro::append_unsigned, macro::append_int): New
6943         methods.
6944         New variable `output_low_mark_miny' to limit minimal value of y.
6945         (reset_output_registers): Use it.
6946         (output_request): Removed.
6947         (get_output_registers): New function.
6948         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
6949         (*_node): Added `force_tprint()' if necessary.
6950         (special_node): New elements `tf' and `get_tfont()'.
6951         (suppress_node): New class.
6952         * src/roff/troff/node.cc:
6953         New global variables `image_no' and `suppress_start_page'.
6954         (real_output_file): New method `is_on()'.
6955         (troff_output_file): New method `start_special(tfont)'.
6956         (troff_output_file::really_print_line): Use `tprint' conditionally.
6957         (real_output_file::print_line): Updated.
6958         (real_output_file::on): Updated.
6959         (*_node): Added `force_tprint()'.
6960         (special_node::special_node): Initializer updated.
6961         (special_node::same, special_node::copy, special_node::tprint_start):
6962         Updated.
6963         (get_reg_int, get_reg_str): New functions.
6964         (suppress_node::*): New methods.
6965         New global variables last_position, last_image_filename;
6966         (min): New inline function.
6967         * src/roff/troff/reg.h, src/roff/troff/request.h,
6968         src/roff/troff/troff.h: Updated.
6970 2001-01-13  Werner LEMBERG  <wl@gnu.org>
6972         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
6973         documentation of `asciify' request.
6975 2001-01-12  Werner LEMBERG  <wl@gnu.org>
6977         * src/roff/troff/input.cc: Move definition of special characters
6978         like `ESCAPE_TILDE' to ...
6979         * src/roff/troff/input.h: New file.
6980         * src/roff/troff/Makefile.sub (HDRS): Add it.
6982         Extending the .asciify request to `unformat' space characters also.
6984         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
6985         to count input space characters.
6986         Update constructors to take care of it.
6987         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
6988         `ESCAPE_SPACE' instead of normal space.
6989         (word_space_node::asciify): New method.
6990         (unbreakable_space_node::asciify): New method.
6991         (word_space_node::merge_space): New method.
6992         * src/roff/troff/env.cc (environment::space_newline,
6993         environment::space): Add code to initialize `num_spaces' (using the
6994         constructor of `word_space_node').
6995         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6996         Document it.
6998 2001-01-09  Werner LEMBERG  <wl@gnu.org>
7000         * man/groff_char.man: Use table header traps only conditionally.
7002 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
7004         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
7006 2001-01-08  Werner LEMBERG  <wl@gnu.org>
7008         Introducing the `box' and `boxa' requests which are similar to
7009         `di' resp. `da' but omitting a partially filled line (which is
7010         restored after ending the diversion).
7012         * src/roff/troff/div.h (diversion): Add elements to save partially
7013         filled line.
7014         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
7015         partially filled line.
7016         (divert, divert_append): Updated.
7017         (box, box_append): New functions.
7018         (init_div_requests): Use them.
7019         * src/roff/troff/env.h (environment): do_divert() is now a friend.
7020         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7022         * doc/groff.texinfo: Fix documentation of `lf' request.
7024 2000-12-25  Werner LEMBERG  <wl@gnu.org>
7026         * src/roff/troff/troff.man, NEWS: Document `writem' request.
7028 2000-12-21  Werner LEMBERG  <wl@gnu.org>
7030         Ignore `ss' request if in compatibility mode.
7032         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
7033         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
7034         * src/roff/troff/env.cc (space_size): Use it.
7036         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
7037         `ss' request in nroff mode.
7039         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
7040         changes.
7042 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
7044         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
7046 2000-12-13  Werner LEMBERG  <wl@gnu.org>
7048         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
7049         * src/preproc/eqn/neqn.man: Small fixes and additions.
7051 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
7053         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
7054         Fixing typo.
7056         * src/preproc/eqn/neqn.man: New file.
7058         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
7059         negative' warning.
7061         * tmac/e.tmac: Add `T&' macro.
7062         Fix `indent cannot be negative' warning.
7063         * tmac/s.tmac: Fix `indent cannot be negative' warning.
7065 2000-12-07  Werner LEMBERG  <wl@gnu.org>
7067         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
7069 2000-12-06  Werner LEMBERG  <wl@gnu.org>
7071         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
7072         `alloca' symbol .
7074         * MORE.STUFF: Added info about deroff for djgpp.
7076         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
7077         documentation of -rcR switch.
7079 2000-12-03  Werner LEMBERG  <wl@gnu.org>
7081         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
7082         if -rcR=1 (which is now the default in nroff mode), a single, very
7083         long page is created instead of multiple pages: All `ne' and `wh'
7084         requests are put into conditionals; a new macro `an-end' is added to
7085         be called with `em'.
7087         Some other minor cleanups.
7089         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
7091 2000-12-02  Werner LEMBERG  <wl@gnu.org>
7093         Fixing a bug which prevented hyphenation in words followed
7094         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
7096         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
7097         Adding possibly_break_line().
7098         * src/roff/troff/env.h (environment): Make possibly_break_line()
7099         public.
7101         Make `\~' usable in .tr request.
7103         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
7104         (token): Add stretchable_space().
7105         * src/roff/troff/input.cc (token::next, token::delimiter,
7106         token::description, process_input_stack, do_translate,
7107         add_to_node_list, token::process): Use it.
7108         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
7109         for adjusting the space.
7110         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
7111         for stretchable space.
7112         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
7113         (make_node): Add code for stretchable space.
7114         * src/roff/troff/env.cc (environment::add_char): Use it.
7115         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
7116         (get_copy, token::next, transparent_translate, asciify): Use it.
7118         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
7119         doc/groff.texinfo: Updated.
7120         * man/groff.man: Small reorderings.
7122 2000-11-23  Werner LEMBERG  <wl@gnu.org>
7124         * NEWS: Fixes.
7125         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
7126         option.
7127         * src/roff/troff/input.cc (main): Add `config_macro_path' and
7128         `safer_macro_path' to -M option.
7129         * src/roff/troff/troff.man: Fixes.
7131 2000-11-22  Werner LEMBERG  <wl@gnu.org>
7133         Use safer path (except for config files) if -U isn't specified.  Add
7134         a special macro path (without home and current directory) for config
7135         files.  Add home directory to unsafe path for consistency.  Don't
7136         include the home directory in the font path.
7138         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
7139         `macro_path'.
7140         * src/include/macropath.h: Add `config_macrp_path'.
7141         * src/libs/libgroff/fontfile.cc: Fix font path.
7142         * src/roff/troff/input.cc (process_startup_file): Use
7143         `config_macro_path'.
7144         (main): Select unsafe path if -U is given.
7146         * src/preproc/eqn/main.cc (main): Fixing search path for
7147         configuration file.
7148         * src/preproc/eqn/eqn.man: Updated.
7150         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
7151         Updated.
7153         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
7154         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
7155         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7156         src/devices/grotty/grotty.man: Updated.
7158         * Makefile.in: Fix comments.
7160 2000-11-17  Werner LEMBERG  <wl@gnu.org>
7162         * tmac/safer.tmac: Empty file added (again) for compatibility
7163         reasons.
7164         * tmac/Makefile.sub: Updated.
7166 2000-11-16  Werner LEMBERG  <wl@gnu.org>
7168         * src/devices/grodvi/dvi.cc (main),
7169         src/devices/grohtml2/post-html.cc (main),
7170         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7171         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7172         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7173         (main), src/preproc/html2/pre-html.cc (main),
7174         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7175         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7176         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7177         (main), src/utils/hpftodit/hpftodit.cc (main),
7178         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
7179         (main), src/utils/lookbib/lookbib.cc (main),
7180         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
7181         (main): Use stdout for -v.
7182         * src/roff/groff/groff.cc (run_commands),
7183         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
7184         to make direct printing to stdout possible.
7185         * src/roff/groff/pipeline.h: Updated.
7187         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
7188         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
7189         * src/utils/afmtodit/afmtodit.man: Updated.
7191         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
7192         (version): New function.
7193         (usage): Updated.
7194         * src/utils/addftinfo/addftinfo.man: Updated.
7196         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
7197         Fixing copyright dates.
7199         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
7200         replacing it.
7202         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
7203         version_string.
7205         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
7207 2000-11-15  Werner LEMBERG  <wl@gnu.org>
7209         In all programs, make -v return immediately with exit status 0 to
7210         be compliant with the GNU standard.
7212         * src/devices/grodvi/dvi.cc (main),
7213         src/devices/grohtml2/post-html.cc (main),
7214         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7215         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7216         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7217         (main), src/preproc/html2/pre-html.cc (main),
7218         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7219         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7220         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7221         (main): Implement it.
7222         * NEWS: Updated.
7224         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
7225         and postprocessors to the -v option.
7227         * src/roff/grog/grog.pl: Implement -v.
7228         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
7229         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7231         * src/roff/nroff/nroff.sh: Implement -v.
7232         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
7233         * src/roff/nroff/nroff.man: Updated.
7234         
7235         * src/preproc/eqn/main.cc (main): Fix comment typo.
7237         * MORE.STUFF: Added info about djgpp port of grap.
7239 2000-11-14  Werner LEMBERG  <wl@gnu.org>
7241         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
7242         mode (or rather, implemented non-compatibility mode).
7243         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7245         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
7246         replacing it -- we don't find gxditview otherwise.
7247         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
7249         * src/preproc/pic/depend: Removed.  Unnecessary.
7251         Implemented dummy keyword `solid' in pic for compatibility with
7252         AT&T pic.
7254         * lex.cc (lookup_keyword): Added `solid'.
7255         * pic.y: Added SOLID with dummy rule.
7256         * pic.cc, pic_tab.h: Regenerated.
7257         * doc/pic.ms: Updated.
7259 2000-11-13  Werner LEMBERG  <wl@gnu.org>
7261         For security reasons, don't use the current directory but the home
7262         directory while searching and scanning troffrc and troffrc-end.
7263         Similarly, replace the current directory with the home directory
7264         in the font path.
7266         * Makefile.in (fontpath, tmacpath): Remove current directory.
7268         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
7269         two parameters `add_home' and `add_current'.
7270         (search_path::~search_path, search_path::command_line_dir,
7271         search_path::open_file): Remove tests for `dirs' being zero.
7272         * src/include/searchpath.h: Adjust.
7273         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
7274         `safer_macro_path'.
7275         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
7277         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
7278         * src/roff/troff/input.cc: Use `mac_path', initialized with
7279         `macro_path'.
7280         (process_startup_file): Set `mac_path' to `safer_macro_path'.
7281         * src/roff/troff/env.cc: Use `mac_path'.
7283         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
7285         * NEWS, man/roff.man, src/roff/troff/troff.man,
7286         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
7287         Updated.
7289 2000-11-12  Werner LEMBERG  <wl@gnu.org>
7291         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
7293         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
7294         * configure.in: Fix typo in comment.
7295         * configure: Regenerated.
7297         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
7298         copyright dates.
7300 2000-11-08  Werner LEMBERG  <wl@gnu.org>
7302         Add system tmac directory (/usr/local/lib/groff/site-tmac).
7304         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
7305         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
7306         $(systemtmacdir).
7307         Use @libdir@.
7308         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
7309         * tmac/Makefile.sub (install_data): Create
7310         $(systemtmacdir) and $(localtmacdir).
7311         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
7312         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
7313         NEWS, doc/groff.texinfo: Updated and minor fixes.
7315         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
7316         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
7317         $(systemtmacdir) since the wrapper files are platform-dependent.
7319 2000-11-01  Werner LEMBERG  <wl@gnu.org>
7321         * doc/groff.texinfo: Fix typo.
7323 2000-10-26  Werner LEMBERG  <wl@gnu.org>
7325         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
7326           tmac.doc.old -> doc-old.tmac
7327           tmac.an.old  -> an-old.tmac
7329         * tmac/tmac.*: Moved to ...
7330         * tmac/*.tmac: this.
7331         * tmac/man.local: Fix comment.
7332         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
7333         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
7334         Added some `FILES' sections.  More use of @...@ directives.  Other
7335         minor updates.
7336         * arch/djgpp/README, font/devutf8/NOTES: Updated.
7337         * doc/homepage.ms, doc/groff.texinfo: Updated.
7338         * man/groff.man, man/roff.man: Updated.
7339         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
7340         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7341         src/devices/grotty/grotty.man: Updated.
7342         * src/preproc/pic/pic.man: Updated.
7343         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
7344         instead of -mdoc.old.
7345         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
7346         * src/roff/nroff/nroff.man: Updated.
7347         * NEWS: Updated.
7349         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
7351         * tmac/mm.diff: Removed -- it has no use now since the mm package
7352         is part of groff.
7354         * tmac/*: Removed trailing spaces.
7356         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
7357         the tmac subdirectory also).
7359         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
7360         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
7361         stuff since it is no longer needed.
7363         * README, PROBLEMS: Updated.
7365 2000-10-25  Werner LEMBERG  <wl@gnu.org>
7367         Invert current behaviour: Search first FOOBAR.tmac, then
7368         tmac.FOOBAR.
7370         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
7371         (open_mac_file, macro_source): Implement it.
7372         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
7373         doc/groff.texinfo, NEWS: Document it.
7375         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
7376         Small documentation improvements.
7378         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
7379         subdirectory also).
7381         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
7383 2000-10-24  Werner LEMBERG  <wl@gnu.org>
7385         Add local tmac directory (groff/site-tmac).
7387         * Makefile.in: Add $(localtmacdir).
7388         (uninstall_dirs): Add $(localtmacdir).
7389         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
7390         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
7391         in $(localtmacdir).  Create $(localtmacdir).
7392         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
7393         Updated and minor fixes.
7395         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
7397         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
7399 2000-10-23  Werner LEMBERG  <wl@gnu.org>
7401         Move hyphen.us to tmac directory.
7403         * src/roff/troff/hyphen.us: Removed.
7404         * src/tmac/hyphen.us: Added.
7405         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
7407         Change installation structure for data files from .../groff/... to
7408         .../groff/<version><revision>/... to be conform with other GNU
7409         programs.
7411         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
7412         doc/Makefile: Implement it.
7413         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
7414         * configure: Updated.
7415         * arch/djgpp/README, font/devutf8/NOTES: Use it.
7416         * NEWS: Document it.
7417         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
7418         @MACRODIR@ instead of hard-coded directories.
7420 2000-10-22  Werner LEMBERG  <wl@gnu.org>
7422         Implement $GROFF_BIN_PATH environment variable (which defaults to
7423         $bindir) used for child programs of groff and similar wrappers.
7425         * gendefs.sh: Improve documentation.
7426         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
7427         src/preproc/eqn/Makefile.sub (neqn),
7428         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
7429         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
7430         $GROFF_BIN_PATH.
7431         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
7432         $GROFF_PATH__ (the latter for communication with troff).
7433         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
7434         set.
7435         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
7436         doc/groff.texinfo: Document it.
7438         * doc/groff.texinfo: Improve documentation of troff's -a option.
7440 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
7442         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
7443         non-intrusive eol marker.
7444         (troff_output_file::determine_line_limits): New function.
7445         (troff_output_file::draw): Use it.
7446         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
7447         output_pending_lines() instead of output_line().
7448         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
7449         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
7450         createImage): Small fixes.
7451         
7452 2000-10-14  Werner LEMBERG  <wl@gnu.org>
7454         Replace tmac.safer with a real secure solution.
7456         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
7457         system_request, pipe_output): Disable requests if in safer mode.
7458         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
7459         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
7460         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
7461         doc/groff.texinfo, src/roff/groff/groff.man,
7462         src/roff/troff/troff.man, arch/djgpp/README: Updated.
7464         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
7465         (resource_manager::output_prolog): Replace setenv() with putenv().
7467 2000-10-09  Werner LEMBERG  <wl@gnu.org>
7469         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
7470         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
7471         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
7472         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
7473         compilation errors with some compilers.  It seems that this code
7474         is no longer necessary -- if yes, it is easy to add some #ifdef's
7475         for that particular old-fashioned compiler.
7477         * MORE.STUFF: Added info about Meta-tbl.
7479         * doc/groff.texinfo: Added more info about `.if "..."..."'.
7481 2000-10-07  Werner LEMBERG  <wl@gnu.org>
7483         Adding a new escape sequence \B'...': If the string between
7484         the delimiters is a valid numeric expression, return the character
7485         `1', and `0' otherwise.  This is an analogon to \A.
7487         * src/roff/troff/input.cc (do_expr_test): Implement it.
7488         (token::next): Use it.
7489         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
7491         * tmac/tmac.trace: Made independent from escape character.
7493 2000-10-06  Werner LEMBERG  <wl@gnu.org>
7495         Adding a new request .dei: define indirect.  The first and second
7496         parameter of .dei are taken from string registers instead directly;
7497         this very special request is needed to make tmac.trace independent
7498         from the escape character (which might even be disabled).
7500         * src/roff/troff/input.cc (do_define_macro): Implement it.
7501         (define_macro_indirect): New function.
7502         (init_input_requests): Use it.
7504         Adding two requests .ecs and .ecr: Save and restore the escape
7505         character.  These two requests are needed to make tmac.trace
7506         independent from the escape character (which might even be
7507         disabled).
7509         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
7510         Implement it.
7511         (init_input_requests): Use it.
7513         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7515 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
7517         Adding a new option -P and new environment variable GROPS_PROLOGUE
7518         to grops, selecting a different prologue file (minor modifications
7519         by WL).
7521         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
7522         src/devices/grops/ps.cc (main): Implement it.
7523         * src/devices/grops/grops.man, NEWS: Document it.
7525 2000-09-22  Werner LEMBERG  <wl@gnu.org>
7527         * INSTALL: Add info about selecting paper format.
7529 2000-09-21  Werner LEMBERG  <wl@gnu.org>
7531         * src/roff/troff/input.cc (main): Fixing compiler warning.
7532         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
7533         strings.h from the former to the latter.
7534         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
7535         stuff from the former to the latter.
7537 2000-09-11  Werner LEMBERG  <wl@gnu.org>
7539         Implementing two new requests .tm1 and .tmc: The former is similar
7540         to .tm but can output leading spaces; its syntax is similar to
7541         defining a string, i.e., a `"' can be used to mark the beginning of
7542         the string to be written to stderr: `.tm1 " test'.  The latter is
7543         similar to .tm1 but doesn't write out a final newline character.
7545         * src/roff/troff/input.cc (terminal1, terminal_continue,
7546         do_terminal): New functions.
7547         (init_input_requests): Use them.
7548         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7550 2000-09-09  Werner LEMBERG  <wl@gnu.org>
7552         * tmac/groff_mdoc.samples.man: Small fixes.
7554 2000-09-08  Werner LEMBERG  <wl@gnu.org>
7556         * tmac/groff_mdoc.man: Fixing typo.
7558 2000-09-02  Werner LEMBERG  <wl@gnu.org>
7560         Implementing a .nop request which does nothing.
7562         * src/roff/troff/input.cc (nop_request): New function.
7563         (init_input_requests): Use it.
7564         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7566 2000-09-01  Werner LEMBERG  <wl@gnu.org>
7568         * doc/groff.texinfo: Added some comments.
7570 2000-08-30  Werner LEMBERG  <wl@gnu.org>
7572         * src/roff/troff/TODO: Updated.
7574 2000-08-25  Werner LEMBERG  <wl@gnu.org>
7576         * doc/groff.texinfo: Fix comment how to compile the DVI file.
7578 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
7580         * font/devps/generate/Makefile (SHELL): Define explicitly to
7581         "/bin/sh", for non-Unix platforms.
7582         (extraclean): Use a more portable "" quoting instead of a
7583         backslash (which doesn't work on DOS/Windows).
7584         
7585         * font/devlj4/generate/Makefile (extraclean): Ditto.
7587         * font/devdvi/generate/Makefile (extraclean): Ditto.
7589 2000-08-25  Werner LEMBERG  <wl@gnu.org>
7591         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
7592         src/roff/troff/troff.man: Document Eli's latest changes.
7594 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
7596         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
7597         macro file names of the form NAME.tmac as well as tmac.NAME.
7599 2000-08-25  Werner LEMBERG  <wl@gnu.org>
7601         * src/include/posix.h: Remove definition of FILENAME_MAX.
7603         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
7604         `sys_fatal' and `stop' function().
7606         * test-groff: Updated.
7608 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
7610         Added the new troff command .output <arg> to suppress output (while
7611         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
7612         registers (for passing the output dimensions to the output device).
7614         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
7615         parameter.
7616         * src/roff/troff/node.h, src/roff/troff/node.cc
7617         (troff_output_file::really_print_line,
7618         ascii_output_file::really_print_line,
7619         supress_output_file::really_print_line): Use `width' parameter.
7620         (troff_output_file::really_on, troff_output_file::really_off,
7621         output_file::on, output_file::off, real_output_file::on,
7622         real_output_file::off, real_output_file::really_on,
7623         real_output_file::really_off): New functions.
7624         (real_output_file:public output_file): New variable `output_on'.
7625         (real_output_file::begin_page, real_output_file::copy_file,
7626         real_output_file::transparent_char, real_output_file::print_line):
7627         Use it.
7628         (real_output_file::print_line): Use check_output_limits.
7629         * src/roff/troff/reg.h, src/roff/troff/request.h,
7630         src/roff/troff/input.cc (assign_registers): New function to remove
7631         two `goto's.
7632         (do_ps_file): Use it.
7633         (check_output_limits, reset_output_registers, output_request,
7634         init_output_requests): New functions.
7635         (init_input_requests): Updated.
7637         Added new grohtml2 device and html2 preprocessor (coding
7638         not yet finished) which will eventually replace grohtml.
7640         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
7641         Updated.
7642         * src/include/htmlindicate.h, src/include/htmlindicate
7643         (html_begin_suppress, html_end_suppress): New functions.
7644         * src/preproc/tbl/main.cc: Use it.
7645         * src/roff/groff/groff.cc: Add support for html2 device (which will
7646         automatically invoke the html2 preprocessor).
7647         * src/roff/troff/input.cc (is_html2): New variable.
7648         * src/roff/troff/troff.h, src/roff/troff/env.h,
7649         src/roff/troff/env.cc (environment::add_html_tag): New function
7650         (uses `is_html2').
7651         (environment::do_break): Use it.
7652         * font/devhtml2/*: New files.
7653         * src/devices/grohtml2: New device.
7654         * src/preproc/html2: New preprocessor.
7655         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
7657 2000-08-23  Werner LEMBERG  <wl@gnu.org>
7659         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
7661 2000-08-22  Werner LEMBERG  <wl@gnu.org>
7663         * src/include/lib.h: Provide a fix for IRIX to not include
7664         groff-getopt.h.
7666 2000-08-18  Werner LEMBERG  <wl@gnu.org>
7668         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
7669         since some non-GNU sed programs can't handle null regexps.
7670         * configure, src/preproc/eqn/Makefile.sub,
7671         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
7673         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
7674         bug (string.h and strings.h are both needed according to latest
7675         POSIX standard).
7677         * MORE.STUFF: Added info about unroff and troffcvt.
7679 2000-08-08  Werner LEMBERG  <wl@gnu.org>
7681         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
7682         used before -ms.
7684         * tmac/tmac.man.old: Remove unused number register.
7686         * tmac.doc: Minor documentation fix.
7688 2000-08-07  Paul Eggert  <eggert@twinsun.com>
7690         * src/roff/groff/pipeline.c (is_system_shell):
7691         Fix typo: "monocased_shell" no longer exists.
7693 2000-08-07  Paul Eggert  <eggert@twinsun.com>
7695         Remove FILENAME_MAX limits.
7697         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
7698         that the argument length is less than FILENAME_MAX.
7699         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
7700         Use struct hack to allocate and free file name.
7701         (struct xtmpfile_list): fname is now part of the structure,
7702         not a pointer to another string.
7704 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
7706         * src/include/posix.h: Add a default value for FILENAME_MAX.
7708 2000-08-06  Paul Eggert  <eggert@twinsun.com>
7710         Add support for new BSD-style man pages (with ".Dd" instead of
7711         ".TH"), so that "groff -man" understands both styles, even
7712         when running "groff -man" on a host whose system man page
7713         macros don't support ".Dd".
7715         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
7716         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
7717         in case the system man macros don't define Dd or TH.
7719         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
7720         * tmac/tmac.an: New one-line file.
7721         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
7723 2000-08-06  Werner LEMBERG  <wl@gnu.org>
7725         * src/roff/troff/troff.man: Fixing typos.
7727 Version 1.16.1 released
7728 =======================
7730 2000-07-31  Werner LEMBERG  <wl@gnu.org>
7732         Preparing release 1.16.1.
7734         * REVISION: Revision number set to 1.
7735         * MORE.STUFF: Added info about port to DOS.
7736         * NEWS, win32-diffs: Updated.
7738         * src/include/nonposix.h: Remove first line -- this file is used
7739         in C also.
7741         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
7742         link to it.
7744 2000-07-30  Werner LEMBERG  <wl@gnu.org>
7746         * doc/texinfo.tex: Update to latest version.
7748 2000-06-28  Paul Eggert  <eggert@twinsun.com>
7750         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
7751         commands that fail.  Don't assume that "export a=b" is valid shell
7752         syntax.  This is needed for Solaris 2.5.1.
7754         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
7755         comment about missing Solaris headers.
7757         * PROBLEMS: Add section about problems with Sun Make and VPATH.
7759 2000-06-25  Werner LEMBERG  <wl@gnu.org>
7761         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
7762         SET_BINARY().
7764         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
7766         * win32-diffs: Updated.
7767         * README.WIN32: Added CRs to make all Windows editors happy.
7769         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
7770         src/roff/groff/pipeline.c).
7772 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
7774         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
7775         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
7777 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
7779         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
7780         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
7781         are binary files.
7782         (main): Support non-Posix systems with several different styles of
7783         slash characters in file names.
7785         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
7786         (main) [SET_BINARY]: Switch stdin into binary mode.
7788         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
7789         (main): Support file names with several possible slash-type
7790         characters, as given by DIR_SEPS[] in nonposix.h.
7791         (main) [__MSDOS__]: If renaming the temporary index file fails
7792         because it has more than one dot in its trunk, replace the dot
7793         with an underscore and try again.
7794         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
7795         Newline.
7796         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
7798         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
7799         (File::File): Open the input file in binary mode.  Strip CR
7800         characters from each CR-LF pair.
7801         (xbasename): Support file names with several possible slash-type
7802         characters, as given by DIR_SEPS[] in nonposix.h.
7804         * src/include/Makefile.sub (HDRS): Add nonposix.h.
7806         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
7807         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
7808         [!_POSIX_VERSION]: Define for traditional Unix systems.
7809         (real_output_file::real_output_file): Remove the MSVC-specific
7810         call to popen, use instead POPEN_WT, appropriately defined on
7811         nonposix.h.  #include nonposix.h.
7812         (real_output_file::~real_output_file): Remove the MSVC-specific
7813         call to pclose, a suitable macro is now defined on nonposix.h.
7814         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
7815         and WEXITSTATUS instead of assuming traditional Unix
7816         interpretation of the status returned by pclose.
7818         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
7819         call to popen, use POPEN_RT instead (appropriately defined on
7820         nonposix.h).  #include nonposix.h.
7821         (ps_bbox_request): Open the PostScript file in binary mode.
7822         Close the file after processing it.
7823         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
7824         nonposix.h.
7826         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
7827         A version of run_pipeline that doesn't use `fork'.
7828         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
7829         (system_shell_name, system_shell_dash_c)
7830         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
7831         the ugliness of testing DOS/Windows file names for equality, and
7832         support both stock shells and ports of Unix shells.
7834         * src/roff/groff/groff.cc: #include nonposix.h.
7835         (BSHELL): Definition moved to nonposix.h.
7836         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
7837         instead of a literal "-c".
7838         (xbasename): Support file names with several possible slash-type
7839         characters, as given by DIR_SEPS[] in nonposix.h.
7840         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
7841         of literal strings.
7843         * src/preproc/soelim/soelim.cc: #include nonposix.h.
7844         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
7846         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
7847         pic_tab.h.
7849         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
7851         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
7852         eqn_tab.h.
7854         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
7856         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
7857         P_tmpdir is defined, use it instead of the literal "/tmp".
7858         (remove_tmp_files, add_tmp_file): New functions.
7859         (xtmpfile): Record temporary files and register an atexit function
7860         to delete them explicitly, instead of relying on the OS to do
7861         that, which doesn't work on non-Unix systems.
7863         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
7864         (search_path::search_path): Use PATH_SEP instead of a literal
7865         colon.
7866         (search_path::command_line_dir): Ditto.
7867         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
7868         to support non-Posix systems.
7870         * src/libs/libbib/search.cc: #include nonposix.h.
7871         (search_list::add_file): Open the file in binary mode.
7873         * src/libs/libbib/linear.cc: #include nonposix.h.
7874         (file_buffer::load): Remove \r characters preceding \n from the
7875         loaded buffer.
7877         * src/libs/libbib/index.cc: #include nonposix.h.
7878         (make_index_search_item): Open index_filename in O_BINARY mode.
7879         (index_search_item_iterator::get_tag): Ditto.  Remove \r
7880         characters before \n characters.
7881         (index_search_item::check_files): Open files in binary mode.
7882         (index_search_item::munge_filename): Support DOS-style file names
7883         with backslashes and drive letters, use IS_ABSOLUTE.
7885         * src/devices/grops/ps.cc: #include nonposix.h.
7886         (main) [SET_BINARY]: Switch stdout to binary mode.
7888         * src/devices/grolj4/lj4.cc: #include nonposix.h.
7889         (main) [SET_BINARY]: Switch stdout to binary mode.
7891         * src/devices/grolbp/lbp.cc: #include nonposix.h
7892         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
7894         * src/devices/grodvi/dvi.cc: #include nonposix.h.
7895         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
7896         nonposix.h).
7897         (main) [SET_BINARY]: Switch stdout to binary mode.
7898         [_MSC_VER]: Remove an explicit call to _setmode.
7900         * src/include/nonposix.h: New file.
7902         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
7903         operation when building with DJGPP.
7904         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
7905         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
7906         ENVSETUP.
7908         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
7909         MS-DOS.
7910         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
7911         etc. can include a semi-colon on DOS/Windows.
7912         (depend.temp): Use depend1.temp instead of depend.temp1, to
7913         prevent files from overerwiting each other on 8+3 filesystems.
7915         * gendef.sh (t): Change definition to work with DOS/Windows.
7917         doc/groff.texinfo: Apart of some typo corrections, I also changed
7918         some index entris, to make them more non-ambiguous, and also put
7919         @ignore around some parts that are not yet written, to allow the
7920         Info output be readable.
7922 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
7924         Replaced specific checks for function declarations with a generic
7925         routine taken from GNU bfd.
7927         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
7928         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
7929         * configure.in: Use it.
7930         * src/devices/grolbp/lbp.cc, src/include/lib.h,
7931         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
7932         src/roff/groff/groff.cc: Use it.
7933         * Makefile.in, configure: Updated.
7935 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
7937         * src/devides/grolbp/lbp.h: Removed unused variables.
7939 2000-05-31  Keith Thompson  <kst@sdsc.edu>
7941         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
7942         strncasecmp().
7944 2000-05-31  Werner LEMBERG  <wl@gnu.org>
7946         * aclocal.m4 (GROFF_SRAND): New function to test the return value
7947         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
7948         * configure.in: Use it.
7949         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
7950         * configure, Makefile.in: Updated.
7952         * configure.in: Add test for strncasecmp().
7953         * src/include/lib.h: Use it.
7955 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
7957         * src/preproc/grn/Makefile.sub: Add MLIB.
7959 2000-05-29  Nix  <nix@esperi.demon.co.uk>
7961         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
7963 2000-05-29  Werner LEMBERG  <wl@gnu.org>
7965         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
7967         * PROBLEMS: Small update.
7969         * src/devices/grolbp/lbp.cc: Various small fixes.
7971 2000-05-28  Keith Thompson  <kst@sdsc.edu>
7973         * src/roff/nroff/nroff.sh: Fix main loop syntax.
7975         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
7977 2000-05-25  Werner LEMBERG  <wl@gnu.org>
7979         * man/roff.man: Removed unused macro.
7981 2000-05-24  Werner LEMBERG  <wl@gnu.org>
7983         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
7984         This is needed e.g. if you do
7985         `make distclean; ./configure; make dist'.
7987 Version 1.16 released
7988 =====================
7990 2000-05-23  Werner LEMBERG  <wl@gnu.org>
7992         Adding font CWI (constant width italic) to devdvi.
7994         * font/devdvi/CWI: New file.
7995         * font/devdvi/generate/Makefile: Add generating rule.
7996         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
7997         tmac/tmac.dvi: Use it.
7998         * NEWS: Announce it.
8000         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
8001         * font/devlj4/generate/Makefile: Cosmetic changes only.
8003         * man/groff.man: Removed most of the redundant description of
8004         special characters (which is in groff_char.man).  Added font
8005         translation CB->CR for devdvi.  Other minor fixes.
8007         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
8008         (registered) symbols.
8010 2000-05-22  Werner LEMBERG  <wl@gnu.org>
8012         * doc/Makefile: Added rule for creating info files.
8014         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
8015         AMS font metrics.
8016         * font/devdvi/generate/Makefile: Fixed dependencies.
8018         * font/devps/*: Regenerated.  Heavy changes for Bookman and
8019         NewCentury Schoolbook!
8020         * font/devps/generate/afmname: Will now run with GNU awk.
8021         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
8022         * font/devps/generate/Makefile: Cosmetic changes only.
8024 2000-05-21  Werner LEMBERG  <wl@gnu.org>
8026         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
8027         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
8028         `.SS' now produces a heading with a smaller size than `.SH'. 
8029         Completely formatted.
8030         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
8032         * man/groff.man: Improved table appearance.  Use of `eo' request
8033         to reduce number of doubled backslashes in macro definitions.
8034         Replacing `\e' with `\(rs'.  Other minor fixes.
8036         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
8037         to have correct line number.
8039         * INSTALL: Small improvement.
8041 2000-05-20  Bernd Warken  <bwarken@mayn.de>
8043         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
8044         WL).
8046 2000-05-19  Bernd Warken  <bwarken@mayn.de>
8048         * man/groff.man: Complete update (with a lot of corrections by WL).
8050 2000-05-18  Werner LEMBERG  <wl@gnu.org>
8052         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
8054         * font/*/*: Implement it.
8055         * man/groff_char.man, NEWS: Document it.
8057         * src/include/unix.h: Removed.  It isn't used.
8059         * doc/groff.texinfo: Slight improvements.
8061 2000-05-17  Werner LEMBERG  <wl@gnu.org>
8063         * README, win32-diffs: Small fixes and improvements.
8065 2000-05-16  Werner LEMBERG  <wl@gnu.org>
8067         * FDL: New file (the Free Documentation License version 1.1).
8069         * doc/groff.texinfo: Added many start-up values for gtroff.
8070         Some structural improvements of the source code.
8072 2000-05-15  Werner LEMBERG  <wl@gnu.org>
8074         * src/roff/troff/input.cc: Added small comment about troffrc-end.
8075         * src/roff/troff/troff.man: Added info about troffrc-end.
8077 2000-05-14  Werner LEMBERG  <wl@gnu.org>
8079         * Makefile.in (EXTRADIRS): Fix typos.
8080         (dist): Handle deletion of old .tar.gz file correctly.
8081         (DISTDIRS): Include all tty output devices.
8083         * doc/groff.texinfo: Adding more cross references; countless other
8084         fixes.
8086 2000-05-13  Werner LEMBERG  <wl@gnu.org>
8088         * MORE.STUFF: Added Robert Marks's utilities.
8090 2000-05-12  Werner LEMBERG  <wl@gnu.org>
8092         Added win32 port contributed by Blake McBride
8093         <blake@florida-software.com>.
8095         * README.WIN32, win32-diffs: New files.
8096         * NEWS: Updated.
8098         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
8099         (tmove, tmove2): Added parentheses to avoid compiler warnings.
8100         (change): Removed unused variables.
8102         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
8103         (savebounds): Changed return value from `int' to `void'.
8104         * src/preproc/grn/hdb.cc: Ditto.
8106         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
8107         final backslash in comment to avoid compiler warning.
8109         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
8111         * doc/groff.texinfo: More fixes.
8113 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
8115         * tmac/tmac.doc: Documentation fix.
8117 2000-05-11  Werner LEMBERG  <wl@gnu.org>
8119         * doc/groff.texinfo: Reading the source code shows up a lot of
8120         omissions and incorrect data...  More conversion to @Deffn macros.
8122 2000-05-10  Werner LEMBERG  <wl@gnu.org>
8124         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
8125         dependency.
8127         * src/roff/troff/request.h: Removing unused `no_break_flag'.
8129 2000-05-09  Werner LEMBERG  <wl@gnu.org>
8131         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
8132         improvements.
8134         * doc/groff.texinfo: Extended history section.  More conversion to
8135         @Deffn macros.  More .tr documentation.
8137 2000-05-07  Werner LEMBERG  <wl@gnu.org>
8139         * doc/groff.texinfo: Completed tab section.  Added info about
8140         fields.
8142 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
8144         * PROBLEMS: Describe configure script fix for OS/390 Unix.
8146 2000-05-05  Werner LEMBERG  <wl@gnu.org>
8148         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
8149         LaTeX 2e).
8150         * NEWS: Document it.
8152         * man/troff.man: Minor optical improvements.
8154 2000-05-03  Werner LEMBERG  <wl@gnu.org>
8156         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
8158         * font/*/*: Implement it.
8159         * man/groff_char.man, NEWS: Document it.
8161 2000-05-02  Werner LEMBERG  <wl@gnu.org>
8163         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
8164         expansion.
8165         * NEWS: Document the three new man pages.
8167         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
8168         * configure: Updated.
8170         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
8172 2000-05-01  Werner LEMBERG  <wl@gnu.org>
8174         Added grap support to grog.
8176         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
8177         * src/roff/grog/grog.man: Document it.
8179         * doc/groff.texinfo, NEWS: Add info about grap support.
8181         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
8182         (with slight fixes by me).
8184         * tmac/groff_tmac.man: New file documenting tmac mechanism.
8185         * tmac/Makefile.sub: Add groff_tmac.man.
8186         * man/roff.man: New file giving overview of roff system.
8187         * man/troff.man: A short reference of troff.
8188         * man/Makefile.sub: Add roff.man and troff.man.
8190 2000-04-30  Werner LEMBERG  <wl@gnu.org>
8192         Added grap support to groff.
8194         * src/roff/groff/groff.cc: Implement it.
8195         * src/roff/groff/groff.man: Document it.
8197         * src/devices/grotty/grotty.man: Add cp1047 device.
8198         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
8199         Ditto.
8200         * src/roff/groff/groff.man: Ditto.
8201         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
8202         * doc/groff.texinfo: Ditto.
8204         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
8205         for cp1047.
8207 2000-04-29  Werner LEMBERG  <wl@gnu.org>
8209         * man/groff_char.man: Add `pc' glyph.
8210         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
8211         * tmac/tmac.tty: Add `pc' glyph.
8212         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
8213         we use cp1047 output device.
8215         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
8216         there are still hardcoded latin1->unicode values in utf8's font
8217         definition files.
8218         * configure: Updated.
8219         * NEWS: Minor clarification.  Updated.
8221         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
8222         Unix.
8224 2000-04-28  Werner LEMBERG  <wl@gnu.org>
8226         Adding EBCDIC code page 1047.
8228         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
8229         font/devcp1047/DESC.proto: New files.
8231         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
8232         either ascii/latin1 or cp1047.
8233         * Makefile.in: Use it.
8234         * configure: Updated.
8236         Replacing and/or adding `md' (mathdot) glyph with `pc'
8237         (periodcentered) in all text fonts.
8239         * font/*/*: Change it.
8241 2000-04-27  Werner LEMBERG  <wl@gnu.org>
8243         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
8245         * configure.in: Add check for strings.h.
8246         * src/include/driver.h: Use HAVE_STRINGS_H.
8247         * src/devices/grolbp/lpb.cc: Remove string.h.
8249         * src/include/groff-getopt.h: New file.  It will be used instead of
8250         getopt.h (to be included in lib.h) to avoid endless problems with
8251         picky C++ compilers.
8252         * src/include/lib.h: Use groff-getopt.h.
8253         * src/include/Makefile.sub: Updated.
8255         * configure: Updated.
8256         * Makefile.in: Updated.
8258         * NEWS: Mention EBCDIC support.
8260 2000-04-26  Werner LEMBERG  <wl@gnu.org>
8262         * TODO: Some additions.
8264 2000-04-25  Werner LEMBERG  <wl@gnu.org>
8266         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
8267         of mso request.
8269 2000-04-23  Werner LEMBERG  <wl@gnu.org>
8271         * src/roff/troff/troff.man: Minor fixes.
8273 2000-04-22  Werner LEMBERG  <wl@gnu.org>
8275         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
8276         `.T' string register and the incompatible definition of the `.T'
8277         number register (compared to Unix troff).
8279         * man/groff_char.man: Add some missing characters.
8280         * font/devutf8/NOTES: Update.
8282 2000-04-21  Werner LEMBERG  <wl@gnu.org>
8284         * src/include/htmlindicate.h, src/include/lib.h,
8285         src/include/posix.h: Fix copyright.
8287         * src/include/Makefile.sub: Update.
8289 2000-04-20  Werner LEMBERG  <wl@gnu.org>
8291         * src/roff/troff/input.cc (input_char_description): Removing
8292         superfluous space char.
8294         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
8296         * doc/groff.texinfo: Document EBCDIC.
8298 2000-04-19  Werner LEMBERG  <wl@gnu.org>
8300         Introducing `shc' as the glyph name for the soft hyphen character.
8302         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
8303         font/devlatin1/R.proto: Use it.
8305         * NEWS: Updated.
8307 2000-04-18  Werner LEMBERG  <wl@gnu.org>
8309         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
8310         dependency on ASCII order.
8312 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
8314         * src/libs/libgroff/illegal.c: Added EBCDIC table.
8315         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
8317         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
8318         to increase portability.
8320 2000-04-15  Werner LEMBERG  <wl@gnu.org>
8322         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
8323         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
8324         the generic `\n' if under OS/390 Unix.
8326         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
8328         * configure: Regenerated.
8330 2000-04-14  Werner LEMBERG  <wl@gnu.org>
8332         * doc/groff.texinfo: More conversions to @Deffn.
8334 2000-04-12  Werner LEMBERG  <wl@gnu.org>
8336         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
8337         with `:'.
8339         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
8341 2000-04-10  Werner LEMBERG  <wl@gnu.org>
8343         * doc/groff.texinfo: More conversions to @Deffn.
8345 2000-04-08  Werner LEMBERG  <wl@gnu.org>
8347         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
8348         Updated to latest version (glibc 2.1.3).
8350 2000-04-07  Werner LEMBERG  <wl@gnu.org>
8352         * doc/Makefile (clean): Include more index files.
8353         Add rule texinfo->dvi.
8355 2000-04-05  Werner LEMBERG  <wl@gnu.org>
8357         * doc/groff.texinfo: Added new index `op' for operators.  More
8358         info on end of sentence characters.  More use of @Deffn.
8360 2000-03-30  Werner LEMBERG  <wl@gnu.org>
8362         * */*.man: Adding a note that a whitespace can be inserted between
8363         a command line option and its parameter -- we are using GNU getopt.
8365         * src/roff/groff/groff.man: Add example of `-m mandoc'.
8367 2000-03-28  Werner LEMBERG  <wl@gnu.org>
8369         Correct anachronism of calling the man macro file with `-man'
8370         instead of `-m man' etc.
8372         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
8373         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
8374         load tmac.<package>.
8376         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
8378         * NEWS: Updated.
8380         * doc/groff.texinfo: Updated.
8382         * tmac/groff_man.man: Copyright added.
8384 2000-03-27  Werner LEMBERG  <wl@gnu.org>
8386         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
8387         typeset the request resp. escape name with a tt font -- due to a
8388         bug in texinfo.tex it is necessary to use the `-e' switch with
8389         texi2dvi.
8391         Improving info about usage of groff units.
8393         Other minor fixes.
8395 2000-03-20  Werner LEMBERG  <wl@gnu.org>
8397         * doc/groff.texinfo: Added section about man macro package
8398         (I've basically taken groff_man.man).  Introducing new indices `ma'
8399         for macros/strings and `gl' for glyph names.  Other minor fixes.
8401         * tmac/groff_man.man: Fixed some typos.
8403 2000-03-19  Werner LEMBERG  <wl@gnu.org>
8405         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
8406         Other minor fixes.
8408         * doc/texinfo.tex: New file.
8410 2000-03-18  Werner LEMBERG  <wl@gnu.org>
8412         * doc/groff.texinfo: Improved section on number registers.  Other
8413         minor updates.
8415 2000-03-16  Werner LEMBERG  <wl@gnu.org>
8417         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
8418         synopsis.
8420         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
8421         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
8422         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
8423         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
8425         * src/preproc/grn/grn.man: Better synopsis; added copyright.
8427         * src/roff/grog/grog.man: Updated copyright date.
8429 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
8431         * configure.in: Added test for strdup.
8433         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
8434         is available.
8436         Replaced dynamic allocation of arrays `[...]' with `new' operator.
8438         Other minor fixes.
8440 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
8442         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
8444 2000-03-11  Werner LEMBERG  <wl@gnu.org>
8446         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
8447         compilers silent.
8448         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
8449         * src/include/lib.h: Remove some spaces.
8451 2000-03-10  Werner LEMBERG  <wl@gnu.org>
8453         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
8454         initializers from arguments (some compilers don't like this).
8456 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
8458         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
8459         used by pic and eqn to tell grohtml where the graphic regions start
8460         and end.
8461         * src/libs/libgroff/Makefile.sub: Use it.
8462         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
8463         graphic_start() and graphic_end() from htmlindicate.cc.
8465 2000-03-09  Werner LEMBERG  <wl@gnu.org>
8467         * tmac/tmac.safer: Will now work correctly in compatibility mode.
8468         * tmac/groff_man.man: More fixes.
8470 2000-03-08  Werner LEMBERG  <wl@gnu.org>
8472         * doc/Makefile: Added texput.log to the `clean' target.
8473         * doc/groff.texinfo: Added info about delimiters for escapes.
8475 2000-03-08  Bernd Warken  <bwarken@mayn.de>
8477         * src/preproc/pic/pic.man: Add info on conversion of pic images to
8478         other graphic formats.
8480 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
8482         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
8483         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
8484         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
8485         files.
8487 2000-03-07  Werner LEMBERG  <wl@gnu.org>
8489         * doc/groff.texinfo: Spelling fixes.
8491 2000-03-06  Werner LEMBERG  <wl@gnu.org>
8493         * tmac/groff_man.man: Completely revised to cover everything in
8494         tmac.an.
8496         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
8497         Other minor fixings.
8498         * src/roff/troff/env.cc (environment_copy): Improve error message and
8499         fix itoa->i_to_a.
8500         * src/roff/troff/TODO: Updated.
8502         * doc/Makefile: Bug fixes -- this is still provisional, though...
8504         * tmac/eqnrc: Small fixes.
8506 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
8508         Adding a request `evc' to copy environments.
8510         * src/roff/troff/env.cc (environment::copy, environment_copy):
8511         Implement it.
8512         * src/roff/troff/env.h: Add prototype.
8514 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
8516         Adding strsep() -- Solaris 8 doesn't have it.
8518         * configure.in: Test it.
8519         * src/devices/grolbp/lbp.cc: Add code.
8521 2000-03-05  Werner LEMBERG  <wl@gnu.org>
8523         * src/roff/troff/div.cc (macro_diversion::output,
8524         top_level_diversion::output): Fixing an incompatibility with
8525         original troff: \x'0' updates the .a register also.  Thanks to
8526         <Andries.Brouwer@cwi.nl> for pointing this out.
8527         * doc/groff.texinfo: Document it.
8529         * Makefile.in: Create Makefile.dep if necessary before calling the
8530         submake process to avoid warning about nonexistent file.
8532         * NEWS, PROJECTS: Updated.
8534 2000-03-04  Werner LEMBERG  <wl@gnu.org>
8536         * tmac/troffrc: Add tmac.lbp.
8538 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
8540         * tmac/tmac.lbp: New file.
8541         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
8542         command.
8544 2000-03-03  Werner LEMBERG  <wl@gnu.org>
8546         * Makefile.in: Fixing $(subdir).
8548         * README, NEWS: Small fixes.
8550         * test-groff: Adding path to grolbp.
8552         * configure.in: The (new) file src/xditview/Imakefile.in will be
8553         also configured -- it is now possible to build gxditview in a
8554         directory different from $srcdir.
8556 2000-03-02  Blake McBride  <blake@florida-software.com>
8558         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
8560         * MORE.STUFF: Added website of bell labs and info about plot2dev.
8562 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
8564         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
8565         files.
8567 2000-02-29  Werner LEMBERG  <wl@gnu.org>
8569         Adding GNU getopt to the groff distribution.
8571         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
8572         New files.
8573         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
8574         * aclocal.a4: Remove GROFF_GETOPT function.
8575         * configure.in, Makefile.in, PROBLEMS: Update.
8576         * src/include/lib.h: Replace getopt tests with getopt.h.
8577         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
8579         * doc/groff.texinfo: Further checking/updating.  Adding more index
8580         entries.
8582         * man/groff_out.man: Fix nroff mode activation (for emacs).
8583         * man/groff_font.man: Add missing ligature.
8585 2000-02-28  Werner LEMBERG  <wl@gnu.org>
8587         * doc/groff.texinfo: Further checking/updating.  Adding more index
8588         entries.
8590         * src/devices/grolbp/grolbp.man: Added a comment line at the
8591         beginning of the file (similar to shell scripts) which indicates
8592         that `tbl' should be used as a preprocessor.
8594 2000-02-27  Blake McBride  <blake@florida-software.com>
8596         Adapting groff to MS Visual C++ 6.0 compiler (tested with
8597         Windows NT 4.0).  Uses _MSC_VER define where necessary.
8599         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
8600         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
8601         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
8602         src/include/lib.h, src/libs/libgroff/errarg.cc,
8603         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
8604         src/preproc/refer/label.y, src/preproc/refer/label.cc,
8605         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
8606         src/roff/troff/div.cc, src/roff/troff/env.cc,
8607         src/roff/troff/input.cc, src/roff/troff/node.cc,
8608         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
8609         if_to_a() to avoid name clashes.
8610         * src/include/posix.h: Don't use unistd.h.
8611         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
8612         clause for integrating non-Unix xtmpfile() code.
8613         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
8614         structure; use "rt" for popen() in pipe_source(); add getpid()
8615         dummy function.
8616         * src/roff/troff/node.cc: Use special versions of popen() in
8617         real_output_file() and pclose() in ~real_output_file().
8619 2000-02-27  Werner LEMBERG  <wl@gnu.org>
8621         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
8622         LBP-8 series laser printers).  This code has been contributed by
8623         Francisco Andrés Verdú <pandres@dragonet.es>.
8625         * src/devices/grolbp/*: The grolbp output device.
8626         * font/devlpb/*: The font description files.
8627         * Makefile.in: Add grolpb and devlbp subdirectories.
8629         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
8630         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
8631         typographic fixes.
8633         * doc/groff.texinfo: Further checking/updating.  Adding more index
8634         entries.
8636         * NEWS: Updated.
8638         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
8640         * man/groff_font.man: Adding info about obsolete DESC keywords.
8641         * src/devices/grolj4/grolj4.man: Documenting additional DESC
8642         keywords.
8644 2000-02-26  Werner LEMBERG  <wl@gnu.org>
8646         * src/preproc/grn/grn.man: Added info about the gremlin file format
8647         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
8649 2000-02-25  Werner LEMBERG  <wl@gnu.org>
8651         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
8652         friends to be non-integer.
8654         * src/preproc/grn/grn.man: Document it.
8656         * doc/groff.texinfo: Further checking/updating.  Adding more index
8657         entries.
8659 2000-02-24  Werner LEMBERG  <wl@gnu.org>
8661         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
8662         line thicknesses to be integer multiples of this value.
8664         * src/preproc/grn/grn.man: Commenting out the -s option -- the
8665         corresponding code doesn't work (yet).
8667         * doc/groff.texinfo: Further checking/updating.  Adding more index
8668         entries.
8670 2000-02-23  Werner LEMBERG  <wl@gnu.org>
8672         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
8673         specify line thickness instead of base units.  The new default
8674         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
8675         thick lines respectively.
8677         Removed unused variable `prevval'.
8679         * src/preproc/grn/grn.man: Updated.
8681 2000-02-22  Werner LEMBERG  <wl@gnu.org>
8683         * src/preproc/grn/main.cc: Slight formatting.
8685         * src/roff/groff/groff.man: Formatting fix.
8686         * src/preproc/grn/grn.man: Ditto.
8688         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
8690         * doc/groff.texinfo: Further checking/updating.
8692 2000-02-21  Werner LEMBERG  <wl@gnu.org>
8694         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
8696         * test-groff: Added grn subdir to path.
8698         * doc/groff.texinfo: Some restructing and other small improvements.
8700         * src/roff/groff/groff.cc (help): Fixed info string.
8702 2000-02-20  Werner LEMBERG  <wl@gnu.org>
8704         * doc/meref.me: Fix description of .GS request.
8706         * src/roff/troff/troff.man: Fixing typo.
8708         Adding the `grn' preprocessor for gremlin graphic files.
8710         * src/preproc/grn/*: This is the Berkeley distribution written by
8711         David Slattengren and Barry Roitblat, adapted to groff by Daniel
8712         Senderowicz and Werner Lemberg.
8714         * doc/grnexampl.{me,g}: A sample for grn.
8716         * Makefile.in: Added subdirectory entry for grn.
8718         * src/roff/groff/groff.cc: Added support for grn.  It can be now
8719         called with the switch `-g'.
8721         * src/roff/groff/groff.man: Updated.
8723         * src/roff/grog/grog.{man,pl,sh}: Updated.
8725         * NEWS: Updated.
8727 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
8729         * src/include/lib.h: Added xtmptemplate and made xtmpfile
8730         parametrically polymorphic.
8732         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
8733         and the alterations to xtmpfile.
8734         xtmpfile can be requested to return the filename created
8735         and asked not to unlink the temp file.  The default behaviour
8736         if parameters are absent is exactly the same as before.
8738 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
8740         A new request `length' is available which returns the length of a
8741         string in a number register:
8743         * src/roff/troff/input.cc (length_macro): Implement it.
8744         * src/roff/troff/input.cc (init_input_requests): Register it.
8746 2000-02-11  Werner LEMBERG  <wl@gnu.org>
8748         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
8749         of the `substring' request.
8751         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
8752         request.
8754         * src/roff/troff/TODO, NEWS: Updated.
8756 2000-02-09  Werner LEMBERG  <wl@gnu.org>
8758         * src/roff/groff/groff.man: Added an example.
8760 2000-02-06  Werner LEMBERG  <wl@gnu.org>
8762         I've considerably modified the directory structure of the
8763         distribution to get a more vertical layout.  For example, the number
8764         of top level directories has been reduced from 42 to 6.
8766         As a consequence, many changes, especially to the makefiles, were
8767         necessary:
8769         * The makefile variables `top_builddir' and `top_srcdir' have been
8770         introduced.  Virtually all relative paths have been replaced with
8771         absolute ones using these two variables.
8773         * Dependencies (in the files `Makefile.dep') are no longer part of
8774         the distribution.  Instead, they are created during a `make install'
8775         in the build directory.
8777         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
8778         make `top_srcdir' and `top_builddir' absolute.
8780         Some other changes:
8782         * Man pages now depend on the files `VERSION' and `REVISION'.
8784         * The added shell script `mkinstalldirs' will replace `mkdir' in
8785         almost all cases.
8787         * VERSION: Version number increased to 1.16.
8789 2000-02-04  Werner LEMBERG  <wl@gnu.org>
8791         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
8793         * Makefile.in: Removed $(tmac_m) since it is no longer needed
8794         (after an update of the mm stuff).
8796         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
8798 2000-02-03  Werner LEMBERG  <wl@gnu.org>
8800         The .psbb request will now also accept Mac PS images (i.e. using LF
8801         as the EOL character).
8803         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
8804         (with slight modifications).
8805         * troff/input.cc (do_ps_file): Use it.
8807         * test-groff: Add grohtml and grolj4 output devices to PATH.
8809 2000-01-30  Werner LEMBERG  <wl@gnu.org>
8811         * NEWS, MORE.STUFF: Updated.
8813 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
8815         Add the `srand' command to pic.
8817         * pic/lex.cc, pic/pic.y: Implement it.
8818         * pic/pic.man: Document it.
8819         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
8821 2000-01-30  Werner LEMBERG  <wl@gnu.org>
8823         Add a new request `.psbb'.  This does exactly what the external
8824         program psbb did.  It scans a PostScript image file for a
8825         %%BoundingBox comment and extracts the bounding box values (in
8826         PostScript units) which are then stored in the four new (read-only)
8827         number registers `llx', `lly', `urx', and `ury'.
8829         This will allow the usage of the .PSPIC macro without worrying
8830         about unsafe behaviour of groff, i.e., it will work without the
8831         `-U' switch of groff.
8833         * troff/input.cc: Implement it.
8834         * tmac/tmac.pspic: Use it.
8835         * troff/troff.man, grops/grops.man, NEWS: Document it.
8836         * psbb/*, Makefile.in: Remove it since it is no longer needed.
8838         This is bloody C code simply adapted from psbb.c!  Any improvements
8839         welcome.
8841 2000-01-29  Werner LEMBERG  <wl@gnu.org>
8843         * man/groff_font.man: Minor clarifications.
8845         * NEWS: Updated.
8847 2000-01-28  Werner LEMBERG  <wl@gnu.org>
8849         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
8851 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
8853         * man/groff_font.man: Brought up to date regarding tcommand
8854         extensions.
8855         * libgroff/font.cc: Handle everything after `--' as a comment
8856         in the font files.
8857         * devps/*: Added comment delimiter inside devps font files.
8859 2000-01-28  Werner LEMBERG  <wl@gnu.org>
8861         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
8862         \fC...\fP (which now works as expected).
8864         * troff/troff.man: Fix typo.
8866 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
8868         Completed the pass_filenames implementation in troff.
8870         * libdriver/input.cc: Will read the new `F' tcommand.
8871         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
8872         * troff/input.cc: Use it.
8874 2000-01-26  Werner LEMBERG  <wl@gnu.org>
8876         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
8877         font will now be updated even if an invalid font is selected.
8879 2000-01-24  Werner LEMBERG  <wl@gnu.org>
8881         * doc/homepage.ms: Updated for new tmac.arkup.
8883         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
8885         * tmac/tmac.arkup: Cleanup.
8887         Added `\&' to .HTML macro to `leave vertical mode', so to say.
8889         Removed obsolete .LINK macro completely.
8891         The macros .URL, .FTP, and .MAILTO now accept a third argument which
8892         will be immediately appended to the second argument (to be used with
8893         punctuation, for example).
8895         Disabled .CDFTP macro temporarily for security reasons.
8897         * tmac/groff_markup.man: Complete revision for latest changes in
8898         tmac.arkup -- note that it does not yet format correctly with
8899         grohtml :-(
8901 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
8903         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
8904         * devutf8/R.proto: Add mappings for wp, lh, rh.
8905         * devutf8/NOTES: Updated.
8907 2000-01-23  Werner LEMBERG  <wl@gnu.org>
8909         * doc/groff.texinfo: Updated version/copyright info.
8911 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
8913         Added support for two new directives in device descriptions:
8914         `pass_filenames' (to pass the input file name to the output device)
8915         and `use_charnames_in_special' (to support e.g. accented characters
8916         in the `X' request).
8918         * include/font.h, troff/charinfo.h: Declare it.
8920         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
8922         * devhtml/DESC: Use it.
8924         * troff/input.cc: New function encoded_char.
8926         * troff/token.h: Add test for `specialness'.
8928 2000-01-21  Werner LEMBERG  <wl@gnu.org>
8930         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
8931         mistake from the list of files to be installed.
8933 2000-01-18  Werner LEMBERG  <wl@gnu.org>
8935         * README: Added info how to apply patches.
8937 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
8939         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
8941 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
8943         * troff/input.cc: Add support for troffrc-end.
8945         * tbl/main.cc: Altered to issue table-start and table-end special
8946         characters if using the html device.
8948         * devhtml/*: Modified font files to incorporate html encoding of
8949         characters.
8951         * tmac/groff_markup.man: New file documenting tmac.arkup.
8953         * tmac/troffrc-end: New file.  This is invoked after all user
8954         specified macros.  Currently used by the html device to include
8955         tmac.html.  Thus no need for users to specify -mhtml anymore.
8957         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
8958         (MAN7): Add groff_markup.man.
8960         * tmac/tmac.an, tmac/tmac.html: Small html updates.
8962         * tmac/troffrc: tmac.arkup will now be called for the html device.
8964         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
8965         extra device specific information about fonts.
8967         * doc/homepage.ms: New file.  It is an example how an HTML home page
8968         could look like with grohtml.
8970         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
8972 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
8974         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
8975         of Im, Re.
8977         * devutf8/NOTES: Updated.
8979 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
8981         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
8982         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
8983         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
8984         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
8985         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
8986         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
8987         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
8988         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
8989         warnings.
8991         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
8993 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
8995         grolj4: Paper size will be searched case-insensitively.
8997         * include/lib.h: Add check for strcasecmp().
8998         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
8999         * configure.in: Check for strcasecmp().
9001 2000-01-11  Werner LEMBERG  <wl@gnu.org>
9003         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
9004         `REVISION'.
9006 2000-01-10  Werner LEMBERG  <wl@gnu.org>
9008         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
9009         revision scheme.
9011         Add a new read-only register, `.Y', which contains the groff
9012         revision.
9014         * troff/input.cc (init_input_requests): Define it.
9015         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
9016         * doc/groff.texinfo, troff/troff.man: Document it.
9018         * libgroff/Makefile.sub (version.cc): Add definition of
9019         `Version_string[]', consisting of `<major>.<minor>.<revision>'
9020         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
9021         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
9022         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
9023         troff/input.cc, pfbtops/pfbtops.c: Use it.
9025 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
9027         Add a revision scheme to the groff package.
9029         * REVISION: New file.
9030         * libgroff/Makefile.sub (version.cc): Use it to define
9031         `revision_string[]'.
9032         * grops/psrm.cc: Use revision_string (converted to an unsigned
9033         integer) in constructor of resource_manager.
9035 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
9037         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
9038         files.
9039         * Makefile.in (DEVDIRS): Add devutf8.
9040         * grotty/tty.cc: Include device.h.
9041         (glyph): Change type of `code' to `unsigned int'.
9042         (tty_printer): New field is_utf8.  Constructor takes device argument.
9043         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
9044         (tty_printer::add_char): Change type of first arg to `unsigned int'.
9045         (tty_printer::put_char): New function.
9046         (tty_printer::end_page): Use put_char() instead of ::putchar().
9047         (make_printer): Pass device to tty_printer constructor.
9048         * nroff.sh: Determine default device by calling 'locale'.  As a
9049         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
9050         Recognize UTF-8 locales.
9051         * tmac/eqnrc: Recognize utf8 like latin1.
9052         * tmac/troffrc: Device utf8 needs tmac.tty.
9054 2000-01-07  Werner LEMBERG  <wl@gnu.org>
9056         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
9058 2000-01-07  Paul Eggert  <eggert@twinsun.com>
9060         Add a new predefined writeable number register, `year',
9061         which contains the current year.
9063         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
9064         * tmac/tmac.s: Use it.
9065         * troff/input.cc (init_registers): Initialize it.
9067 2000-01-06  Werner LEMBERG  <wl@gnu.org>
9069         * PROBLEMS: Fixed typo.
9071 2000-01-04  Paul Eggert  <eggert@twinsun.com>
9073         * PROBLEMS: Add Y2k advice for the yr number register.
9075 2000-01-03  Paul Eggert  <eggert@twinsun.com>
9077         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
9079 2000-01-02  Werner LEMBERG  <wl@gnu.org>
9081         * tmac/tmac.arkup: Slight modification of macros to provide better
9082         appearance for non-HTML formats.
9084 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
9086         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
9087         does not automatically translate to malloc(n) on all OSes
9088         (e.g., SunOS) so do it explicitly.  Also, check the returned
9089         value.
9091 2000-01-01  Werner LEMBERG  <wl@gnu.org>
9093         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
9095         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
9096         expects this variable
9098 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
9100         * doc/Makefile: Added instructions to create HTML and text
9101         versions of some files.
9103 1999-12-31  Werner LEMBERG  <wl@gnu.org>
9105         * Updated INSTALL.gen.
9107         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
9108         better resp. correctly with non-HTML devices.
9110 Version 1.15 released
9111 =====================
9113 1999-12-28  Werner LEMBERG  <wl@gnu.org>
9115         * NEWS, VERSION: Changed to 1.15
9117 1999-12-27  Paul Eggert  <eggert@twinsun.com>
9119         * nroff/nroff.man: -S is safer, not safe.
9121         * groff/groff.cc (main): Use `safer', not `safe', in variable
9122         names.  This does not change the behavior.
9124         * troff/input.cc (main): Likewise.
9126         * nroff/nroff.sh: Likewise.
9128         * troff/input.cc (prepend_string): New function.
9129         (main): Prepend -msafer, so that we check macro libraries for
9130         safety.
9132         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
9134 Version 1.14 released
9135 =====================
9137 1999-12-26  Werner LEMBERG  <wl@gnu.org>
9139         * NEWS, VERSION: Changed to 1.14.
9141 1999-12-24  Werner LEMBERG  <wl@gnu.org>
9143         * refer/refer.cc: Fixing the last fix.
9145 Version 1.13 released
9146 =====================
9148 1999-12-23  Werner LEMBERG  <wl@gnu.org>
9150         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
9151         number disappear.
9153         * NEWS: Updated.
9155         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
9157         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
9158         document conventions, the version number must be a real.
9160 Version 1.12.1 released
9161 =======================
9163 1999-12-22  Werner LEMBERG  <wl@gnu.org>
9165         * VERSION: Changed to 1.12.1.
9167 1999-12-22  Alan Rooks  <arooks@istar.ca>
9169         * refer/refer.cc (do_file): Slight modification to satisfy the
9170         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
9171         UnixWare 7.1.
9173 1999-12-20  Werner LEMBERG  <wl@gnu.org>
9175         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
9176         notices.
9178         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
9179         list of unsafe requests.
9181         * pic/pic.man: Fixed a typo.
9183         * man/groff_out.man: Fixed a typo.
9185 1999-12-18  Werner LEMBERG  <wl@gnu.org>
9187         * Makefile.in: Doc fixes.
9189 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
9191         * groff/groff.cc: Missing `U' option added to getopt().
9193         * troff/troff.man: Missing `U' option added to synopsis.
9195 Version 1.12 released
9196 =====================
9198 1999-12-14  Werner LEMBERG  <wl@gnu.org>
9200         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
9201         to the synopsis.
9203         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
9204         with the more appropriate terms `safer' and `unsafe'.
9206         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
9207         sys_nerr and sys_errlist[].
9209         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
9211         * pic/pic.y, pic/pic.cc: Added check for fmod().
9213 1999-12-13  Werner LEMBERG  <wl@gnu.org>
9215         * VERSION: Changed to 1.12.
9217         Here some patches from various sources; most of them taken from
9218         the Debian distribution.
9220         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
9221         tmac/Makefile.sub: New files copied directly from the NetBSD
9222         distribution.  Probably, some additional adaptation later on is
9223         necessary...
9225         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
9226         of unsafe requests.
9228         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
9229         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
9230         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
9231         (`-S') is now the default.
9233         * README, NEWS: Updated.
9235 1999-12-09  Werner LEMBERG  <wl@gnu.org>
9237         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
9239         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
9241 1999-12-06  Werner LEMBERG  <wl@gnu.org>
9243         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
9244         grief than relief today.  Additionally, it is against the GNU
9245         coding standards.
9247         * configure: Recreated.
9249 1999-12-05  Werner LEMBERG  <wl@gnu.org>
9251         * configure.in: Added GROFF_LIBM.
9253         * configure: Recreated.
9255         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
9256         necessary.
9258         * Makefile.in: Added definition of $(LIBM).
9260         * Makefile.comm (LIBM): Removed.
9262         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
9264 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
9266         * doc/Makefile: Added rule for generation pic.html.
9268         (clean): Files produced by grohtml will be removed also.
9270         * doc/pic.ms: Small fix.
9272         * tmac/tmac.html: Fixed suppression of headers.
9274 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
9276         * tmac/tmac.html: Fixing horizontal arrows.
9278         Turning off hyphenation.
9280         * tmac/tmac.an: Improved support for grohtml; better indentation,
9281         no footers/headers.
9283 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
9285         * tmac/tmac.arkup: Added CDFTP macro
9287         * tmac/tmac.html: All headers are turned off for ms, me, and mm
9288         macros.
9290         * tmac/troffrc: Some additions for HTML stuff.
9292 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
9294         * tmac/tmac.html: Small changes.
9296 1999-09-26  Werner LEMBERG  <wl@gnu.org>
9298         * doc/groff.texinfo: Minor fixes.
9300 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
9302         * devhtml/TR: Changed spacewidth to 3.
9304         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
9306         * tmac/tmac.html: Moved markup macros to tmap.arkup.
9308         * tmac/tmac.arkup: New file.
9310         * grohtml/ChangeLog: New file.
9312 1999-09-16  Werner LEMBERG  <wl@gnu.org>
9314         * doc/groff.texinfo (Common Features): Added Copying chapter.
9315         Changed format to @smallbook.
9317 1999-09-15  Werner LEMBERG  <wl@gnu.org>
9319         * NEWS: Added info about groff.texinfo.
9321         * doc/groff.texinfo: Will now compile (using texi2dvi) without
9322         warning messages.
9324 1999-09-14  Werner LEMBERG  <wl@gnu.org>
9326         * groff/groff.man: More updates.
9328 1999-09-13  Werner LEMBERG  <wl@gnu.org>
9330         * doc/groff.texinfo: New file.  This manual is still very
9331         rudimentary.  It has been originally contributed by Trent
9332         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
9333         additions by me.
9335         * INSTALL: Added information about the `doc' subdir
9337         * troff/troff.man: Minor fixes.
9339         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
9340         reordered options.
9342         * troff/input.cc (usage): Added missing `-ffam' to usage message.
9344         * Makefile.in (dist): groff-$(version).tar.gz must be removed
9345         also, otherwise it is included itself in another call of `make
9346         dist'.
9348         * groff/groff.cc (synopsis): Removed superfluous space.
9350         * PROJECTS, PROBLEMS, NEWS: Updated.
9352         * VERSION: Updated to 1.12beta.
9354         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
9356         * README: Updated: Included documentation about CVS repository,
9357         mailing lists, and daily snapshots.
9359         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
9361 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
9363         * tmac/tmac.an: If the tag didn't fit into the space that the
9364         macro `TP' specifies, the rest of the tag went into the space for
9365         the next line.
9367 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
9369         * grolj4/lj4.cc: Added duplex printing (option `-d').
9371         * grolj4/grolj4.man: Document duplex printing.
9373 1999-09-12  Werner LEMBERG  <wl@gnu.org>
9375         * doc/Makefile (pic.ps): Fixed rule which caused problems with
9376         non-GNUish sed programs.
9378         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
9379         definition.
9381         * configure.in (LIBS): Added `-lc'
9383         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
9385         * pic/tex.cc (solid_arc): Casting M_PI to double.
9387         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
9389         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
9390         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
9391         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
9393         * groff/groff_man.man: New file.  This manual page was originally
9394         written for the Debian GNU/Linux system by Susan G. Kleinmann
9395         <sgk@debian.org>.
9397         * eqn/list.cc (list_box::compute_metrics,
9398         list_box::compute_sublist_width): Removed variable declaration to
9399         avoid shadowing warnings.
9401         * grops/psrm.cc (resource_manager::process_file): Ditto.
9403         * tfmtodit/tfmtodit.cc (main): Ditto.
9405         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
9406         to avoid shadowing warnings.
9408         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
9409         shadowing loop variable.
9411         * groff/groff.man, troff/troff.man: Added doc about grohtml.
9413 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
9415         New grohtml frontend to convert groff input to html.
9417         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
9419         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
9421         * tmac/eqnrc: Added html device.
9423         * tmac/tmac.html: New file.
9425         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
9426         (troff_output::start_picture, troff_output::finish_picture),
9427         tbl/main.cc (process_input_file):
9428         Surrounded output with `graphics_start' and `graphics_end' so that
9429         the html driver can identify non-text portions.
9431         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
9432         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
9433         grotty/tty.ps (tty_printer::set_char): Additional parameter
9434         `name'.
9436         * include/printer.h: Class printer: New function
9437         set_char_and_width; new variables (is_char_named, is_named_set,
9438         named_command, named_char_s, named_char_n) to hold information
9439         about named characters -- needed by the html driver.
9441         * libdriver/printer.cc (printer::set_ascii_char,
9442         printer::set_special_char): Use set_char_and_width.
9444         * devhtml/*: New device files for html driver.
9446         * grohtml/*: New driver grohtml.
9448 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
9450         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
9451         default strings.
9453 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
9455         * libgroff/string.cc (search): Small fix to test against NULL
9456         pointer.
9458 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
9460         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
9461         \b'abc') were stacked in reverse order when processed in a
9462         diversion.
9464         * troff/node.h: Added `*last' to struct `node' to make the above
9465         fix work.
9467         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
9468         The default scale for the 'f' and 't' graphics functions were 'm'
9469         rather than 'u' (i.e., no scaling).
9471 1999-09-11  Peter Miller  <peterm@jna.com.au>
9473         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
9474         do_file), soelim/soelim.man: Added `-I file' option to soelim,
9475         defining include paths.
9477         * soelim/soelim.cc (include_path_append): New function.
9479 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
9481         * tbl/main.cc (process_options): Unix (at least Documenter's
9482         Workbench) tbl allows arbitrary non-alpha characters between
9483         options.
9485 1999-09-11  Paul Eggert  <eggert@twinsun.com>
9487         Y2k fixes.  Don't assume that the current year precedes 2000.
9489         * doc/meref.me: Add \n(y2, \n(y4.
9491         * tmac/doc-common (Yr): New number register.
9492         (Dd): Don't assume current year precedes 2000.
9494         * tmac/tmac.e (td): Likewise.
9495         (y2, y4): New number registers.
9497         * pic/pic.man: Update reference for pic paper to May, 1991
9498         version.
9500 1999-09-11  Werner LEMBERG  <wl@gnu.org>
9502         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9503         Removed quotation marks which prevented correct expansion of
9504         $(tmac_wrap).
9506         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
9508 1999-09-10  Werner LEMBERG  <wl@gnu.org>
9510         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
9511         `config.cache'.
9513         * Removed configure.old.
9515 1999-08-31  Werner LEMBERG  <wl@gnu.org>
9517         * VERSION: Updated to 1.11.1
9519 1999-05-27  Werner LEMBERG  <wl@gnu.org>
9521         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
9523         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9524         added quotations around $(tmac_wrap) to avoid syntax error if
9525         variable is empty.
9527         * configure: Newly generated using autoconf 2.13.
9529         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
9531 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
9533         * README, PROJECTS, NEWS, INSTALL, VERSION, 
9534         doc/Makefile. doc/pic.ms, groff/groff.man:
9535         Prepare for 1.11 release.  No code changes.
9536         Documentation for pic added (doc/pic.ms).
9538 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
9540         * Version 1.10 released.
9542 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
9544         * afmtodit/afmtodit.pl: Avoid comment on first line.
9546 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
9548         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
9549         * configure.in: Call it.
9551         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
9552         (distfiles): Doesn't depend on config.log or config.cache.
9554 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
9556         * grog/grog.sh: Use print "" rather than print in END rule.
9558 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
9560         * tbl/main.cc (process_data): Don't give error for excess data
9561         entries that are comments.
9563 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
9565         * tbl/main.cc (process_data): Fix case where new for-scope rules
9566         silently change meaning of code.
9568 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
9570         * troff/env.cc (hyphenate): Loop over all consecutive sequences
9571         of non-zero hyphenation codes.
9573 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
9575         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
9577 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
9579         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
9581 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
9583         * tmac/tmac.andoc: Make it work in compatibility mode.
9585         * refer/token.h (token_info::is_range_sep): New function.
9586         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
9587         * refer/ref.cc (reference::output): More sophisticated check for
9588         multiple pages.
9590         * devps/prologue.ps (MANUAL): New procedure.
9591         * grops/ps.cc (main): New -m option.
9592         (usage): Include -m.
9593         (ps_printer::~ps_printer): Implement -m.
9595         * aclocal.m4 (GROFF_G): New macro.
9596         * configure.in: Call it.
9597         * Makefile.in (g): Provided by configure.
9599         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
9601         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
9602         translations.
9604         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
9605         (tmac_m, tmac_s): Deleted.
9606         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
9607         tmac_s_prefix): New variables.
9608         (MDEFINES): Change accordingly.
9609         * Makefile.comm (.man.n): Use new TMAC_* variables.
9610         * configure.in (GROFF_TMAC): Call.
9611         * aclocal.m4 (GROFF_TMAC): Define.
9612         * tmac/Makefile.sub (stamp_wrap): New target.
9613         (install_data, uninstall_sub): Handle macro wrapping.
9615 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
9617         * tbl/main.cc (main): Ignore -T option.
9619 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
9621         * devlj4/generate/special.map: Add definition of \(nb.
9623         * tmac/tmac.dvi: Add definition of \(nb.
9625         * troff/dictionary.c (dictionary::dictionary): association::v gets
9626         initialized by association::association.
9628         * tmac/Makefile.sub: Avoid using temporary files when installing.
9630         * troff/env.cc (environment::set_font): Make bad font number a
9631         warning.
9633         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
9635         * Makefile.in (datadir): Use share rather than lib.
9637         * groff/groff.cc (basename): Rename to xbasename.
9639 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
9641         * Makefile (CCLIBS): Don't use.
9642         * Makefile.ccpg: Likewise.
9644         * acgroff.m4: Rename to...
9645         * aclocal.m4: Modify extensively for autoconf 2.
9646         * configure.in: Likewise.
9647         * Makefile.in: Likewise.
9649         * groff/pipeline.c (const): Declare as empty if __STDC__ not
9650         defined.
9651         (xstrsignal): Check for definition of NSIG. Conditionalize
9652         on SYS_SIGLIST_DECLARED.  Make return type const.
9654 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
9656         * troff/input.cc (interpolate_macro): Rephrase missing space
9657         warning.
9659 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
9661         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
9662         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
9663         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
9664         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9665         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
9666         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
9667         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
9668         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
9669         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
9670         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
9671         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
9672         Fix 'for' scoping.
9674 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
9676         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
9677         string_iterator.
9678         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
9679         file.
9680         (macro_iterator::macro_iterator): Add additional argument.
9682 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
9684         * troff/div.cc (vertical_size::vertical_size): In place of integer
9685         specifying line spacing use cunits specifying post vertical
9686         space.
9687         (macro_diversion::output, top_level_diversion::output): Likewise.
9688         * troff/div.h: Change declarations accordingly.
9689         * troff/env.cc (pending_output_line): Replace ls field by post_vs
9690         field.
9691         (pending_output_line::pending_output_line,
9692         pending_output_line::output, environment::output,
9693         environment::output_line, environment::output_title,
9694         environment::hyphenate_line):  In place of
9695         integer specifying line spacing use cunits specifying post vertical
9696         space.
9697         (environment::environment): Add post_vertical_spacing and
9698         prev_post_vertical_spacing arguments.
9699         (environment::get_post_vertical_spacing): New function.
9700         (environment::total_post_vertical_spacing): New function.
9701         (environment::post_vertical_spacing): New function.
9702         (init_env_requests): Initialize pvs request and .pvs register.
9703         * troff/env.h: Change declarations.
9705 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
9707         * tmac/tmac.pspic: Immediately remove the temporary file.
9709 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
9711         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
9712         height is specified.
9714 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
9716         * tbl/table.c (struct vertical rule, class table_entry): Use int
9717         not short for start_row and end_row.
9719 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
9721         * troff/input.cc (trapping_blank_line, blank_line_macro): New
9722         functions.
9723         (diverted_space_node::reread, process_input_stack): Call
9724         trapping_blank_line() rather than blank_line().
9725         (init_input_requests): Bind "blm" to blank_line_macro().
9727         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
9729 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
9731         * troff/env.cc (environment::possibly_break_line): Require that
9732         width total excluding width of final space node be greater than
9733         the target text length.
9735 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
9737         * troff/node.cc (kern_pair_node::vertical_extent): New function.
9739 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
9741         * troff/node.cc (charinfo_node): New class.
9742         (glyph_node, composite_node): Derive from charinfo_node.  Change
9743         member functions accordingly.
9745 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
9747         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
9749 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
9751         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
9753         * devps/generate/textmap (notsubset): Add.
9755         * tmac/tmac.a4: New file.
9757 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
9759         * pic/main.cc (had_parse_error): New variable.
9760         (do_picture, do_whole_file): Set had_parse_error if yyparse()
9761         returns non-zero.
9762         (main): Return 1 if had_parse_error is true.
9764 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
9766         * grolj4/lj4.cc (main): Avoid use of strtoul.
9768 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
9770         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
9771         iso_8859_1 or $LESSCHARSET is latin1.
9773 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
9775         * hpftodit: New directory.
9776         * Makefile.in (CCPROGDIRS): Add hpftodit.
9777         * devlj4/generate: New directory.
9779 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
9781         * configure.in: Don't use AC_VFORK.
9782         * groff/pipeline.c (run_pipeline): Use fork() always.
9784 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
9786         * grops/ps.cc (main): Use %1 not %s in error message for -w.
9788         * Makefile.in (CCPROGDIRS): Add grolj4.
9789         (DEVDIRS): Add devlj4.
9790         * grolj4, devlj4: New directories.
9791         * tmac/troffrc: Handle lj4.
9792         * tmac/tmac.lj4: New file.
9794 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
9796         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
9798 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
9800         * troff/input.cc (do_if_request): At end of second string, switch
9801         environments before getting next token.
9803 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
9805         * devps/psstrip.sed: Split rule that strips whitespace on either
9806         side of delimiters.
9808 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
9810         * troff/node.h (font_family::make_definition): Add return value to
9811         declaration.  * troff/symbol.h (symbol::operator==,
9812         symbol::operator!=): Likewise.
9814 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
9816         * groff/groff.cc (main, help, synopsis): Handle -S.
9817         (possible_command::insert_arg): New function.
9819         * tmac/tmac.safer: New file.
9820         * tmac/msafer.man: New file.
9821         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
9823 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
9825         * pic/pic.h, pic/main.cc (safer_flag): New variable.
9826         * pic/pic.y (placeless_element): Avoid unsafe operations if
9827         `safer_flag' is set.
9828         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
9830 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
9832         * eqn/lex.cc (get_token): Put call to add_context() in block to
9833         work around Sun C++ 4.0 bug.
9835         * include/stringclass.h (operator +): Use ?: instead of `if' to
9836         work around Sun C++ 4.0 bug.
9838 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
9840         * tbl/main.cc (process_format): Accept - as a synonym for the _
9841         key letter.
9843         * libbib/index.cc (minus_one): Don't declare as const.
9845 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
9847         * troff/input.cc (get_char_for_escape_name): Push back a newline.
9849 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
9851         * troff/input.cc (write_macro_request): New function.
9852         (init_input_requests): Bind write_macro_request to writem.
9854 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
9856         * tmac/tmac.s (@EN): Turn filling back on even if there was no
9857         equation.
9859         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
9861         * tmac/tmac.s (@TS): Renamed from TS.
9862         (TS): Call LP then TS again.
9863         (cov*ab-init): Alias @TS to TS.
9865         * tmac/tmac.s: Allow QP or RS to initialize.
9867         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
9868         Move initializations of PS and LL here.
9869         (par@init): Don't initialize HY.  Avoid changing environment 0.
9870         (par*env-init): Don't all par@reset.
9872 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
9874         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
9876 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
9878         * Makefile.in (MDEFINES): Add LDFLAGS.
9879         (LDFLAGS): Add definition line.
9881 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
9883         * troff/input.cc (get_optional_char): Split off error check into...
9884         (check_missing_character): New function.
9885         * troff/token.h: Declare it.
9886         * troff/env.cc (margin_character): Don't call get_optional_char.
9887         Only call tok.next() after making the node.
9889         * include/lib.h (getopt): Make 2nd argument char *const *.
9891 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
9893         * nroff/conftest.sh: Deleted.
9895 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
9897         * pic/make-dos-dist: Deleted.
9899 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
9901         * devps/psstrip.sed: Strip comments before stripping trailing
9902         white space.
9904 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
9906         * Version 1.09 released.
9908 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
9910         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
9912 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
9914         * libgroff/font.cc (font::load_desc): Fix typo in error message.
9916 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
9918         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
9919         about returning without a value.
9921         * troff/charinfo.h (charinfo::get_special_translation): Cast
9922         TRANSLATE_NONE to int.
9924         * refer/token.cc (lookup_token, store_token): Remove bogus loop
9925         test.  Fix test so that it works with n unsigned.
9927         * pic/pic.y (defaults_table): Fully bracket initializer.
9928         * pic/lex.cc (lookup_keyword): Likewise.
9929         * eqn/lex.cc (token_table, def_table): Likewise.
9930         * eqn/box.cc (param_table): Likewise.
9931         * troff/input.cc (warning_table): Likewise.
9932         * libgroff/font.cc (table): Likewise.
9933         * grops/ps.cc (ps_printer::special): Likewise.
9934         * grops/psrm.cc (resource_manager::process_file): Likewise.
9935         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
9936         * refer/command.cc (command_table): Likewise.
9937         * addftinfo/addftinfo.cc (param_table): Likewise.
9939         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
9940         about temp's being unused.
9941         (unused): New function.
9943         * groff/pipeline.cc: Declare c_fatal.
9945         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
9946         uchar.
9948         * libbib/index.cc (index_search_item::load): Prevent compiler
9949         warnings about fd_closer's being unused.
9950         (unused): New function.
9952 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
9954         * troff/input.cc (copy_mode_error): Make `prefix' static.
9955         Fix typo.
9957         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
9958         defined.
9959         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
9960         HAVE_CC_OSFCN_H and modify accordingly.
9962         * troff/input.cc (init_charset_table): radicalex overlaps
9963         horizontally.
9965         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
9966         udodo!hans@relay.NL.net).
9967         * groff/configure.in: Call it.
9969         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
9970         * groff/configure.in: Call it.
9971         * include/lib.h: Conditionalize declaration of pclose.
9973         * troff/div.cc (last_page_number): New global variable.
9974         (top_level_diversion::begin_page): Exit if we just printed the
9975         last page.
9976         * troff/div.h (last_page_number): Declare it.
9977         * troff/input.cc (parse_output_page_list): Set last_page_number.
9979         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
9980         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
9981         tmac/tmac.X: Likewise.
9982         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
9983         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
9985 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
9987         * tmac/doc-ditroff (hK): Remove groff specific code which
9988         prevented page-breaks between separate manual entries.  If this is
9989         the first page, don't set the page number to 1.
9991         * acgroff.m4 (GROFF_POSIX): New macro.
9992         * configure.in: Use it.
9994         * troff/node.cc (class real_output_file,
9995         real_output_file::real_output_file,
9996         real_output_file::~real_output_file): Conditionalize use of
9997         popen/pclose on POPEN_MISSING.
9998         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
9999         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
10000         (pipe_source): Similarily.
10002         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
10004         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
10005         presence of declarations by trying to compile example with
10006         conflicting declarations.  (gcc only gives a warning for missing
10007         declarations.)
10009 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
10011         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
10012         (from Ulrich Lauther).
10014 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
10016         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
10018 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
10020         * indxbib/indxbib.cc (write_hash_table): Add code for case where
10021         pointers and ints have different sizes.
10023 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
10025         * tmac/tmac.s (par*env-init): Call par@reset.
10027 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
10029         * tmac/tmac.s (@IP): Switch to a new environment when diverting
10030         tag.
10031         (par*push-tag-env, par*pop-tag-env): New macros.
10033 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
10035         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
10036         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
10038         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
10039         comment.  Include <time.h>.
10041 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
10043         * grops/ps.cc (is_small_h, is_small_v): Deleted.
10044         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
10045         lines.
10047 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
10049         * troff/input.cc (read_request): Only print a prompt if reading
10050         from the terminal.  Also clearerr on EOF if reading from the
10051         terminal.  Declare isatty.
10053 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
10055         * refer/label.y: Rename map_t to map_func and extractor_t to
10056         extractor_func.
10058 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
10060         * include/assert.h: Don't use volatile.
10061         * libgroff/assert.cc: Likewise.
10063 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
10065         * troff/input.cc (abort_request): Look at character in tok before
10066         calling get_copy().
10068 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
10070         * troff/troff.h (NO_RETURN): Deleted.
10071         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
10072         * troff/input.cc (exit_troff): Likewise
10074         * Makefile.in: Remove `Making ...' messages since GNU make now
10075         gives these. 
10077         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
10079 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
10081         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
10082         to constant 1 inch.
10084 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
10086         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
10088 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
10090         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
10091         MARK_REG if there was no left delimiter.
10093 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
10095         * pic/troff.cc (troff_output::text): Set line thickness to
10096         relative before outputting text.
10098         * tmac/tmac.e (@k): Don't zero ?T.
10099         ((z): Likewise.
10101 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
10103         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
10105 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
10107         * troff/input.cc (decode_args): Warn about unquoted tabs (from
10108         Paul Eggert).
10110 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
10112         * troff/input.cc (ignoring): New variable.
10113         (ignore): Set ignoring during call to do_define_macro.
10114         (do_define_macro): Clear ignoring before interpolating terminating
10115         macro.
10116         (copy_mode_error): New function.
10117         (get_char_for_escape_name, read_long_escape_name,
10118         interpolate_arg): Use copy_mode_error.
10119         (warning_table): Add WARN_IG.
10120         * troff/troff.h (WARN_IG): Declare.
10121         (WARN_TOTAL): Change accordingly.
10123         * groff/pipeline.c (strsignal): Rename to xstrsignal.
10124         * groff/groff.cc (strsignal): Delete declaration.
10126 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
10128         * troff/div.cc (page_offset): Use 'm' as default scaling.
10130 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
10132         * nroff/nroff.sh: Ignore -u.
10134 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
10136         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
10138 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
10140         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
10141         drawing box.
10142         (B2): With -Tascii, leave additional vertical space before
10143         and after. Ensure that the left and right indent is restored to
10144         what it was even if the point size changes.  Don't call
10145         par@finish. Change the indent, line length and title length
10146         directly.  With -Tascii, make the width of the box 1n less.
10147         (B1): Remember 1n at the current point size.  Don't call
10148         par@reset.  Change the indent, line length and title length
10149         directly.  Ensure that the temporary indent is preserved.
10150         (par*box-mark-top): Turn off no spacing mode.
10152 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
10154         * Makefile.in (dist): Use .gz suffix.
10156 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
10158         * troff/input.cc (main): Add return 0.
10159         * pic/main.cc (main): Use return instead of exit.
10160         * tbl/main.cc (main): Likewise.
10161         * eqn/main.cc (main): Likewise.
10162         * grops/ps.cc (main): Likewise.
10163         * grotty/tty.cc (main): Likewise.
10164         * groff/groff.cc (main): Likewise.
10165         * grodvi/dvi.cc (main): Likewise.
10166         * refer/refer.cc (main): Likewise.
10167         * indxbib/indxbib.cc (main): Likewise.
10168         * lkbib/lkbib.cc (main): Likewise.
10169         * soelim/soelim.cc (main): Likewise.
10170         * addftinfo/addftinfo.cc (main): Likewise.
10171         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
10172         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
10174         * troff/token.h (process_input_stack): Don't declare as static.
10175         * troff/input.cc: Likewise.
10177         * troff/node.c (invalidate_fontno): Make it a static member of
10178         class font_family.  Change callers.
10179         * troff/node.c: Change declaration.
10181         * tbl/main.cc (struct input_entry_format): Add explicit public
10182         specifier.
10183         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
10184         struct double_hline_stuff): Likewise.
10185         * tbl/table.h (struct entry_format): Likewise.
10186         * pic/object.h (struct saved_state): Likewise.
10188         * include/stringclass.h: Add forward declarations of friend
10189         functions that are later declared as inline.  Don't include inline
10190         specifier in friend declaration.
10192         * libgroff/lib.h: Declare popen and pclose.
10193         * acgroff.m4 (GROFF_POPEN): New macro.
10194         * configure.in: Call it.
10196         * include/lib.h (PI): New constant. Undef first if necessary.
10197         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
10198         * grops/ps.cc (degrees, radians): Likewise.
10199         * libgroff/font.cc (font::get_skew): Likewise.
10201         * grops/ps.cc (is_ascii): New function.
10202         (ps_output::put_string): Use is_ascii.  Use csprint rather than
10203         isprint.
10204         (ps_printer::define_encoding): Use csspace.
10205         * libgroff/strtol.c (ISASCII): New macro.
10206         (strtol): Cast arguments to is*() and tolower() to unsigned char.
10207         Use ISASCII rather than isascii.
10208         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
10209         * libgroff/cset.cc: Likewise.
10210         * libdriver/input.cc: Include cset.h.
10211         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
10212         than isdigit().
10214         * refer/refer.cc (main): Use %ld rather than %d for longs.
10216         * libbib/index.cc (index_search_item_iterator::get_tag): Use
10217         S_ISREG macro.
10219         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
10221 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
10223         * troff/input.cc (hyphenation_code): Skip white space between
10224         char/code pairs.
10226 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
10228         * tbl/table.h (table::entry_list_tailp): New member.
10229         (table::table): Initialize it.
10230         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
10231         behaviour.
10233 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
10235         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
10236         with negative horizontal positions. Remove casts of glyph::hpos to
10237         int.
10238         (USHRT_MAX): Delete definition.
10239         (SHRT_MAX, SHRT_MIN): New definitions.
10240         (glyph::hpos): Change type to short.
10241         (tty_printer::end_page): Output multiple backspaces if necessary.
10242          Remove casts of glyph::hpos to int.
10243         
10244 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
10246         * tmac/tmac.s (@RT): New definition.
10248 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
10250         * refer/refer.cc (do_file): Make sure current_filename is set when
10251         filename is "-".
10253         * pic/common.cc (common_output::dot_line): Handle zero length
10254         lines.
10256 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
10258         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
10259         (par@init): Initialize \n[HY].
10261 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
10263         * troff/dictionary.cc (dictionary::remove): Continue when
10264         r < j < i.
10266 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
10268         * Makefile.com (.y.cc): Avoid ending up with two versions of
10269         $(YTABH).
10271 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
10273         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
10274         (\(,C): Likewise.  Also fix typo.
10276 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
10278         * lib.h: Delete extraneous semi-colon.
10280         * Add pso request: `so' from a pipe.
10281         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
10282         (file_iterator::close): New function.
10283         (file_iterator::~file_iterator, file_iterator::next_file): Use
10284         file_iterator::close.
10285         (file_iterator::backtrace): Say `process' rather than `file' when
10286         the stream is popened.
10287         (pipe_source): New function.
10288         (init_input_requests): Bind ".pso" to pipe_source.
10290 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
10292         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
10294         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
10295         digits in lower case.
10297 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
10299         * Version 1.08 released.
10301         * Makefile.in (dist): Insert || true after ln -s commands that
10302         might fail.
10304         * mm: Update to mm 1.16.
10306         * acgroff.m4 (GROFF_CSH_HACK): New macro.
10307         * configure.in: Call GROFF_CSH_HACK.  Substitute for
10308         SH_SCRIPT_SED_CMD.
10309         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
10310         MDEFINES.
10311         * nroff/Makefile.sub (nroff): New target.
10312         (install_data): Install nroff.
10313         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
10314         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
10316 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
10318         * eqn/Makefile.sub (neqn): Add chmod +x.
10320         * grog/Makefile.sub (grog): Remove spurious semi-colon.
10322 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
10324         * troff/input.cc (string_iterator::string_iterator()): Initialize
10325         lineno and count.
10327 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
10329         * troff/div.cc (macro_diversion::space,
10330         top_level_diversion::space): Don't set high_water_mark.
10331         (macro_diversion::output, top_level_diversion::output): Don't
10332         include post line space in high water mark.
10334 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
10336         * eqn/eqn.y: Don't define YYDEBUG.
10337         * pic/pic.y: Likewise.
10339 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
10341         * tmac/tmac.e ([3): Add space after comma following editors.
10342         Change double spaces to single spaces.
10343         ([4): Change double spaces to single spaces.
10345         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
10346         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
10347         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
10348         after %!PS-Adobe- (for Newsprint).
10350         * troff/div.cc (top_level_diversion::begin_page): When
10351         before_first_page is 1, set page_number to 1.
10353 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
10355         * eqn/box.cc (box::top_level): Protect equation with \&.
10357 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
10359         * groff/groff.cc (possible_command::set_name): Delete old name.
10361         * groff/groff.cc (possible_command::~possible_command): Use
10362         a_delete.
10364         * troff/node.cc (troff_output_file::begun_page): New member.
10365         (troff_output_file::troff_output_file): Initialize it.
10366         (troff_output_file::really_begin_page): Only output V command if a
10367         page has been begun.
10369         * pic/pic.y (placeless_element): Delete argument to PRINT after
10370         use.
10372 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
10374         * Make wrapman work.
10375         * troff/div.h (class top_level_diversion): Replace
10376         first_page_begun by before_first_page (with opposite sense).
10377         * Change first_page_begun to before_first_page inverting sense.
10378         * troff/div.cc (class nl_reg): New class.
10379         (init_div_requests): Use class nl_reg for \n(nl.
10380         (top_level_diversion::begin_page): Don't call
10381         output_file::begin_page if before_first_page is 2;
10382         reset before_first_page afterwards.  If have_next_page_number is
10383         false, then always increment page_number.
10384         * tmac/tmac.an: Set traps within TH rather than at the top-level.
10385         Restore compatibility mode after loading, and then disable
10386         compatibility mode in TH.
10388 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
10390         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
10391         past last line.
10392         * troff/node.h (output_file::trailer): Declare.
10393         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
10394         * troff/node.cc (output_file::trailer): New function.
10395         (troff_output_file::~troff_output_file): Move most code into...
10396         (troff_output_file::trailer): New function.
10397         (class troff_output_file): Delete page_length member. Declare
10398         trailer().
10399         (troff_output_file::really_begin_page): Use current page length
10400         for final V command.
10402         * tbl/main.cc (struct options): New decimal_point_char member.
10403         (options::options): Initialize this.
10404         (process_options): Implement decimalpoint option.
10405         (process_data): Pass decimal_point_char option to table::table.
10406         * tbl/table.h (class table): New decimal_point_char member.
10407         (table::table): Add additional argument.
10408         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
10409         second argument specifying decimal point character.  Use this
10410         instead of '.'.
10411         (table::table): Initialize decimal_point_char.
10412         (table::add_entry): Change call to find_dot.
10414         * troff/input.cc (get_copy, token::next): Implement \V.
10415         (interpolate_environment_variable): New function.
10417 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
10419         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
10420         * pic/pic.y: Likewise.
10422         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
10423         Add casts to int.
10424         * refer/ref.cc (reference::insert_field, reference::delete_field):
10425         Likewise.
10426         * troff/number.cc (parse_term): Likewise.
10428         * acgroff.m4 (GROFF_PROG_YACC): New macro.
10429         * configure.in: Use GROFF_PROG_YACC.
10431         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
10432         and g++.
10433         * Makefile.in (OPTIMIZE): New define.
10434         (DEBUG): Empty by default.
10435         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
10437         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
10438         (GROFF_ARRAY_DELETE): Likewise.
10439         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
10441         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
10443         * devps/psstrip.sed: Use different delimiter on last line (so that
10444         it works with BSD 4.4 sed.)
10446 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
10448         * devps/psstrip.sed: Delete comments.
10450         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
10451         optind, opterr, optarg.
10452         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
10453         opterr, optarg.
10455 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
10457         * Makefile.in (check): Dummy target.
10459 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
10461         * Version 1.07 released.
10463         * Integrate mm 1.11.
10465         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
10466         where start_col was meant.
10468 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
10470         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
10472 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
10474         * troff/input.cc (token::next): Make \z\o'...' and similar things
10475         work.
10477         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
10478         constants.
10479         (environment): Add margin_character_flags member.
10480         * env.cc (environment::environment(symbol),
10481         environment::environment(const environment *): Initialize
10482         margin_character_flags.
10483         (margin_character): Rewrite.
10484         (environment::output_line): Add a margin character if
10485         margin_character_flags is non-zero.  Turn off the
10486         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
10487         zero, use margin_character_node without copying and then set
10488         margin_character_node to 0.
10490         * devps/DESC.in: Change minimum size to 1000.
10492 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
10494         * troff/symbol.h (symbol::hash): Change return type to unsigned
10495         long.
10496         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
10497         Add casts to int.
10499         * test-groff: Use -r rather than -x.
10501         * grops/psfig.diff: Include in distribution again.
10503 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
10505         * Makefile.in (dist): Use gzip.
10507 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
10509         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
10510         unistd.h as well as in stdlib.h.
10511         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
10512         defined; otherwise include <sys/types.h> and <unistd.h> if
10513         UNISTD_H_DECLARES_GETOPT is defined.
10515         * configure.in: use builtin(include, ... rather than include(...
10516         * configure: Regenerate with autoconf 1.3.
10518         * libdriver/print.cc (printer::adjust_arc_center): Use new
10519         algorithm suggested by Andy Fyfe.
10521         * libdriver/printer.cc (printer::adjust_arc_center): New function.
10522         * include/printer.h: Declare this.
10523         * grops/ps.cc (ps_printer::draw): Use it.
10524         * grodvi/dvi.cc (dvi_printer::draw): Use it.
10526 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
10528         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
10530 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
10532         * eqn/main.cc (main): Handle "eqn -".
10534 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
10536         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
10538         * mm: Integrate version 1.08.
10540         * pic/troff.cc (troff_output::finish_picture): Set
10541         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
10542         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
10543         if it's not defined. Check whether the register is non-zero rather
10544         than whether it's not defined.
10545         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
10547         * indxbib/indxbib.cc: Move all signal handling into...
10548         * indxbib/signal.c: New file.
10549         * configure.in: Call AC_RETSIGTYPE.
10551         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
10552         * configure.in: Call GROFF_STRUCT_EXCEPTION.
10553         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
10555         * troff/input.cc (token::token, token::operator=): Work round SGI
10556         C++ bug.
10557         * pic/object.cc (position::position): Likewise.
10559 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
10561         * pic/pic.h: Move declaration of hypot().
10563 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
10565         * pic/pic.h: Declare hypot().
10567         * pic/pic.h: Define M_PI if necessary.
10569 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
10571         * tmac/tmac.e (re): Add alternative version that doesn't use groff
10572         `.ta T' feature.
10574         * devps/prologue.ps (RE): Handle the possibility that the old font
10575         doesn't have a FontName entry.
10577 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
10579         * tmac/tmac.e (fam): Redefine to set family in environment 2.
10580         (@C): Use @fam not fam.
10582 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
10584         * lookbib/lookbib.cc (main): Change type of start to const char *.
10585         * lkbib/lkbib.cc (main): Likewise.
10587         * eqn/lex.cc (definition::definition): Don't use member
10588         initializer syntax for members of anonymous unions.
10590         * troff/input.cc (input_stack::backtrace): Change type of to const
10591         char *.
10593 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
10595         * include/stringclass.h (class string): Declare inline friend
10596         functions as inline in class declaration.
10597         * troff/hvunits.h (class hunits, class vunits): Likewise.
10598         * include/refid.h (class reference_id): Likewise
10599         * troff/troff.h (points_to_units(units), scale(units, double)):
10600         Delete declarations.
10601         * libdriver/input.cc (get_char): Delete declaration.
10602         * include/lib.h: Change 2nd argument of getopt from const char **
10603         to char **.
10604         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
10605         char **' before assigning to a `const char **'.
10606         * tbl/table.cc: Delete extra declarations of prints().
10608 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
10610         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
10611         char **' before assigning to a `const char **'.
10613         * libgroff/errarg.cc (errarg::errarg): Don't use member
10614         initializer syntax for members of anonymous unions.
10616 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
10618         * mm: Integrate version 1.07.
10620 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
10622         * troff/input.c (translate2): Rename to
10623         (translate_no_transparent).
10624         (init_input_requests): Rename tr2 to trnt.
10626 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
10628         * troff/charinfo.h (class charinfo): Add transparent_translate field.
10629         (charinfo::set_translation, charinfo::set_special_translation):
10630         Add second argument that specifies value for
10631         transparent_translate.
10632         (charinfo::get_translation, charinfo::get_special_translation):
10633         Add optional second argument that specifies whether translation is
10634         being used for transparent throughput.
10635         * troff/input.cc (charinfo::set_translation,
10636         charinfo::set_special_translation): Handle second argument.
10637         (charinfo::charinfo): Initialize transparent_translate.
10638         (translate): Split main part off into
10639         (do_translate): New function.  Pass argument saying whether
10640         translation applies to transparent throughput.
10641         (translate2): New request.
10642         (init_input_requests): Bind translate2 to `tr2'.
10644 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
10646         * tbl/table.h (class table): Add `nokeep' flag.
10647         * tbl/main.cc (process_options): Handle `nokeep' option.
10648         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
10649         table::do_bottom): Don't output keep/release macro definitions or
10650         calls when `nokeep' option has been specified.
10652 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
10654         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
10656 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
10658         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
10659         block_entry::divert, alphabetic_block_entry::divert): Add extra
10660         argument giving column separation.
10661         (table::compute_widths): Pass column separation to
10662         table_entry::divert().
10663         (block_entry::do_divert): If an entry spans multiple columns and a
10664         minimumum width has been specified for each column, then set the
10665         line length to the sum of the widths (plus possibly the column
10666         separations).
10668         * troff/input.cc (set_escape_char): Don't set the escape_char
10669         until after calling has_arg().
10671 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
10673         * tbl/table.cc (table::do_top): Add missing \s0 for double box
10674         case.
10676         * tbl/table.cc (table::print_double_hline): Avoid extra new line
10677         in case where r > nrows - 1.
10679         * tbl/table.cc (BODY_HEIGHT): Deleted.
10680         (LINE_SEP): New definition.
10681         (table::print_single_hline, table::print_double_hline,
10682         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
10683         table::do_row, table::do_top): Use LINE_SEP space before a line
10684         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
10686         * tbl/table.cc (text_entry::print_contents): New function.
10687         (text_string_name, right_text_string_name): Deleted.
10688         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
10689         (simple_text_entry::do_width, numeric_text_entry::do_width,
10690         alphabetic_text_entry::do_width): Don't store the contents of the
10691         entry in a string.
10692         (left_text_entry::simple_print, right_text_entry::simple_print,
10693         center_text_entry::simple_print,
10694         alphabetic_text_entry::simple_print,
10695         numeric_text_entry::simple_print): Print the entry directly
10696         instead of using the stored string.
10698 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
10700         * devps/Makefile: Strip PostScript files.
10701         * devps/prologue: Rename to...
10702         * devps/prologue.ps.
10703         * devps/psstrip.sed: New file.
10704         * devps/download: Use .pfa rather than .ps for installed versions
10705         of fonts.
10707 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
10709         * troff/env.cc (input_trap): Give a warning if the argument is out
10710         of range.
10712         * troff/env.cc (adjust): Treat negative argument as missing. Round
10713         argument > 5 down to 5.
10715         * troff/env.cc (center, right_justify): Make negative argument zero.
10717         * troff/div.cc (page_offset, vertical_position_traps): Treat
10718         invalid argument as missing.
10719         * troff/env.cc (line_spacing, line_length, title_length, indent,
10720         underline, hyphen_line_max_request, control_char,
10721         no_break_control_char, widow_control_request, adjust, input_trap,
10722         point_size): Likewise.
10723         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
10724         constant_space): Likewise.
10725         * troff/input.cc (compatible, shift, warn_request,
10726         set_escape_char): Likewise.
10728         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
10729         * tbl/table.cc (table::table): Likewise.
10731         * Makefile.dev (install_dev): depends on $(DEVFILES).
10733 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
10735         * devX75, devX75-12, devX100, devX100-12: New directories.
10736         * Makefile.in: Add these to DEVDIRS.
10738         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
10739         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
10740         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
10741         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
10742         targets.
10743         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
10744         (uninstall): New target.
10745         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
10746         uninstall_prog, uninstall_dev): New targets.
10748         * troff/div.cc (return_request): Treat an invalid argument as
10749         missing.
10751 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
10753         * tmac/tmac.e ((f): Set up the environment even when there's a
10754         current diversion.  Transperently throughput a call to @N.
10755         (@N): New macro.
10757 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
10759         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
10760         up to vertical resolution.
10762         * tbl/table.cc (table::do_row): Change row number after printing
10763         stuff list.
10765         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
10767 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
10769         * Rename CHANGES to NEWS.
10771 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
10773         * libgroff/new.cc (operator new): Avoid calling malloc(0).
10775 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
10777         * man.ultrix: Removed.
10779 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
10781         * Makefile.comm (extraclean): Delete files whose names begin with
10782         `='.
10784         * pic/troff.cc (troff_output::text): Fix typo in implementation of
10785         aligned text.
10787 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
10789         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
10790         * troff/div.cc (page_length, need_space, space_request): Treat
10791         invalid optional argument as missing.
10792         * troff/env.cc (number_lines): If the first argument is present
10793         but not a number, turn on line numbering, don't change the next
10794         line number and parse the remaining arguments.
10796         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
10798 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
10800         * eqn/box.h: Change declaration accordingly.
10801         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
10802         the specified size was bad but don't give an error.  Check for
10803         overflow.
10804         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
10805         * eqn/lex (do_size): Likewise.
10807 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
10809         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
10810         compatible headers.
10812 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
10814         * tbl/table.cc (table::init_output): Improve error message when
10815         table won't fit on one page.
10817 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
10819         * pic/troff.cc (troff_output::start_picture): Generate line
10820         containing a horizontal motion equal to the width of the picture.
10822         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
10823         using GROFF_COMMAND_PREFIX environment variable.
10825 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
10827         * mdate.sh: Use $NF rather than $(NF).
10829 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
10831         * pic/main.cc (main):  Use %1 not %c in argument to warning.
10833         * eqn/main.cc (main): Output code to check that geqn was given the
10834         correct -T option.
10836 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
10838         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
10839         `ln -s ../Makefile .; make; rm -f Makefile'.
10841         * troff/hyphen: Rename to...
10842         * troff/hyphen.us:
10843         * troff/input.cc (main): Delete -H option. Don't call
10844         read_hyphen_file().
10845         * troff/env.cc: Include searchpath.h and macropath.h.
10846         (exception_dictionary): Deleted.
10847         (ht): Deleted.
10848         (read_hyphen_file): Deleted.
10849         (hyphenation_language): New struct.
10850         (class trie, class hyphen_trie): Move declarations up.
10851         (trie_node::~trie_node): Deleted.
10852         (trie::delete_trie_node): New function.
10853         (trie::do_delete): New pure virtual function.
10854         (hyphen_trie::do_delete): New function.
10855         (trie::~trie): New function.
10856         (hyphen_trie::~hyphen_trie): New function.
10857         (trie::clear): No need to chcek that tp is not 0.
10858         (current_language, language_dictionary): New variables.
10859         (hyphen_word): Give an error if no current language.  Use
10860         exceptions dictionary in current language.
10861         (hyphen_trie::read_patterns_file): Find file using macro_path.
10862         Allow comments (starting with %) in patterns file.  Don't make it
10863         a fatal error if the file can't be found.
10864         (hyphenate): Return if no current language.  Get the exceptions
10865         dictionary and the hyphenation patterns from the current language.
10866         (set_hyphenation_language): New variable.
10867         (hyphenation_patterns_file): New function.
10868         (hyphenation_language_reg): New class.
10869         (hyphenation_language_reg::get_string): New function.
10870         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
10871         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
10872         register.
10873         * groff/groff.cc (main, help, synopsis): Delete -H option.
10874         * include/Makefile.sub: Don't define HYPHENFILE.
10875         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
10876         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
10877         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
10878         hyphenation patterns.
10880 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
10882         * eqn/neqn.sh: New file.
10883         * eqn/Makefile.sub: Handle neqn.sh.
10885         * eqn/eqn.h: Declare `nroff' variable.
10886         * eqn/box.cc (param_table): Add `nroff' param.
10887         (nroff): Define it.
10888         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
10889         variable.
10890         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
10892         * troff/troff.h (WARN_FONT): New warning.
10893         (WARN_TOTAL): Change accordingly.
10894         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
10895         (warning_table): Add WARN_FONT.
10896         * troff/node.cc (mount_font_no_translate): Pass argument to
10897         font::load_font.  If this is non-zero, give a warning.
10898         Don't give an error message when accessing a font that has already
10899         been found to be invalid.
10900         * include/font.h (font::load, font::load_font): Add additional
10901         optional argument which suppresses error message if the font is
10902         not found.
10903         * libgroff/font.cc (font::load_font): Handle additional argument.
10904         (font::load): Add additional argument. If this is non-null, set it
10905         to 1 and don't give error message.
10907         * include/printer.h (printer::end_page): Add argument giving
10908         length of page.
10909         * libdriver/input.cc (do_file): Pass this.
10910         * grops/ps.cc (ps_printer::end_page): Add argument.
10911         * grodvi/dvi.cc (dvi_printer::end_page,
10912         draw_dvi_printer::end_page): Add argument.
10913         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
10914         columns_per_page members. New member nlines.
10915         (DEFAULT_LINES_PER_PAGE): Deleted.
10916         (tty_printer::tty_printer): Don't compute lines_per_page from
10917         font::paperlength. Don't compute columns_per_page from
10918         font::paperwidth.
10919         (tty_printer::add_char): Don't check horizontal position against
10920         columns_per_page. Grow glyphs vector if neccessary.
10921         (tty_printer::end_page): Add argument giving page_length in units.
10922         Discard lines past end of page.
10924 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
10926         * tmac/tmac.tty-char: Fix definition of \(/l.
10928         * tmac/tmac.X: Define \(en.
10930 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
10932         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
10933         lpq, then use lp rather than lpr.
10935         * tmac/tmac.s (par@reset): Don't call `ad'.
10936         (par*env-init): Call `ad'.
10938 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
10940         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
10941         date.
10943         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
10944         * indxbib/indxbib.cc: Likewise.
10946 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
10948         * libgroff/putenv.c: New file.
10949         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
10950         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
10951         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
10952         stdlib.h with AC_HAVE_HEADERS.
10954 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
10956         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
10957         does not exist.
10959 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
10961         * eqn/box.cc (gsize): Make it an int.
10962         (set_gsize): Parse argument handling increment or decrement.
10963         (box::top_level): Convert gsize to a string.
10965         * troff/input.cc (exit_troff): Make buf unsigned char [].
10966         Call to make_temp_iterator casts buf to char*.
10968         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
10970         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
10971         * Makefile.cpg (depend.temp): Likewise.
10973         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
10975         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
10977 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
10979         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
10981 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
10983         * Version 1.06 released.
10985         * Integrate mm 1.04.
10987 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
10989         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
10991 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
10993         * afmtodit/afmtodit.pl: Add -n option that disables generation of
10994         ligatures command.
10995         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
10996         afmtodit. Regenerate.
10998         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
10999         @f back past the current position.
11001         * tmac/tmac.e: Change calls to @R so that comments are not part of
11002         arguments.
11004 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
11006         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
11008         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
11009         check that we can link a call to a function declared in <stdio.h>.
11010         (GROFF_UNISTD_H): New macro.
11011         * configure.in: Call it.
11012         * Makefile.in: Document it.
11013         * include/posix.h: New file.
11014         * troff/troff.h: Don't include <osfcn.h>
11015         * troff/input.cc: Include posix.h.
11016         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
11017         osfcn.h.
11018         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
11019         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
11020         <fcntl.h>.
11021         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
11022         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
11023         * libbib/search.cc (O_RDONLY): Delete definition.
11024         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
11025         Don't include <osfcn.h>.
11027         * acgroff.m4 (GROFF_TIME_T): New macro.
11028         * configure.in: Call it.
11029         * Makefile.in: Document it.
11031         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
11032         * configure.in: Call it.
11033         * Makefile.in: Document -DTRADITIONAL_CPP.
11034         * include/ptable.h: Don't include generic.h.
11035         (name2): Define it.
11037         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
11038         Afterwards remove [T1 and [T2.
11039         (ref*spec!0, ref*spec!2): Use T1 rather than T.
11040         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
11041         (ref*add-T2): Renamed from ref*add-T.
11042         (ref*add-T1): New macro.
11044 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
11046         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
11048         * libbib/index.cc: Include <fcntl.h>.
11049         (O_RDONLY): Define if necessary.
11050         (make_index_search_item, index_search_item_iterator::get_tag,
11051         index_search_item::check_files): Use O_RDONLY.
11052         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
11053         (O_RDONLY): Define if necessary.
11054         (search_list::add_file): Use O_RDONLY.
11055         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
11056         <sys/stat.h>.
11057         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
11058         (main): Use these.
11060         * libbib/index.cc (S_ISREG): Define it if necessary.
11061         (index_search_item::load): Use S_ISREG.
11063         * include/driver.h: Include <errno.h>.
11065 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
11067         * eqn/box.cc (body_height): Increase default value to 85.
11068         (body_depth): Increase default value to 35.
11070 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
11072         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
11073         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
11074         protected from expansion with \E.
11076         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
11078         * Makefile (Makefile): New target.
11080         * Makefile.sub (configure, distfiles): New targets.
11082         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
11083         construct.
11085 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
11087         * eqn/box.cc (param_table): Add body_height and body_depth.
11089         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
11091 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
11093         * psbb/Makefile.sub: Don't link with libgroff.a.
11095         * acgroff.m4 (GROFF_PUTENV): New macro.
11096         * configure.in: Call GROFF_PUTENV.
11097         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
11098         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
11099         is defined.
11101         * troff/env.cc (distribute_space): Rename force_forward argument
11102         to force_reverse.  Reverse the list if force_reverse is true.
11104 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
11106         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
11108         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
11109         height or depth to be negative.  Guard against SUP_RAISE quantity
11110         being negative.
11112 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
11114         * devps/generate/textmap: Add `an' (arrowhorizex).
11115         * tmac/tmac.ps: \(an overlaps horizontally.
11116         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
11118         * devps/symbolchars: Add arrowverttp, arrowvertbt.
11119         * devps/textmap: Add arrowvertex.
11120         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
11121         updownarrow delimiters.
11122         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
11124         * tbl/table.cc (simple_entry::position_vertically,
11125         block_entry::position_vertically):  For a centered entry, perform
11126         the motion in two stages.
11128         * refer/refer.cc (split_punct): Don't call lookup_token if there
11129         is no token.
11131 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
11133         * troff/input.cc (token::next): Delete token_node after copying
11134         token.
11136         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
11137         cur_point_size.
11139         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
11141         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
11143 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
11145         * grops/ps.cc (usage): -b option takes an argument.
11147         * devps/prologue (PLG): New procedure.
11148         * grops/ps.cc (main, usage): New -g option.
11149         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
11150         length using PLG.
11152 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
11154         * include/cset.h: Include <limits.h> if we have it.
11156         * libgroff/illegal.cc: New file.
11157         * include/lib.h (illegal_input_char): Use table.
11158         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
11159         * pic/lex.cc (ARG1): Renumber to 14.
11160         * eqn/lex.cc (ARG1): Likewise.
11162         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
11163         (eg 1.05.90) correctly.
11165 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
11167         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
11168         Rename $r and $R registers to $v and $V.
11169         ($r, $R): Initialize to 0.
11170         (@v, @V): New macros.
11171         (sz): Call @v.
11172         (@M): Call @V.
11174         * troff/input.cc (main, usage): Add -R option that says not to
11175         load troffrc.
11176         * eqn/main.cc (main, usage): Rename -n to -R.
11178 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
11180         * devps/DESC.in: Leave font positions 5-9 blank.
11181         * devdvi/DESC.in: Likewise.
11183         * grog/grog.pl: Handle `.PS <file' correctly.
11185         * troff/input.cc (input_stack::push): Improve error message when
11186         input stack limit exceeded.
11188 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
11190         * refer/refer.cc (main): Fix typo in handling of `a' option.
11192         * refer/refer.cc (do_bib): In state START after a newline remain
11193         in state START.
11195         * groff/groff.sh: Deleted.
11196         * groff/Makefile.sub: Delete handling of groff.sh.
11198         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
11199         to determine whether to use \X'ps:...'.
11200         * tmac/troffrc: Set 0p register to 0.
11201         * tmac/tmac.ps: Set 0p register to 1.
11203         * groff/groff.cc: Support -X option. Give warning for -TXps and
11204         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
11205         * tmac/troffrc: Support -r.X=1.
11207         * pic/troff.cc (troff_output::dot): Don't test
11208         zero_length_line_flag.
11210 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
11212         * include/lib.h: Declare getopt() and friends unless
11213         STDLIB_H_DECLARES_GETOPT is defined.
11215         * doc/chars.tr: Delete.
11216         * man/groff_char.man: New file.
11218 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
11220         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
11221         user has changed register format.
11223 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
11225         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
11226         `postpro' command in DESC file.  Get spooler command from `print'
11227         command in DESC file.  Execute spooler command with /bin/sh.
11229         * groff/groff.cc: Split Unix-specific parts into...
11230         * groff/pipeline.c: New file.
11232         * LICENSE: Delete.
11233         * COPYING: New file.
11234         * all files: Update copyright notices.
11236         * Rearrange files.  Redo Makefiles.  Use autoconf.
11238 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
11240         * troff/input.c (charinfo_to_node_list): Interpret character
11241         definition with escape_char of `\'.
11243 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
11245         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
11246         Define INT_DIGITS as big enough for 64-bit integer.
11247         * lib/strtol.c: Don't include lib.h.
11248         * lib/lib.h: Delete ifdef __cplusplus stuff.
11250 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
11252         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
11253         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
11254         get DESC from current directory.
11256 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
11258         * tbl/main.c (main): Always reset the line number when reading
11259         from stdin.
11261         * tbl/table.c (table::print_single_hline, table::print_double_hline,
11262         table::define_bottom_macro, table::do_row, table::do_top): Round
11263         vertical spacing up to vertical resolution.
11265 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
11267         * ps/ps.h (enum resource_type): Avoid comma at end of
11268         enumerator-list.
11269         * dvi/dvi.c (class dvi_printer): Likewise.
11270         * dvi/tfmtodit.c (gf::load): Likewise.
11271         * refer/label.y (struct expression): Likewise.
11272         * refer/refer.c (class label_processing_state): Likewise.
11273         * refer/indxbib.c (do_file): Likewise.
11274         * troff/troff.c (enum warning_type): Likewise.
11275         * tbl/main.c (process_data): Likewise.
11276         * troff/charinfo.h (class charinfo):
11278 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
11280         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
11282 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
11284         * groff.c: Move to new groff subdirectory.
11285         * groff/Makefile: New file.
11286         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
11288         * man/mdate.sh: Use ls -L if supported.
11290         * Consolidate all header files produced by gendef into lib/defs.h.
11291         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
11292         Don't include path.h.
11293         * lib/Makefile (path.h): Don't generate.
11294         * troff/input.c: Include defs.h. Don't include config.h.
11295         * troff/Makefile (config.h): Don't generate.
11296         * refer/index.h: Don't include suffix.h.
11297         * refer/index.c: Include defs.h.
11298         * refer/indxbib.c: Include defs.h.
11299         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
11300         defs.h.
11301         * refer/Makefile (suffix.h, path.h): Don't generate.
11302         * groff.c: Don't include config.h. Include defs.h.
11303         * Makefile (config.h): Don't generate.
11304         (lib/defs.h): Generate.
11305         (topclean): Remove lib/defs.h.
11307 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
11309         * lib/malloc.c, lib/getpagesize.h: Deleted.
11310         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
11311         related stuff.
11312         * lib/Makefile: Delete malloc-related stuff.
11313         * lib/new.c: Workaround COOKIE_BUG if necessary.
11315         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
11316         needed header files directly.
11317         * refer/refer.h: Omit definition of DEFAULT_INDEX.
11318         * Makefile: Include definition of DEFAULT_INDEX in path.h.
11320 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
11322         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
11323         argument.
11324         * lib/font (font::load_desc, font::load): Don't split argument of
11325         unknown command.
11326         (font::handle_unknown_font_command): Change type.
11327         * ps/ps.c (ps_font::handle_unknown_font_command,
11328         handle_unknown_desc_command): Change type.
11329         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
11331 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
11333         * lib/font.h (font::handle_unknown_font_command): Add file and
11334         line arguments.
11335         * lib/font.c (font::handle_unknown_font_command):
11336         * ps/ps.c (ps_font::handle_unknown_font_command):
11337         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
11338         lineno arguments.  Use _with_file_and_line functions for error
11339         reporting.
11341         * lib/fontfile.c (font::unknown_desc_command_handler): New static
11342         data member.
11343         * lib/font.c (font::set_unknown_desc_command_handler): New
11344         function.
11345         (font::load_desc): For unknown commands, call
11346         unknown_desc_command_handler if not null.
11347         * lib/font.h (class font): Declare them.
11348         (FONT_COMMAND_HANDLER): New typedef.
11349         * ps/ps.c (handle_unknown_desc_command): New function.
11350         (main): Set bflag if we had a -b option. Call
11351         font::set_unknown_desc_command_handler.
11352         (broken.h): Don't include.
11353         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
11354         submake 
11355         * ps/devps/Makefile: Add `broken' command to DESC file using
11356         BROKEN_SPOOLER_FLAGS.
11358         * macros/tmac.e ([, ]): Add as synonyms for { and }.
11360         * macros/tmac.e ($p): Only exdent if \$3 > 0.
11362         * macros/tmac.e (@R, @S): New macros.
11363         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
11364         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
11365         Declare $H, $[0-9], .. macros with @S.
11366         Declare |0, |1, |2, |3 strings with @S.
11368         * macros/tmac.e (@S): Rename to @U.
11370         * macros/tmac.e (@z): Define @b and bp as empty instead of
11371         deleting them,
11373         * macros/tmac.e (@m): Deleted.
11374         (@h): Don't call @m.
11375         (@z): Don't set @m trap.
11377         * macros/tmac.e ($h, $f): Define |z as empty string.
11379         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
11380         (@q): Likewise.
11382         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
11383         removing them.
11384         ()f): Likewise for * register.
11386         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
11387         argument is missing, don't change $R.  Call sr with three
11388         arguments when initializing.
11390 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
11392         * macros/tmac.e (sr): New macro.
11393         Initialize $r and $R using sr.
11395         * macros/tmac.e (,): Delete \*(#[.
11397         * troff/env.c (set_tabs): Read the tab type even if the position
11398         is bad.  Allow the position of the first tab stop to be negative.
11400 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
11402         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
11403         _POSIX_VERSION.
11404         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
11405         rather than -DPATHCONF_MISSING.
11406         * Makefile: Get rid of PATHCONF_MISSING.
11408         * refer/map.c: New file.
11409         * refer/index.c: Interface to mmap through map.c.  Rename map_size
11410         to map_len.
11411         * refer/Makefile: Handle map.c.
11412         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
11414 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
11416         * Makefile: RANLIB should be `true' if there is no ranlib.
11417         * lib/Makefile (libgroff.a): Simplify.
11418         * driver/Makefile (libdriver.a): Simplify.
11420         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
11421         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
11422         defined.
11424 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
11426         * troff/env.c (compare_ranges): Declare as extern "C".
11428         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
11430         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
11432 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
11434         * pic/troff.c (troff_output::text): Merge in grops_output::text,
11435         but conditionalize use of \X based on \*(.T.
11436         (grops_output::*): Deleted.
11437         * pic/output.h: Delete declaration of make_grops_output.
11438         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
11439         by default. -n sets it to 0.
11440         (usage): Corresponding changes.
11441         * groff.c (main): Don't pass -x or -p to pic.
11442         * groff.sh: Likewise.
11444         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
11445         to be non-zero.
11447         * ps/devps/afmtodit: Change calculation of asc_boundary and
11448         desc_boundary.  Make these bounds inclusive.
11449         * ps/devps: Regenerate font files.
11451 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
11453         * macros/tmac.latin1: New file.
11454         * macros/tmac.tty-char: Use tmac.latin1.
11455         (tmac.tty-tr): Deleted.
11456         * macros/Makefile: Install tmac.latin1.
11457         * macros/tmac.dvi: Use tmac.latin1.
11458         * macros/troffrc: Translate \[char160] onto no-break space here.
11459         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
11461 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
11463         * macros/tmac.Xps: Use `do' request.
11465         * macros/tmac.ps: Use `do' request.
11467         * macros/tmac.e (@C): Use `do' request.
11469         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
11470         * macros/Makefile: Install tmac.X*.
11472         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
11473         * tty/Makefile: Don't install tmac.tty*.
11474         * macros/Makefile: Install tmac.tty*.
11476         * dvi/tmac.dvi: Move to macros.
11477         * dvi/Makefile: Don't install tmac.dvi.
11478         * macros/Makefile: Install tmac.dvi.
11480         * ps/tmac.ps*: Move to macros.
11481         * ps/Makefile: Don't install tmac.ps*.
11482         * macros/Makefile: Install tmac.ps*.
11484         * eqn/box.c: Provide draw_lines parameter corresponding to -D
11485         option.
11486         * macros/eqnrc: Set draw_lines parameter based on device.
11487         * groff.c: Don't pass -D flag to eqn.
11488         * groff.sh: Likewise.
11489         * eqn/main.c: Warn about use of -D.
11491         * troff/input.c (process_startup_file): New function.
11492         (main): Call process_startup_file().
11493         * macros/troffrc: New file.
11494         * macros/Makefile: Install troffrc.
11495         * groff.c (main): Don't pass extra -m option to troff. For a 
11496         pseudo device pass the name of the pseudo device to troff using
11497         -d.
11498         * groff.sh: Likewise.
11499         * groff.c (possible_command::prepend_arg): Deleted.
11501         * troff/input.c (do_request): New function.
11502         (init_input_requests): Bind "do" to do_request.
11504         * eqn/main.c (main): Instead of loading eqnchar from device directory,
11505         load eqnrc from macro directory.
11506         * macros/eqnrc: New file.
11507         * macros/Makefile: Install eqnrc.
11508         * ps/devps/eqnchar: Deleted.
11509         * ps/devps/Makefile: Don't install eqnchar.
11510         * dvi/devdvi/eqnchar: Deleted.
11511         * dvi/devdvi/Makefile: Don't install eqnchar.
11512         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
11513         variable optM.
11515         * lib/device.[ch]: New files.
11516         * lib/font.h (font::set_device_name, font::get_device_name):
11517         Deleted.
11518         * lib/fontfile.c: Use device.h.
11519         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
11520         * troff/input.c: Delete definition of `device'.
11521         (main): Don't initialize device.
11522         * troff/troff.h: Include device.h rather than declaring device.
11523         * troff/Makefile: No need to handle DEVICE.
11524         * driver/input.c: Include device.h. Don't use
11525         font::{set,get}_device_name.
11526         * groff.c, Makefile: Rename device.h to config.h.
11527         * groff.c: Use library device variable.
11528         * eqn/main.c: Use library device variable.
11529         * eqn/Makefile: No need to handle DEVICE.
11531         * lib/searchpath.[ch]: New files.
11532         * lib/Makefile: Handle searchpath.[ch].
11533         * troff/input.c (open_file, init_dirs): Deleted.
11534         (macro_dirs): Deleted.
11535         (open_mac_file, macro_source): Use class search_path.
11536         (add_string, struct string_list): Move definition.
11537         (main): Change -M option to use macro_path. Delete call to
11538         init_dirs().
11539         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
11540         Rewrite to use class search_path.
11541         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
11542         * lib/Makefile: fontfile.c depends on searchpath.h.
11543         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
11544         MACROPATH.
11545         * lib/macropath.[ch]: New files.
11546         * troff/Makefile: No need to handle MACROPATH.
11548         * troff/input.c: Delete DUMP code.
11549         * lib/fontfile.c, lib/font.h: Delete
11550         font::forget_command_line_font_dirs.
11552         * troff/input.c (push_token): New function.
11553         (handle_first_page_transition): Use push_token().
11554         (process_input_stack): Change handling of a space at the beginning
11555         of the line.
11557 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
11559         * troff/input.c (font_dirs): Delete unused variable.
11561         * eqn/lex.c (do_set): Correct error messages.
11563 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
11565         * troff/input.c (do_define_string): Allow the string name to be
11566         followed immediately by a tab.
11567         (define_character): Likewise.
11569 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
11571         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
11572         be negative.
11574         * troff/input.c (input_iterator::is_file): New virtual function.
11575         (file_iterator::is_file): New function.
11576         (input_stack::end_file): New function.
11577         (input_stack::next_file): Handle the situation where there is no
11578         file on the input stack correctly.  Avoid making two passes over
11579         the input stack.
11580         (next_file): Make the filename optional; in this case call
11581         input_stack::end_file().
11583 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
11585         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
11586         produce a real _ charater when the current font is CW and _
11587         otherwise.
11589         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
11590         expression to work around gcc 2.2 bug.
11592 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
11594         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
11596         * troff/env.c (environment::add_padding): New function.
11597         (environment::add_char): Use add_padding().
11598         (environment::space): Likewise.
11599         (environment::wrap_up_field): Add some padding if there is none
11600         and there's no current tab.
11601         * troff/env.h: Declare environment::add_padding.
11603 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
11605         * pic/pic.y: undef fmod and rand before declaring them.
11607 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
11609         * troff/input.c (main): If the DESC file specifies a font name of
11610         0, then leave the corresponding font position empty.
11612         * nroff.sh: New file.
11613         * Makefile (install.nobin): Install nroff.sh.
11615         * tty/devlatin1/R.proto: Add ao as synonym for de.
11616         * tty/tmac.tty-char: Define ao as o.
11618         * tty/dev{ascii,latin1}/R.proto: Add aq.
11619         * tty/tmac.tty-char: Delete definition of aq.
11621 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
11623         * troff/input.c (init_charset_table): Don't translate 0240.
11624         * ps/tmac.ps: Translate char160 to space.
11625         * dvi/tmac.dvi: Likewise.
11626         * tty/tmac.tty: Likewise.
11628 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
11630         * dvi/tmac.dvi: Add support for all Latin-1 characters.
11632         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
11633         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
11634         \(oe, \(r?, \(r!.
11636         * tty/tmac.tty-char: Add \(ah.
11638         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
11639         No need to define \(FM and \(!/. Conditionalize all character
11640         definitions.
11642         * ps/devps/lgreekmap: Add +h, +f, +p.
11644         * ps/tmac.psnew: New file.
11645         * ps/Makefile: Install tmac.psnew.
11647         * troff/input.c (charinfo_to_node_list): Don't ever interpret
11648         character definitions in compatible mode.
11650         * troff/input.c (remove_character): New function.
11651         (init_input_requests): Bind remove_character to "rchar".
11653         * ps/tmac.psold: New file.
11654         * ps/Makefile: Install tmac.psold.
11655         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
11656         characters into tmac.psold.  Make these definitions unconditional.
11658         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
11660         * ps/tmac.ps: Don't define \('c and \('C.
11662         * ps/devps/textmap: Move Greek characters to...
11663         * ps/devps/symbolchars:
11665 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
11667         * ps/devps/text.enc: Add quotesingle.
11668         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
11669         * tty/tmac.tty-char: Likewise.
11670         * dvi/devdvi/texmi.map: Add +h, +f, +p.
11671         * dvi/devdvi/texi.map: Add Fn.
11672         * dvi/devdvi/msam.map: Add lz.
11673         * dvi/tmac.dvi: Handle Bq, bq, aq.
11675         * pic/lex.c (get_token): Recognize 'th.
11676         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
11678 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
11680         * ps/devps/textmap: Move di, mu, +- to...
11681         * ps/devps/symbolchars:
11683         * macros/tmac.s (@XS): Don't call par@reset or fi.
11684         (XA): Call LP. Turn off adjustment. Reduce line length.
11686         * macros/tmac.s: Initially alias XS to LP.
11687         (XS): Rename to @XS.
11688         (cov*ab-init): Alias XS to @XS.
11690 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
11692         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
11693         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
11694         (token::is_size, token::changes_env): Deleted.
11695         * troff/number.c (parse_term): No need to process \s explicitly.
11696         Call tok.next() only after scale indicator has been processed.
11697         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
11698         \f etc explicitly.
11699         (token::next): Handle \s, \f, \S, \H immediately rather than
11700         returning them as tokens.
11701         (token::operator==, token::description, token::add_to_node_list,
11702         token::process): Remove handling of deleted tokens.
11704         * troff/env.c (environment::add_char): When adding padding
11705         indicator character, call start_line() if necessary.
11707 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
11709         * ps/devps/afmtodit: Don't output 0 kerns.
11711         * ps/devps/afmtodit: Remove directory from name of encoding in
11712         font description file.
11714         * ps/devps/afmtodit: Improve error messages.
11716         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
11718         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
11719         * ps/devps/FontMakefile: Deleted.
11720         * ps/devps/afmname: New file.
11722         * ps/devps/symbol.sed: New file.
11723         * ps/devps/symbol.diff: Deleted.
11724         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
11725         Generate zapfdr.afm from zapfd.afm.
11727         * tty/tmac.tty (tty-char): Prefix definition with ".
11729         * macros/tmac.an (TP): Don't start a diversion if one has already
11730         been started.
11732         * tty/tmac.tty-char: Add Latin-1 characters.
11734         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
11736 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
11738         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
11739         Move declaration of struct horizontal_span.
11741         * tbl/table.c (table::table): Initialize span_list.
11742         (table::~table): Delete span_list.
11744         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
11746         * ps/devps/Makefile: Avoid dependency on GNU make.
11748         * ps/tmac.ps: Check that character does not already exist before
11749         defining it.
11751         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
11752         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
11753         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
11754         files.
11756         * tty/tmac.tty-char: New file.
11757         * tty/Makefile: Install tmac.tty-char.
11758         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
11759         tmac.tty-char.
11761         * tty/tmac.tty: Fix definition of \(34.
11763         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
11764         bracket-drawing characters onto |. Add *o.
11766         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
11767         only if current_field.
11769         * troff/dictionary.c (dictionary::lookup): Free old_table after
11770         rehashing. 
11772 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
11774         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
11775         whose glyphs are identical to glyphs of some Roman character.
11777         * tty/devlatin1/R.proto (bu): Deleted.
11778         * tty/devascii/R.proto (bu): Deleted.
11779         * tty/tmac.tty: Add definition of \(bu.
11781         * eqn/main.c (do_file): Pass FILE as argument.
11782         (main): Automatically load eqnchar.  New options -F and -n.
11783         Pass do_file an opened FILE.
11784         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
11785         No need to include font.h.
11786         * groff.sh: Likewise.  Don't need to use - for standard input.
11787         Prefix files with -- if first file starts with -.
11789         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
11791         * troff/env.c (environment::possibly_break_line): Don't set line
11792         to 0 across call to output_line().  Don't call output_line() until
11793         after discarding nodes after break.
11795 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
11797         * request.h (macro::empty): Declare it.
11798         * input.c (macro::empty): New method.
11799         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
11800         macro is empty.
11802 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
11804         * troff/env.c (environment::start_field): Decrement space_total
11805         when a space is frozen.
11807 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
11809         * macros/tmac.an (R): Delete macro.
11811         * troff/input.c (get_copy, token::next): Support \# (like \" but
11812         newline is ignored).
11814         * troff/input.c (token::next): Fix error message in 'Y' case.
11816 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
11818         * eqn/delim.c (define_extensible_string): Recognize any prefix of
11819         a delimiter name.
11821 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
11823         * c++test.c: Include <osfcn.h>.
11825         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
11826         <errno.h> doesn't.
11828 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
11830         * tbl/table.c (table::divide_span): Don't count column separation
11831         if expand was specified.
11833         * tbl/main.c (process_format): Don't ignore width specs in
11834         continued format.  Give warning for changing equal widths or
11835         column separation in continued format.
11836         (process_data): Set column separation, minimum width, equal
11837         columns at end of table.
11839 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
11841         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
11842         node::add_discretionary_hyphen): Use soft_hyphen_char.
11843         (set_soft_hyphen_char): New function.
11844         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
11846         * Makefile (c++tested): Give more helpful message if test fails.
11848 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
11850         * troff/input.c (init_charset_table): Translate 0240 to
11851         an unbreakable space.
11853         * troff/token.h (token::hyphen_indicator): New function.
11854         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
11855         translation.
11856         * troff/input.c (translate): Allow translation to \%.
11857         * troff/node.c (node::add_char): Handle
11858         TRANSLATE_HYPHEN_INDICATOR.     
11859         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
11861         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
11862         for \(hy.
11864         * tty/devlatin1/R.proto: \(hy and - should print as 055.
11866 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
11868         * groff.c (run_commands): If the last command gets a SIGPIPE send
11869         a SIGPIPE to all children than haven't yet terminated.  When
11870         command terminates, set pid field to -1.
11872 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
11874         * groff.c (main): Pass an appropriate -filename option to gxditview.
11876 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
11878         * Makefile.bd (install): Remove existing program before copying.
11880         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
11881         programs which have Unix counterparts to be installed with
11882         user-specified prefix.
11884         * troff/input.c (exit_troff): Don't check if exit_started.
11885         (exit_request): Don't call exit_troff if exit_started.
11887         * Makefile.bd (install.mm): Rename to install.dwbmm.
11889 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
11891         * driver/input.c (do_file): Add missing break for '#' case.
11893 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
11895         * troff/input.c (input_stack::clear):  Clear past any boundaries and
11896         then add the boundaries back.
11898         * troff/input.c (exit_troff): Return immediately if already
11899         exiting.
11901         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
11902         end macro.
11903         (pg*end-page): If the text has ended and there are no more
11904         footnotes or keeps, exit.
11906         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
11908         * troff/input.c (init_charset_table): Make \(rq transparent by
11909         default.
11911         * macros/tmac.an: Define lq and rq strings.
11913         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
11915 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
11917         * troff/env.c (environment::final_break): New function.
11918         (environment::newline): Set prev_line_interrupted to 2 if
11919         exit_started.
11920         * troff/env.h: Declare environment::final_break.
11921         * troff/input.c (exit_troff): Call environment::final_break()
11922         instead of environment::do_break().
11924         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
11925         doesn't already exist.
11926         * macros/man.local: New file.
11927         * macros/tmac.an: Load man.local.
11928         * macros/man.ultrix: New file.
11930 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
11932         * troff/input.c (exit_groff): Rename to...
11933         (exit_troff): New function.
11935         * troff/div.c (exit_started, done_end_macro,
11936         seen_last_page_ejector): New global variables.
11937         (began_page_in_end_macro): New static variable.
11938         (exit_flag): Deleted.
11939         (top_level_diversion::top_level_diversion): Initialize
11940         last_page_count.
11941         (top_level_diversion): More elaborate test for whether
11942         cleanup_and_exit() should be called.
11943         Set began_page_in_end_macro if the end macro isn't yet finished.
11944         * troff/div.h (top_level_diversion::last_page_count): New data
11945         member.
11946         (top_level_diversion::set_last_page): New function.
11947         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
11948         * troff/env.c (do_break): Zero prev_line_interrupted.
11949         * troff/input.c (exit_flag): Delete declaration.
11950         (LAST_PAGE_EJECTOR): New magic cookie.
11951         (token::next): Handle LAST_PAGE_EJECTOR.
11952         (exit_groff): Set exit_started and done_end_macro instead of
11953         exit_flag.  Call top_level_diversion::set_last_page.  Push a
11954         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
11955         another ejection after setting seen_last_page_ejector.
11957 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
11959         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
11961         * macros/tmac.e (TH): Make sure there's room for the initial
11962         header.
11964         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
11965         Set FVS in points rather than units.
11967 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
11969         * troff/div.c (top_level_diversion::add_trap): Don't consider the
11970         position of empty slots.
11972 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
11974         * ps/devps/S: Fix height and depth of parenrightex.
11975         * ps/devps/symbol.diff: Regenerate.
11977 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
11979         * tmac.e (u): Do underlining as in -mgs.
11981 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
11983         * tty/tty.c (tty_printer::end_page): If overstriking is
11984         suppressed, still turn overstruck horizontal and vertical lines
11985         into +.
11987         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
11988         2.1.
11990         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
11992 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
11994         * Version 1.05 released.
11996 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
11998         * tty/tty.c: Instead of keeping an array of glyphs and then
11999         sorting it, keep a ordered linked list of glyphs for each line.
12001         * driver/driver.h: Include stddef.h.
12003         * tty/tty.c (compare_glyph):
12004         * refer/refer.c (rcompare):
12005         * troff/env.c (compare_ranges): Arguments of qsort comparison
12006         function should be const void *.
12008         * troff/number.c (parse_term):
12009         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
12010         switch statement.
12012         * refer/label.y (consider_authors): Don't access variables
12013         constructed under a condition outside that condition: put braces
12014         round for statement containing declaration; redeclare use of same
12015         variable later.
12017         * pic/pic.y (text_expr): Delete production that allows
12018         parenthesised text_expr.
12019         (expr): Allow a conditional_expr to appear in parentheses.
12020         (conditional_expr): Rename to any_expr.
12022         * mm: Install new version 1.01 from jh.
12024         * lib/font.c (font::get_width): Cache scaled widths.
12025         (font::font): Initialize widths_cache.
12026         (font::~font): Destroy widths_cache.
12027         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
12029 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
12031         * c++test.c, c++test.ref: New files.
12032         * Makefile: Check that the C++ compiler works.
12034         * ps/tmac.pspic (PSPIC): Do a break.
12036         * ps/tmac.ps: Move definition of PSPIC into...
12037         * ps/tmac.pspic: New file.
12038         (PSPIC): Draw box around picture, but make it invisible to grops.
12039         * ps/tmac.ps: Load tmac.pspic.
12040         * ps/Makefile: Install tmac.pspic.
12042 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
12044         * lib/font.c (scale_round): If n is negative,
12045         subtract .5 before truncating floating point result.
12047         * lib/fontfile.c: Include <errno.h>.
12049 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
12051         * driver/input.c (get_char): Inline. Don't update current_lineno.
12052         Change callers to up date current_lineno if necessary.
12053         Use get_char() instead of getc(current_file).
12055 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
12057         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
12059 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
12061         * tty/tty.c (tmac.tty): Define \(rg as (R).
12063 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
12065         * lib/lib.h: New define a_delete.
12066         * Use a_delete instead of delete when deleting an array of objects
12067         without destructors.
12069         * lib/lib.h: Rename adelete to ad_delete.
12070         * Change uses of adelete.
12072 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
12074         * eqn/eqn.y: Include lib.h.
12076         * troff/node.c (grow_font_table): Delete old_font_table.
12078         * mm: Install new version from jh.
12080 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
12082         * tbl/table.h (format_type): Make global instead of local to class
12083         entry_format.  Prefix enumerators with FORMAT_.
12084         * tbl/table.c, tbl/main.c: Corresponding changes.
12085         * refer/token.h (token_type): Make global.  Prefix enumerators
12086         with TOKEN_.
12087         * refer/token.[ch]: Corresponding changes.
12088         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
12090         * troff/div.c (node::set_vertical_size): Don't name argument.
12092 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
12094         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
12095         * lib/lib.h: Define adelete accordingly.
12096         * pic/object.c (graphic_object::graphic_object):
12097         * tbl/main.c (format::~format):
12098         * tbl/table.c (table::~table):
12099         * refer/ref.c (reference::~reference, reference::merge,
12100         reference::insert_field, reference::delete_field): Use adelete.
12102         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
12103         * refer/token.h:
12104         * tbl/table.h: Corresponding changes.
12106         * common.c (common_output::dashed_arc, common_output::dotted_arc):
12107         Ensure total_angle is positive.
12109 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
12111         * refer/ref.c (reference::merge, reference::insert_field,
12112         reference::delete_field): Avoid delete[0].
12114         * refer/token.c (init_special_chars): Move calls to cmupper
12115         outside calls to init_two_char_letter to work around bug in gcc
12116         2.0.
12118 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
12120         * lib/new.c (operator new): Use __builtin_new for g++.
12122         * pic/object.c (graphic_object::~graphic_object):  Don't use
12123         delete [] on 0.
12125         * pic/object.c (output::compute_scale): Initialize max_width and
12126         max_height.
12128 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
12130         * troff/input.c (write_request): Call fflush.
12132         * troff/node.h (class composite_node): Move declaration to node.c
12133         * troff/input.c (charinfo_to_node): Rename to ...
12134         (charinfo_to_node_list): Return node list rather than composite
12135         node.
12136         * troff/node.c (make_composite_node): New function.
12137         (make_node, add_char): Call make_composite_node instead of
12138         charinfo_to_node.
12139         (class composite_node): Add a tfont * member.  Delete font_size
12140         member.
12141         (composite_node::composite_node, composite_node::copy,
12142         composite_node::size): Corresponding changes.
12143         (composite_node::tprint): Provide constant spacing, emboldening
12144         and track kerning as specified in tfont.
12145         (composite_node::width): Change width calculation accordingly.
12146         * troff/env.h (environment::composite): New member.
12147         (environment::is_composite, environment::set_composite): New
12148         functions.
12149         * troff/env.c (environment::environment): Initialize composite.
12150         * troff/input.c (charinfo_to_node): Call
12151         environment::set_composite.
12152         * troff/node.c (make_composite_node, make_glyph_node): Use the
12153         plain version of the tfont if the environment is composite.
12155         * troff/node.c (font_info::get_space_width): Additional argument
12156         giving space_size.  Handle constant space correctly. Scale by
12157         space_size unless constant spaced.
12158         (env_sentence_space_width): New function.
12159         * troff/node.h: Declare it.
12160         * troff/env.h (environment::get_space_size,
12161         environment::get_sentence_space_size,
12162         environment::get_narrow_space_width,
12163         environment::get_half_narrow_space_width): Make inline.
12164         (environment::get_space_width): Make inline.  Just call
12165         env_space_width.
12166         * troff/env.c: Delete definitions for funtions made inline.
12167         (environment::space_newline, environment::space): Use
12168         env_sentence_space_width(). Don't scale by space_size.
12169         * troff/node.h: Move declarations of env*space_width() functions
12170         into env.h.
12172 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
12174         * macros/tmac.s (PS): Don't try to set negative indent.
12176 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
12178         * pic/pic.y: Fix min function.
12180 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
12182         * man/mdate.sh: Clear LANGUAGE.
12184 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
12186         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
12187         * pic/lex.c: New COMMAND keyword.
12188         * pic/pic.y (print_args, print_arg): New rules.
12189         (placeless_element): Use print_args for PRINT.
12190         New COMMAND element.
12192 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
12194         * troff/input.c (terminal): Handle missing argument correctly.
12196         * pic/pic.y (text_expr): New rule.
12198         * pic/pic.y: Implement := operator.
12200 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
12202         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
12203         mdoc.
12205 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
12207         * ps/devps/dingbatsrmap: Include this in the distribution.
12209         * macros/tmac.doc: Replace with new version from 2nd Networking
12210         Release. Fix loading of doc-* files.
12211         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
12212         * macros/tmac.doc.old: New file.  Apply fixes that had been
12213         applied to old tmac.doc.
12214         * macros/tmac.andoc: Check that we're running under groff.
12215         * macros/Makefile: Rework.
12217 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
12219         * tbl/table.h (format_type): 
12220         * refer/token.h (token_type): If NESTED_TYPES is defined, use
12221         typedef to make these types visible at file scope.
12222         * Makefile: Add NESTED_TYPES configuration option.
12224         * troff/div.c (mark): At the top level use the value of
12225         nl_reg_contents rather than the current vertical position.
12227 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
12229         * tty/tty.c: Implement \D for horizontal or vertical lines.
12230         (tty_printer::set_char): Use vec_used+2 as serial number.
12231         Don't allow size of vector to exceed USHRT_MAX-2.
12232         Split off part into...
12233         (tty_printer::add_char): New function.
12234         (tty_printer::draw): New function.
12235         (compare_glyph): Handle equal serial numbers.
12236         (tty_printer::end_page): Handle overstruck characters from \D.
12237         (main, usage): Implement -d option.
12239 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
12241         * tbl/main.c (process_format):
12242         * eqn/text.c (split_text):
12243         * troff/input.c (token::next): Use inner block for declarations
12244         with initializers in switch statement.
12246 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
12248         * pic/common.c (common_output::dash_line): Cope with zero-length
12249         lines.
12251 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
12253         * Version 1.04 released.
12255 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
12257         * macros/tmac.an (TH): Define a macro an-init to define variables
12258         based on command line arguments.
12259         (an-header): Call it.
12261 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
12263         * Makefile (install.mm): Rename to install.dwbmm.
12265         * Makefile: Integrate mm.
12266         * mm: New directory.
12268 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
12270         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
12271         <sys/types.h>.
12273         * pic/troff.c (troff_output::simple_spline,
12274         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
12275         shadowing parameter.
12277         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
12279         * lib/ptable.h: Add explicit casts when converting from unsigned
12280         long to unsigned.
12282         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
12283         * dvi/devdvi/Makefile: Install SA, SB.
12285         * refer/indxbib.c: Add declaration of mktemp.
12287         * refer/lookbib.c: Add declaration of isatty.
12289 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
12291         * pic/lex.c (interpolate_macro_with_args):  While collecting
12292         arguments, keep track of whether we're in a string.
12294 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
12296         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
12297         down with \v, so as to avoid problems with top of page trap
12298         setting no space mode.
12300 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
12302         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
12304 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
12306         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
12307         Improve error message.
12309 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
12311         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
12312         printf("%03o");
12314 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
12316         * groff.c (possible_command::execp): Always use _exit() after a
12317         failed exec.
12319         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
12320         NO_SYS_WAIT_H   configuration options.
12321         * groff.c: Use these options.  Use POSIX-style macros to extract
12322         fields from the status returned by wait().
12324 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
12326         * tbl/table.c (table::compute_separation_factor): Allow the
12327         separation factor to drop to 0.
12329 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
12331         * refer/search.c: Include <errno.h>.
12333 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
12335         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
12337         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
12338         C++. 
12340         * pic/lex.c (input_stack::bol): Move definition out of class body.
12342         * pic/main.c: On MSDOS munge argv[0].
12344         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
12346         * lib/ptable.c (hash_string): Use unsigned long rather than
12347         unsigned.
12348         (next_ptable_size): Use unsigned rather than int.  Give an error
12349         message if we've hit the largest table size.
12350         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
12351         table size.
12353         * pic/object.h (object_spec): Make flags unsigned long.  Declare
12354         flags as const unisgned long rather than as enums.
12356         * pic/output.c: Deleted.
12358         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
12360         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
12361         Add additional argument.
12362         (line_entry::note_double_vrule_on_{left,right}): Set value of
12363         douvle_vrule_on_{right,left} flag according to argument.
12364         (simple_line_entry::simple_print,
12365         simple_line_entry::double_line_print): If adjacent to double vrule
12366         on a corner extend rather than shorten the rule by half the double
12367         vrule sep.
12369         * troff/number.c (parse_term): In checking for overflow, handle the
12370         case where the current horizontal position is negative.
12372 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
12374         * pic/object.c (draw_arrow): Check for object having zero length.
12376 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
12378         * eqn/main.c (do_file): Split off inline equation handling into...
12379         (inline_equation): New function.  Search for starting delimiter
12380         using...
12381         (delim_search): New function. Don't recognize a delimiter that
12382         occurs in the name of an escape sequence, number register, string
12383         etc.
12385 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
12387         * eqn/delim.c (delim_box::compute_metrics): Don't call
12388         define_extensible_string if left is 0.
12389         (delim_box::output):  Don't print the left delimiter if left is 0.
12390         (delim_box::debug_print): Check for left == 0 before calling printf.
12392 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
12394         * troff/Makefile (majorminor.c): Include only digits in
12395         minor_version.
12397 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
12399         * refer/dirnamemax.c: new file.
12400         * refer/genlimits.c: Deleted.
12401         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
12402         Don't check path length.
12403         * refer/Makefile: Add dir_name_max.o; delete genlimits.
12404         * Makefile: Add PATHCONF_MISSING option.
12406         * refer/indxbib.c (get_cwd): New function.
12407         (main): Use get_cwd().
12408         * lib/getcwd.c: New file.
12409         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
12410         GETCWD in SUBFLAGS.
12411         * lib/Makefile: Compile getcwd.o.
12413         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
12414         userdict.
12416         * refer/indxbib.c (main): Check success of mktemp.
12418         * lib/tmpfile.c: New file.
12419         * lib/Makefile: Add tmpfile.c.
12420         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
12421         * ps/ps.h: Delete declaration of mktemp().
12422         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
12423         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
12424         * driver/driver.h: No need now to include errno.h.
12426         * everywhere: Set errno to 0 before calling fopen().
12428         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
12429         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
12430         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
12432 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
12434         * troff/env.h (translate_space_to_dummy): Declare it.
12435         * troff/env.c (environment::space_newline, environment::space):
12436         If translate_space_to_dummy is set then make the width of spaces 0.
12437         * troff/input.c (translate): If the second character of a
12438         translation is a space, translate to unbreakable space.  If the
12439         first character is a space, set or clear translate_space_to_dummy
12440         according to whether the second character is \&.  Weird!
12442 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
12444         * groff.c (run_commands): Don't use non-zero exit code because a
12445         command gets SIGPIPE.
12447         * groff.c, groff.sh: Use -mXps with -TXps.
12449         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
12450         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
12451         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
12452         (ps_printer::special): New specials invis and endinvis.
12453         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
12454         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
12455         (ps_printer::end_page): Check that invis_count == 0.
12456         (ps_printer::invis_count): New member.
12457         (ps_printer::ps_printer): Initialize invis_count to 0.
12459         * troff/env.c (environment::hyphenate_line): Hyphenation
12460         indicator at beginning of word inhibits splitting after -, \(em
12461         etc.
12463         * pic/pic.y (element): Allow another element to follow } without
12464         any intervening separator.
12466 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
12468         * pic/lex.c (get_delimited): Allow tabs before delimiter.
12470 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
12472         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
12473         declaration of wait() in header files.
12474         * Makefile: Get rid of -DHAVE_UNION_WAIT.
12476         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
12478         * lib/lib.h: Declare return type of strerror as char *.
12480         * man/Makefile: Add g flag to sed substitutions.
12481         * Makefile (shgroff, bindist): Likewise.
12483 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
12485         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
12486         * ps/devps/prologue (PBEGIN): Define showpage after pushing
12487         userdict.
12489 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
12491         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
12492         userdict.
12494 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
12496         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
12497         group.
12499 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
12501         * troff/input.c (define_number_reg):  If currently undefined,
12502         don't define it if the argument is an invalid expression.
12504         * Makefile: Ignore return value of `if' commands without `else'
12505         parts.
12507         * Makefile: Split up CPPDEFINES into a series of separate
12508         configuration options.
12510         * troff/input.c (init_registers): Use time_t instead of long
12511         unless LONG_FOR_TIME_T is defined.  Use returned result rather
12512         than passing pointer.
12513         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
12515         * lib/Makefile (fontpath.h): Use gendef.
12517 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
12519         * troff/input.c (input_iterator::shift): Delete argument name.
12520         * troff/node.c (suppress_output_file::really_begin_page,
12521         suppress_output_file::really_transparent_char, node::ascii_print,
12522         node::tprint): Delete names of unused arguments.
12524 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
12526         * refer/label.y (string):  Pass $4 to command_error.
12528 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
12530         * Version 1.03 released.
12532 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
12534         * Makefile: Pass definition of SHELL in SUBFLAGS.
12536         * gendef: New file.
12537         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
12538         ps/Makefile: Use gendef to construct header files that are
12539         constructed from the Makefile.
12541         * macros/Makefile: make all should build stripped version of tmac.e.
12543         * refer/Makefile (clean): Remove y.output.
12545 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
12547         * ps/pfbtops.c (main): Add -v option which prints out a version
12548         number.
12549         * ps/Makefile (pfbtops): Link with libgroff.a.
12551 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
12553         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
12554         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
12556         * refer/lkbib.c (main): Always terminate reference with blank
12557         line.
12558         * refer/lookbib.c (main): Likewise.
12560         * refer/linear.c (file_buffer::load): Check that the file is not a
12561         binary file.
12563         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
12564         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
12565         Delete second inclusion of <sys/param.h>.
12567 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
12569         * troff/token.h (token::special): Deleted.
12571         * tbl/main.c (process_format): Rework so that opt->tab_char is
12572         recognized only when appropriate.
12574         * ps/Makefile (clean): Remove pfbtops.
12576 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
12578         * lib/font.c (text_file::next): Don't return if we have got a
12579         blank line.
12581 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
12583         * refer/refer.c (store_reference): Get hash code from old_table[i]
12584         when rehashing the table.
12586 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
12588         * eqn/box.c (box::top_level): Save size and prev size using \R and
12589         restore it afterwards. Set the size to the size at the beginning
12590         of the line.
12591         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
12592         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
12594         * refer/Makefile (limits.h): Use ./genlimits.
12596 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
12598         * refer/index.c: Delete declarations of stat() and fstat().
12600 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
12602         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
12604 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
12606         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
12608 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
12610         * troff/input.c (token::get_char): Handle \e.
12612         * refer/linear.c: Delete declarations of fstat() and stat().
12614 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
12616         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
12617         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
12619 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
12621         * troff/input.c (do_define_macro): Improve error handling for end
12622         of file while defining macro.
12624 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
12626         * eqn/box.h: Fix declaration of set_gsize.
12627         * eqn/box.c (set_gsize): Make argument const char *.
12628         (gsize): Declare as char *.
12629         * eqn/main.c (main): Don't convert gsize to int.
12630         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
12632         * Version 1.02 released.
12634 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
12636         * macros/tmac.andoc: New file.
12637         * macros/Makefile: Install tmac.andoc.
12639         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
12640         operator new and delete on OP_DELETE_BROKEN not being defined.
12641         * Makefile: Mention OP_DELETE_BROKEN.
12643 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
12645         * Makefile (bindist): Pass SUBFLAGS.
12647 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
12649         * Makefile, groff.c: Pass definitions to groff.c via device.h.
12651         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
12652         parameter.
12654         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
12656         * ps/ps.h, ps/psrm.c: Make comment_table and
12657         header_comment_table local to resource_manager::process_file.
12659         * groff.sh: With -TXps pass -printCommand option to gxditview.
12661         * groff.c (possible_command::print): Implement using
12662         append_arg_to_string.
12664         * xditview: Merge in new implementation with own ChangeLog.
12666 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
12668         * groff.c (main): Implement PRINT_OPTION.
12669         (append_arg_to_string): New command.
12670         (device_table): Set PRINT_OPTION flag for Xps.
12672 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
12674         * troff/groff.h: Rename to troff.h.
12676         * pic/lex.c (lookup_keyword, docmp): New functions.
12677         (get_token): Use new lookup_keyword.
12678         Don't include key.h.
12679         * pic/key.[ch], pic/pic.gperf: Deleted.
12680         * pic/Makefile: Remove gperf stuff.
12682         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
12683         into output.h.
12684         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
12686         * troff/Makefile, troff/node.c: Move definition of
12687         STORE_WIDTH into node.c.
12689         * etc/grog.pl, etc/grog.sh: Support -mdoc.
12691 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
12693         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
12694         dvi/devdvi/texb.map: Add lq and rq.
12695         dvi/devdvi: Regenerate fonts.
12696         * ps/devps/textmap: Add lq and rq.
12697         * ps/devps: Regenerate fonts.
12698         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
12699         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
12701         * pic/object.c (position_rectangle): When checking radius
12702         cope with possiblity that width or height is negative.
12703         (box_object::box_object): Have separate xrad and yrad with
12704         signs matching signs of dim components.
12705         (box_object::{north,south}_{east,west}): Use xrad and yrad.
12706         (box_object::print): With rounded boxes use absolute values
12707         for dim and rad arguments.
12709         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
12710         in fontpath.h.
12712         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
12714         * various files: Add explicit destructors to keep Saber CC +d
12715         happy.
12717 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
12719         * eqn/box.c (box::top_level): Restore fonts correctly after
12720         font changes in line containing inline equation.  Also
12721         restore previous font as well as current font.
12722         * eqn/pbox.h: Define necessary string and register names.
12724         * troff/input.c (token::next): Case 'R' calls do_register.
12725         (do_register): New function.
12727 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
12729         * groff.c, groff.sh: Support Xps device.  Allow each device
12730         to have a pseudo_name and a real_name.
12732         * groff.c (run_commands): Don't print `Broken pipe' messages.
12734         * ps/pfbtops.c: New file.
12735         * ps/Makefile: Add pfbtops.
12737         * troff/number.c (parse_term): Improved error message.
12739 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
12741         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
12743         * Makefile: Integrate refer.
12744         * refer: New directory.
12745         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
12746         man/lkbib.man: New files.
12747         * man/Makefile: Support refer man pages.
12749         * lib/lib.h: Declare is_prime.
12750         * lib/prime.c: New file.
12752         * troff/input.c (macro_source): New function.
12753         (init_input_requests): Bind "mso" to macro_source.
12755         * troff/env.c (environment::possibly_break_line): Maintain
12756         pointer to pointer to node to be split in ndp so as to avoid
12757         using address of freed node.
12759         * troff/env.c (environment::hyphenate_line): Maintain pointer to
12760         pointer to first node to be hyphenated in startp so as to
12761         avoid using address of freed node.
12763         * troff/env.c (class trie, class hyphen_trie): Make the
12764         elements of the trie be of type char not unsigned char.
12765         Declare arguments to be const char* instead of unsigned char *.
12766         
12767         * troff/env.c (hyphenate): Initialize hbuf[0].
12769         * troff/input.c (set_string): Declare p to be char * and cast
12770         *p to unsigned char when necessary.
12772         * troff/input.c (do_define_macro): Declare s to be const
12773         char*. Cast element to unisgned char when necessary, Declare
12774         d to be an int.  Handle EOF better.
12776         * troff/Makefile, troff/input.c: Different scheme for passing
12777         definitions of MACROPATH, HYPHENFILE and DEVICE.
12779 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
12781         * tty/devascii/R.proto: Delete entry for em.
12782         * tty/devlatin1/R.proto: Likewise.
12784 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
12786         * troff/input.c (translate): Stop when we get a space. Treat eof
12787         like newline.
12789         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
12791 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
12793         * tbl/main.c (process_format): A font name following a `f'
12794         modifier that starts with a digit can be only one character long.
12795         Also deal with EOF on the second character of the font name.
12797 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
12799         * troff/input.c (token::next): Turn \~ into an
12800         unbreakable_space_node.
12801         * troff/node.c (unbreakable_space_node): New class.
12802         * troff/node.h: Declare it.
12804 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
12806         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
12807         it's >= 0, before outputting it as a single byte.
12809 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
12811         * lib/font.c: Make font_char_metric::code an int.
12812         (font::get_code): Change return type to int.
12813         (font::load): Allow code to be arbitrary integer.
12814         * lib/font.h (font::get_code): Change return type to int.
12815         (font::number_to_index): Change argument type to int.
12816         * troff/input.c (token::next):  In case 'N', allow any value.
12817         Store value in token::val.
12818         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
12819         (token::get_char, token::add_to_node_list, token::process): Get
12820         number from val.
12821         (charinfo::set_number): Change argument to int.
12822         (charinfo::get_number):  Require that NUMBERED flag be set.
12823         (get_charinfo_by_number): Store numbered characters not between 0
12824         and 255 in a dictionary.
12825         * troff/charinfo.h (get_charinfo_by_number): Change argument type
12826         to int.
12827         (charinfo::number): Change type to int.
12828         (charinfo::set_number): Change type of set_number to int.
12829         * troff/node.c (troff_output_file::put_char_width,
12830         troff_output_file::put_char): Test whether character is numbered
12831         using charinfo::numbered().
12832         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
12833         values of num.
12834         * lib/nametoindex.c: New implementation to cope with arbitrary
12835         number characters.
12837         * troff/input.c (token::operator==): Test val for
12838         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
12839         TOKEN_SIZE.
12841         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
12842         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
12844 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
12846         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
12847         variable.
12849         * all Makefiles: rm targets of cp and >.
12851         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
12852         it.
12854         * eqn/lex.c (def_table): Add dollar.
12856 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
12858         * troff/input.c (do_width): Push back newline before closing delim
12859         like do_bracket.
12861 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
12863         * groff.c (possible_command::prepend_arg): New function.
12864         (main): Prepend device -m option.
12865         * groff.sh: Put device -m options before command-line options.
12867 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
12869         * macros/tmac.an (IP): Quote argument to TP.
12871         * ps/ps.c (main): New option -b, which sets...
12872         (broken_flags): New variable.
12873         (ps_printer::~ps_printer): Incorporate the setup section in the
12874         prolog if (broken_flags & NO_SETUP_SECTION).
12875         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
12876         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
12877         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
12878         ps_printer::print_needed_font_comment,
12879         ps_printer::print_supplied_font_comment,
12880         ps_printer::print_include_font_comments,
12881         ps_printer::lookup_doc_font, ps_printer::download_fonts,
12882         ps_printer::read_download_file, read_document_fonts, add_font,
12883         skip_line, parse_fonts_arg, document_font::document_font,
12884         document_font::~document_font, document_font::download,
12885         ps_output::include_file):  Deleted.
12886         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
12887         rather than %!PS-Adobe-2.0.  Make calls to
12888         resource_manager::need_font for each font that we used. Replace
12889         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
12890         print_supplied_font_comment, print_needed_font_comment by call to
12891         resource_manager::print_header_comments. Output %%Orientation
12892         comment. Output %%Requirements: numcopies comment if ncopies > 1.
12893         Don't output the prolog directly.  Instead call
12894         resource_manager::output_prolog.  Only define #copies when ncopies
12895         > 1.  Delete calls to print_include_font_comments  and
12896         download_fonts.  Add call to resource_manager::document_setup.
12897         (ps_printer::do_file): Call resource_manager::import_file instead
12898         of including it ourselves.
12899         (ps_printer::do_import): Likewise.  Also don't call
12900         merge_import_fonts. Push userdict on the dictionary stack before
12901         and pop it afterwards.
12902         Move declaration of ps_output into ps.h.
12903         * ps/psrm.c: New file implementing resource_manager class.
12904         * ps/ps.h: New file declaring ps_output and resource_manager
12905         classes.
12906         * ps/devps/zapfdr.ps:
12907         * ps/devps/symbolsl.ps:
12908         * ps/devps/prologue:  Use 3.0 conventions.
12909         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
12910         Add default definition of BROKEN_SPOOLER_FLAGS.
12911         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
12912         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
12914 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
12916         * etc/grog.pl: New file.
12917         * Makefile (GROG): New variable.
12918         Add GROG to SUBFLAGS.
12919         * etc/Makefile (GROG): New variable.
12920         (install.nobin): Install $(GROG) rather than grog.sh.
12922 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
12924         * eqn/special.c (special_box::compute_metrics): Make the input and
12925         output strings the same.  Get the new height and depth from the
12926         predefined height and depth registers.  Also make subscript kern
12927         and skew available.
12928         (special_box::compute_subscript_kern, special_box::compute_skew):
12929         New functions.
12931         * eqn/box.c (pointer_box::compute_skew,
12932         simple_box::compute_metrics, box::top_level)
12933         * eqn/text.c (prime_box::compute_metrics,
12934         prime_box::comput_subscript_kern)
12935         * eqn/limit.c (limit_box::compute_metrics):
12936         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
12937         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
12938         negative numbers in `nr' requests with a leading 0.
12940 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
12942         * eqn/special.c: New file.
12943         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
12944         Add new rule for simple.
12945         * eqn/lex.c (token_table): Add SPECIAL.
12946         * eqn/box.h: Declare make_special_box.
12947         * eqn/Makefile: Add special.[co].
12949 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
12951         * ps/devps/prologue: Possibly set packing to true while defining.
12952         Create grops dictionary here.  Initialize local variables before
12953         defining procedures.
12954         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
12955         the dictionary stack. Set strokeadjust and overprint to false if
12956         the relevant operators are defined.
12957         (PEND): New procedure.
12958         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
12959         prologue.  Do everything else in the setup section.
12960         (ps_printer::do_import): Just call PBEGIN and PEND around the
12961         picture. Also push userdict before, and pop it afterwards.
12963 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
12965         * troff/node.c (bracket_node::tprint): Brackets were being printed
12966         1m too low.
12968         * macros/tmac.an (SH, SS): Set fill mode.
12970 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
12972         * troff/div.c (top_level_diversion::begin_page): Set
12973         high_water_mark to 0.
12975 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
12977         * man/mdate.sh: New file.
12978         * man/mdate.c: Deleted.
12979         * man/Makefile: Use mdate.sh instead of mdate.
12980         (mdate): Deleted.
12982         * eqn/lex.c (do_gsize): Supply missing argument to error message.
12984 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
12986         * man/mdate.c: New file.
12987         * man/*.man: Replace modification date by @MDATE@.
12988         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
12989         (mdate): New target.
12991         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
12992         Remove illegal input characters.
12994 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
12996         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
12998 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
13000         * troff/div.c (begin_page): Change behaviour when
13001         !first_page_begun and !break_flag.
13003         * troff/input.c (do_name_test): Return 0 if argument is empty.
13005         * troff/input.c (read_long_escape_name): Require closing ] to be
13006         at same input level as opening [.
13008         * troff/input.c (read_increment_and_escape_name): New function.
13009         (get_copy, process_input_stack): Use this for \n.
13011 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
13013         * troff/div.c (top_level_diversion::begin_page): Ignore the
13014         current value of page_number if !first_page_begun.
13016         * groff.c (main): Fix declaration of buf.
13018         * troff/input.c (do_name_test): New function.
13019         (token::next): Implement \A.
13020         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
13021         (token::description, token::add_to_node_list, token::process):
13022         Handle TOKEN_ESCAPE.
13023         * troff/token.h: New token TOKEN_ESCAPE.
13025 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
13027         * pic/main.c (do_picture): Allow space before and after filename
13028         following `<'.  Check that the filename is not empty.
13030 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
13032         * Version 1.01 released. 
13034         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
13036         * dvi/tmac.dvi: ftr HR to H.
13038         * macros/tmac.e: Round up computation of $r.
13040         * xditview/tmac.X:  Don't give up completely in compatibility mode.
13041         Use \n(.s instead of \n[.s].
13043         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
13044         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
13045         Add u to factors inside \s[...]. Rename frac to dvi-frac.
13046         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
13047         short names in the char definitions.
13049         * ps/tmac.ps: Don't give up completely in compatibility mode.
13050         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
13051         quote in front of \n(.s. Add u to factors inside \s[...].
13053 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
13055         * tty/tmac.tty: Call the nroff request.
13057         * macros/tmac.e ((x, )x):  Better definitions that work properly
13058         in a diversion.
13059         (@0, @1): Helper macros for (x.
13061         * macros/tmac.e ($s, hl): Use \l rather than \D.
13063         * tty/tmac.tty: Make it work better in compatibility mode.
13064         (pchar): Rename to tty-char.
13066         * macros/tmac.e (@E): New macro.
13067         (r, i, b, rb, bi): Use @E.
13069         * macros/tmac.e (@F): Don't use (;...) syntax.
13071         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
13072         it was modified for groff.
13074         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
13076         * macros/tmac.e (<., .>): Removed.
13077         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
13079         * macros/tmac.e: Remove check that groff is being used.
13081         * macros/tmac.e (@C): Change families only if using groff; turn
13082         compatibility mode off while changing familes. Save compatibility
13083         mode before changing families and restore it afterwards.
13085         * macros/tmac.e (@h): Remove test for offset + line length.
13087         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
13088         (lo, th, ac): Define to call @S instead of using als.
13090         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
13091         the ratio of the vertical spacing to the point size in units
13092         expressed as a percentage.  Use these instead of $10r and $10R,
13093         Delete $10r and $10R.
13095         * lib/font.c (font::load): In default computation of space_width,
13096         divide by sizescale.  Use scale_round.
13098         * macros/tmac.an (TP): Don't call `nf'.
13099         (an-do-tag): Don't call `fi'.
13101 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
13103         * troff/input.c (process_input_stack): Handle the case where
13104         spaces at the beginning of an input line are followed by a
13105         newline.
13107 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
13109         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
13110         * groff.sh: Use pic -x with the dvi device.
13112         * dvi/devdvi/FontMakefile (H): Don't use -s.
13114         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
13115         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
13116         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
13117         in FONTS.
13119 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
13121         * ps/psfig.diff: New file.
13122         * ps/tmac.psfig: New file.
13124 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
13126         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
13127         (]-): Don't call ref*do-tl.
13129         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
13131         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
13132         (fn@do-FS): Rename to fn*do-FS.
13134         * troff/input.c (transparent_translate): New function.
13135         (process_input_stack): Apply transparent_translate before calling
13136         diversion::transparent_output(unsigned char).
13138 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
13140         * troff/input.c (do_define_macro): Define the macro before calling
13141         skip_line.
13143         * xditview/Makefile: Add DEVICES variable.  Change install target
13144         to use this.
13146 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
13148         * groff.c (run_commands): Handle the possibility that there are
13149         child processes other than those forked by us.
13151 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
13153         * lib/string.c (string::append): New function.
13154         * lib/stringclass.h: Declare it.
13156 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
13158         * eqn/main.c (main): New option -N which sets
13159         no_newline_in_delim_flag. 
13160         (do_file): If no_newline_in_delim_flag is set don't allow newlines
13161         in delimiters.
13162         * groff.c (main): Pass -N on to eqn.
13163         (help, synopsis): Mention -N.
13164         * groff.sh: Implement -N.
13166 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
13168         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
13169         (]-): Call ref*do-tl if ref*need-tl is non-zero.
13170         (XP): Allow as initializer.
13172 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
13174         * troff/env.c (environment::wrap_up_field): If field_spaces are
13175         non-zero and we have a current_tab, subtract padding from
13176         tab_distance.  If this makes tab_distance <= 0, use the next tab
13177         stop instead.  If there isn't any next tab or it's a left tab,
13178         wrap up the current tab.
13179         (environment::start_field): Initialize tab_precedes_field.
13180         (environment::wrap_up_tab): If there's a current field, update
13181         pre_field_width, field_distance and tab_precedes_field.
13182         * troff/env.h (environment::tab_precedes_field): New member.
13184 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
13186         * ps/ps.c (ps_printer::do_file): New function.
13187         (ps_printer::special): Bind to `file' special.
13188         (ps_printer::do_exec): Set ndefined_styles to 0.
13190 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
13192         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
13193         Avoid stripping first character from the start of unrecognized
13194         escapes.  Use lex_error instead of error to report errors.
13195         * eqn/lex.c (get_token): Rework handling of escapes.
13196         (lex_error): Move declaration into...
13197         * eqn/eqn.h.
13199         * xditview/xditview.c (main): Make -page option work.
13201         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
13203 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
13205         * macros/tmac.s (B2): Correct size of box.
13207 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
13209         * macros/tmac.s (B2): Postpone drawing the box until in the
13210         top-level diversion.
13212         * tty/tmac.tty: Add font translations for C, CR, CW.
13214         * groff.c (synopsis, help): Document -i.
13215         * groff.sh: Implement -i.
13217         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
13218         Simplify the construction of SN.
13220         * troff/number.c (parse_term): Give `|' a higher precedence.
13221         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
13222         accordingly.
13224         * macros/tmac.s (B2): Use par@finish instead of par@reset.
13226 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
13228         * lib/string.c (string::move): New function.
13229         * lib/stringclass.h: Declare it.
13231 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
13233         * troff/env.c (distribute_space): Add optional argument
13234         `force_forward'.
13235         (environment::wrap_up_field): Call distribute_space with
13236         `force_forward' argument of 1.
13238 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
13240         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
13241         Inline it.  Move reallocation into...
13242         (string::grow1): New function.
13243         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
13244         dependencies to include library header files.
13245         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
13247 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
13249         * macros/tmac.s (@NH): Use the same number registers than -ms does
13250         for the heading level counters.  Use the same string that -ms does
13251         for the number for this heading.
13253 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
13255         * lib/new.c (operator new): Cast result of malloc to char *.
13257         * troff/input.c (spring_trap, lookup_request): Add assert that nm
13258         is not null.
13260 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
13262         * groff.c (main): Support -i.
13264 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
13266         * pic/pic.h: Include <osfcn.h>.
13268         * ps/ps.c: Add declaration of mktemp.
13270         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
13271         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
13272         argument as union wait *.
13273         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
13274         argument to union wait *.
13276 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
13278         * tty/tmac.tty: Add definition of \(co.
13280         * pic/object.c (make_arc): Only increase radius when radius
13281         strictly less than d.
13282         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
13283         more than once.
13285         * troff/env.c (environment::environment(symbol),
13286         environment::environment(const environment *)):  Initialize
13287         input_trap_count.
13289 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
13291         * tbl/main.c (main): Add exit(0).
13293         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
13295         * pic/main.c (main):
13296         * eqn/main.c (main):
13297         * tbl/main.c (main):
13298         * etc/soelim.c (main):
13299         * driver/printer.c (printer::~printer):
13300         * troff/node.c (real_output_file::~real_output_file,
13301         real_output_file::flush):  Check for errors on stdout.
13303         * most files: Add 1991 to copyright notice.
13305         * macros/tmac.s: Don't test \n(.x and \n(.y.
13307         * troff/input.c (token::next): Rename `escape_char' label to
13308         `handle_escape_char' and `normal_char' label to
13309         `handle_normal_char'.
13311 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
13313         * groff.c (main, synopsis, help): Support -a option.
13314         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
13315         to trflags while parsing options.
13317 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
13319         * troff/number.c (parse_term): With `m', `M' and `n' scale
13320         indicators, convert scale factor to hunits before scaling.
13322 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
13324         * lib/font.c (scale_round): Better test for overflow when n is
13325         negative.
13327 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
13329         * tbl/main.c (process_format): Add second argument of type
13330         options*. Change callers.  Allow opt->tab_char as well as '\t'
13331         between format items.
13333 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
13335         * macros/tmac.an (PD): With no arguments, make sure register PD is
13336         at least \n[.V].
13337         (TH): Call PD with no argument, instead of setting register PD
13338         directly.
13340 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
13342         * Version 1.00 released.
13344 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
13346         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
13348         * dvi/devdvi/DESC: Mount CW instead of CR.
13350         * dvi/tmac.dvi: Add definition of \(tm.
13352         * dvi/devdvi/texsy.map: Add lh, and rh.
13353         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
13354         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
13356         * dvi/devdvi/FontMakefile: Generate H from cmss10.
13357         * dvi/devdvi/Makefile: Install H.
13358         * dvi/devdvi/H: New file.
13360 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
13362         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
13363         be 0.
13365 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
13367         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
13369         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
13371         * macros/tmac.s (@EN): Handle the case where the equation is empty
13372         but the label is not.
13374 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
13376         * troff/groff.h: New warning category WARN_SPACE.
13377         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
13378         WARN_SPACE to warning_table.
13379         (interpolate_macro): Give a warning of type WARN_SPACE if the name
13380         is longer than two characters and is not defined, but the first
13381         two characters do make a defined name.
13383         * PROBLEMS: New file.
13385         * CHANGES: New file.
13386         * README-0.6, README-1.00: Deleted.
13388         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
13389         * xditview/devX75/Makefile: Make devX75-12.
13390         * xditview/devX100/Makefile: Make devX100-12.
13392         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
13393         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
13395 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
13397         * README-0.7: Rename to README-1.00.
13399         * macros/tmac.pic: New file.
13400         * macros/Makefile (install.nobin): Install tmac.pic.
13402 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
13404         * troff/env.c (hyphen_word): Correct the test for whether the
13405         token is a hyphen.  Reset npos to 0.
13407         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
13409 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
13411         * macros/tmac.s (ds*common-end): Call par*reset.
13412         (PE): Likewise.
13413         (par@reset-indent): Deleted.
13415         * macros/tmac.s (@IP): Divert the label.
13417 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
13419         * xditview/draw.c (setGC): Use a line width of .1m rather than
13420         .04m by default; round rather than truncate value.
13422         * tbl/table.c (class empty_entry): New class.
13423         (empty_entry::empty_entry, empty_entry::line_type): New functions.
13424         (table::add_entry): Represent empty entries by objects of type
13425         empty_entry.
13426         (table_entry::line_type): Return -1.
13427         (table::determine_row_type): Ignore entries with line_type 0.
13428         Treat type -1 as non-lines.
13430 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
13432         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
13433         macros/tmac.s: Rename \(-d to \(Sd.
13435 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
13437         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
13438         * xditview/libXdvi/DviChar.c: Likewise.
13439         * dvi/devdvi/texsy.map: Add `<<', `>>'.
13441 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
13443         * troff/div.c (top_level_diversion::begin_page): Call
13444         init_output() if the_output is 0.
13446 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
13448         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
13449         ESCAPE_c.
13450         (get_copy): Turn \E into ESCAPE_E.
13451         (token::process, asciify): Handle ESCAPE_E.
13453         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
13454         (RD): New macro.
13455         (DS): Implement `.DS R'.
13457 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
13459         * macros/tmac.s (FS): New macro.
13461         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
13463         * macros/tmac.s (cov*tl-init): Remove after first execution
13464         instead of aliasing to @nop.  Call top of page macro explicitly
13465         instead of setting trap; call @init first.  Set pg@top as top of
13466         page macro.
13467         (cov*auto-init): Deleted.  Set cov*tl-init instead of
13468         cov*auto-init as top of page trap. 
13469         (TL, LP): Do a break instead of calling cov*tl-init.
13470         (cov*print): With RP format but no TL, alias FS and FE to @FS and
13471         @FE; in this case also give a warning and always start another
13472         page. No need to set pg@top here.
13473         (cov*tl-init): Rename to cov*first-page-init.
13475         * macros/tmac.s (RP): Do `.pn 0'.
13476         (cov*tl-init): With RP format don't do `.pn 0'.
13478         * macros/tmac.s (pg@cs-top): Set no space mode.
13480         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
13481         (cov*ab-init): Alias TL, AU and AI to these.
13483 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
13485         * macros/tmac.s (@EQ): Move the space before the equation into @EN
13486         (@EN): Do nothing unless \n[dl] is > 0.
13488 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
13490         * pic/object.c (ellipse_object::radius): New function.
13492         * VERSION: Change version to 0.7.
13494         * tbl/table.c (block_entry::do_divert): Declare return type as
13495         void.
13496         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
13498 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
13500         * troff/column.c: New file.
13501         * troff/Makefile: Corresponding changes.
13503         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
13504         Friend of vunits.
13506         * troff/div.c (top_level_diversion::space): If the space causes
13507         the first-page transition and springs a trap, truncate the space
13508         to 0.
13510 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
13512         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
13513         the document.
13515         * pic/troff.c (troff_output::line_thickness,
13516         troff_output::set_fill): Do a horizontal motion to compensate for
13517         the width of the \D escape sequence.
13519 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
13521         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
13522         (not X75).
13524         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
13525         to printf.
13527         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
13528         Supply empty definition.
13529         (text_entry::simple_print, simple_text_entry::simple_print):
13530         Delete declarations.
13531         (table::add_entry): Represent empty entries by objects of type
13532         `simple_entry'.
13534 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
13536         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
13538         * tbl/table.c (left_text_entry::add_tab): New function.
13540         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
13541         initialize like LP.
13543 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
13545         * troff/env.c (environment::start_field): Give an error message if
13546         there is no next tab.
13548 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
13550         * troff/env.c (hyphenate): Skip initial elements with zero
13551         hyphenation code.
13553         * macros/tmac.s (par@init): Keep VS in points rather than units.
13555 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
13557         * pic/main.c (main): Implement `-c' option.
13558         * pic/output.h: Declare make_tpic_output().
13559         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
13560         protected.
13561         (tpic_output): New class.
13562         (tpic_output::tpic_output, tpic_output::set_pen_size,
13563         tpic_output::command, make_tpic_output): New functions.
13565 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
13567         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
13568         if they're not already defined.
13569         * tbl/table.c (init_output): Don't test \n(.g.
13571         * troff/input.c (do_if_request): Delete `g' condition. Recognize
13572         `d', `r' and `c' conditions even in compatibility mode.
13574 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
13576         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
13577         box.
13579 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
13581         * troff/env.h (environment::prev_line_interrupted): New member.
13582         (environment::get_prev_line_interrupted): New function.
13583         * troff/env.c (environment::newline): Set prev_line_interrupted.
13584         (environment::environment(const environment *),
13585         environment::environment(symbol)): Initialize
13586         prev_line_interrupted.
13587         * troff/input.c (process_input_stack): Don't give special
13588         treatment to space and newline at the beginning of the line if the
13589         previous line was interrupted.
13591 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
13593         * eqn/eqn.y: Disallow PRIME by itself.
13594         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
13595         PRIME.
13596         (def_table): Remove definition of '.  Define prime to be `.
13598         * eqn/eqn.y: Split off part of rule `script' into a new rule
13599         `nonsup'.
13601 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
13603         * macros/tmac.s ({, }): New string aliases.
13605 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
13607         * README-0.7: New file.
13609 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
13611         * macros/tmac.s: New file.
13612         * man/groff_ms.man: New file.
13613         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
13614         * Makefile.bd: Similarily.
13615         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
13616         definition of TMAC_S.
13617         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
13618         * macros/TODO: New file.
13620 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
13622         * troff/env.c (right_justify): New function.
13623         (init_env_requests): Bind this to request "rj".
13624         (center_lines): Set right_justify_lines to 0. If we get a bad
13625         integer, center 1 line.
13626         (environment::environment(symbol), environment::environment(const
13627         environment *)): Initialize right_justify_lines.
13628         (environment::get_right_justify_lines): New function.
13629         (init_env_requests): Bind this to number_register ".rj".
13631         * troff/env.c (environment::choose_breakpoint): Implement
13632         hyphenation_margin and hyphenation_space.
13633         (environment::get_hyphenation_space,
13634         environment::get_hyphenation_margin): New functions.
13635         (init_env_requests): Bind these to .hys and .hym.
13636         (hyphenation_space_request, hyphenation_margin_request): New
13637         functions
13638         (init_env_requests): Bind these to hys and hym.
13639         (environment::environment(symbol), environment::environment(const
13640         environment *)): Initialize hyphenation_margin and
13641         hyphenation_space.
13642         * troff/env.h: Corresponding changes to class environment.
13644 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
13646         * troff/div.c (blank_line): Always do a break.
13648         * eqn/box.c (do_text): Turn off escapes while appending text to
13649         string.
13651 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
13653         * troff/input.c (while_break_request, while_continue_request): New
13654         functions.
13655         (init_input_requests): Bind these to "break" and "continue".
13656         (while_depth, while_break_flag): New variables.
13657         (while_request): Update while_depth.  Break out of loop if
13658         while_break_flag is set.
13660 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
13662         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
13663         rather than 0.
13665 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
13667         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
13669         * stringify: New file.
13670         * Makefile (groff.o): Use stringify.
13672         * xditview/tmac.X: Remove definition of \(rn.
13673         * xditview/libXdvi/DviChar.c: Remove radicalex from
13674         Adobe_symbol_map.
13676 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
13678         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
13679         (alphabetic_block_entry::alphabetic_block_entry,
13680         alphabetic_block_entry::divert, alphabetic_block_entry::print):
13681         New functions.
13682         (block_entry::divert): Split off body into ...
13683         (block_entry::do_divert): If the block is alphabetic, subtract 2n
13684         from the line length; also update the span width to dl+2n, and the
13685         alphabetic span width to dl.
13687         * driver/input.c (do_file):  While reading argument to D command,
13688         when expanding buffer, multiply szp by sizeof(int) rather than 2
13689         in the argument to memcpy.
13691         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
13692         width of alphabetic columns.
13694 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
13696         * troff/node.c (lookup_family): Supply second argument to lookup.
13698         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
13699         search, return immediately if v is 0.
13701         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
13702         (troff_output::start_picture): Set this reg.
13703         (troff_output::end_picture): Remove this reg
13704         * eqn/box.c (box::extra_space): Don't produce `\x's if
13705         EQN_NO_EXTRA_SPACE_REG is defined.
13707         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
13708         * eqn/text.c (split_text): Map ' to \(fm when it's the first
13709         character.
13711 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
13713         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
13714         requests.
13716         * troff/div.c (top_level_diversion::top_level_diversion):
13717         Initialize page_number to 0.
13719 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
13721         * groff/troff (environment::environment(const environment *)):
13722         Initialize name to e->name, rather than "anonymous".
13724 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
13726         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
13727         requested_page.  Split middle part into ...
13728         (FindPage): New function.
13729         (SetValues): If we don't yet know the last page, and the requested
13730         page is greater than the current page, call FindPage.
13731         Update the font_map_string before doing this.
13733         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
13734         Translate \(lh and \(rh into left and right double arrows.
13736         * troff/node.c (class hyphen_inhibitor_node): New class.
13737         (hyphen_inhibitor_node::hyphen_inhibitor_node,
13738         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
13739         hyphen_inhibitor_node::type,
13740         hyphen_inhibitor_node::get_hyphenation_type): New functions.
13741         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
13742         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
13743         word.
13745 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
13747         * troff/node.h (dummy_node::get_hyphenation_type,
13748         transparent_dummy_node::get_hyphenation_type):  Declare them.
13749         * troff/node.c: (dummy_node::get_hyphenation_type,
13750         transparent_dummy_node::get_hyphenation_type): New functions.
13752 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
13754         * xditview/libXdvi/draw.c: If M_PI not defined after including
13755         math.h, then define it.
13757         * xditview/Makefile: Add definition of AR. Pass it to the submake
13758         in libXdvi.
13759         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
13761 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
13763         * troff/dictionary.h (object_dictionary::alias): Declare return
13764         value as int.
13765         * troff/dictionary.c (object_dictionary::alias): Return non-zero
13766         if the old name was defined.
13767         * troff/input.c (alias_macro): Give a warning if the old name was
13768         not defined.
13769         * troff/reg.c (alias_reg): Likewise.
13771 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
13773         * troff/input.c (token::next): Delete implementation of \R.
13775         * macros/Makefile: Strip comments from tmac.e while installing it.
13777         * troff/input.c: New variable `nroff_mode'.
13778         (troff_request, nroff_request): New functions.
13779         (init_input_requests): Bind `troff' and `nroff' to troff_request
13780         and nroff_request.
13781         (do_if_request): Compute results of t and n conditions from
13782         nroff_mode.
13784         * text/text.c (split_text): Fix typo in >=.
13786         * eqn/lex.c: Add definition of `==' to def_table.
13788 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
13790         * pic/tex.c (tex_output::start_picture): Change the definitions of
13791         \graph and \graphtemp so that they work properly with Plain TeX.
13793         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
13794         argument to `ar' is not less than the first.
13796         * pic/pic.y: Allow a comma between elements of the variable list
13797         in the argument to `reset'.
13799         * pic/object.c (arc_object::arc_object): Fix computation of
13800         radius.
13802         * eqn/main.c (main): Add exit(0).
13804 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
13806         * troff/div.c (begin_page): Test no_space_mode after doing the
13807         break, but still push the page ejector cookie before doing the
13808         break.  Also set the next page number after doing the break.
13809         
13810         * xditview/xditview.c (NewFile): Don't set the title and icon name
13811         if this is the first file and its name is `-'.
13812         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
13813         the X75 and X100 devices.
13814         (main): If a device has the XT_OPTION flag set and there's exactly
13815         one file argument, pass the driver -xrm and -title options to set
13816         the icon name and window title to the name of the file.
13818         * troff/env.c (environment_switch): If there was an argument but
13819         it wasn't a valid number or name, then pop an environment but
13820         don't give an error message on underflow.
13822         * troff/number.c (start_number): Correct spelling in error message.
13824         * troff/input.c (token::delimiter): Don't print an error message
13825         if err is false.
13827         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
13828         ParseDrawFunction if dw->display_enable is true.
13830 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
13832         * pic/pic.y: Parse text positioning like normal attributes, so as
13833         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
13834         positioning attribute.
13836 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
13838         * tbl/main.c (process_data): When in state START while reading a
13839         text block, don't change to state MIDDLE if c is a newline.
13841 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
13843         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
13844         so as to avoid shadowing parameter.
13846 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
13848         * tbl/table.c (trim_space): Deleted.
13849         (table::add_entry): Don't call trim_space.
13851 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
13853         * VERSION: Change version to 0.6.
13855         * troff/number.c (parse_expr): Make == work.
13857 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
13859         * man/grog.man: New file.
13860         * man/Makefile: Add grog.n to MAN1PAGES.
13861         * etc/grog.sh: New file.
13862         * etc/Makefile: Install grog.sh as grog.
13864 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
13866         * troff/input.c (token::next): Implement \E.
13868 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
13870         * xditview/tmac.X: Change font translations to match tmac.ps.
13872         * troff/input.c (non_empty_name_warning): Don't give a warning if
13873         `\{' terminates the name.
13875 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
13877         * ps/devps/symbol.diff: New file.
13878         * ps/devps/FontMakefile: Mention symbol.diff.
13880 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
13882         * troff/node.c (font_position): Use get_long_name to read the
13883         external_name.
13885         * troff/env.c (environment_switch): If we get a number that's < 0
13886         or >= NENVIRONMENTS, treat it like a name.
13887         Change NENVIRONMENTS to 10.
13889         * troff/groff.h: Remove definition of FONTS_MAX.
13890         * troff/node.h (class font_family): Make map a pointer instead of
13891         an array. Add a map_size member. Make it a class. Make nm const
13892         and public. Make invalidate_fontno a friend.
13893         * troff/node.c: Define font_table_size. Make font_info a pointer
13894         rather than an array.
13895         (class troff_output_file): Allocate font_position dynamically. Add
13896         nfont_positions member.
13897         (troff_output_file::set_font): Grow font_position if necessary.
13898         (troff_output_file::~troff_output_file): Delete font_position.
13899         (troff_output_file::troff_output_file): Allocate font_position.
13900         (grow_font_table): New function.
13901         (troff_output_file::really_begin_page,
13902         troff_output_file:really_copy_page): Use nfont_positions rather
13903         than FONTS_MAX.
13904         (mount_font_no_translate, mount_style): Call grow_font_table if
13905         necessary.
13906         (font_family::font_family): Allocate map.
13907         (font_family::make_definite): Grow map if necessary. Use
13908         font_table_size instead of FONTS_MAX.
13909         (font_family::~font_family): New function.
13910         (invalidate_fontno): Use font_family::map_size.
13911         (get_fontno, env_space_width, env_half_narrow_space_width,
13912         env_narrow_space_width, symbol_fotno, is_good_fontno,
13913         get_bold_fontno, make_glyph_node): Use font_table_size rather than
13914         FONTS_MAX.
13915         (next_available_font_position): Never return 0.
13917 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
13919         * ps/tmac.ps: Add font translations for compatibility with dpost.
13921 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
13923         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
13924         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
13925         Move definitions baseline_sep, shift_down, column_sep,
13926         matrix_side_sep into...
13927         * eqn/box.c: Add them to param_table.
13928         * eqn/pbox.h: Add declarations to pbox.h.
13930         * troff/input.c (set_string): Cast value to unsigned char *.
13932         * troff/token.h (process_input_stack): Declare it static before
13933         declaring it a friend.
13935 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
13937         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
13938         and bottom.
13939         * dvi/devdvi/EX: Regenerate.
13941         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
13942         transparent.
13944 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
13946         * eqn/lex.c: In defaults_table, make definition of `dot' call
13947         `dot_def'.  Don't explicitly make it roman.  Similarily for other
13948         accents.
13950         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
13951         argument.
13952         (for_input::get, for_input::peek): Use this.
13953         (do_for): Add by_is_multiplicative argument.
13954         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
13955         Change semantic value of optional_by to be a double plus a flag
13956         saying whethet the by clause is multiplicative.
13958         * eqn/lex.c (get_delimited_text): Remember location of start of
13959         definition.  Improve error handling when EOF is encountered.
13961         * lib/font.h: Rename handle_x_command to
13962         handle_unknown_font_command.
13963         * lib/font.c (font::load): Call handle_unknown_font_command for
13964         any unknown command in the font description file.  Don't call
13965         handle_x_command. Include the name of the command in the argv.
13966         Improve message for unknown command after kernpairs or charset
13967         command.
13968         * ps/ps.c (ps_font::handle_x_command): Rename to
13969         handle_unknown_font_command.  Remove message about `x download'
13970         command.  Give error message for wrong number of arguments.
13971         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
13972         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
13973         handle_unknown_font_command. Give an error message for wrong
13974         number of arguments.  Rename design_size to designsize.
13975         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
13976         checksum', `designsize' instead of `design_size'.
13978 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
13980         * eqn/*.[chy]: Change underaccent to uaccent.
13982         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
13983         give it the same precedence as ACCENT.
13984         * eqn/other.c (make_underaccent_box): New function.
13985         * eqn/box.h: Declare it.
13986         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
13987         def_table.
13989 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
13991         * pic/pic.y (reset_all): New function. Called in rule for RESET.
13992         (parse_init): Call reset_all.
13993         (define_variable): When defining scale reset only those
13994         pre-defined variables that are scaled.
13995         (defaults_table): Add `scale' as non-scaled value.
13997         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
13998         together with the text; allow any number of positioning words;
13999         allow center as a positioning word.
14001         * pic/object.c (output::compute_scale): Get picture maximum height
14002         and width from variables called maxpswid and maxpsht.
14003         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
14005 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
14007         * pic/object.c (object_spec::make_text): Multiply textht by number
14008         of text items.
14010         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
14011         occur.
14012         (do_sprintf): New function.
14013         (pic.gperf): Add sprintf token.
14014         (text, sprintf): New rules.
14016         * pic/pic.y: `rand()' with no arguments returns a random number
14017         in the range [0,1).
14019         * pic/pic.y: Allow a bare expression to be an attribute: change
14020         precedences to support this.  Change optional_ordinal rule to
14021         optional_ordinal_last to avoid reduce/reduce conflict.
14022         * pic/object.c (object_spec::object_spec): Initialize direction.
14024         * pic/pic.y: Implement ^ operator meaning exponentiation.
14026         * troff/node.h: Add default argument to mount_font.
14027         * troff/node.c (font_position): Read an optional third argument
14028         giving the external_name.
14029         (mount_font): Add optional argument giving the external_name.
14030         (mount_font_not_translate): Have additional argument giving
14031         external name.  Use this name to load the font.  Pass both names
14032         to font_info::font_info.
14033         (font_info::font_info): Have additional argument giving
14034         external_name.
14035         (class tfont): New member external_name.
14036         (font_info::get_tfont): Use external name to construct tfont_spec.
14038 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
14040         * eqn/lex.c (init_table): Add argument giving device.  Define
14041         name of device to be "1".
14042         (do_ifdef): Counts as true if the argument has been defined with
14043         `define'.
14044         * eqn/main.c (main): Call init_table with device argument. Make
14045         device local to main.
14046         * eqn/eqn.h: Change declaration of init_table. Remove declaration
14047         of device.
14049         * pic/lex.c (get_delimited): Allow text to be delimited by
14050         matching {}s.  Don't recognize ending delimiter within a string.
14052         * troff/input.c (get_delim_name): New function.
14053         (token::next): Implement \C.
14055         * lib/font.c (font::load): Grok ---.  Add an alias for each
14056         character based on its code.
14057         (font::get_code_width): Deleted.
14058         * lib/font.h (class font): Declare font::number_to_index().
14059         Remove declaration of font::get_code_width.
14060         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
14061         to indices of named characters.
14062         (font::number_to_index): New function.
14063         * troff/input.c (font::number_to_index): New function.
14064         (get_charinfo_by_number, charinfo::get_number,
14065         charinfo::set_number): New functions.
14066         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
14067         (token::process, token::description, token::get_char,
14068         token::add_to_node_list, token::operator==): Handle
14069         TOKEN_NUMBERED_CHAR.
14070         * troff/charinfo.h: Declare get_charinfo_by_number,
14071         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
14072         charinfo class.
14073         (charinfo::numbered): New function.
14074         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
14075         * troff/env.h (class environment): Remove declaration of ...
14076         * troff/env.c (environment::make_numbered_char_node): Deleted.
14077         * troff/node.c (make_numbered_node): Deleted.
14078         (class numbered_glyph_node): Remove.
14079         (troff_output_file::put_char_width, troff_output_file::put_char):
14080         Handle numbered chars.
14081         (troff_output_file::numbered_char): Removed.
14082         (tfont::get_code_width): Removed.
14083         (make_glyph_node): Don't search special fonts for numbered
14084         characters.
14085         * troff/node.h: Remove declaration of make_numbered_node.
14086         * driver/input.c (do_file): Handle N command.
14087         * driver/printer.h: Add declaration of ...
14088         * driver/printer.c (printer::set_numbered_char): New function.
14089         * dvi/tfmtodit.c (main): Generate unnamed entries.
14090         * ps/devps/afmtodit: Likewise.
14091         * xditview/xtotroff.c (MapFont): Likewise.
14092         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
14094         * tbl/main.c (process_format): If multiple widths are specified
14095         for a column but all the widths are the same, don't give an error
14096         message.
14098         * tbl/table.c (table::do_row): If the current row is all lines and
14099         the stuff doesn't contains a line, mark the top of the row after
14100         printing stuff before the row.  If the current row is not all
14101         lines and the stuff doesn't contain a line, don't unnecessarily
14102         mark the top of the row before printing the stuff.
14103         
14104 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
14106         * troff/groff.h: Remove MAX_PATH.
14107         * troff/input.c (open_file): Dynamically allocate space for the
14108         path.
14109         (open_mac_file, process_macro_file): Corresponding changes.
14111 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
14113         * troff/node.h (class output_file): Make copy_file pure.  Add
14114         vspace method ifdef COLUMN. Add is_printing method.
14115         * troff/node.c: Add class printing_reg. Add class
14116         real_output_file. Derive other output_file classes from
14117         real_output_file; in these classes rename begin_page to
14118         really_begin_page, print_line to really_print_line, copy_file to
14119         really_copy_file, transparent_char to really_transparent_char.
14120         Move output_file::flush to real_output_file. Add printing member
14121         to class output_file.
14122         * troff/div.h: Remove printing member from top_level_diversion.
14123         Add vspace member function to class diversion ifdef COLUMN. Add
14124         some declarations ifdef COLUMN.
14125         * troff/div.c (top_level_diversion::copy_file,
14126         top_level_diversion::transparent_output,
14127         top_level_diversion::output): Don't test printing member before
14128         output.
14129         * troff/input.c: Handle initial variable_space_request ifdef
14130         COLUMN.
14131         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
14132         but comment it out.
14134 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
14136         * troff/div.c (diversion::need): Make any space forced.  If we
14137         sprung a trap, set truncated_space to minus the distance to the
14138         trap and set needed_space to the amount that was needed.
14139         (top_level_diversion::space): A forced space turns no_space_mode
14140         off.
14141         (class constant_vunits_reg): New class.
14142         (init_div_requests): Implement number registers .trunc and .ne
14143         using constant_vunits_reg.
14144         (class truncated_space_reg): Deleted.   
14146         * troff/div.h: Don't have a no_space_mode member in diversion.
14147         Instead have it in top_level_diversion.
14148         * troff/div.c (diversion::diversion): Don't initialize
14149         no_space_mode.
14150         (top_level_diversion::top_level_diversion): Initialize
14151         no_space_mode.
14152         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
14153         (macro_diversion::output): Don't clear no_space_mode.
14155         * troff/input.c (diverted_space_node::reread): Don't call
14156         environment::do_break.  In fill mode, act like a blank line.
14157         (diverted_copy_file_node::reread): Don't call
14158         environment::do_break.
14160         * troff/div.c (blank_line): New function.
14161         * troff/div.h: Declare it.
14162         * troff/input.c (process_input_stack): Call it.
14164         * troff/div.c (truncated_space_reg::get_string): New function.
14165         (init_div_requests): Bind to .trunc.
14166         (space_request, top_level_diversion::space,
14167         top_level_diversion::output, macro_diversion::space,
14168         macro_diversion::output): Update truncated_space.
14169         (macro_diversion::output): Redo calculations when trap sprung.
14170         (macro_diversion::output, macro_diversion::space): No need for
14171         trap_flag.
14173         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
14174         after truncating post line spacing.
14176 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
14178         * ps/devps/prologue (MF, SF): Make them work even if setfont is
14179         defined as a procedure rather than as an operator.
14181 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
14183         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
14185 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
14187         * troff/div.c (top_level_diversion::output): Merge
14188         output_file::print_line and output_file::end_of_line member
14189         functions.
14190         * troff/div.h (class output_file):
14191         * troff/node.c (troff_output_file::print_line,
14192         troff_output_file::end_of_line, output_file::end_of_line,
14193         ascii_output_file::print_line, suppress_output_file::print_line):
14194         Corresponding changes.  
14196 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
14198         * troff/input.c (token::next): Don't give a warning for `\.'.
14200         * troff/env.c (environment::get_center_lines): New function.
14201         (init_env_requests): Bind number register .ce to it.
14202         * troff/env.h: Declare it.
14203         * tbl/table.c (table::init_output): Define reset macro to restore
14204         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
14205         Then do .ce 0.
14206         (table::print): If center option not given, then imply center
14207         option if SAVED_CENTER_REG > 0.
14209 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
14211         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
14212         Troff.ps from DOWNLOAD.
14213         
14214         * troff/Makefile: Change comment in DEFINES to avoid confusing
14215         System V make.
14217         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
14218         code.  Don't try to catch errors with stopped.
14219         (check_line_lengths): New function.
14220         * ps/devps/prologue (EXEC): Deleted.
14221         (EBEGIN, EEND): New procedures.
14223 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
14225         * troff/input.c: Include request.h before node.h.
14226         * troff/node.c: Likewise.
14227         * troff/env.c: Likewise.
14228         * troff/div.c: Likewise.
14229         * troff/node.h (class special_node): Store argument as a macro
14230         rather than a char *.
14231         * troff/node.c (special_node::special_node, special_node::copy):
14232         Grok this.
14233         (special_node::~special_node): Deleted.
14234         (special_node::tprint): Deleted.
14235         (special_node::tprint_start, special_node::tprint_end,
14236         special_node::tprint_char): New functions.
14237         (troff_output_file::special): Deleted.
14238         (troff_output_file::start_special, troff_output_file::end_special,
14239         troff_output_file::special_char): New functions.
14240         * troff/input.c (special_node::tprint): New function.
14241         (do_special): Use macro not char *.
14242         (do_transparent_macro): Deleted.
14243         (token::next): Don't call do_transparent_macro.
14245         * troff/input.c (token::next): Add 'Y' case.
14246         (do_transparent_macro): New function.
14247         * troff/node.c (troff_output_file::special): Handle newlines with
14248         argument using new continuation convention.
14249         * driver/input.c (get_string): Cope with continuation convention.
14250         (do_file): Don't call skip_line after calling get_string(1).
14251         * ps/ps.c (ps_printer::special, ps_printer::do_import,
14252         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
14253         arg.
14254         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
14255         with +.
14257 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
14259         * troff/input.c (asciify): By default, illegal input characters
14260         should return empty string.
14262         * troff/input.c (copy_file): Handle first page transition like title.
14263         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
14265         * troff/input.c (token::next): Improve error message for EOF after
14266         escape character.
14267         (input_char_description): New function.
14268         (get_char_for_escape_name): Use input_char_description.
14269         (token::next): Warn about unrecognized escape sequences.
14270         (warning_table): Add WARN_ESCAPE.
14271         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
14272         accordingly.
14274         * troff/token.h: Remove declaration of process_input_stack.
14276         * troff/input.c: Remove declaration of init_hyphen_requests.
14277         * troff/request.h: Correct spelling in declaration of same.
14279         * troff/input.c (token::next): Check whether escape_char is 0.
14281 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
14283         * groff.c (main, usage, help): Implement -P and -L options.
14284         * groff.sh: Likewise.
14286         * troff/input.c (token::next): Use some gotos to avoid code
14287         duplication.
14289         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
14290         Avoid calling symbol::symbol if name empty.
14292 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
14294         * troff/input.c (init_input_requests): Make \n(.x return the major
14295         version number and \n(.y return the minor version number.
14296         * troff/Makefile: Construct file majorminor.c defining
14297         major_version and minor_version automatically from ../VERSION.
14299         * troff/node.c (class glyph_node): Make operator new and operator
14300         delete public.
14301         (class ligature_node): Similarily.
14303         * troff/input.c (operator==(const macro &, const macro &)): New
14304         function.
14305         (non_interpreted_node::same): Use this.
14306         (string_iterator::string_iterator): Make macro& argument const.
14308         * troff/input.c (input_iterator::get): New function. Don't make
14309         asciify_macro or class non_interpreted_node friends of class
14310         input_iterator.
14311         (non_interpreted_node::interpret): Use input_iterator::get.
14312         (asciify_macro): Likewise.
14314         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
14315         ~non_interpreted_node): Deleted.
14316         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
14317         Deleted.
14319         * troff/symbol.h: Make all symbol member functions const.
14321         * lib/strtol.c: New file.
14322         * lib/Makefile: Add strtol.c.
14323         * Makefile: Define STRTOL as strtol.o to include strtol in
14324         libgroff.a.
14326 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
14328         * pic/troff.c (troff_output::simple_circle): Divide by scale.
14330 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
14332         * troff/input.c (do_special): Use input_level.
14334         * troff/token.h (TOKEN_BACKSPACE): New token.
14335         (token::backspace): New function.
14336         * troff/input.c (token::description, token::next, token::process):
14337         Grok TOKEN_BACKSPACE.
14338         (do_special): Turn TOKEN_BACKSPACE back into \b.
14340         * troff/token.h (token::leader): New function.
14341         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
14343         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
14345         * troff/input.c (do_special): Use token::description in error
14346         message.
14348 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
14350         * troff/input.c (decode_args): Combine quoted and
14351         quote_input_level variables. Make it a for (;;) loop.
14353         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
14355         * troff/input.c (read_long_escape_name): The test for whether to
14356         expand buffer was off by 1.
14357         (read_string): Similarily.
14359 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
14361         * troff/input.c: Use `const int' rather than `static const int'.
14363         * troff/div.h (diversion::copy_file): Declare as pure virtual.
14364         (macro_diversion::copy_file): New function.
14365         * troff/node.h: New class diverted_copy_file_node.
14366         * troff/node.c: Implement it.
14367         * troff/input.c (copy_file): Use diversion::copy_file. Handle
14368         first page transition by pushing a diverted_copy_file_node.
14369         * troff/input.c (token::next, process_input_stack): Don't handle
14370         COPY_FILE_REQUEST.
14372 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
14374         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
14375         whether space widths need adjusting.
14377         * troff/charinfo.h: Generalize translated_to_space to
14378         special_translation so as to allow translation to \&.
14379         * troff/input.c (translate): Allow translation to \&.
14380         (charinfo::*): Corresponding changes.
14381         * troff/node.c (make_node, node::add_char): Corresponding changes.
14382         * troff/node.h (dummy_node::dummy_node): Allow optional first
14383         argument.
14385         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
14386         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
14387         TOKEN_REQUEST.
14388         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
14389         TOKEN_REQUEST with an argument of TITLE_REQUEST.
14390         (token::process): Grok that.
14391         * troff/input.c (copy_file): Handle first page transition like
14392         title by pushing a COPY_FILE_REQUEST cookie.
14393         (token::next, process_input_stack): Grok that.
14394         * troff/node.h (output_file::copy_file): Add x and y arguments.
14395         Make it non-pure.
14396         * troff/div.c (top_level_diversion::copy_file): Supply them.
14397         * troff/node.c (troff_output_file::copy_file): Add x and y
14398         arguments; moveto specified position.  Invalidate font_position
14399         array after copying file.
14400         (output_file::copy_file): New function.
14401         (suppressed_output_file::copy_file, ascii_output::copy_file):
14402         Removed.
14403         * troff/input.c (transparent_file): New function.
14404         (init_input_requests): Bind to "trf".
14405         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
14406         (process_input_stack): Likewise.
14408         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
14410         * troff/node.c (init_node_requests): New number registers .kern
14411         pointing to global_kern_mode, and .lg pointing to
14412         global_ligature_mode.
14414         * troff/node.c (ligature): Don't change it if we get a bad
14415         integer.
14417         * troff/input.c (do_define_string): Don't strip tabs.
14419         * troff/input.c (asciify_macro): Make the string_iterator auto.
14421         * troff/node.c (init_font_requests): Rename to...
14422         (init_node_requests):
14423         * troff/node.h: Change declaration.
14424         * troff/input.c (main): Change call.
14426         * troff/input.c (node::reread, diverted_space_node::reread): New
14427         methods.
14428         (process_input_stack): Call reread rather than
14429         get_diverted_space_node.
14430         * troff/node.c (node::get_diverted_space_node,
14431         diverted_space_node::get_diverted_space_node): Removed.
14432         * troff/node.h: Declare reread methods instead of
14433         get_diverted_space_node methods. Make `n' member private.
14434         * troff/input.c: (token::diverted_space): Removed.
14435         * troff/token.h: Removed declaration.
14436         
14438 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
14440         * eqn/script.c (script_box::compute_metrics): Don't let
14441         SUP_RAISE_FORMAT become negative.
14443         * tbl/table.c (table::do_row): Entries that don't end in the
14444         this row shouldn't make the row non-blank.
14445         
14446         * tbl/table.c (table::make_columns_equal): Only set the width of
14447         columns which are marked as equal.
14448         
14449         * tbl/main.c (process_data): Before issuing excess data error,
14450         if last character was a newline unget it; then get it again after
14451         the error.  Also include the contents of the entry in the message.
14453         * groff.c: New file.
14454         * Makefile: Build groff from groff.c.  Make it possible to use
14455         either groff.sh or groff.c as groff.
14456         * Makefile.bd: Similarily.
14458 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
14460         * groff.sh: Don't delay expansion of $@ in assignment to files.
14461         Remove occurrences of \".
14463 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
14465         * all Makefiles: Simplify and rearrange.
14467         * Makefile: Handle fmod like malloc.
14468         * lib/Makefile: Similarily.
14469         * lib/fmod.c: Remove #ifdef NEED_FMOD.
14471         * Makefile: Rename OPTIMISE to OPTIMIZE.
14473         * groff.sh: Remove assignment to PATH.
14474         * Makefile: Remove SHPATH variable.
14475         * Makefile.bd: Similarily.
14477         * groff.sh: Add -V option to print the pipeline instead of
14478         executing it.
14480 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
14482         * lib/font.c: Split off file searching into ...
14483         * lib/fontfile.c: New file.
14485         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
14487 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
14489         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
14490         Also change misleading comment.
14491         (table::do_vspan): Change similarily misleading comment.
14492         * tbl/main.c (process_data): A format row with an explicit `s'
14493         uses up a data line, even if all the other columns are `_' or `='.
14495         * troff/input.c (token::description): Fix description of
14496         TOKEN_DUMMY and TOKEN_EMPTY.
14498 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
14500         * groff.sh: Fix description of -Z in help message.
14502 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
14504         * pic/object.c (object_spec::make_object): Allow negative and zero
14505         line thicknesses.
14506         * pic/pic.y: Give linethick default value of -1.0.
14507         * pic/troff.c (troff_output::troff_output): Initialize
14508         last_line_thickness to BAD_THICKNESS.
14509         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
14510         (troff_output::line_thickness): Canonicalize negative thicknesses
14511         to RELATIVE_THICKNESS.
14512         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
14513         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
14514         to -1.0.
14515         (tex_output::start_picture): Set pen_size to -2.0.
14517         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
14518         0, then use 0 linewidth.
14519         (ps_printer::ps_printer): Initialize line_thickness to -1.
14521         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
14523         * ps/devps/symbolchars: Remove `or'.
14524         * ps/tmac.ps: Implement \(or with .char.
14526         * ps/devps/symbolchars: Move most characters into textmap.
14527         * ps/devps/textmap: Add names for troff bracket characters. Remove
14528         ul, ru, br, bv.
14530         * ps/devps/TSymbol.ps: Removed.
14531         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
14532         * ps/tmac.ps: Do with .char what TSymbol did.
14533         * ps/devps/download: Remove TSymbol.
14535         * ps/devps/T: Removed.
14536         * ps/devps/Troff.ps: Removed.
14537         * ps/devps/Troff.afm: Removed.
14538         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
14539         * ps/devps/download: Remove Troff.
14540         * ps/devps/FontMakefile: Remove T target.
14541         * ps/devps/DESC-A4: Remove T from font list.
14542         * ps/devps/DESC-letter: Likewise.
14544         * troff/input.c (macro_to_node): Rename to ...
14545         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
14546         character's definition while processing it.
14547         * troff/node.c (node::add_char, make_node): Change calls to
14548         macro_to_node accordingly.
14550         * troff/input.c (token::next): Translate \_ to \(ul.
14552         * tty/devascii/R.proto: Add `|'.
14553         * tty/devlatin1/R.proto: Likewise.
14555 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
14557         * man: Put the version number in all the man pages.
14559 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
14561         * Makefile.bd: New file.
14562         * README.bd: New file.
14564         * VERSION: New file.
14565         * lib/version.c: Removed.
14566         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
14567         in clean target.
14569         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
14570         environment variable.
14572         * all Makefiles: Split install target into install.bin for
14573         binaries, and install.nobin for everything else.
14574         * Makefile: Add bindist target.
14576         * man/afmtodit.man: New file.
14577         * man/Makefile: Add afmtodit.n to MAN1PAGES.
14578         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
14579         in BINDIR.
14580         * ps/Makefile: Pass BINDIR to make install in devps.
14582         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
14583         the space character.
14585         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
14587 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
14589         * ps/ps.c: Redo font downloading.
14590         * ps/devps/download: New file.
14591         * ps/devps/Makefile: Add download to DEVICEFILES.
14592         * ps/devps/afmtodit: Remove -d option.
14593         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
14594         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
14595         * ps/devps/zapfdr.ps: Likewise.
14596         * ps/devps/TSymbol.ps: Likewise.
14598 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
14600         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
14602 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
14604         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
14605         then strip the first line if it starts with %.
14606         * Makefile: Add a comment about this.
14608         * man/tfmtodit.man: New file.
14609         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
14610         * dvi/Makefile: Install tfmtodit in BINDIR.
14612         * dvi/tfmtodit.c (usage): Mention -v option.
14614 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
14616         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
14617         * troff/node.c (troff_output_file::transparent_char): Don't call
14618         flush_tbuf.
14620         * eqn: Add check_tabs method to most box classes.
14621         * eqn/box.c (box::top_level): Call check_tabs.
14623         * eqn/script.c (script_box::output): Use \Z.
14624         * eqn/limit.c (limit_box::output): Use \Z.
14626         * eqn/box.c (box::top_level): Use itoa.
14628 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
14630         * dvi/tmac.dvi: Add font translations for CR, C, TT.
14631         * dvi/devdvi/Makefile: Don't make links to CW.
14633         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
14634         HX, HD.
14635         * xditview/tmac.X: Likewise.
14637         * troff/node.c: Add font translation feature.
14638         (get_font_translation): New function.
14639         (symbol_fontno): Translate the font name.
14640         (mount_font_no_translate): Rename to mount_font to this.
14641         (mount_font): New function.
14642         (font_family::make_definite): Call mount_font_no_translate instead
14643         of mount_font.
14644         (mount_style): Translate the font name.
14645         (font_translate): New function.
14646         (init_font_requests): Bind "ftr" to font_translate.
14648         * ps/devps/prologue (SN): New procedure that rounds a position to
14649         the nearest (pixel + (.25,.25)).
14650         (DL): Use SN to round endpoints.
14652         * lib/version.c: Changed version to 0.5.
14654 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
14656         * Makefile: Move definition of PAGE to the very beginning, so that
14657         people are less likely to miss it.
14659 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
14661         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
14663         * troff/env.c (environment::choose_breakpoint): Make `can't find
14664         breakpoint' error a warning of type WARN_BREAK.  Change message to
14665         `can't break line'.
14666         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
14667         code 040000.
14668         * troff/input.c: Add WARN_BREAK to warning_table.  Include
14669         WARN_BREAK in DEFAULT_WARNING_MASK.
14671         * tty/tmac.tty: Add definition of \(+-.
14673         * groff.sh: Remove `--' option to set command.
14675         * dvi/devdvi/texsy.map: Remove duplicate md entry.
14677         * ps/devps/eqnchar: Better definition of cdot using md.
14678         * dvi/devdvi/eqnchar:  Likewise.
14679         * xditview/devX100/eqnchar:  Likewise.
14680         * xditview/devX75/eqnchar: Likewise.
14681         * eqn/lex.c: Add definition of cdot.
14683 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
14685         * troff/input.c (get_optional_char): New function.
14686         * troff/input.c (set_page_character): Use get_optional_char(),
14687         rather than has_arg() and tok.get_char(1).
14688         * troff/env.c (tab_character, leader_character, hyphen_char,
14689         field_characters): Likewise.
14690         (margin_character): Likewise.  Also always delete the
14691         margin_character_node.
14693         * troff/input.c (token::get_char): Use token::description.
14695         * troff/input.c (has_arg): Don't skip over tab and \}.
14696         * troff/number.c (start_number): Give a warning if the number
14697         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
14699 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
14701         * troff/input.c (empty_name_warning, non_empty_name_warning): New
14702         functions.
14703         (get_name, get_long_name): Use these.  Rename `warn' argument to
14704         `required'.
14706         * troff/node.c (get_fontno): Test that the symbol is not null.
14708         * troff/input.c (token::description): New function.
14709         * troff/number.c (parse_term): Use token::description in `numeric
14710         expression expected' message.
14711         * troff/groff.h: Add WARN_MISSING.
14712         * troff/number.c (start_number): New function.
14713         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
14714         get_incr_number): Use start_number().
14715         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
14716         default.
14717         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
14718         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
14719         token::descripion.
14720         * troff/input.c (token::get_char): Use WARN_MISSING.
14721         * troff/input.c (token::delimiter): Use token::description.
14722         * troff/env.c (environment_switch): Back out Aug 3 change.
14723         * troff/input.c (has_arg): Skip over \}s and tabs but give a
14724         warning.
14725         * troff/token.h (token::tab): New function.
14726         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
14727         * troff/reg.c (alter_format): Likewise.
14728         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
14730 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
14732         * troff (most files): Redo warnings. Divide warnings into various
14733         categories; warning() has an additional first argument indicating
14734         the category it falls into.
14735         * troff/input.c (main): -w now takes an argument. New option -W.
14736         (enable_warning, disable_warning): New functions.
14738         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
14739         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
14741 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
14743         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
14744         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
14745         * xditview/devX75/eqnchar: Likewise.
14746         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
14748         * eqn/other.c: When bar or over applies to a single character
14749         don't produce an overline_box or an underline_box. Instead produce
14750         an accent_box or an underaccent_box, with the accent a line
14751         whose width is accent_width.  New classes underaccent_box,
14752         overline_char_box and underline_char_box.
14753         * eqn/box.h: Move overline_box, underline_box, accent_box class
14754         declarations into eqn/other.c. Add declarations of
14755         make_underline_box, make_overline_box, make_accent_box.
14756         * eqn/eqn.y: Call make_overline_box, make_underline_box
14757         make_accent_box instead of constructors.
14758         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
14760         * eqn/other.c: Add accent_box::~accent_box.
14761         * eqn/box.h: Declare it.
14763         * groff.sh: With -Tps, use eqn -D.
14765         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
14766         rather than \l.
14767         (underline_box::output): Similarily.
14768         (accent_box::output): Use \Z.
14770         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
14771         bit smaller.)
14773 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
14775         * troff/div.c (top_level_diversion::transparent_output(unsigned
14776         char)): Use asciify.
14777         * troff/input.c (asciify): Don't make it static.
14778         * troff/token.h (asciify): Declare it.
14779         
14780         * troff/input.c (get_name, get_long_name, token::get_char,
14781         token::delimiter): Add an extra default argument which says
14782         whether a warning should be printed.
14783         * troff: Pass a non-zero argument to one of these rather than
14784         printing a warning directly.
14786 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
14788         * troff: Consistently use symbol::is_null.
14790         * troff/dictionary.h: Move some inline functions into
14791         dictionary.c.
14793         * troff/request.h: Move inline functions into input.c.
14794         (request_or_macro::invoke): Make it pure.
14796         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
14797         * troff/input.c (init_input_requests): Use class constant_int_reg.
14798         (class compatible_reg): Deleted.
14799         * troff/div.c (init_div_requests): Use class constant_int_reg.
14800         (class last_post_line_extra_space_reg): Deleted.
14802         * troff/env.c (tab_character): Don't change the tab character if
14803         we get an invalid argument.
14804         (hyphen_char): Similarily.
14806         * troff/reg.c (alter_format): Check that nm is not null.
14808         * Makefile, groff.sh: Make it possible to customize the commands
14809         used for printing PostScript and dvi files. Also make it possible
14810         to customize the path used by groff.sh.
14812         * eqn/eqn.y: Make `left' right associative.
14814 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
14816         * pic/pic.h: Added definition of M_SQRT2 for those systems that
14817         don't have it.
14819         * pic/pic.h: Removed definition of INT_MAX.
14821         * troff/node.c (italic_corrected_node::vertical_extent): Omit
14822         `return'.
14824         * troff/input.c (token::next):  Handle \R like \n.
14826 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
14828         * ps/tmac.pc (PSPIC): Simplify.
14830         * troff/env.c (tab_stops::to_string):
14831         * pic/pic.y (object_type_name):
14832         * pic/troff.c (simple_output::line):
14833         * pic/tex.c (tex_output::spline):
14834         * pic/object.c (object_spec::make_object):
14835         * tbl/main.c (process_data):  Add cases to switch statements to
14836         avoid cfront warnings. (Some of these are spurious, since the
14837         switch already has a default case.)
14839         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
14840         `ps-'.  Don't test systat; instead check number of arguments to
14841         ps-bb.
14843 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
14845         * macros/tmac.e: Do not decrease the page offset by 0.5i.
14847         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
14848         Unlink the file as soon as we have opened it, so that we don't
14849         have to bother with signal handlers.
14850         (handler): Deleted.
14851         (fatal_error_exit): Deleted.
14852         (main): Don't call signal.
14854         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
14855         can be ignored.
14856         * dvi/devdvi/Makefile: Use the -k option with S and MI.
14858         * pic/pic.y:  If there is a label, or an nth construction before
14859         the first `.' in the argument to `with', ignore it and generate a
14860         warning.
14861         * pic/lex.c (lex_warning): New function.
14863         * tbl/table.c (table::init_output): In section keep and release
14864         macro, use 0 indent when diverting and the correct indent when
14865         rereading.
14867         * troff/input.c (interpolate_number_format): Do not interpolate
14868         anything if the number register is not defined.
14870         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
14872 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
14874         * ps/devps/prologue (PICTURE): Set components of graphics state to
14875         their default values.
14877         * ps/devps/text.enc: Add trademark
14878         * ps/devps/textmap: Add names for club, spade, heart, diamond,
14879         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
14880         * ps/devps/symbolchars: Add names for summation and product.
14882         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
14883         suchthat. Add pp. Add upper-case letters.
14885         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
14886         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
14887         Upsilon.
14889         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
14890         rA (right angle bracket) to ra.  Introduce names for double-headed
14891         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
14892         * ps/devps/textmap: Likewise for ps device.
14893         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
14894         * tty/devascii/R.proto: Rename lA to la and rA to ra.
14895         * tty/devascii/R.proto: Likewise.
14896         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
14897         \(uA, \(dA.
14898         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
14900         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
14902         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
14903         def_table.
14905 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
14907         * troff/div.c (when_request): Use symbol::is_null rather than
14908         has_arg to determine whether we have an argument.
14909         (change_trap): Remove the trap if we get an invalid number. Give
14910         an error if we don't get at least the macro name.
14911         (diversion_trap): Remove trap if we get an invalid name or number.
14913         * troff/env.c (environment_switch): Pop if we get an invalid
14914         symbol or numeric expression.
14916         * troff/input.c (do_define_macro):  If EOF is encoutered while
14917         defining the macro, do tok.next() before returning.
14919         * troff/token.h (has_arg): Move definition from here, to ...
14920         * troff/input.c (has_arg): ... here
14922         * troff/env.c (space_size): Do nothing if we get an invalid argument.
14923         * troff/input.c (shift): Likewise.
14925         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
14926         for `.c'.
14928         * pic/troff.c (troff_output::start_picture):  Comment out calls to
14929         `..'.
14931         * eqn/main.c (do_file): Subtract 1 from current_lineno if
14932         interpret_lf_args succeeds.
14934         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
14935         \\.  This avoids problems with \$N.
14937         * groff.sh: Pass -C to preprocessors.
14939         * lib/lf.c (interpret_lf_args):  Be more flexible.
14941         * tbl/main.c (main): Add -C option.
14942         (table_input::get): Do not recognize TE if followed by character
14943         other than a space or newline unless -C option given.
14944         (process_input_file): Likewise for lf, TS.
14945         (process_data): Likewise for lf in text blocks.
14947         * eqn/main.c (main): Add -C option.
14948         (do_file): Don't recognize EQ, EN or lf if followed by character
14949         other than space or newline unless -C option given.
14950         * eqn/lex.c (file_input::read_line): Similarily.
14951         * eqn/eqn.h: Declare compatible_flag.
14953         * etc/soelim.c (main): Add -C option.
14954         (interpret_lf_args): Use version in libgroff.
14955         (do_file):
14957         * pic/main.c (main): Add -C option, which sets compatible_flag.
14958         (top_input::get), (top_input::peek):  If -C option not given,
14959         do not recognize .PS/.PE/.PF/.lf if followed by a character
14960         other than space or newline.
14961         * pic/lex.c (file_input::read_line): Similarily.
14962         * pic/pic.h: Add declaration of compatible_flag.
14964 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
14966         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
14968         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
14969         derived from node.  New class space_char_hmotion_node.
14970         * troff/input.c (asciify_macro): New function.
14971         * troff/input.c (init_input_requests): New request `asciify' bound
14972         to asciify_macro.
14973         * macros/mm.diff: New file.
14974         * Makefile:  In install.mm target use `patch' to apply
14975         macros/mm.diff.
14977         * troff/input.c (macro::print_size): Just print the size in bytes.
14979         * troff/div.c (return_request): Correct the argument
14980         interpretation.
14982 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
14984         * troff/node.h (class composite_node): Add sz member.
14985         * troff/node.c (composite_node::size): Return sz.
14986         * troff/input.c (macro_to_node):  Use the initial size in the
14987         environment as the size of the composite_node.
14989         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
14990         default.
14992 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
14994         * troff/div.c (change_trap): If we get a bad number expression,
14995         do nothing.
14997 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
14999         * lib/matherr.c (matherr): Define this only if math.h defines
15000         TLOSS.
15002 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
15004         * troff/div.c (macro_diversion::distance_to_next_trap): If there
15005         no diversion trap return vunits(INT_MAX - vresolution).
15007 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
15009         * troff/input.c (do_zero_width): New implementation that doesn't
15010         use a temporary environment. Use instead:
15011         (token::add_to_node_list): New function.
15012         * troff/env.c (environment::get_prev_char_height),
15013         (environment::get_prev_char_height),
15014         (environment::get_prev_char_skew): New functions.
15015         (environment::get_prev_char): New function.
15016         (environment::get_prev_char_width): Change to use get_prev_char.
15017         (init_env_request): Implement new registers .cht, .cdp, .csk.
15018         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
15019         \Z being processed in a separate environment.
15021 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
15023         * tbl/table.c: Removed TABLE_BOTTOM_REG.
15025         * tbl/table.c (table::init_output): In the section release macro,
15026         give a warning message if the section won't fit on one page.
15028         * tbl/table.c (table::do_top): Emit table keep only if table is
15029         boxed.
15030         (table::do_bottom): Likewise for table release.
15031         (table::table), (table::add_vertical_rule):  Remove reference to
15032         keep member.
15033         * tbl/table.h: Remove keep member.
15035         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
15036         SECTION_RELEASE_MACRO, if there's not enough space before the next
15037         trap to output the diversion, call T# ourselves, set
15038         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
15039         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
15040         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
15041         vertical position and return to it before turning traps on again.
15042         
15043 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
15045         * troff/node.c, troff/node.h: In classes derived from node,
15046         replace prev_char_width method by last_char_node method.
15047         * troff/env.c (environment::get_prev_char_width): Use
15048         node::last_char_node rather than node::get_prev_char_width.
15050         * Makefile: Added comment about -fno-inline on 68030-based
15051         Apollos.
15053         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
15054         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
15055         expressions using sizeof to int.
15056         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
15058         * macros/tmac.e (TS):  Don't move @f back past the current
15059         position.
15061 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
15063         * ps/ps.c (main): Buffer stderr.
15064         * dvi/dvi.c (main): Likewise.
15065         * tty/tty.c (main): Likewise.
15067         * ps/ps.c (ps_printer::do_import): Improve error handling.
15069         * troff/input.c (abort_request): Use asciify.
15071         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
15072         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
15073         type of first argument int rather than char.  This works around a
15074         bug on the 68030 based Apollo using g++ 1.37.1.
15076         * tbl/table.h (class table): Add `keep' member.
15077         * tbl/table.c (table::table): Initialize `keep'.
15078         (table::add_vertical_rule): Set `keep' to 1.
15079         (table::do_top): Only emit table keep macro is `keep' is non-zero.
15080         (table::do_bottom): Likewise for table release macro.
15081         (table::do_row): Emit section keep macro even if the row is 0.
15083 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
15085         * macros/tmac.e (@C): Preserve the font family across the change
15086         in environments.
15088 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
15090         * lib/font.c: Initialize font::hor and font::vert to 1.
15091         (font::load_desc): Check the values of font::hor and font::vert.
15093         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
15094         be included in a C compilation.
15095         (iftoa): Use INT_DIGITS. Include lib.h.
15096         (itoa): Likewise.
15097         (as_string): Likewise.
15098         * tbl/table.c: Removed definition of INT_DIGITS.
15099         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
15100         * troff/input.c (input_input_requests): Likewise.
15101         * ps/ps.c (make_encoding_name): Likewise.
15102         (ps_printer::set_style): Likewise.
15103         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
15105         * tty/devascii/R.proto: Map fm onto '.
15106         * tty/devlatin1/R.proto: Likewise.
15108 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
15110         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
15111         argument to \w is at a different input level.
15113         * tbl/table.c (table::init_output): Define a new macro
15114         REPEATED_VPT_MACRO, like vpt but if in a diversion also
15115         transparently outputs itself.
15116         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
15117         vpt.
15118         (table::do_row): Likewise.
15120         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
15121         TRANSPARENT_STRING_NAME.
15123         * tbl/table.c (table::init_output): In the table release macro
15124         print an error message and don't produce any output if after
15125         issuing the need request the table still will not fit.  Also
15126         remove the diversion after bringing it back.
15128         * tbl/table.c (table::init_output): Define a new macro
15129         REPEATED_MARK_MACRO, like mk but if in a diversion also
15130         transparently outputs itself.
15131         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
15132         is necessary because .TH might not call .T#.
15133         (table::do_top): Likewise TOP_REG.
15134         (table::define_bottom_macro): If TOP_REG is no longer valid, use
15135         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
15136         table header might contain just the two top rules.
15138 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
15140         * troff/div.c: Implement new request `ptr' to print all traps.
15142         * troff/env.c (init_env_requests): Implement `.tabs' reg with
15143         init_string_env_reg.
15144         * troff/env.c (class tab_reg): Deleted.
15146 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
15148         * troff/div.c: New number register .pn returns the number of the
15149         next page as set by the pn request.
15151         * macros/tmac.an: Redid headers and footers.  Number each manual
15152         entry starting from 1 unless \nC is > 0, like Sun.  Added an
15153         optional 5th argument to .TH which specifies the manual name and
15154         appears in the center of the header.  Understand the X, P and D
15155         registers like Sun.
15157 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
15159         * troff/env.c (init_env_requests): New number register `.lt' to
15160         return the title length.
15162         * troff/node.h (class transparent_dummy_node): New class.
15163         * troff/node.c (class transparent_dummy_node): Provide member
15164         functions. 
15165         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
15166         than a dummy_node.
15168         * troff/input.c (token::next): New escape sequence \).
15169         * troff/input.c (get_copy): Recognize \) in copy mode.
15171         * troff/input.c (input_stack::clear): New function.
15172         * troff/input.c (exit_request): Use input_stack::clear.
15174         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
15175         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
15177         * troff/env.c: Move set_page_character to input.c.  Move
15178         page_character to input.c also.
15179         * troff/env.c (title): Split off the reading of the parts of the
15180         title into read_title_parts.
15181         * troff/input.c (read_title_parts): New function.  Check the
15182         input_level when testing whether a token matches the delimiter.
15184         * troff/input.c (exit_request): New function.
15185         * troff/input.c (init_input_requests): Bind ex request to
15186         exit_request rather than exit_groff.
15188         * troff/input.c (exit_groff): Call tok.next() before
15189         process_input_stack().
15191 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
15193         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
15194         * troff/env.h: ditto.
15195         * troff/input.c: ditto.
15197         * troff/env.c (environment::is_empty): Test pending_lines.
15199         * troff/env.c (environment::have_pending_lines): Removed.
15201         * troff/input.c: Add request to flush pending lines from the
15202         environment.
15204         * troff/env.c, troff/env.h: Add automatic widow control feature.
15206         * troff/input.c (exit_groff):  Do process_input_stack() after
15207         do_break() but before setting exit_flag to 2.
15209         * troff/input.c: Remove FLUSH_PENDING_LINES and
15210         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
15211         environment after END_TRAP token seen, but only if there aren't
15212         any more traps still unfinished.
15213         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
15215 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
15217         * troff/env.c: Rename the `retain_size' member of class
15218         pending_output_line to `no_fill'.
15220         * troff/env.c (title): When the line is output, make the
15221         retain_size argument !fill.
15223         * troff/node.h: Add `hyphenated' member to struct breakpoint.
15224         * troff/node.c (space_node::get_breakpoints),
15225         (dbreak_node::get_breakpoints):  Fill this in.
15226         * troff/env.c:  Allow specification of maximum number of
15227         consecutive hyphenated lines.
15229         * troff/env.c (environment::is_empty): Add test for !current_tab.
15231 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
15233         * troff/env.c (environment::hyphenate_line): Don't completely give
15234         up if the word is not to be hyphenated; continue so that breaks
15235         can be made at break_char_node's.
15237         * lib/lib.h: Only define INT_MAX if it's not already defined;
15238         undef INT_MIN if it's already defined.
15240         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
15242         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
15243         This works around a bug in AT&T C++ 2.0 used with an ANSI C
15244         compiler.
15245         
15246         * macros/tmac.an (an-header): Set no-space mode.
15248         * macros/tmac.an (TH): Start a new page if necessary.
15250         * Started using ChangeLog at version 0.4.
15252 Local Variables:
15253 version-control: never
15254 coding: latin-1
15255 End: