* tmac/groff_mdoc.man: Improve documentation of punctuation characters.
[s-roff.git] / ChangeLog
blob99e428462ebfb511479207f88f2943b8685de94a
1 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
3         * tmac/groff_mdoc.man: Improve documentation of punctuation
4         characters.
6 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
8         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
10 2003-07-03  Werner LEMBERG  <wl@gnu.org>
12         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
14 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
16         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
17         after `/*' and `*/'.
18         Fix spacing.
19         (Fn, Fo): Reduce indentation in synopsis.
21         * tmac/doc-common (doc-check-depth): New macro.
22         (doc-end-macro, Sh, Ss): Use it.
23         (Cd): Fix behaviour in synopsis.
24         (In): Make it parsed and callable.
25         If not in the synopsis, represent the C header file enclosed in
26         angle brackets.
27         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
28         Use minus, not hyphen.
30         * tmc/groff_mdoc.man: Updated.
32 2003-07-01  Werner LEMBERG  <wl@gnu.org>
34         Integrated grap2graph, contributed by Eric S. Raymond.
36         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
37         New files.
38         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
39         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
41 2003-07-01  Colin Watson  <cjwatson@debian.org>
43         * src/xditview/*.c: Add prototypes, fix return types, add includes.
44         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
46 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
48         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
50 2003-06-31  Werner LEMBERG  <wl@gnu.org>
52         * doc/Makefile.sub (CLEANADD): Remove all files created by
53         running `make groff.{pdf,dvi}'.
55         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
56         src/xditview also.
58 2003-06-30  Werner LEMBERG  <wl@gnu.org>
60         * Makefile.in (SHELL): Define as @SHELL@.
61         (mkinstalldirs): Use $(SHELL).
62         (MDEFINES): Add $(SHELL).
63         * Makefile.comm (SHELL): Removed.
65 2003-06-29  Werner LEMBERG  <wl@gnu.org>
67         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
68         The X11 documentation files use them.
69         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
71 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
73         * tmac/e.tmac (@C): Handle .ad also.
75 2003-06-12  Werner LEMBERG  <wl@gnu.org>
77         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
79         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
80         Assign `n' even here.  It is possible to construct a node
81         immediately following an escape character:
83           .di xx
84           \?\\\?a
85           .br
86           .di
87           .xx
89 2003-06-10  Werner LEMBERG  <wl@gnu.org>
91         * README.WIN32: Removed.
92         * MANIFEST: Updated.
94 2003-06-07  Werner LEMBERG  <wl@gnu.org>
96         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
98 2003-06-05  Werner LEMBERG  <wl@gnu.org>
100         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
101         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
103 2003-06-03  Werner LEMBERG  <wl@gnu.org>
105         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
106         is done by the calling function.
108 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
110         * tmac/X.tmac: Fix definition of `em'.
112 2003-05-22  Werner LEMBERG  <wl@gnu.org>
114         * src/roff/troff/input.cc (return_macro_request): Fix detection of
115         argument.
117 2003-05-18  Werner LEMBERG  <wl@gnu.org>
119         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
120         to make items work which consist only of a tag.
122 2003-05-17  Werner LEMBERG  <wl@gnu.org>
124         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
125         aren't stretched in a tag (this can fail with unformatted boxes).
126         Instead, insert a break and go back one line.
128 2003-05-16  Werner LEMBERG  <wl@gnu.org>
130         * src/roff/troff/input.cc (return_macro_request): If called with
131         argument pop macro twice.  We need this to trace `return'.
133         * tmac/trace.tmac: Handle `return'.
134         Fix typos.
136         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
137         Document.
139 2003-05-15  Larry Kollar  <kollar@alltel.net>
141         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
142         registers `FPS', `FVS', and `FPD'.
144 2003-05-15  Werner LEMBERG  <wl@gnu.org>
146         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
147         correctly.
149 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
151         * tmac/groff_mdoc.man: Slight improvements.
153 2003-05-03  Werner LEMBERG  <wl@gnu.org>
155         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
156         `doc-header-space' after header line if register `cR' is set.
158 2003-05-02  Werner LEMBERG  <wl@gnu.org>
160         * TODO: Updated.
162 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
164         * tmac/doc-common (Nd): Use \[em].
166 2003-05-01  Werner LEMBERG  <wl@gnu.org>
168         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
169         doc-footer-space): Initialize to 0.5i.
170         (doc-setup-page-layout): Don't set doc-header-space and
171         doc-footer-space.
173 2003-04-30  Werner LEMBERG  <wl@gnu.org>
175         * REVISION: Set to 1.
177         * doc/pic.ms: Document possible problems with `figname'.
179 2003-04-29  Werner LEMBERG  <wl@gnu.org>
181 Version 1.19 released
182 =====================
184         * VERSION: Set to 1.19.
185         * REVISION: Set to 0.
186         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
188         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
189         Define charset as `US-ASCII' in html output.
191         * tmac/www.tmac (ULE): Add missing scaling indicator.
193         * win32-diffs: Removed.
195 2003-04-28  Werner LEMBERG  <wl@gnu.org>
197         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
198         `.da' and `.boxa'.
199         Document how to insert discardable whitespace with `.ss'.
201 2003-04-27  Werner LEMBERG  <wl@gnu.org>
203         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
204         work with plain TeX also.
206         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
208 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
210         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
211         Use a loose DTD.
213 2003-04-24  Werner LEMBERG  <wl@gnu.org>
215         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
216         vbox with positive height and zero depth if in TeX mode.
218         * NEWS: Document glyph name changes for grodvi and grolj4.
220 2003-04-23  Werner LEMBERG  <wl@gnu.org>
222         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
223         * doc/pic.ms: Fixed.
225 2003-04-21  Werner LEMBERG  <wl@gnu.org>
227         HP-UX 10.20 has `snprintf' but it isn't declared.
229         * configure.ac: Add declaration test for snprintf.
230         * configure: Regenerated.
231         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
232         * src/include/config.hin: Regenerated.
234 2003-04-19  Werner LEMBERG  <wl@gnu.org>
236         Add keyword `figname' to pic, specifying the name of the picture
237         box in TeX mode.  Based on a patch from William J Poser
238         <wjposer@unagi.cis.upenn.edu>.
240         * src/preproc/pic/pic.y: New token `FIGNAME'.
241         (macro_name): New rule of type <str>.
242         (placeless_element): Handle `FIGNAME'.
243         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
244         * src/preproc/pic/main.cpp (graphname): New global variable.
245         (do_picture): Initialize `graphname'.
246         * src/preproc/pic/pic.h: Updated.
247         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
248         `graphname'.
249         Simplify TeX code.
250         (tex_output::text): Beautify output.
251         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
252         `shaded' and `outlined' unconditionally.
253         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
254         Minor improvements.
256         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
257         greater is necessary.
259 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
261         Add option -r to soelim to avoid emission of `.lf' lines.
262         Add option -t to produces TeX comment lines instead of `.lf' lines.
264         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
265         and `tex_flag'.
266         (usage): Updated.
267         (main): Handle `-r' and `-t'.
268         (set_location): Handle `raw_flag' and `tex_flag'.
269         * src/preproc/soelim/soelim.man, NEWS: Updated.
271 2003-04-17  Werner LEMBERG  <wl@gnu.org>
273         * tmac/hyphenex.sh: Replaced with...
274         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
275         nightmares.
277         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
278         if --quiet is used for the configure script.
279         * configure: Regenerated.
281 2003-04-16  Werner LEMBERG  <wl@gnu.org>
283         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
284         Add `const' to second argument.
285         (html_printer::add_table_end): Add `const' to argument.
286         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
287         `const' to arguments.
288         * src/devices/grohtml/html-text.h: Updated.
290         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
291         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
292         argument.
294         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
295         cast for integer constant.
297         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
298         (writeNbytes): Add `const' to first argument.
299         (writeString): Add `const' to argument.
300         (char_buffer::can_see): Add `const' to third argument.
301         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
302         `const' to argument.
303         * src/preproc/html/pushback.h: Updated.
305         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
306         (include_path_append): Add `const' to argument.
307         (do_file): Updated.
309         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
310         for `value'.
311         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
312         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
313         for `value'.
314         (unicode_decompose_init::unicode_decompose_init): Updated.
315         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
316         for `value'.
317         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
318         * src/roff/troff/input.cc (process_startup_file): Add `const' to
319         argument.
321         * tmac/hyphenex.sh: Make script more portable by using a here
322         document.
324 2003-04-15  Werner LEMBERG  <wl@gnu.org>
326         Renamed all `*.cc' files to `*.cpp'.
327         Updated all configuration files, makefiles, and documentation.
329 2003-04-14  Werner LEMBERG  <wl@gnu.org>
331         * tmac/hyphenex.sh: Slight improvements.
333 2003-04-13  Werner LEMBERG  <wl@gnu.org>
335         * font/devascii/R.proto, font/devcp1037/R.proto,
336         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
337         character slots with unnamed glyphs.
339         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
340         (an-first): New global variable.
341         (an-header): Emit vertical space between multiple man pages.
343 2003-04-11  Werner LEMBERG  <wl@gnu.org>
345         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
346         values.
348 2003-04-10  Werner LEMBERG  <wl@gnu.org>
350         * PROBLEMS: Revised.
352 2003-04-10  Bernd Warken  <bwarken@mayn.de>
354         * doc/webpage.ms: Improved.
356 2003-04-09  Werner LEMBERG  <wl@gnu.org>
358         Add register \n[.height] which returns the value of \H.
359         Add register \n[.slant] which returns the value of \S.
361         * src/roff/troff/env.cc (init_env_requests): Implement.
362         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
363         Document.
365 2003-04-08  Werner LEMBERG  <wl@gnu.org>
367         * tmac/html.tmac: Move some of the data into html-end.tmac.
368         Remove most of the character translations for eqn since html fonts
369         now cover those characters.
370         Load www.tmac.
371         * tmac/html-end.tmac: New file.
372         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
373         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
374         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
376 2003-04-07  Werner LEMBERG  <wl@gnu.org>
378         * man/groff_out.man: Document negative values of `N' if -Thtml is
379         used.
381 2003-04-06  Werner LEMBERG  <wl@gnu.org>
383         * Makefile.comm (depend.temp): Check location of YTABC.
385 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
387         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
388         binary path.
389         (groff_bin_path): Rename to GROFF_BIN_PATH.
390         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
391         * doc/Makefile.in (TROFFBIN): New variable for troff
392         binary path.
393         (GROFFBIN): New variable for groff binary path.
394         (groff_bin_path): Rename to GROFF_BIN_PATH.
395         (TROFF): Use TROFFBIN.
396         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
397         * doc/Makefile.sub (GROFFBIN): New variable for groff
398         binary path.
399         (groff_bin_path): Rename to GROFF_BIN_PATH.
400         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
402         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
403         with INSTALL_SCRIPT.
404         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
405         * Makefile.dev (all): Depend on DEVSCRIPTS.
406         (install_dev): Likewise.
407         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
408         scripts.
409         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
410         (DEVGENSCRIPTS): New variable to hold generated scripts.
412 2003-04-05  Werner LEMBERG  <wl@gnu.org>
414         * src/libs/libdriver/input.cc (IntArray::operator[],
415         IntArray::get_data): Remove meaningless `const' in return value.
417         * README.CVS: New file.
419 2003-04-04  Werner LEMBERG  <wl@gnu.org>
421         Check for stdint.h in C++, not in C.
423         * aclocal.m4 (GROFF_STDINT_H): New function,
424         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
425         AC_CHECK_HEADERS.
426         * configure, src/include/config.hin: Regenerated.
427         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
430         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
431         with a negative value, representing the width of the unbreakable
432         space (only for -Thtml).  grohtml then converts this back to
433         &nbsp; and uses the value of N as its width.
435         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
436         unbreakable_space_node::tprint): Emit `N-<width>'.
437         * src/include/printer.h (printer::set_numbered_char): Make it
438         virtual.
439         Make members `font_table' and `nfonts' protected instead of private.
440         * src/devices/grohtml/post-html.cc
441         (html_printer::set_numbered_char): New member function.
444         * src/libs/libgroff/maxfilename.cc:
445         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
447         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
448         emit word marker.
450 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
452         * man/roff.man: Small fixes.
454 2003-04-03  Werner LEMBERG  <wl@gnu.org>
456         Make groff independent from locale's numeric settings.
458         * configure.ac: Check for `setlocale'.
459         * configure, src/include/config.hin: Regenerated.
461         * src/include/lib.h: Handle HAVE_SETLOCALE.
463         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
464         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
465         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
468         * doc/groff.texinfo: Change dir category to `Typesetting'.
469         (Man font macros): Mention that there is no space between arguments
470         of .BI and friends.
472         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
473         (*printer::change_color, *printer::change_fill_color): Add missing
474         `const'.
476 2003-04-02  Werner LEMBERG  <wl@gnu.org>
478         * src/devices/grohtml/html-table.cc (html_table::emit_col,
479         html_table::is_gap): Compute table widths after converting border
480         positions to avoid rounding errors.
482 2003-04-01  Werner LEMBERG  <wl@gnu.org>
484         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
485         `space_emitted' properly.
487 2003-03-31  Werner LEMBERG  <wl@gnu.org>
489         * src/devices/grohtml/html-table.cc: Fix column width calculation.
490         (html_table::set_linelength): Don't add 1.
491         (html_table::add_indent): Don't subtract 1.
493         * tmac/html.tmac: Set default page offset to zero.
495 2003-03-30  Werner LEMBERG  <wl@gnu.org>
497         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
499         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
500         unbreakable_space_node::tprint): New functions.
501         (troff_output_file): Make space_char_hmotion_mode::tprint and
502         unbreakable_space_node::tprint to friends.
503         * src/roff/troff/node.h: Updated.
505         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
506         in the HTML standard).
508 2003-03-29  Werner LEMBERG  <wl@gnu.org>
510         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
511         Otherwise, the following code
513           .di xxx
514           .ps 10
515           a
516           .br
517           .di
518           x\*[xxx]
520         produces `x a' instead of `xa'.  This is a temporary fix, disabling
521         font changes in diversions for -Thtml.
523         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
524         `HTML-TAG'.
525         (an-do-tag-html): Merge with ...
526         (an-do-tag): This macro.
527         Change code slightly to circumvent grohtml bug.
528         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
530         * src/devices/grohtml/html-table.cc (html_table::emit_col,
531         html_table::is_gap): Round `width' properly.
533         * tmac/html.tmac: Provide some default layout parameters for
534         grohtml.
536         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
537         command.
539 2003-03-28  Werner LEMBERG  <wl@gnu.org>
541         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
543 2003-03-27  Werner LEMBERG  <wl@gnu.org>
545         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
546         defined.
548 2003-03-20  Werner LEMBERG  <wl@gnu.org>
550         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
551         `.vs'.
552         * doc/groff.texinfo: Updated.
554 2003-03-19  Werner LEMBERG  <wl@gnu.org>
556         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
557         TOKEN_END_TRAP>: Reset `have_input'.
559 2003-03-18  Werner LEMBERG  <wl@gnu.org>
561         * src/roff/groff/groff.man: Mention groff_trace man page.
563 2003-03-16  Werner LEMBERG  <wl@gnu.org>
565         * Makefile.in (LIBEXT): New variable to indicate the file extension
566         of library files.  Computed heuristically from $(OBJEXT).
567         (MDEFINES): Add $(LIBEXT).
568         * Makefile.lib, Makefile.comm: Use it.
570         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
571         overlong lines into smaller chunks.
572         (get_binary): New function.
573         (main): Use them.
574         * src/utils/pfbtops/pfbtops.man: Updated.
576 2003-03-15  Colin Watson  <cjwatson@debian.org>
578         * src/roff/groff/groff.man: Minor syntax fix.
580 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
582         * src/devices/grops/ps.cc (ps_printer::media_set,
583         ps_printer::~ps_printer): Handle zero paper width and length.
585 2003-03-13  Werner LEMBERG  <wl@gnu.org>
587         Add options -p and -l to grodvi.
589         * src/devices/grodvi/dvi.cc: Include paper.h.
590         (landscape_flag, user_paper_length, user_paper_width): New global
591         variables.
592         (dvi_printer::begin_page): Emit `papersize' special.
593         Set color after initialization of `cur_h' and `cur_v'.
594         (main): Add options `-l' and `-p'.
595         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
596         * src/devices/grodvi/grodvi.man, NEWS: Updated.
598         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
600 2003-03-12  Werner LEMBERG  <wl@gnu.org>
602         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
603         * man/groff_tmac.man: This man page.
604         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
605         deprecated.
607         * tmac/X.tmac: Don't load pspic.tmac.
609 2003-03-11  Werner LEMBERG  <wl@gnu.org>
611         Make variable `pr' local to libdriver/input.cc.  Based on a patch
612         by Bernd Warken <bwarken@mayn.de>.
614         * src/include/driver.h (pr): Removed.
616         * src/libs/libdriver/input.cc (pr): New global variable.
617         (do_file): Deallocate `pr'.
618         * src/libs/libdriver/printer.cc (pr): Removed.
620         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
621         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
622         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
623         (main): Don't delete `pr'.
625 2003-03-10  Werner LEMBERG  <wl@gnu.org>
627         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
628         * tmac/papersize.tmac: New file.
629         * tmac/troffrc: Include `papersize.tmac'.
630         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
631         * tmac/an-old.tmac: Set LT to LL by default.
633         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
634         doc/groff.texinfo: Updated.
636         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
637         bug which caused all odd iso papers to have wrong dimensions.
639         * src/devices/grops/ps.cc (user_paper_width): New global variable.
640         (main) <'p'>: Set `user_paper_width' also.
641         (ps_printer::media_width, ps_printer::media_height): Use values
642         given with option `-p'.
644 2003-03-09  Werner LEMBERG  <wl@gnu.org>
646         * src/include/nonposix.h: Provide default for SET_BINARY.
648         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
649         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
650         unconditionally.
652         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
653         (main): Treat \r\n as \n.
655 2003-03-08  Werner LEMBERG  <wl@gnu.org>
657         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
658         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
660 2003-03-07  Werner LEMBERG  <wl@gnu.org>
662         Added support to access more than 256 glyphs in Type 1 fonts.
664         * src/devices/grops/ps.cc (subencoding): New structure.
665         (style): Add `sub' field.
666         Updated all users.
667         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
668         Add `set_subencoding', `get_subfont' and `encode_subfont' member
669         functions.
670         Updated all users.
671         (ps_printer::set_char): Use `set_subencoding'.
672         (make_subencoding_name): New function.
673         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
674         (ps_printer::~ps_printer): Emit subencoding definitions.
676         * src/devices/grops/psrm.cc (valid_input_table): New array to
677         properly support EBCDIC.
678         (white_space): Add `\f'.
679         (ps_get_line): Change first argument to be of type `string &'.
680         Updated all callers.
681         This allows to get lines of arbitrary length.
682         Use `valid_input_table'.
683         Remove warning about non-conforming PS line length.  This seems
684         not to be of great importance -- for example, dvips don't emit
685         a warning either.
686         (PS_LINE_MAX): Removed.
687         (matches_comment): Change first argument to be of type `string &'.
689         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
691         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
692         %AGL_to_unicode, %default_ligatures): New hash tables.
693         Read all map entries.
694         Add unencoded characters.
695         Check for default ligatures if there are no `L' entries.
696         Print all kern entries.
697         Print all characters in charset.
698         * src/utils/afmtodit/afmtodit.man: Updated.
700         * font/devps/*: Regerated all fonts.
702         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
703         of characters, just use `.trin'.  Otherwise the mapping depends
704         on the font encoding.
705         * tmac/ps.tmac: Add `fi' and `fl'.
706         Improve `Fi' and `Fl'.
707         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
708         * tmac/Xps.tmac: Fix `em'.
710         * NEWS: Updated.
712 2003-03-04  Werner LEMBERG  <wl@gnu.org>
714         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
715         `have_input'.
717 2003-03-03  Werner LEMBERG  <wl@gnu.org>
719         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
721         * font/devps/generate/textmap: Remove entry `similarequal'.
722         * font/devps/symbolmap: Updated.
724 2003-03-02  Werner LEMBERG  <wl@gnu.org>
726         * src/libs/libgroff/font.cc (font::load): Fix error message for
727         bad character type.
729         * src/devices/grops/grops.man: Improve documentation of the -b
730         flag.
732         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
733         `ascii' and `cp1047'.
735 2003-03-01  Werner LEMBERG  <wl@gnu.org>
737         Document composite glyphs and the `composite' request.
739         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
741 2003-02-28  Werner LEMBERG  <wl@gnu.org>
743         * font/devdvi/generate/ec.map: Add some more Unicode entities.
744         * font/devdvi/*EC: Updated.
746         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
747         * tmac/latin1 (latin1-tr): Undo any previous mapping.
748         * tmac/troffrc: Load `composite.tmac'.
749         * tmac/Makefile.sub (NORMALFILES): Updated.
751         * doc/groff.texinfo (Input Encodings): New section.
752         * NEWS: Updated.
754 2003-02-27  Werner LEMBERG  <wl@gnu.org>
756         * doc/texinfo.tex: New version 2003-02-11.06.
758         * tmac/doc-common (Dt): Don't emit warning for unknown section.
759         * tmac/groff_mdoc.man: Fix description of `Dt'.
761 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
763         * font/devps/prologue.ps: Fix for included Postscript that does
764         a setpagedevice -- which is now safely ignored.
766         * NEWS: Updated.
768         * src/devices/grops/ps.cc: Now sets the page size in the generated
769         document.  This is done in two ways: Via a %%-comment for gv and
770         the like, and via a PageSize and setpagedevice for programs that
771         understands Postscript proper, like ps2pdf.
773         * src/devices/grops/ps.h: New broken-flag to avoid page size
774         definition, if required.
776         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
778         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
779         Not really necessary due to the fix in prologue.ps, but cleaner:
780         Such information does not belong in an .eps file.
782         * doc/Makefile.sub: See doc/Makefile.in.
784 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
786         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
787         instead of P1 since the latter is broken in some versions of netpbm.
788         * configure: Updated.
790 2003-02-26  Larry Kollar  <kollar@alltel.net>
792         Make man pages more customizable.
794         * tmac/an-old.tmac (FT): New register holding footer distance from
795         bottom.
796         (HF): New string holding the default heading font.
797         (TH): Handle registers `IN' and `SN' set on the command line.
798         Use `FT'.
799         (PT, BT): New strings to customize header and footer lines.
800         (an-header, an-footer): Use them.
801         (SH, SS): Use `HF'.
802         * tmac/groff_man.man: Document changes.
804         * doc/groff.texinfo: Document man changes.
805         Document Ultrix extensions of man.
807 2003-02-26  Werner LEMBERG  <wl@gnu.org>
809         * src/roff/troff/input.cc (do_width, do_if_request): Reset
810         `have_input' after changing back to old environment.
812         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
813         function up to be defined before first call.  This is necessary to
814         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
816         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
817         the default font directory also.  Based on a patch from James
818         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
819         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
820         * src/utils/afmtodit/afmtodit.man: Document it.
822         * NEWS: Updated.
824         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
826 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
828         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
829         (GROFF_PNMTOPS_NOSETPAGE): New macro.
830         * configure.ac: Use it.
831         * configure: Regenerated.
832         * Makefile.in: Updated.
834         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
835         (CLEANADD): Add www.tmac-sed.
836         (pnmtops_nosetpage): Define default.
837         (install_data): Handle www.tmac-sed and substitute
838         @PNMTOPS_NOSETPAGE@.
839         (stamp-sed): Add www.tmac.
840         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
841         It now breaks URLs at suitable places.
842         (www:substring_ok): New register set by...
843         (www:@test_substring): New macro.
844         (www:error): New alias to www-error.
845         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
846         New macros.
847         (URL): Use www:url_breaks.
848         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
849         (CDS, CDE): New macros.
851 2003-02-25  Werner LEMBERG  <wl@gnu.org>
853         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
854         buffer overflow.
856 2003-02-24  Werner LEMBERG  <wl@gnu.org>
858         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
859         can be negative also.
861         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
862         `int16'.
863         (read_char_table): Avoid negative ascenders.
864         (output_charset): Add cast.
865         * font/devlj4/*: Regenerated.
867         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
868         possible.
870         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
871         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
872         of `<>'.
873         * font/devdvi/*: Regenerated.
875         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
876         normal width, while the previously used characters (U+2329 and
877         U+232A) are classified as wide due to canonical equivalence with the
878         CJK punctuation characters U+3008 and U+3009.
880         * font/devutf8/R.proto: Updated.
881         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
883         * man/groff_char.man: Simplify handling of table traps by
884         introducing `start block' and `end block' macros.
885         (Ns, Ne, 2s, 2e, Ds, De): New macros.
886         (DL): Make it work with Unix troff also.
887         Fix code values of `la' and `ra'.
889         * tmac/dvi.tmac: Define `<>' for CW and CWI.
891 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
893         * src/devices/grohtml/post-html.cc (element_list::~element_list):
894         New destructor, fixing a major memory leak.
896 2003-02-22  Werner LEMBERG  <wl@gnu.org>
898         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
899         to be in conformance with Unicode 3.0 and newer.
901         * font/devlj4/generate/text.map: Add `Eu'.
902         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
903         * font/devlj4/S: Regenerated.
905         * man/groff_char.man: Completely rewritten.
907         * doc/groff.texinfo: Fix description of request and macro arguments.
909 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
911         Valgrind fixes.
913         * src/devices/grohtml/html-table.cc (html_table::~html_table):
914         Deallocate `columns' list.
915         * src/devices/grohtml/post-html.cc (char_block::~char_block):
916         New destructor.
917         (text_glob::text_glob_html, text_glob::text_glob_special,
918         text_glob::text_glob_line, text_glob::text_glob_auto_image,
919         text_glob::text_glob_tag): Avoid memory leaks.
920         (text_glob::remember_table): Free memory before reassigning.
922 2003-02-19  Werner LEMBERG  <wl@gnu.org>
924         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
925         alias `hbar'), the Planck constant over two pi.
927         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
928         `+e' for position 34.
929         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
930         `u2662' and `u2661'.
931         * font/devdvi/{MI,S}: Regenerated.
932         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
933         * font/devlbp/*: Add `hbar' alias.
934         * font/devlj4/generate/special.map: Ditto.
935         * font/devlj4/S: Regenerated.
936         * font/devps/generate/symbolchars: Add `+e'.
937         * font/devps/generate/textmap: Fix PS name for `-h'.
938         Add `hbar' alias.
939         * font/devps/symbolmap: Regenerated.
941         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
943         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
944         `-h', `hbar'.
945         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
946         `-h'.
948         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
949         `hbar'.
950         * tmac/tty-char.tmac: Add `+e'.
952 2003-02-17  Werner LEMBERG  <wl@gnu.org>
954         Another round trying to really fix problems with `have_input'.
956         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
957         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
959         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
960         handling if both foreground and background colors are default.
962         * doc/groff.texinfo (Debugging): Document .lf differences to
963         AT&T troff.
965 2003-02-16  Werner LEMBERG  <wl@gnu.org>
967         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
968         null-bytes in created string.
970         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
971         alias_macro, lookup_request): Improve warning messages.
973         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
974         not `strdup'.
975         Free `last_image_filename'.
977         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
978         `buffer'.
979         (imageList::createPage, imageList::createImage): Use `free', not
980         `a_delete'.
981         (imageItem::~imageItem): Free `imageName'.
982         (addRegDef): Use `strsave', not `strdup'.
983         (get_resolution): Free `pathp'.
985 2003-02-15  Werner LEMBERG  <wl@gnu.org>
987         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
988         to `dummy'.
990 2003-02-14  Werner LEMBERG  <wl@gnu.org>
992         Add memory management for colors to deallocate unnamed colors
993         properly.
995         * src/include/color.h (color): New members `free_list' and `next'.
996         New member functions `new' and `delete'.
997         Add destructor.
998         * src/libs/libgroff/color.cc: Implement it.
1000         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
1001         for array size of new operator.
1003         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
1004         redundant comparison.
1006         * src/roff/troff/input.cc (word_space_node::reread,
1007         hmotion_node::reread): Avoid warning about unused parameter.
1008         (reset_output_registers): Remove redundant parameter.
1009         (define_color): Undo change 2003-02-12.
1011         * src/roff/troff/reg.h: Updated.
1013         * src/roff/troff/node.cc (troff_output_file::really_print_line,
1014         output_file::put_filename, real_output_file::really_put_filename,
1015         ascii_output_file::really_print_line,
1016         break_char_node::get_hyphen_list): Avoid warning about unused
1017         parameter.
1018         (suppress_node::tprint): Updated.
1020         * configure.ac: Check declaration for rand() and srand().
1021         * configure: Regenerated.
1023         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
1024         conditionally.
1025         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
1026         and srand().
1028         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
1029         to avoid compiler warnings.
1031         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
1032         unused.
1034         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
1035         is unused.
1036         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
1037         (unused) parameter.
1038         Updated all callers.
1040         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
1041         is unused.
1042         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
1043         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
1045         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
1046         Parameter is unused.
1047         (html_printer::add_table_end): Define parameter conditionally.
1048         * src/devices/grohtml/output.cc (simple_output::special): Parameter
1049         is unused.
1051         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
1052         (lbp_printer::set_char): Last parameter is unused.
1054         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
1056 2003-02-13  Werner LEMBERG  <wl@gnu.org>
1058         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
1059         Make \D'f ...' move horizontally again for backwards compatibility.
1060         Replace it with \D'Fg ...' where appropriate to avoid dependency
1061         on horizontal resolution.
1063         * src/roff/troff/input.cc (do_get_long_name): New function.
1064         (get_long_name): Call it.
1066         (read_draw_node): Handle `\D'Fx ...' by calling ...
1067         (read_color_draw_node): New function.
1069         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
1070         `end'.
1071         Pass it to `do_get_long_name' which is used instead of
1072         `get_long_name'.
1074         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
1075         unnecessary value guard.
1076         (parse_D_command) <'f'>: Add horizontal shift.
1078         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
1079         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1080         (FILL_MAX): Removed.
1082         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1083         Updated.
1085 2003-02-12  Werner LEMBERG  <wl@gnu.org>
1087         * src/roff/troff/input.cc (do_name_test, do_expr_test,
1088         do_zero_width): Push `\n' if closing delimiter is missing.
1090         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
1091         <'F'>: Make \F non-transparent at the beginning of line.
1092         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
1093         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
1094         `have_input'.
1096         (define_color): Free color in case of reassignment.
1098         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
1099         @DefescListEnd): Use @Var, not @var.
1100         Fix all calls.
1102         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
1104         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
1105         `shaded' and `outlined' arrays.
1106         (object_spec::object_spec): Initialize `shaded' and `outlined'.
1107         (graphic_object::set_fill_color, graphic_object::set_outline_color):
1108         Use strsave.
1109         (closed_object::set_fill_color): Ditto.
1110         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
1111         instead of strdup.
1112         (troff_output::reset_color): Use a_delete instead of free.
1113         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
1115 2003-02-11  Werner LEMBERG  <wl@gnu.org>
1117         * doc/groff.texinfo: Improve documentation of `ad'.
1118         Document that \D'f...' is dependent on the horizontal resolution.
1119         * man/groff_diff.man: Improve documentation of \D'f...'.
1121         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
1122         compensating \h'...' for \D'f ...' since the latter no longer moves
1123         current position.
1124         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1126 2003-02-10  Werner LEMBERG  <wl@gnu.org>
1128         Improve error messages for `x F' (and `F') commands.
1130         * src/include/error.h: Add declaration for
1131         `current_source_filename'.
1132         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
1133         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
1134         parameter for source file string.
1135         Updated all callers.
1137         * src/libs/libdriver/input.cc: Add `current_source_filename'.
1138         (remember_source_filename): New function.
1139         (parse_x_command <'F'>, do_file <'F'>): Use it.
1141 2003-02-09  Werner LEMBERG  <wl@gnu.org>
1143         Make grotty not emit warnings about unknown colors more than
1144         necessary.
1146         * src/devices/grotty/tty.cc: Include `ptable.h'.
1147         (TTY_MAX_COLORS): Removed.
1148         (DEFAULT_COLOR_IDX): Defined to -1.
1149         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
1150         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
1151         Change `tty_colors' to be a ptable.
1152         First arg of `put_color' is now `char'.
1153         New functions `make_rgb_string' and `tty_color'.
1154         (tty_printer::tty_printer): Use `tty_color'.
1155         (tty_printer::color_to_idx): Return value is now `char'.
1156         Use `tty_color'.
1158         * src/include/color.h (color): Add `print_color' member function.
1159         * src/libs/libgroff/color.cc (color::print_color): Implement it.
1161 2003-02-08  Werner LEMBERG  <wl@gnu.org>
1163         Valgrind fixes.
1165         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
1166         encoding file.
1168         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
1169         assume that value has been allocated with `new[]', thus use
1170         `a_delete' for deallocation.
1172         * src/libs/libdriver/input.cc (get_integer_arg,
1173         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
1174         where appropriate.
1176         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
1177         * src/libs/libgroff/nametoindex.cc
1178         (character_indexer::named_char_index): Use `new <type>[1]'.
1180         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
1181         <type>[1]'.
1182         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
1183         (split_text): Use `a_delete'.
1185         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
1186         <type>[1]'.
1188         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
1189         harmless memory leak.
1190         (hyphen_trie::read_patterns_file): Initialize `buf'.
1191         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
1192         Initialize `current_fill_color'and `current_glyph_color'.
1193         * src/roff/troff/glyphuni.cc
1194         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
1195         * src/roff/troff/uniuni.cc
1196         (unicode_decompose_init::unicode_decompose_init): Ditto.
1197         * src/roff/troff/uniglyph.cc
1198         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
1200 2003-01-26  Werner LEMBERG  <wl@gnu.org>
1202         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
1203         `access' before calling `unlink'.
1204         (do_file): Handle __EMX__.
1206         * src/include/nonposix.h: Handle __EMX__.
1208         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
1209         (fontpath,tmacpath): Use it.
1210         (MDEFINES): Add it.
1211         Sorted alphabetically.
1213         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
1214         @SEP@.
1215         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
1216         @SEP@.
1218 2003-01-27  Werner LEMBERG  <wl@gnu.org>
1220         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
1221         New files, copied from gnulib.
1222         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
1223         * configure.ac: Updated.
1224         * configure: Regenerated.
1226         * src/include/config.hin: Regenerated.
1227         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
1228         Don't define `strcasecmp' as `strcmp'.
1229         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
1230         Dont define `strncasecmp' as `strncmp'.
1232         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
1233         Removed.
1235 2003-01-26  Werner LEMBERG  <wl@gnu.org>
1237         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
1238         s/unline/unlink/.
1240 2003-01-25  Werner LEMBERG  <wl@gnu.org>
1242         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
1244 2003-01-24  Werner LEMBERG  <wl@gnu.org>
1246         Add US-english hyphenation exceptions (converted from Barbara
1247         Beeton's hyphenation exception log reports which appear irregularly
1248         in TUGBoat).
1250         * tmac/hyphen.us: Updated to latest version.
1251         * tmac/README: Updated.
1252         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
1253         * tmac/troffrc: Load `hyphenex.us'.
1254         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
1255         * doc/groff.texinfo: Updated.
1257 2003-01-23  Werner LEMBERG  <wl@gnu.org>
1259         Improve hyphenation slightly.  This is a first step in redesigning
1260         the hyphenation algorithm to make it more flexible (e.g. allowing
1261         kerns and ligatures between the hyphenation character and the
1262         following character -- while not used normally in English, other
1263         languages like German would benefit).
1265         * src/roff/troff/env.cc (environment::hyphenate_line): Use
1266         assertion instead of if-clause.
1267         Let `get_hyphen_list' return the number of involved characters in
1268         the hyphenation pattern instead of computing it directly (which
1269         often yields too small values).
1270         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
1271         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
1272         parameter.
1274 2003-01-22  Werner LEMBERG  <wl@gnu.org>
1276         Fixing a bug which caused groff to hang if the hyphenation exception
1277         dictionary tried to grow.
1279         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
1280         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
1281         pointer to dictionary.
1283 2003-01-20  Werner LEMBERG  <wl@gnu.org>
1285         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
1286         negative left italic correction.
1287         * src/utils/afmtodit/afmtodit.man: Document it.
1289         * font/devps/generate/Makefile (RFLAG): Add `-m'.
1290         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
1291         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
1293         * NEWS: Updated.
1295 2003-01-16  Werner LEMBERG  <wl@gnu.org>
1297         * NEWS: Updated.
1299 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
1301         * src/preproc/refer/refer.man: Mention REFER environment variable.
1303 2003-01-05  Werner LEMBERG  <wl@gnu.org>
1305         Similar to \[is], the square root glyph (\[sr]) and the square root
1306         extension glyph (\[radicalex]) are now text symbols.  The new
1307         mathematical versions are called \[sqrt] and \[sqrtex],
1308         respectively.
1310         * font/devX*/S: Regenerated.
1311         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
1312         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
1313         * font/devdvi/EX, font/devdvi/S: Regenerated.
1314         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
1315         * font/devlj4/generate/special.map: Add `sqrt'.
1316         * font/devlj4/S: Regenerated.
1317         * font/devps/generate/textmap: Add `sqrt'.
1318         * font/devps/S, font/devps/symbolmap: Regenerated.
1320         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
1321         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
1322         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
1323         overlap horizontally.
1325         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
1326         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
1327         Fix `radicalex'.
1329         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
1330         and `sqrtex' are overlapping glyphs.
1332 2003-01-04  Werner LEMBERG  <wl@gnu.org>
1334         * font/devdvi/generate/texsy.map: Add `is'.
1335         * font/devps/symbolmap: Regenerated.
1336         * font/devdvi/*TC, MI, S: Regenerated.
1338         * tmac/dvi.tmac: Remove `is'.
1340 2003-01-03  Werner LEMBERG  <wl@gnu.org>
1342         `is' is now a text symbol (only relevant for dvi).  The math variant
1343         can be accessed with `integral'.
1345         * font/devX*/S: Regenerated.
1346         * font/devdvi/generate/texex.map: Remove `is'.
1347         * font/devdvi/EX: Updated.
1348         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
1349         * font/devlj4/generate/special.map: Ditto.
1350         * font/devlj4/S: Regenerated.
1351         * font/devps/generate/textmap: Add `integral'.
1352         * font/devps/S: Regenerated.
1354         * tmac/dvi.tmac: Define `is'.
1356         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
1358         * src/preproc/tbl/main.cc (process_format): Fix error message.
1360 2003-01-02  Werner LEMBERG  <wl@gnu.org>
1362         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
1363         * font/devps/textmap: Fix entries for `ne' and `nc'.
1364         * font/devps/symbolmap: Regenerated.
1366         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
1367         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
1368         `38', `58', `78', `-+', `|=', `nc', `ne'.
1370         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
1371         Use `schar' for `aq'.
1372         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
1373         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
1374         * tmac/tty.tmac: Add `ne'.
1376         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
1377         for fallback glyphs.
1379 2002-12-29  Werner LEMBERG  <wl@gnu.org>
1381         Add glyph `|='.
1383         * font/devX*/*: Regenerated.
1384         * font/devdvi/generate/ec.map: Remove `eq'.
1385         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
1386         Assign `|=' to position 39.
1387         * font/devdvi/*EC, S: Regenerated.
1388         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
1389         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
1390         Assign `|=' to position 549.
1391         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
1392         `equalmath'.
1393         Add `uni2243' for `|='.
1395         * tmac/ec.tmac: Add `eq'.
1396         * tmac/dvi.tmac: Add `=~'.
1397         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
1398         `|='.
1400 2002-12-21  Werner LEMBERG  <wl@gnu.org>
1402         * font/devdvi/generate/tc.map: Remove `**'.
1403         * font/devdvi/*TC: Regenerated.
1404         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
1405         `78', `<<', `>>'.
1406         * font/devutf8/NOTES: Updated.
1408         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
1409         Don't give default parameter to `set_macro'.
1410         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
1411         instead of `set_macro'.
1412         (charinfo::setx_macro): Implement it.
1413         (charinfo::set_macro): Don't change `mode'.
1415         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
1416         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
1417         * tmac/dvi.tmac: Define `!=' with `.schar'.
1419 2002-12-20  Werner LEMBERG  <wl@gnu.org>
1421         * font/devX*/S: Regenerated.
1422         * font/devdvi/generate/ec.map: Remove `pl'.
1423         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
1424         * font/devdvi/*{TC,EC}: Regenerated.
1425         * font/devhtml/R.proto: Add `-+'.
1426         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
1427         * font/devlbp/*: Remove `or'.
1428         * font/devlj4/generate/special.map: Remove `or'.
1429         * font/devlj4/S: Regenerated.
1430         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
1431         `seveneighths', `threeeighths'.
1432         Remove `plusmath'.
1433         Replace `minusplus' with `uni2213'.
1434         * font/devps/symbolmap: Regenerated.
1435         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
1436         Add `-+'.
1438         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
1439         function.
1440         * src/roff/troff/node.cc (troff_output_file::put_char_width):
1441         Call glyph_color and fill_color even if tcommand_flag isn't set.
1442         (make_node, node::add_char): Check not ci->is_fallback but
1443         ci->is_normal.
1445         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
1446         * tmac/ec.tmac: Add .rchar entry for `f/'.
1447         Don't remove `12', `14', `34'.
1448         Define `pl' to be always roman.
1449         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
1450         Define `18', `38', `58', `78'.
1451         * tmac/tty.tmac: Add `-+'.
1452         * tmac/dvi.tmac: Define `f/'.
1453         (dvi-frac): Use `f/'.
1454         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
1455         Define `18', `38', `58', `78'.
1457 2002-12-15  Colin Watson  <cjwatson@debian.org>
1459         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
1461 2002-12-10  Werner LEMBERG  <wl@gnu.org>
1463         Add glyph `tno', a textual variant of `no'.
1465         * font/devX*/*: Regenerated.
1466         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
1467         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
1468         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
1469         * font/devdvi/*: Regenerated.
1470         * font/devlbp/*: Add `tno'.
1471         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
1472         * font/devlj4/*: Regenerated.
1473         * font/devps/generate/textmap: Replace `no' with `tno'.
1474         * font/devps/generate/symbolchars: Add `no'.
1475         * font/devps/*: Regenerated.
1477         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
1479         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
1480         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
1482         * NEWS: Updated.
1484         * tmac/dvi.tmac: Replace most `\\' with `\E'.
1485         Add definition for `sd'.
1486         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
1488         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
1490 2002-12-08  Werner LEMBERG  <wl@gnu.org>
1492         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
1493         mode to avoid rounding errors.
1494         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
1496         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
1497         src/roff/troff/troff.man: Improve documentation of -T.
1499 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
1501         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
1502         (run_pipeline) [_WIN32]: Provide working function without `fork'.
1504 2002-12-06  Werner LEMBERG  <wl@gnu.org>
1506         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
1507         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
1508         Scaling Euro.sansserif glyphs down to have the same height as
1509         digits.
1510         Removed unnecessary points; added some extrema.
1512         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1513         Regenerated.
1515 2002-12-04  Werner LEMBERG  <wl@gnu.org>
1517         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
1518         and `Euro.symbol.bold.slanted'.
1519         Improve some glyph offsets and widths.
1520         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1521         Regenerated.
1522         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
1523         typo.
1524         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
1525         direcory.
1527         * tmac/europs.tmac: Updated to new glyph indices.
1528         Use Euro.symbol for font familiy `A'.
1530         * doc/groff.texinfo: Minor improvements.
1532 2002-12-02  Werner LEMBERG  <wl@gnu.org>
1534         * font/devdvi/generate.tc.map: s/%O/%0/.
1535         * font/devdvi/*TC: Regenerated.
1537         * src/roff/troff/div.cc (init_div_requests): Sorted.
1539         * tmac/dvi.tmac: Remove `Ye'.
1540         * tmac/ec.tmac: Remove `Ye'.
1541         Add .rchar entry for `de'.
1543         * man/groff.man, man/groff_diff.man: Document register `.pe'.
1544         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
1545         * NEWS: Updated.
1547 2002-11-30  Werner LEMBERG  <wl@gnu.org>
1549         Add PS font for various Euro glyphs.
1551         * font/devps/generate/freeeuro.sfd: New master font file for
1552         pfaedit.
1553         * font/devps/generate/sfdtopfa.pe: New conversion script for
1554         pfaedit.
1555         * font/devps/generate/Makefile (FONTS): Add `EURO'.
1556         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
1557         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
1558         `freeeuro.sfd'.
1559         * font/devps/EURO: Generated from `freeeuro.afm'.
1560         * font/devps/download: Add `freeuro.pfa'.
1561         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
1562         `freeeuro.pfa'.
1564         * tmac/europs.tmac: New file.
1565         * tmac/ps.tmac: Include `europs.tmac'.
1566         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
1568 2002-11-29  Werner LEMBERG  <wl@gnu.org>
1570         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
1571         * font/devdvi/S: Regenerated.
1572         * font/devhtml/R.proto: Fix `CR' and `ci'.
1573         Add `OK'.
1574         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
1575         Remove `bs'.
1576         * font/devps/symbolmap: Regenerated.
1577         * font/devutf8/R.proto: Fix `CR' and `ci'.
1578         Add `OK'.
1579         * font/devutf8/NOTES: Updated.
1581         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
1582         `ci'.
1583         Add `OK'.
1584         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1586         * tmac/dvi.tmac: Add `lh' and `rh'.
1587         * tmac/Xps.tmac: Fix `lh' and `rh'.
1588         * tmac/X.tmac: Add `OK'.
1589         * tmac/lj4.tmac: Ditto.
1591 2002-11-24  Werner LEMBERG  <wl@gnu.org>
1593         * font/devX*/S: Regenerated.
1594         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
1595         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
1596         * font/devdvi/generate/texsy.map: Remove `or' glyph.
1597         * font/devdvi/S: Regenerated.
1598         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
1599         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
1600         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
1601         `bracketleftbt', `bracketrighttp', `bracketrightex',
1602         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
1603         `braceex', `braceleftex', `bracerightex', `bracerighttp',
1604         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
1605         `rb', and `bv'.
1606         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
1607         * font/devutf8/NOTES: Updated.
1608         * font/devlj4/generate/special.map: Add glyph `braceex'.
1609         * font/devlj4/S: Regenerated.
1611         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
1613 2002-11-14  Werner LEMBERG  <wl@gnu.org>
1615         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
1616         and `vA'.
1617         Fix code for `an'.
1618         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1620         * doc/texinfo.tex: New version from texinfo 4.3.
1621         * doc/groff.texinfo: Updated for texinfo 4.3.
1622         Use @tie{} where appropriate.
1623         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
1624         * font/devdvi/generate/tc.map: Remove `rn'.
1625         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
1626         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
1627         Fix code for `an'.
1628         * font/devX100/*, font/devX100-12/*, font/devX75/*,
1629         font/devX75-12/*: Regenerated.
1631         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
1632         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
1633         Improve definition of `an'.
1634         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
1635         `ru'.
1636         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
1637         * tmac/X.tmac: Add definition for `or'.
1638         * tmac/Xps.tmac: Undo change 2002-11-05.
1639         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
1641 2002-11-11  Werner LEMBERG  <wl@gnu.org>
1643         * src/roff/troff/node.cc (troff_output_file::put_char): Always
1644         call flush_tbuf.
1646 2002-11-10  Werner LEMBERG  <wl@gnu.org>
1648         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
1649         defines a glyph which is searched after the check for fonts declared
1650         with `.special' (and before the check for all mounted special
1651         fonts).  `fschar' defines a glyph for a particular font which is
1652         searched after the check for fonts declared with `.fspecial' (and
1653         before the check for fonts declared with `.special').  `rfschar'
1654         removes glyphs defined with `fschar'.
1656         * src/roff/troff/token.h (char_mode): New enum.
1657         Declare do_define_character.
1658         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
1659         `mode'.
1660         (charinfo::is_fallback): Updated.
1661         (charinfo::is_special): New method.
1662         * src/roff/troff/input.cc (do_define_character): Add and use
1663         optional second parameter used as a prefix for font-specific glyph
1664         names.
1665         (define_character, define_fallback_character): Updated.
1666         (define_special_character): New function.
1667         (init_input_requests): Add `schar'.
1668         (charinfo::charinfo, charinfo::set_macro): Updated.
1669         * src/roff/troff/node.cc: Include `stringclass.h'.
1670         (make_glyph_node): Handle special glyphs defined with `.schar' and
1671         `.fschar'.
1672         (define_font_special_character, remove_font_special_character): New
1673         functions.
1674         (init_node_requests): Sorted.
1675         Add `fschar' and `rfschar'.
1676         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1677         Document new requests.
1679         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
1680         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
1682 2002-11-08  Werner LEMBERG  <wl@gnu.org>
1684         Added new font `SC' (cmtex10) to devdvi.
1686         * devdvi/generate/Makefile (FONTS): Add `SC'.
1687         (SC): New rule.
1688         * devdvi/generate/textex.map: New map file for cmtex.
1689         * devdvi/SC: New.
1690         * devdvi/Makefile.sub (DEVFILES): Updated.
1691         * tmac/dvi.tmac: Add fspecial entries for SC.
1692         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
1693         found before `S' since the font position of `SC' is lower due to the
1694         gaps in DESC's `font' line.
1695         * tmac/ec.tmac: Add a `special' call.
1696         * NEWS: Updated.
1698         * font/devhtml/R.proto: Remove double entry for `ti'.
1699         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
1700         * tmac/tty-char.tmac: Remove entry for `bq'.
1701         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
1702         * tmac/ec.tmac: Don't remove `aq' glyph.
1703         * tmac/X.tmac: Fix entry for `em'.
1704         Add entries for `fo' and `fc'.
1705         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
1707         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
1708         documentation of `special' and `fspecial' requests.
1710 2002-11-05  Werner LEMBERG  <wl@gnu.org>
1712         * font/devascii/R.proto, font/devcp1047/R.proto,
1713         font/devlatin1/R.proto: Remove entry for `.i'.
1714         * font/devdvi/generate/textt.map: Add entry for `ad'.
1715         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
1716         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
1717         We need this for getting kerning values to compose `/l' and `/L'.
1718         * font/devdvi: Regenerated font definition files for CM fonts.
1719         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
1720         * font/devutf8/R.proto: Ditto.
1721         Remove double entry for `ti'.
1723         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
1724         for (groff) ligatures, `la', and `ra'.
1725         Add "'C", "'c", `IJ', and `ij'.
1726         Remove double entry for `ti'.
1727         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
1728         double entries.
1729         Add "'C", "'c", `IJ', and `ij'.
1730         Fix entries for (groff) ligatures, `la', and `ra'.
1732         * tmac/ps.tmac (ps-achar): New macro.
1733         Define "'c" and "'C".
1734         * tmac/tty.tmac: Add entry for `.i'.
1735         * tmac/X.tmac (X-achar): New macro.
1736         Define "'c", "'C", and `:Y'.
1737         Add entries for `IJ' and `ij'.
1738         * tmac/Xps.tmac (Xps-achar): New macro.
1739         Define "'c" and "'C".
1740         Add entries for `IJ' and `ij'.
1741         * tmac/lbp.tmac (lbp-achar): New macro.
1742         Add fallback characters for all groff ligatures and many other
1743         glyphs.
1744         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
1745         Add entries for `/l' and `/L'.
1746         Define "'c" and "'C".
1747         Add entries for `IJ' and `ij'.
1749 2002-11-02  Larry Kollar  <kollar@alltel.net>
1751         * PROBLEMS: Document how to solve Mac OS X compilation problems.
1753 2002-11-02  Werner LEMBERG  <wl@gnu.org>
1755         Adding support for composite glyphs: \[xxx yyy ...] and the
1756         `composite' request.
1758         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
1759         to Unicode-based glyph names.
1760         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
1761         glyph names to groff glyph names.
1762         * src/roff/troff/uniuni.cc: New file for canonically decomposing
1763         Unicode-based glyph names.
1764         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
1765         for handling Unicode glyph names.
1766         * src/roff/troff/input.cc: Include unicode.h.
1767         (composite_glyph_name): New function.
1768         (token::next) <'['>: Handle Unicode glyph names and composite
1769         glyphs.
1770         (composite_dictionary): New dictionary for the `composite' request.
1771         (composite_request): Implement `composite' request.
1772         (init_input_requests): Add `composite'.
1773         Alphabetically sorted.
1774         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
1775         commented out).
1776         (init_env_requests): Alphabetically sorted.
1777         Removed `tas' and `tar' (already commented out).
1778         * src/roff/troff/Makefile.sub: Updated.
1780 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
1782         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
1783         of options.
1785 2002-10-29  Werner LEMBERG  <wl@gnu.org>
1787         Fix computation of .trunc register.  Additionally, its value (and
1788         the value of the .ne register) is now always set before entering the
1789         trap.
1791         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
1792         `needed_space' before calling `space'.
1793         (top_level_diversion::space): Remove special code for 'sp before the
1794         first page.
1795         Call `begin_page' with the discarded space as a parameter.
1796         (top_level_diversion::begin_page): Add optional parameter to set
1797         `truncated_space'.
1798         * src/roff/troff/div.h: Updated.
1800         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
1801         \n[.ne].
1803         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
1804         (LP): Remove superfluous call to `br'.
1805         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
1806         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
1808 2002-10-26  Werner LEMBERG  <wl@gnu.org>
1810         * tmac/doc-ditroff: Remove useless switch/variable -rC.
1811         (doc-setup-header): Don't set page register `%'.
1812         * tmac/doc-nroff: Remove variable `C'.
1813         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
1814         (doc-setup-header): Don't set page register `%'.
1815         Don't call `bp'.
1816         * tmac/doc-common (doc-header): Call `ns'.
1817         (doc-paragraph): Protect .sp with .br so that it survives traps
1818         possibly set by the user.
1819         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
1821         * tmac/doc*: Replace ' with . for consistency if no effect.
1823 2002-10-26  Werner LEMBERG  <wl@gnu.org>
1825         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
1826         so that it survives traps possibly set by the user.
1828         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
1829         (troff_output_file::set_font): Call flush_tbuf if necessary.
1830         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
1831         flush_tbuf and do_motion only if necessary.
1832         (troff_output_file::start_special,
1833         troff_output_file::put_char_width, troff_output_file::put_char,
1834         troff_output_file::draw): Updated.
1835         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
1836         vmotion_node::tprint): Undo change 2002-10-23.
1838 2002-10-25  Werner LEMBERG  <wl@gnu.org>
1840         * tmac/www.tmac (DC): Fix case of overlapping images.
1842 2002-10-23  Werner LEMBERG  <wl@gnu.org>
1844         * src/roff/troff/node.cc (troff_output_file::fill_color,
1845         troff_output_file::glyph_color): Set current color before testing
1846         color_flag.
1847         (troff_output_file::put_char_width, troff_output_file::put_char,
1848         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
1849         before glyph_color.
1850         (troff_output_file::file_color, troff_output_file::glyph_color):
1851         Call do_motion.
1852         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
1853         vmotion_node::tprint): Move first, then call fill_color.
1855 2002-10-20  Werner LEMBERG  <wl@gnu.org>
1857         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
1858         possible to use multiple main macro packages.
1860 2002-10-19  Werner LEMBERG  <wl@gnu.org>
1862         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
1863         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
1864         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
1865         is set.
1866         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
1867         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
1869 2002-10-16  Werner LEMBERG  <wl@gnu.org>
1871         * NEWS, doc/webpage.ms: Updated.
1873 2002-10-14  Werner LEMBERG  <wl@gnu.org>
1875         * src/roff/troff/node.cc (troff_output_file::put_char_width,
1876         troff_output_file::put_char, troff_output_file::fill_color,
1877         troff_output_file::glyph_color): Handle case where color pointer
1878         is null.
1880 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
1882         Add the new -r option to grotty.  It is similar to the -i option
1883         except it tells grotty(1) to use the "reverse video" attribute to
1884         render italic fonts.
1886         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
1887         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
1888         (tty_printer::make_underline, tty_printer::put_color,
1889         tty_printer::end_page): Use it.
1890         (main): Add -r switch.
1891         (usage): Updated.
1892         * src/devices/grotty/grotty.man: Document it.
1894 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
1896         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
1897         cast to `unsigned char' to properly read patterns with 8bit
1898         characters.
1900 2002-10-08  Werner LEMBERG  <wl@gnu.org>
1902         * REVISION: Increased to 2.
1904 Version 1.18.1 released
1905 =======================
1907 2002-10-08  Werner LEMBERG  <wl@gnu.org>
1909         * doc/webpage.ms, NEWS: Updated.
1911 2002-10-07  Werner LEMBERG  <wl@gnu.org>
1913         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
1914         suppress additional whitespace after the header.
1916         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
1917         with NetBSD.
1919         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
1921 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
1923         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
1924         (Dt): Use it to improve language localization (especially Russian
1925         and French).
1927 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
1929         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
1930         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
1931         drawing commands.
1932         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
1933         curve type.
1934         Call `picurve' for BSPLINE.
1935         (HGPrintElt): Handle BSPLINE.
1936         * src/preproc/grn/README: Document it.
1938 2002-10-03  Werner LEMBERG  <wl@gnu.org>
1940         * src/roff/troff/node.cc (break_char_node::col): New variable.
1941         Updated constructor.
1942         (space_node::tprint, word_space_node::tprint): Call `fill_color'
1943         unconditionally.
1944         (space_node::space_node): Remove assertion.
1945         (break_char_node::add_self): Pass color argument to space node.
1946         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
1947         Ditto.
1948         * src/roff/troff/env.cc (environment::do_break,
1949         environment::add_padding): Ditto.
1951 2002-10-02  Werner LEMBERG  <wl@gnu.org>
1953         Redesigning color support in troff.  Colors are no longer
1954         represented as separate nodes but are now part of glyph nodes and
1955         friends.  This fixes the current formatting misbehaviour due to the
1956         changes introduced on 2002-09-20.  Some extra code is necessary for
1957         proper grotty support: Without adding color variables to
1958         space-related nodes, the background color would be changed too late.
1960         * src/roff/troff/node.h, src/roff/troff/node.cc:
1961         s/current_pagecolor/current_fill_color/.
1962         s/current_glyphcolor/current_glyph_color/.
1963         (glyph_color_node, fill_color_node): Removed.
1964         (node::get_glyph_color, node::get_fill_color): New virtual member
1965         functions.
1966         (space_node::col): New variable.
1967         Updated constructors of space_node and derived classes accordingly.
1968         (hmotion_node::col): New variable.
1969         Updated constructors of hmotion_node and space_char_hmotion_node
1970         accordingly.
1971         (vmotion_node::col): New variable.
1972         Updated constructor accordingly.
1973         (draw_node::gcol, draw_node::fcol): New variables.
1974         Updated constructor accordingly.
1975         (special_node::gcol, special_node::fcol): New variables.
1976         Updated constructors accordingly.
1977         (troff_output_file::put_char, troff_output_file::put_charwidth,
1978         troff_output_file::draw): Set glyph and fill color.
1979         (troff_output_file::start_special): Set glyph and fill color.
1980         Always set current font.
1981         (troff_output_file::fill_color, troff_output_file::glyph_color):
1982         Don't call `do_motion'.
1983         (glyph_node::gcol, glyph_node::fcol): New variables.
1984         Updated constructors of glyph_node and ligature_node accordingly.
1985         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
1986         member functions.
1987         (glyph_node::merge_glyph_node,
1988         kern_pair_node::add_discretionary_hyphen,
1989         node::add_discretionary_hyphen): Updated.
1990         (break_char_node::merge_self): Updated.
1991         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
1992         vmotion_node::tprint): Handle color.
1993         (make_glyph_node, make_node, node::add_char): Updated.
1995         * src/roff/troff/env.cc (environment::space_newline,
1996         environment::space, environment::output_line, environment::do_break,
1997         environment::make_tab_node, environment::add_padding, title):
1998         Updated.
1999         (environment_switch, environment_copy): Don't add color nodes.
2001         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
2002         nothing.
2003         (token::next): Updated.
2004         \m and \M now are as transparent as \s.
2005         (process_input_stack, token::add_to_node_list, token::process,
2006         read_draw_node): Updated.
2007         (charinfo_to_node_list): Don't add color nodes.
2009         * doc/groff.texinfo: Updated.
2011 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
2013         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
2014         strings.
2016 2002-09-27  Colin Watson  <cjwatson@debian.org>
2018         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
2020 2002-09-23  Werner LEMBERG  <wl@gnu.org>
2022         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
2023         appropriate.
2024         (DEFAULT_LINEWIDTH_FACTOR): New macro.
2025         (linewidth_factor): New global variable.
2026         (lbp_printer::set_line_thickness): Fix case for size < 0, using
2027         linewidth_factor.
2028         (long_options): Add -w/--linewidth option.
2029         (usage): Updated.
2030         (main): Handle -w option to set linewidth_factor.
2031         (lbp_printer::lbp_printer): Initialize req_linethickness, not
2032         line_thickness.
2034         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
2036 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
2038         Fixed a bug in the line thickness setting code.
2040         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
2041         variable.
2042         (lbp_printer::set_line_thickness): Pass environment as second
2043         parameter.
2044         Implement it actually.
2045         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
2046         and `set_line_thickness, depending on the current font size.
2048 2002-09-21  Werner LEMBERG  <wl@gnu.org>
2050         Some Debian patches.
2052         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
2053         * src/roff/troff/node.cc (bracket_node::copy): Initialize
2054         `list->last'.
2056 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2058         * configure: Regenerated with autoconf 2.54.
2060 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2062         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
2063         glyph_color.
2064         Rename cur_fill_color to fill_color.
2065         * src/roff/troff/env.cc: Updated.
2067 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2069         * src/roff/troff/env.cc (title): Copy color status after processing
2070         title.
2071         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
2072         fill color nodes to reset colors properly.
2074         * tmac/www.tmac (DC): Fix color handling.
2076         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
2077         * doc/groff.texinfo: Fixing documentation of `tl' request.
2078         * doc/webpage.ms: Updated.
2080 2002-09-19  Werner LEMBERG  <wl@gnu.org>
2082         * src/roff/troff/env.cc (environent_switch, environment_copy):
2083         Emit glyph and fill color nodes to initialize colors properly.
2085 2002-09-17  Colin Watson  <cjwatson@debian.org>
2087         * src/roff/troff/env.cc (environment::set_glyph_color,
2088         environment::set_fill_color): Fix typo which prevented \m[] work
2089         correctly.
2091 2002-09-17  Werner LEMBERG  <wl@gnu.org>
2093         Add left and right italic correction to non-slanted PS fonts.  This
2094         is an experimental feature to improve image rendering of grohtml.
2096         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
2097         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
2098         * font/devps/*: All non-slanted fonts regenerated.
2099         * NEWS: Updated.
2101 2002-09-16  Werner LEMBERG  <wl@gnu.org>
2103         Add a site-specific font directory.
2105         * Makefile.in (localfontdir, legacyfontdir): New variables.
2106         (fontpath): Use them.
2107         (MDEFINES, uninstall_dirs): Updated.
2108         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
2109         Remove `FONTPATH' and `MACROPATH'.
2111         * src/roff/troff/troff.man, NEWS: Updated.
2112         * doc/groff.texinfo (Font Directories): New section.
2113         Other minor fixes.
2115         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
2116         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
2117         src/preproc/grn/grn.man: Minor fixes.
2119         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
2120         Remove unused variable.
2122 2002-09-11  Werner LEMBERG  <wl@gnu.org>
2124         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
2125         * man/groff_out.man: Fix documentation of 'N'.
2127 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
2129         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
2130         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
2131         set.
2132         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
2133         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
2134         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
2135         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
2136         PRE_TAG>: Call `begin' with `FALSE'.
2138 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2140         * src/libs/libgroff/string.cc (string::extract): Fix position of
2141         terminating null byte.
2143 2002-09-08  Werner LEMBERG  <wl@gnu.org>
2145         Add global option `nospaces' to tbl so that leading and trailing
2146         spaces in data items are ignored.
2148         * src/libs/libgroff/string.cc (string::remove_spaces): New member
2149         function to remove leading and trailing spaces.
2150         * src/include/stringclass.h: Updated.
2152         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
2154         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
2155         option.
2156         Fix typo in error messages.
2157         (process_data): Implement `nospaces' option.
2158         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
2160 2002-09-07  Werner LEMBERG  <wl@gnu.org>
2162         * src/include/config.hin: Add `HAVE_ISATTY'.
2163         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
2164         `fname' member.
2165         * src/libs/libgroff/tmpname.cc: Include `time.h'.
2166         * src/libs/libdriver/input.cc (Char): Add `operator==' and
2167         `operator!=' for `char'.
2168         * doc/groff.texinfo: Replace @ifnottex block for top node with
2169         @ifhtml block.
2171 2002-09-06  Werner LEMBERG  <wl@gnu.org>
2173         * doc/Makefile.in (.texinfo.html): Add -I switch.
2174         * doc/groff.texinfo: Add @ifnottex block for top node to make
2175         translation to HTML work.
2177 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
2179         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
2180         (get_papersize, determine_vertical_offset): Removed.
2181         (char_buffer::do_image): Always specify letter size.
2182         (main): Updated.
2183         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
2184         -sPAPERSIZE.
2186 2002-09-05  Werner LEMBERG  <wl@gnu.org>
2188         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
2189         default indentation.
2191 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
2193         * src/preproc/html/pre-html.cc (imageList::createPage): Use
2194         -sPAPERSIZE for gs.
2195         (generateImages): Clean up push-back buffer.
2197 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2199         * doc/groff.texinfo: Minor fixes.
2201 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2203         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
2204         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
2205         (gsPaper): Removed.
2206         (determine_vertical_offset): Use LETTER_LENGTH.
2207         (createPage): Moved to ...
2208         (imageList::createPage): This.
2209         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
2210         (imageList::getMaxX): New function.
2211         (createImage): Moved to ...
2212         (imageList::createImage): This.
2213         (imageList::createImages): New function.
2214         (generateImages): Read `maxx' directly.
2215         Updated.
2216         (scanArguments): Don't specify `gsPaper' for `-o'.
2217         (makeTempFiles): Call `xtmpfile' with the last argument set to
2218         `TRUE'.
2220 2002-08-24  Werner LEMBERG  <wl@gnu.org>
2222         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
2223         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
2224         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
2225         * src/preproc/html/pushback.cc: Include nonposix.h.
2226         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
2227         conditionally.
2229 2002-08-23  Werner LEMBERG  <wl@gnu.org>
2231         Use $(OBJEXT) for the object file extension.
2233         * Makefile.comm (.SUFFIXES): Add .obj.
2234         (.cc.obj, .c.obj): New implicit rules.
2235         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
2236         (MDEFINES): Add EXEEXT and OBJEXT.
2237         * */Makefile.sub: s/.o/.$(OBJEXT)/.
2239 2002-08-22  Werner LEMBERG  <wl@gnu.org>
2241         * INSTALL: Mention texinfo 4.2 as a prerequisite.
2243 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2245         * src/devices/grohtml/post-html.cc (colType): Make enum global to
2246         the file.
2247         (html_printer::update_min_max, html_printer::add_table_end): New
2248         methods.
2249         (html_printer::lookahead_for_tables): Use them.
2250         Reset page offset correctly.
2251         (html_printer::~html_printer): Add creation of creator comment up.
2253 2002-08-20  Werner LEMBERG  <wl@gnu.org>
2255         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
2256         * man/groff_tmac.man: Fix typos.
2257         * man/groff_font.man: Minor reordering.
2258         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
2259         * contrib/groffer/groffer.man: Fix typos.
2261 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
2263         Avoid endless loops while scanning for tables.
2265         * src/devices/grohtml/post-html.cc (list::insert): Set
2266         ptr->right->left.
2267         (html_printer::next_horiz_pos): Add `text_glob' argument; update
2268         all callers.
2269         Return immediately if that argument is NULL.
2270         (html_printer::calc_nf): Don't test if `g' is NULL.
2271         (html_printer::lookahead_for_tables): Use
2272         `glyphs.move_right_get_data'.
2273         Don't test if `g' is NULL.
2275 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
2277         A better fix, replacing fix 2002-08-15, for increasing SIZE.
2279         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
2280         a pointer.
2281         (char_block::char_block): Allocate `buffer'.
2282         (char_buffer::add_string): Use it.
2284 2002-08-15  Werner LEMBERG  <wl@gnu.org>
2286         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
2287         src/devices/grodvi/grodvi.man: Document default line thickness.
2289 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
2291         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
2292         8192.
2294 2002-08-14  Werner LEMBERG  <wl@gnu.org>
2296         * doc/webpage.ms: Updated.
2298 2002-08-09  Werner LEMBERG  <wl@gnu.org>
2300         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
2301         unbreakable space.
2303 2002-08-08  Aaron Campbell  <aaron@monkey.org>
2305         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
2306         (&& -> &).
2308 2002-08-08  Werner LEMBERG  <wl@gnu.org>
2310         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
2311         tok.next().
2312         (read_gray): Ditto.
2313         Don't push back a space but a newline onto the stack.
2315 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
2317         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
2318         inadvertently.
2320         * src/devices/grohtml/post-html.cc (html_printer::end_font,
2321         html_printer::start_font): Handle them.
2322         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
2323         reset bold and tt.
2324         (html_text::do_bold): Don't reset italic and tt.
2325         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
2326         * font/devhtml/DESC.proto: Add those fonts.
2327         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
2329 2002-08-07  Werner LEMBERG  <wl@gnu.org>
2331         * MORE.STUFF: Added gpresent.
2333         * tmac/trace.tmac: Show nesting level by a corresponding amount of
2334         whitespace before printing the logging message.
2336 2002-07-31  Colin Watson  <cjwatson@debian.org>
2338         * src/devices/grohtml/html-table.cc (html_table::finish_row):
2339         Initialize `n' to zero.  This fixes a segfault on ARM.
2341 2002-07-30  Werner LEMBERG  <wl@gnu.org>
2343         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
2345 2002-07-29  Werner LEMBERG  <wl@gnu.org>
2347         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
2348         final semicolon.
2350 2002-07-28  Colin Watson  <cjwatson@debian.org>
2352         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
2353         `.ps'.
2354         (html_printer::html_printer): Initialize `pointsize'.
2356 2002-07-26  Werner LEMBERG  <wl@gnu.org>
2358         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
2359         gnu.png.
2360         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
2361         (gnu.eps): Add -rle switch to pnmtops.
2362         (distfiles): Add gnu.eps and gnu.png.
2364 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
2366         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
2367         Add `operator!='.
2369 2002-07-24  Werner LEMBERG  <wl@gnu.org>
2371         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
2372         ' \+' but '  *' for sed.
2373         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
2375 2002-07-23  Werner LEMBERG  <wl@gnu.org>
2377         * doc/groff.texinfo: Document `papersize' keyword.
2378         * NEWS, man/groff_font.man: Updated.
2380 2002-07-23  Colin Watson  <cjwatson@debian.org>
2382         Extend papersize keyword to accept more than a single entry.  The
2383         first valid will be used.
2385         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
2386         (font::scan_papersize): Really skip final newline.
2387         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
2389 2002-07-23  Werner LEMBERG  <wl@gnu.org>
2391         * configure.ac: Test for isatty.
2392         * configure: Regenerated.
2393         * src/include/posix.h: Check HAVE_ISATTY.
2394         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
2395         * src/utils/lookbib/lookbib.cc: Include posix.h.
2396         Don't declare isatty.
2398 2002-07-21  Werner LEMBERG  <wl@gnu.org>
2400         * NEWS: Add `output' request.
2402         * REVISION: Increased to 1.
2404 Version 1.18.0 released
2405 =======================
2407 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
2409         Allow internal glyph indices > 0xFF in grohtml for input characters.
2411         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
2412         as parameter.
2413         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
2414         Updated all callers.
2415         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
2416         (html_printer): Updated.
2418 2002-07-19  Werner LEMBERG  <wl@gnu.org>
2420         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
2421         * font/devutf8/R.proto: Adding some missing glyphs.
2422         * font/devutf8/NOTES: Updated.
2424         * tmac/dvi.tmac: Add more composite glyphs.
2425         * tmac/html.tmac: Updated.
2427         * man/groff_char.man: Add `sum' and `product' entities.
2429         * NEWS: Updated.
2431 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
2433         Improved table, tab, and indenting support.
2435         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
2436         string_iterator::suppress_newline_flag): Removed.  Updated all
2437         function which have used it.
2439         * src/roff/troff/env.cc: Include `input.h'.
2440         (environment::add_node): Accept 0 as parameter.
2441         (environment::add_html_tag): Add `force' parameter.
2442         Updated all callers.
2443         (environment::add_html_tag_tabs): Ditto.
2444         For the moment, support left-aligned tabs only.
2445         (environment::make_html_tag): New function.
2446         (fill, no_fill): Set .br html tag additionally.
2447         (environment::newline): Emit `eol.ce' or `eol' tag for html.
2448         (environment::add_html_tag_eol): Removed.
2449         (tab_stops::distance_to_next_tab): Add variant for handling 
2450         nextpos'.
2451         (environment::distance_to_next_tab): Ditto.
2452         Updated all callers.
2453         (environment::handle_tab): Handle tabs for html.
2454         
2455         * src/roff/troff/env.h: Updated.
2457         * src/roff/troff/div.cc: Updated all callers of
2458         `environment::add_html_tag'.
2460         * src/devices/grohtml/html-table.cc,
2461         src/devices/grohtml/html-table.h: New files.
2463         * src/devices/grohtml/html-text.cc (html_text): New members
2464         `blank_para' and `start_space'.
2465         (html_text::issue_tag): Don't emit TABLE_TAG.
2466         Handle indentation for PRE_TAG and P_TAG.
2467         (html_text::end_tag): Updated.
2468         (html_text::table_is_void, html_text::issue_table_begin,
2469         html_text::issue_table_end): Removed.
2470         (html_text::do_push): Simplified.
2471         [DEBUGGING]: Small fix.
2472         (html_text::push_para): Add new parameter for indentation; updated
2473         all callers.
2474         Handle PRE_TAG.
2475         (html_text::do_indent, html_text::do_table, html_text::done_table,
2476         html_text::is_in_table): Removed.
2477         (html_text::do_pre): Handle P_TAG also.
2478         (html_text::shutdown): Handle p->indent.
2479         (html_text::check_emit_text): Simplified.
2480         (html_text::do_emittext): Reset `blank_para'.
2481         (html_text::do_para): Add new parameter for indentation; updated
2482         all callers.
2483         (html_text::remove_indent): New function.
2484         (html_text::do_space): Handle verbatim text properly.
2485         (html_text::ever_emitted_text, html_text::starts_with_space,
2486         html_text::remove_para_align): New functions.
2487         (html_text::dump_stack_element, html_text::dump_stack): Updated.
2489         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
2490         Updated.
2492         * src/devices/grohtml/post-html.cc: Include html-table.h.
2493         (INDENTATION): Removed.
2494         (text_glob): Added many `is_<foo>' functions.
2495         Added table description `tab'.
2496         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
2497         member functions.
2498         (list): Add `insert' and `move_to' member functions.
2499         (page): Add `insert_tag' member function.
2500         (page::dump_page) [DEBUG_TABLES]: Improved.
2501         (html_printer): Add `table' and `max_linelength' elements.
2502         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
2503         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
2504         `remove_tabs', `remove_courier_tabs'.
2505         (html_printer::emit_raw): Handle indentation.
2506         (html_printer::do_center, html_printer::write_header): Updated.
2507         (html_printer::is_courier_until_eol): Check for tag.
2508         (html_printer::do_linelength): Handle max_linelength.
2509         (html_printer::do_page_offset, html_printer::do_indentation): Handle
2510         fill_on.
2511         (html_printer::do_tempindent): Updated.
2512         (html_printer::do_indentedparagraph): Removed.
2513         (html_printer::do_indent): Simplified.
2514         (html_printer::do_eol): Use `ever_emitted_text'.
2515         (html_printer::do_flush, html_printer::do_links): Don't call
2516         done_table.
2517         (html_printer::do_break): Handle end_tempindent.
2518         (html_printer::troff_tag): Get argument.
2519         Don't handle `.ip'.
2520         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
2521         (html_printer::flush_page): Call `lookahead_for_tables'.
2522         Don't call `done_table'.
2523         (html_printer::add_to_sbuf): Always call do_indent.
2525         * src/devices/grohtml/Makefile.sub: Updated.
2527         * tmac/an-old.tmac (TP): Don't handle html device specially.
2528         (an-do-tag-html): New function which will be used instead of
2529         `an-do-tag' if html device is used.
2531         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
2533         * tmac/s.tmac (@IP): Don't handle html device specially.
2534         (@IP-html): New function which will be used instead of `@IP' if
2535         html device is used.
2537         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
2538         is a hack which will eventually vanish again.
2539         (PIMG): Handle `-C' option correctly if not html.
2540         (HR): Use HTML-NS.
2542 2002-07-17  Werner LEMBERG  <wl@gnu.org>
2544         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
2546 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
2548         * contrib/pic2graph/pic2graph.*: Use convert(1).
2549         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
2551 2002-07-14  Bernd Warken  <bwarken@mayn.de>
2553         * tmac/groff_trace.man: New file.
2554         * tmac/Makefile.sub: Updated.
2555         * NEWS: Updated.
2557 2002-07-13  Werner LEMBERG  <wl@gnu.org>
2559         * src/roff/groff/groff.man: Add some cross references.
2561 2002-07-12  Werner LEMBERG  <wl@gnu.org>
2563         * src/roff/troff/input.cc (substring_request): Add warnings for
2564         string indices out of range.
2566 2002-07-11  Werner LEMBERG  <wl@gnu.org>
2568         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
2569         * font/devdvi/*EC: Regenerated.
2571 2002-07-10  Bernd Warken  <bwarken@mayn.de>
2573         * man/groff_char.man: Updated and extended.
2575 2002-07-10  Werner LEMBERG  <wl@gnu.org>
2577         * src/roff/troff/input.cc (length_macro): Renamed to...
2578         (length_request): This.
2579         Move call of `tok.next()' to the very end, otherwise the register
2580         value hasn't been updated yet.
2581         (init_input_requests): Updated.
2583 2002-07-09  Werner LEMBERG  <wl@gnu.org>
2585         * src/roff/troff/input.cc (substring_macro): Renamed to...
2586         (substring_request): This.
2587         (init_input_requests): Updated.
2588         * src/roff/troff/request.h: Updated.
2590 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
2592         * src/roff/grog/grog.sh: Fix typo.
2594 2002-07-08  Werner LEMBERG  <wl@gnu.org>
2596         * win32-diffs: Updated.
2598         Handle `papersize' keyword properly in DESC.
2600         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
2601         type.
2602         Updated all callers.
2603         * src/libs/libgroff/paper.cc: Add four more paper formats used by
2604         grolj4.
2605         * src/include/paper.h: Updated.
2607         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
2608         Other minor C syntax fixes.
2609         (papersize, paperlength, paperwidth): Renamed to `user_*'.
2610         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
2611         members.
2612         (lbp_printer::lbp_printer): Pass three arguments.
2613         Set paper dimensions properly.
2614         (make_printer, main): Updated.
2615         (handle_unknown_desc_command): Fix error messages.
2616         (main): Handle papersize keyword in DESC properly.
2618         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
2619         `user_paper_size'.
2620         (lbp_printer::lbp_printer): Pass an argument.
2621         Set paper_size properly.
2622         (handle_unknown_desc_command): Removed.
2623         (make_printer, main): Updated.
2624         * src/devices/grolj4/grolj4.man: Minor documentation fix.
2626         * man/groff_font.man, NEWS: Updated.
2628 2002-07-07  Werner LEMBERG  <wl@gnu.org>
2630         Integrated eqn2graph, contributed by Eric S. Raymond.
2632         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
2633         files.
2634         * Makefile.in, NEWS: Updated.
2636 2002-06-04  Werner LEMBERG  <wl@gnu.org>
2638         Changing the substring request to make it fit better with other
2639         string manipulation functions in other programming languages:
2640         Index 0 is now the first character in the string, and index -1
2641         indicates the last character.  Since this request didn't work
2642         properly anyway in the last release, it doesn't harm too much to
2643         change the syntax.
2645         * src/roff/troff/input.cc (substring_macro): Use loops to get
2646         the real string length (ignoring COMPATIBLE_SAVE and
2647         COMPATIBLE_RESTORE) and offsets.
2648         Implement change described above.
2650         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
2651         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
2653         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
2655 2002-06-03  Werner LEMBERG  <wl@gnu.org>
2657         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
2658         COMPATIBLE_RESTORE are completely ignored.
2660         * src/roff/troff/input.cc (char_list::set, char_list::get): New
2661         functions.
2662         (macro): `length' field renamed to `len'.
2663         Added new field `empty_macro' (1 if macro is empty), to be used
2664         instead of checking `len'.
2665         Updated all callers.
2666         (macro::empty): Updated.
2667         (macro::length, macro::set, macro::get): New functions.
2668         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2669         Set `empty_macro'.
2670         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
2671         COMPATIBLE_RESTORE pairs.
2672         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2673         * src/roff/troff/request.h: Updated.
2675         * doc/groff.texinfo: Document .chop's behaviour better.
2677 2002-06-02  Werner LEMBERG  <wl@gnu.org>
2679         * doc/pic.ms: Fix documentation for the addition of positions.
2681         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
2683 2002-06-29  Werner LEMBERG  <wl@gnu.org>
2685         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
2687         * src/roff/troff/input.cc (have_string_arg): New global variable.
2688         (read_mode): New enumeration.
2689         (read_escape_name): Use it.  Update all calls.
2690         (read_long_escape_name): Use it.  Update all calls.
2691         Set have_string_arg if appropriate.
2692         (get_char_for_escape_name): Add parameter for handling space
2693         character.
2694         (interpolate_string_with_args, decode_string_args): New functions.
2695         (get_copy, token::next): Call it if necessary.
2696         (interpolate_string): Fix error message.
2698         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
2699         Document it.
2701 2002-06-24  Bernd Warken  <bwarken@mayn.de>
2703         * man/groff_tmac.man: Updated and extended.
2705 2002-06-24  Werner LEMBERG  <wl@gnu.org>
2707         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
2709 2002-06-23  Werner LEMBERG  <wl@gnu.org>
2711         * doc/pic.ms: Improve documentation of composite block objects.
2713 2002-06-22  Werner LEMBERG  <wl@gnu.org>
2715         * src/roff/troff/input.cc (init_registers): Add three registers
2716         `seconds', `minutes', and `hours' to hold the current time.
2718         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
2719         Updated.
2721 2002-06-20  Werner LEMBERG  <wl@gnu.org>
2723         Make \X accept both `\ ' and `\~', converting them to single space
2724         characters.
2726         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
2727         (token::unstretchable_space): New inline function.
2728         * src/roff/troff/input.cc (token::next, token::delimiter,
2729         token::description, token::add_to_node_list, token::process): Handle
2730         TOKEN_UNSTRETCHABLE_NODE.
2731         (encode_char): Handle tok.stretchable_space and
2732         tok.unstretchable_space.
2734         * NEWS, doc/groff.texinfo: Document it..
2736 2002-06-19  Werner LEMBERG  <wl@gnu.org>
2738         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
2740         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
2741         keyword to enable/disable SGR output.
2742         (tty_printer::change_fill_color): New function.
2743         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
2745         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
2746         call.
2748 2002-06-18  Werner LEMBERG  <wl@gnu.org>
2750         Add a `color' request and a `.color' register to control usage of
2751         colours.
2753         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
2754         (color_flag): This (which is the inverse).
2755         (activate_color): New function.
2756         (main, init_input_requests): Updated.
2757         * src/roff/troff/troff.h, src/roff/troff/node.cc
2758         (troff_output_file::fill_color, troff_output_file::glyph_color):
2759         Updated.
2761         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
2762         Document the changes.
2764 2002-06-17  Colin Watson  <cjwatson@debian.org>
2766         Circumvent bug in autoconf 2.53 regarding top_builddir.
2768         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
2769         * Makefile.in, doc/Makefile.in:
2770         s/@top_builddir@/@groff_top_builddir@/.
2771         * configure: Regenerated (with autoconf 2.53).
2773 2002-06-17  Werner LEMBERG  <wl@gnu.org>
2775         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
2776         `paperwidth' and `paperlength' for the `papersize' keyword.
2778 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
2780         * src/devices/grops/grops.man: Add info about Type 42 fonts.
2782 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
2784         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
2785         html_printer::do_linelength, html_printer::do_pageoffset,
2786         html_printer::do_indentation, html_printer::do_tempindent,
2787         html_printer::do_break, html_printer::begin_page): Clear indented
2788         text.
2789         * tmac/html.tmac: Disable hyphenation.
2791 2002-06-15  Werner LEMBERG  <wl@gnu.org>
2793         Don't produce HTML files if utility programs are missing.
2795         * Makefile.in (make_html, make_install_html): New variables.
2796         (MDEFINES): Updated.
2798         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
2799         utility programs.
2800         * configure.ac: Use it.
2801         * configure: Regenerated.
2803         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
2804         (HTMLEXAMPLESFILES): This new variable.
2805         (EXAMPLESIMAGEFILES): Renamed to...
2806         (HTMLEXAMPLEIMAGEFILES): This.
2807         (CLEANADD): Add HTMLEXAMPLEFILES.
2808         (all): Use `make_html'.
2809         (html): New target.
2810         (install_data): Use `make_install_html'.
2811         Move html stuff to...
2812         (install_html): This new target.
2813         (uninstall_sub): Updated.
2815 2002-06-14  Bernd Warken  <bwarken@mayn.de>
2817         * src/roff/grog/Makefile.sub (grog): Renamed to...
2818         (grog.old): This.
2819         (grog): New rule to always install grog.sh as grog.
2821 2002-06-08  Bernd Warken  <bwarken@mayn.de>
2823         * src/roff/grog/grog.pl: Fix typo.
2825 2002-06-07  Werner LEMBERG  <wl@gnu.org>
2827         * doc/groff.texinfo: Add more info on .tr arguments.
2829 2002-06-05  Werner LEMBERG  <wl@gnu.org>
2831         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
2833         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
2834         * configure: Regenerated.
2836 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2838         * src/roff/troff/symbol.cc (table_sizes): Add more values.
2840         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
2842 2002-06-04  Werner LEMBERG  <wl@gnu.org>
2844         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
2845         is not initialized at the time we need it in case `--prefix' hasn't
2846         been set.  Check for `ac_default_prefix' also.
2847         Test for `papersize' keyword also and generalize allowed whitespace.
2848         * configure: Regenerated.
2850         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
2851         `paperlength'.
2853         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
2854         with...
2855         (src_version, src_revision): New variables to avoid overwriting
2856         from parent make process.
2857         (version.cc): Updated.
2859         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
2860         (linebuf, linebufsize): New global variables.
2861         (sys_fatal): Use `fatal' to abort properly.
2862         (get_line): New function.
2863         (get_resolution): Use it.
2864         Improve error messages.
2865         (get_papersize): Check `papersize' also.
2866         Use `get_line'.
2867         Improve error messages.
2869 2002-06-03  Werner LEMBERG  <wl@gnu.org>
2871         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
2872         should be removed only if builddir is not srcdir.
2873         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
2874         (clean): Depend on `mostlyclean'.
2875         (distclean): Depend on `clean'.
2876         (realclean, extraclean): Depend on `distclean'.
2877         (.y.cc, .y.o): Simplified.  The output files are no longer written
2878         to srcdir but to builddir.
2879         * Makefile.in (MDEFINES): Add `version' and `revision'.
2880         (uninstall_dirs): Fix order of directories.
2881         * doc/Makefile.sub (version, revision): Removed.
2882         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
2883         Added `HTMLDOCFILES'.
2884         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
2885         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
2886         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
2887         as prefix.
2889         * doc/texinfo.tex (\authortt): New macro.
2890         (\shortcontt): Define.
2891         (\titlepage): Set \tt to \authortt while defining \authorfont.
2892         (\appendixbox): New macro.
2893         (\chapmacro, \appendixentry): Use \appendixbox to get even
2894         indentation for letters.
2895         (\summarycontents): Set \tt.
2896         (\internalpagesize): Add two arguments for real paper width and
2897         height as needed by pdfTeX.
2898         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
2899         Updated.
2900         (\tempdima, \tempdimb): New temporary dimensions.
2901         (\pagesizesyyy): Updated.
2903 2002-06-02  Werner LEMBERG  <wl@gnu.org>
2905         Adding a new keyword `papersize' to the DESC file format (similar
2906         but not completely identical to grolbp's extension).  grops now has
2907         a -p command line option to override `papersize'.  Finally, grolbp
2908         has been adapted to the new syntax.
2910         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
2911         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
2912         elements.
2913         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
2914         (CCSRCS): Add `paper.cc'.
2916         * src/include/font.h (font): Add `papersize' element.
2917         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
2918         (font::scan_papersize): New function.
2919         (font::load_desc): Use it for handling `papersize' keyword.
2920         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
2922         * src/devices/grops/ps.cc: Include paper.h.
2923         (user_paper_length): New global variable.
2924         (ps_printer): Use paper length as initializer.
2925         (make_printer): Updated.
2926         (main): Handle new `-p' option.
2927         * src/devices/grops/grops.man: Updated.
2929         * src/devices/grolbp/lbp.cc: Include paper.h.
2930         s/papersizes/lbp_papersizes/.
2931         (set_papersize): Use new `papersizes' array.
2932         (handle_unknown_desc_command): Don't handle `papersize'.
2933         (main): Use `font::scan_papersize' for handling `-p' option.
2934         * src/devices/grolbp/grolbp.man: Updated.
2936         * man/groff_font.man: Document `papersize'.
2937         * NEWS: Updated.
2939 2002-05-30  Werner LEMBERG  <wl@gnu.org>
2941         * src/devices/grops/TODO: Updated.
2942         * src/devices/grops/grops.man: More info on paper formats.
2943         * man/groff_font.man: Document `paperheight' and `paperwidth'.
2945 2002-05-29  Werner LEMBERG  <wl@gnu.org>
2947         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
2948         to list only if srcdir != currdir.
2949         (distfiles): New target.
2951         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
2952         (NOMAKEDIRS): New variable.
2953         (DISTDIRS): Use it.
2955 2002-05-26  Werner LEMBERG  <wl@gnu.org>
2957         Add .output request, similar to \! at top-level.
2959         * src/roff/troff/input.cc (transparent): Remove unused declaration.
2960         (output_request): New function.
2961         (init_input_requests): Add it.
2962         Sorted.
2963         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
2964         Document it.
2966         * Makefile.in (MDEFINES): Add INSTALL_INFO.
2967         (prepare_examples): Fix typo.
2968         * doc/groff.texinfo (@direntry): Fix it.
2970 2002-05-25  Werner LEMBERG  <wl@gnu.org>
2972         Including the doc subdir into groff's Makefile system.
2974         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
2975         * configure.ac: Use it.
2976         Generate `doc/Makefile'.
2977         * configure: Regenerated.
2979         * Makefile.in (infodir, INSTALL_INFO): New variables.
2980         (MDEFINES, uninstall_dirs): Updated.
2981         (OTHERDIRS): Add `doc'.
2982         * Makefile.comm (CLEANDIRADD): New variable.
2983         (mostlyclean): Use it.
2985         * doc/Makefile.sub, doc/Makefile.in: New files.
2986         * doc/Makefile: Removed.
2988         * NEWS, INSTALL: Updated.
2990 2002-05-24  Werner LEMBERG  <wl@gnu.org>
2992         * doc/homepage.ms: Renamed to ...
2993         * doc/webpage.ms: This.
2994         Use `.NHR'.
2996 2002-05-23  Werner LEMBERG  <wl@gnu.org>
2998         Integrating the `mom' macro package, contributed by Peter Schaffter
2999         <df191@ncf.ca>.
3001         * contrib/mom/*: New subdirectory tree.
3002         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
3003         be used for documentation files.
3004         (MDEFINES, uninstall_dirs): Use them.
3005         (OTHERDIRS): Add contrib/mom.
3006         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
3007         @HTMLDOCDIR@.
3008         * MANIFEST, NEWS: Updated.
3010 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
3012         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
3013         if at outer level; at start-up we are at outer level.
3015         * src/roff/troff/input.cc (do_suppress): Implement it.
3016         Simplify \O[3].
3018         Add option -p to show progress information.
3019         pre-grohtml will now render only one page at a time, reducing the
3020         size of needed disk resources enormously.
3022         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
3023         (imagePageName): New global variable.
3024         (psPageName, show_progress, currentPageNo): New global variables.
3025         (html_system): Close saved stderr and stdout handles.
3026         (write_end_image): Accept a parameter to control \O escape.
3027         (write_start_image): Adapted to new \O meaning.
3028         (char_buffer::write_upto_newline): Updated.
3029         (createAllPages): Replaced with...
3030         (createPage): This new function to create a single page for images.
3031         It uses `psselect' from the psutils package.
3032         (removeAllPages): Removed.
3033         (createImage): Updated.
3034         Handle progress display.
3035         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
3036         (scanArguments): Add option -p.
3037         (makeTempFiles): Updated to create temp files for psPageName and
3038         imagePageName.
3039         (removeTempFiles): Removed.
3040         (main): Updated.
3042         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
3043         html_printer::write_header): Append `\0' to `buffer'.
3044         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
3045         (main): Handle -p.
3046         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
3047         Handle `text_emitted'.
3048         (html_text::table_is_void): Slightly rewritten.
3049         (stop): New external symbol.
3050         (html_text::do_push) [DEBUGGING]: Use it and simplify.
3051         (html_text::shutdown): Call `dump_stack'.
3052         (html_text::do_space): Rewritten.
3053         * src/devices/grohtml/grohtml.man: Document -p and the need of
3054         `psselect'.
3056         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
3057         new \O syntax.
3058         Call \O[0] if `ps4html' is active.
3059         * tmac/s.tmac (@EQ, @EN): Handle html better.
3060         (@TS, TE): Ditto.
3061         * tmac/html.tmac: Don't use black for background colour.
3063         * src/roff/troff/node.cc: Include `div.h'.
3064         (troff_output_file::really_print_line): Don't use `is_on'. 
3065         (troff_output_file::word_marker, troff_output_file::flush_tbuf
3066         troff_output_file::check_charinfo,
3067         troff_output_file::put_char_width, troff_output_file::put_char,
3068         troff_output_file::determine_line_limits, troff_output_file::draw,
3069         real_output_file::begin_page, glyph_color_node::tprintf,
3070         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
3071         Use `is_on'.
3072         (troff_output_file::really_on): Call `do_motion'.
3073         (suppress_node::tprint): Use `get_page_number' instead of `%'
3074         register.
3075         Call `reset_output_registers' conditionally on `is_on'.
3077         * doc/groff.texinfo: Document new syntax of \O.
3078         * NEWS, man/groff_diff.man: Updated.
3080 2002-05-22  Werner LEMBERG  <wl@gnu.org>
3082         * MORE.STUFF: Add info about David Frey's deroff implementation.
3083         Mention troff.org.
3085 2002-05-16  Werner LEMBERG  <wl@gnu.org>
3087         Pic's `with' attribute now accepts positions.
3089         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
3090         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
3091         conflicts.
3092         (object_spec): Add rule for `WITH' and `position'.
3093         (relative_path): Give `corner' the precedence of `CHOP'.
3094         * src/preproc/pic/object.h (path): New members `pos' and
3095         `is_position'.
3096         * src/preproc/pic/object.cc: Updated initializers of `path'.
3097         (path::follow): Handle `is_position'.
3099         * doc/pic.ms: Completely updated grammar description.
3100         Many typographical improvements.
3102 2002-05-15  Werner LEMBERG  <wl@gnu.org>
3104         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
3105         code of x in range 0-127) also.
3106         * doc/groff.texinfo, man/groff_diff.man: Updated.
3108         Added keywords `north', `south', `east', and `west' for corners
3109         in pic.
3111         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
3112         and WEST.
3113         (yylex): Handle them.
3114         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
3115         (corner): Handle them.
3117 2002-05-14  Werner LEMBERG  <wl@gnu.org>
3119         * src/devices/grops/grops.man: Clarify handling of `download' file.
3121 2002-05-11  Werner LEMBERG  <wl@gnu.org>
3123         Adding `warnscale' and `spreadwarn' requests, based on a patch from
3124         Jeffrey Friedl <jfriedl@yahoo.com>.
3126         * src/roff/troff/input.cc (spread_limit, warn_scale,
3127         warn_scaling_indicator): New global variables.
3128         (warnscale_request, spreadwarn_requests): New functions.
3129         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
3130         (init_input_requests): Updated.
3131         (error_type): Add `OUTPUT_WARNING'.
3132         (do_error): Handle it.
3133         (output_warning): New warning function which shows output location.
3134         * src/roff/troff/env.h (spread_limit): New external variable.
3135         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
3136         `output_warning'.
3137         (distribute_space): Emit warning if added space is larger than
3138         `spread_limit'.
3139         (environment::possibly_break_line): Emit warning if a line can't
3140         be adjusted on both sides.
3142         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
3144 2002-05-08  Werner LEMBERG  <wl@gnu.org>
3146         * src/roff/troff/node.cc (special_node::special_node): Use
3147         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
3148         \X''\% crashes, for example.
3150         * doc/groff.texinfo: Document \! and \? used at top-level.
3152 2002-05-06  Werner LEMBERG  <wl@gnu.org>
3154         * src/preproc/pic/pic.man: Fix some keyword syntax.
3155         Other minor typographical fixes.
3157         * src/roff/groff/groff.man: Fix typos.
3159 2002-05-04  Werner LEMBERG  <wl@gnu.org>
3161         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
3162         (ShortOpt[]): This to avoid problems with refer.
3164         * doc/pic.ms: Fix typo.
3165         Fix pic grammar description.
3167         * tmac/an-old.tmac (ne): Use de1, not de.
3169 2002-05-03  Werner LEMBERG  <wl@gnu.org>
3171         * doc/groff.texinfo: Finished separation of glyphs and characters.
3172         Don't use the string `Appendix' for appendix headers (both in
3173         the text and the table of contents).
3174         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
3175         directories.
3177         Use registers LL and LT (similar to -ms) for controlling the
3178         length of title and line, respectively, in the -man and -mdoc
3179         macro packages.
3181         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
3182         (doc-setup-page-layout): Use \n[LL] and \n[LT].
3183         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
3184         (TH): Use \n[LL].
3185         (an-header, an-p-footer): Use \n[LT].
3186         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
3187         doc/groff.texinfo: Document it.
3189 2002-05-02  Werner LEMBERG  <wl@gnu.org>
3191         * doc/fdl.texi: New file.
3192         * doc/groff.texinfo: Include it.
3193         Define and use @copying.
3194         Starting with separating glyph, symbol, and character.
3196 2002-04-27  Werner LEMBERG  <wl@gnu.org>
3198         * Makefile.in (EXEEXT): Set it.
3199         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
3200         programs.
3202         * src/include/nonposix.h: Define GS_NAME.
3203         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
3205         Some preliminary changes for EMX support under OS/2.
3207         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
3208         __EMX__ similar to __MSDOS__.
3209         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
3211 2002-04-25  Werner LEMBERG  <wl@gnu.org>
3213         * doc/groff.texinfo: Integrated groff_out.man.
3214         Some macro fixes.
3216 2002-04-23  Werner LEMBERG  <wl@gnu.org>
3218         * man/groff_out.man: Minor fixes.
3220 2002-04-23  Werner LEMBERG  <wl@gnu.org>
3222         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
3223         correct page references.
3224         Fixed many index entries.
3226 2002-04-23  Bernd Warken  <bwarken@mayn.de>
3228         * man/roff.man: Enlarged.
3230 2002-04-22  Werner LEMBERG  <wl@gnu.org>
3232         * doc/groff.texinfo: More examples, other fixes.
3234 2002-04-20  Werner LEMBERG  <wl@gnu.org>
3236         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
3237         will now form a chain, e.g.
3239           .pi foo
3240           .pi bar
3242         is now the same as
3244           .pi foo | bar
3246         This is for compatibility with plan 9's troff.
3248         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
3249         with UNIX troff.
3250         * NEWS: Updated.
3252         * doc/groff.texinfo: Add documentation of remaining requests and
3253         registers.
3255 2002-04-19  Werner LEMBERG  <wl@gnu.org>
3257         * doc/groff.texinfo: Add documentation of remaining escapes.
3259         * font/devdvi/generate/tc.map: Remove entry for `sr'.
3260         * font/devdvi/*TC: Regenerated.
3262 2002-04-18  Werner LEMBERG  <wl@gnu.org>
3264         * src/roff/troff/input.cc (token::next): Make \H behave consistently
3265         if not in compatibility mode, i.e., increment relative to the
3266         previous height.
3267         * doc/groff.texinfo: Updated accordingly.
3269 2002-04-17  Werner LEMBERG  <wl@gnu.org>
3271         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
3273 2002-04-16  Bernd Warken  <bwarken@mayn.de>
3275         * src/roff/groff/groff.man: Improve documentation of -P option.
3276         Other minor fixes.
3278 2002-04-15  Werner LEMBERG  <wl@gnu.org>
3280         Add new escape \F to switch font family.
3282         * src/roff/troff/input.cc (token::next): Handle \F.
3283         * src/roff/troff/env.cc (environment::set_family): Handle
3284         `interrupted' flag.
3285         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3286         Document it.
3288 2002-04-14  Werner LEMBERG  <wl@gnu.org>
3290         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
3291         spaces in tags.
3293 2002-04-13  Werner LEMBERG  <wl@gnu.org>
3295         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
3296         \m[] and \M[], respectively.
3298         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
3299         (symbol::symbol): Handle NULL string and empty string differently.
3300         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
3301         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
3302         Add optional parameter.
3303         Updated calling functions.
3304         (get_copy, do_glyph_color, do_fill_color, token::next): Use
3305         `symbol::is_empty'.
3306         * src/roff/troff/env.cc (environment::set_font): Ditto.
3308         * src/preproc/pic/troff.cc (troff_output::set_fill,
3309         troff_output::reset_color: Updated.
3311         * tmac/www.tmac: Updated.
3313         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
3314         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
3315         Updated.
3317         * tmac/Xps.tmac: Remove some redundant code.
3319         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
3320         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
3321         man/groff_out.man, man/groff.man, man/groff_diff.man,
3322         src/roff/groff/groff.man: Replace \f[P] with \f[].
3324 2002-04-13  Bernd Warken  <bwarken@mayn.de>
3326         * src/include/printer.h, src/libs/libdriver/printer.cc
3327         (printer::change_fill_color): New member function.
3328         * src/libs/libdriver/input.cc (parse_D_command): Use it.
3330 2002-04-12  Werner LEMBERG  <wl@gnu.org>
3332         * doc/groff.texinfo: Completed pass on gtroff reference.
3334 2002-04-11  Werner LEMBERG  <wl@gnu.org>
3336         * doc/groff.texinfo: More fixes.
3338 2002-04-11  Bernd Warken  <bwarken@mayn.de>
3340         * src/include/color.h: Decorate with `const'.
3341         Use `size_t'.
3342         Include `stddef.h'.
3343         * src/libs/libgroff.color.cc: Decorate with `const'.
3344         Use `size_t'.
3345         (color::color): Initialize members.
3346         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
3347         command according to the documentation.
3349         * man/groff_out.man: Updated.
3350         Minor fixes.
3352 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
3354         * src/preproc/html/pre-html.cc (write_start_image): Remove
3355         redundant output.
3356         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
3358         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
3359         \C'hy' caused an assertion failure.
3361         * src/roff/troff/env.cc (environment::environment): Initialize
3362         `emitted_node'.
3363         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
3365 2002-04-10  Werner LEMBERG  <wl@gnu.org>
3367         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3368         Document pvs request and .pvs register.
3370 2002-04-09  Werner LEMBERG  <wl@gnu.org>
3372         * doc/groff.texinfo: Improve and fix documentation of diversions
3373         and environments.
3375 2002-04-08  Werner LEMBERG  <wl@gnu.org>
3377         * doc/groff.texinfo: Fix documentation of drawing functions.
3378         Other minor fixes.
3380 2002-04-07  Werner LEMBERG  <wl@gnu.org>
3382         * doc/groff.texinfo: Better documentation of double quotes as
3383         arguments.
3384         Other minor fixes.
3386 2002-04-06  Werner LEMBERG  <wl@gnu.org>
3388         * man/groff_font.man: Document names of special characters better.
3389         * doc/groff.texinfo: Minor improvements.
3391         * tmac/lbp.tmac: Load latin1.tmac.
3392         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
3394         * font/devX*/*: Regenerated (all chars > 0x80 removed).
3396 2002-04-05  Werner LEMBERG  <wl@gnu.org>
3398         * tmac/tty.tmac: Don't use shc request.
3399         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
3400         * NEWS: Updated.
3402         * man/groff_diff.man: Minor fixes.
3404         * font/devlbp/*: Remove all `charXXX' entities.
3406         * src/libs/libgroff/font.cc (font::~font): Deallocate
3407         `special_device_coding'.
3408         (font::load): Use `new' for allocating `special_device_coding'.
3409         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
3410         Removed unused member.
3412 2002-04-05  Werner LEMBERG  <wl@gnu.org>
3414         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
3415         (resource_manager::do_begin_binary,
3416         resource_manager::do_begin_data): Use it.
3418         * doc/texinfo.tex: Updated to version 4.2.
3420         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
3421         (token::zero_width_break): New inline function.
3422         * src/roff/troff/input.cc (token::next): Use it.
3423         (token::description): Updated.
3424         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
3425         (token::add_to_node_list, token::process): Use it.
3426         * NEWS, doc/groff.texinfo: Updated.
3428         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
3429         * tmac/tty.tmac: Add missing backslash.
3431 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
3433         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
3434         `.ps' register instead of `.s' to handle fractional point sizes.
3435         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
3436         limit_box::output): Ditto.
3437         * src/preproc/eqn/other.cc (size_box::compute_metrics,
3438         size_box::output): Ditto.
3439         * src/preproc/eqn/over.cc (over_box::compute_metrics,
3440         over_box::output): Ditto.
3441         * src/preproc/eqn/script.cc (script_box::compute_metrics,
3442         script_box::output): Ditto.
3443         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
3444         sqrt_box::output): Ditto.
3446 2002-04-03  Michael Selway  <mas@ssl.co.uk>
3448         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
3449         Fix typo.
3451 2002-04-03  Werner LEMBERG  <wl@gnu.org>
3453         * doc/homepage.ms: Reduce title size.
3454         * doc/groff.texinfo: Fix documentation of .t register.
3455         Fix handling of colon.
3456         Fix `\' vs. `\\'.
3458         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
3459         only if page length is positive to avoid a loop.
3461         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
3462         tbl.
3464 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
3466         * src/include/nonposix.h, src/roff/groff/pipeline.c:
3467         s/__CYGWIN32__/__CYGWIN__/.
3469 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
3471         * doc/gnu.xpm: New image contributed by Emily Mulley.
3472         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
3473         (homepage.html): Be dependent on gnu.eps.
3474         * doc/homepage.ms: Updated to new image.
3476         * src/devices/grohtml/post-html.cc (html_printer): New member
3477         `sbuf_prev_hpos'.
3478         (html_printer::flush_sbuf, html_printer::set_char): Set it.
3479         (html_printer::sbuf_continuation): Use it.
3481 2002-03-28  Werner LEMBERG  <wl@gnu.org>
3483         * src/libs/libgroff/getopt.c: Updated to latest version.
3485         * tmac/README: More on hyphen.tex license.
3487 2002-03-26  Larry Kollar  <kollar@alltel.net>
3489         * doc/groff.texinfo: Add documentation of most missing requests.
3491 2002-03-25  Werner LEMBERG  <wl@gnu.org>
3493         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
3494         of `+-', `mu', and `di', respectively.
3496         * font/devascii/R.proto, font/devutf8/R.proto,
3497         font/devlatin1/R.proto, font/devhtml/R.proto,
3498         font/devcp1047/R.proto, font/devlpb/*: Add them.
3499         * font/devps/generate/textmap: Ditto.
3500         * font/devps/*: Regenerated.
3501         * font/devlj4/generate/text.map: Add them.
3502         * font/devlj4/*: Regenerated.
3503         * font/devdvi/generate/tc.map: Use them.
3504         * font/devdvi/generate/texsy.map: Add them.
3505         * font/devdvi/*: Regenerated.
3506         * font/devX*/*: Regenerated.
3508         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
3509         tmac/tty-char.tmac: Updated.
3511         * NEWS, man/groff_char.man: Updated.
3513 2002-03-24  Werner LEMBERG  <wl@gnu.org>
3515         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
3516         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
3517         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
3518         we use `.fchar' in dvi.tmac.
3519         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
3520         * tmac/Xps.tmac: Simplify some char definitions.
3521         Add definition for \[f/].
3522         * man/groff_char.man: Updated for new X.tmac.
3524         * tmac/README: New file.
3526 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
3528         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
3529         internal .y.o rule took precendence over the .y.cc rule, compiling
3530         the yacc files with gcc instead of g++.
3532 2002-03-23  Werner LEMBERG  <wl@gnu.org>
3534         * tmac/dvi.tmac: Add replacement font for `CB'.
3536         * tmac/doc.tmac: s/request/macro/ in messages.
3537         (doc-generic-macro): Improve error message.
3538         * tmac/groff_mdoc.man: Minor improvements.
3540 2002-03-22  Werner LEMBERG  <wl@gnu.org>
3542         * doc/groff.texinfo: Document possible conflict between `tr' and
3543         `char' requests.
3545 2002-03-21  Werner LEMBERG  <wl@gnu.org>
3547         Improve handling of hyphenation patterns.  It is now possible to
3548         use most of TeX's pattern files unmodified.  To make the process
3549         more flexible, a new request `hpfcode' has been added which
3550         provides a character code mapping for the `hpf' request.  See
3551         comment before hpf_getc() for more details.
3553         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
3554         functions.
3555         (read_patterns_file): Additional parameter for exception dictionary.
3556         Extended to recognize \pattern, \hyphenation, and \endinput.
3557         (do_hyphenation_patterns_file): Updated.
3558         * src/roff/troff/env.h (hpf_code_table): New extern.
3560         * src/roff/troff/input.cc (hpf_code_table): New array.
3561         (init_hpf_code_table, hyphenation_patterns_file_code): New
3562         functions.
3563         (hyphenation_code): Handle translation from `trin' correctly.
3564         (main, init_input_requests): Updated.
3565         (charinfo::set_translation): Handle hyphenation code also.
3567         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
3568         inline function.
3570         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
3571         char' is used for offsets in hyphenation exceptions.
3573         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
3575         * NEWS, man/groff_diff.man, man/groff.man: Document it.
3577 2002-03-20  Larry Kollar  <kollar@alltel.net>
3579         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
3580         requests.
3582 2002-03-18  Werner LEMBERG  <wl@gnu.org>
3584         * tmac/html.tmac: Fix serious typo.
3586 2002-03-17  Larry Kollar  <kollar@alltel.net>
3588         * doc/groff.texinfo: Add documentation for `writec' request.
3590 2002-03-17  Werner LEMBERG  <wl@gnu.org>
3592         Added request `hpfa' to append hyphenation patterns.
3594         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3595         parameter `append'.
3596         (hyphenation_patterns_file): Renamed to...
3597         (do_hyphenation_patterns_file): This.
3598         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
3599         functions.
3600         (init_hyphen_requests): Updated.
3601         * NEWS, man/groff.man, man/groff_diff.man: Document it.
3603 2002-03-16  Werner LEMBERG  <wl@gnu.org>
3605         Added request `writec' in analogy to `tmc'.
3607         * src/roff/troff/input.cc (write_request): Renamed to...
3608         (do_write_request): This.
3609         Added one parameter.
3610         (write_request, write_request_continue): New functions.
3611         (init_input_requests): Updated.
3612         * NEWS, man/groff.man, man/groff_diff.man: Document it.
3614         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
3615         5-10000pt.
3616         * NEWS: Document it.
3618 2002-03-15  Werner LEMBERG  <wl@gnu.org>
3620         * man/groff.man: Add writem request.
3622         Add request `trin' (translate input) to make `.asciify' work
3623         correctly.  This is necessary since `charXXX' entity names are no
3624         longer hardcoded in font definition files.
3626         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
3627         `translate_input' members.
3628         (charinfo::set_asciify_code, charinfo::get_asciify_code,
3629         charinfo::set_translation_input): New methods.
3630         (charinfo::set_translation): Add third argument.
3631         * src/roff/troff/input.cc (charinfo:set_translation): Set
3632         `asciify_code'.
3633         (do_translate): Add second argument.
3634         (translate_input): New function.
3635         (init_input_requests): Updated.
3636         * src/roff/troff/node.cc (glyph_node::asciify,
3637         composite_node::asciify): Use `get_asciify_code'.
3639         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
3641         * NEWS, man/groff.man, man/groff_diff.man: Updated.
3643 2002-03-14  Larry Kollar  <kollar@alltel.net>
3645         * doc/groff.texinfo: Improve documentation of .RS and .RE.
3647 2002-03-14  Werner LEMBERG  <wl@gnu.org>
3649         Add a new request `sizes' similar to the `sizes' command in DESC
3650         files.
3652         * src/roff/troff/env.cc (override_sizes): New function.
3653         (init_env_requests): Use it.
3654         * src/roff/troff/token.h: Export `read_string'.
3655         * NEWS, man/groff_diff.man, man/groff.man: Document it.
3657 2002-03-12  Werner LEMBERG  <wl@gnu.org>
3659         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
3661 2002-03-10  Werner LEMBERG  <wl@gnu.org>
3663         * tmac/pspic.tmac: Add support for -Tdvi.
3664         * tmac/dvi.tmac: Include pspic.tmac.
3665         * src/devices/grodvi/grodvi.man: Document it.
3666         * NEWS: Updated.
3668         * font/devlj4/generate/Makefile: Fix URL of metric files.
3670 2002-03-09  Werner LEMBERG  <wl@gnu.org>
3672         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
3674 2002-03-09  Larry Kollar  <kollar@alltel.net>
3676         * tmac/groff_ms.man: Add documentation for RS and RE macros.
3678 2002-03-08  Werner LEMBERG  <wl@gnu.org>
3680         * doc/groff.texinfo: Fixes for texinfo 4.1.
3682 2002-03-07  Werner LEMBERG  <wl@gnu.org>
3684         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
3685         included.
3686         Handle CYGWIN properly.
3688 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
3690         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
3691         * tmac/lbp.tmac: Add some font translations.
3693 2002-03-02  Werner LEMBERG  <wl@gnu.org>
3695         * font/devcp1047/R.proto, font/devlatin1/R.proto,
3696         font/devhtml/R.proto: Remove `charXXX'  entries.
3697         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
3698         where appropriate.
3700         * font/devlj4/generate/text.map: Remove `charXXX' entries.
3701         * font/devlj4/*: Regenerated all font definition files.
3702         * tmac/lj4.tmac: Load latin1.tmac.
3704         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
3705         from 2000-06-17: LJ4 metric files are *not* text files.
3707         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
3708         register to test for EBCDIC.
3710 2002-03-01  Werner LEMBERG  <wl@gnu.org>
3712         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
3713         files (as grops already does).
3714         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
3715         files.
3716         * src/devices/grops/grops.man: Document comment lines in encoding
3717         files.
3719         * tmac/cp1047.tmac: New file.
3720         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
3721         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
3722         * tmac/Makefile.sub (NORMALFILES): Updated.
3724         * tmac/ec.tmac: Don't load latin1.tmac again.
3726         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
3727         font/devps/generate/dingbats.map,
3728         font/devps/generate/dingbats.rmap, font/devps/text.enc,
3729         font/devps/generate/Makefile (symbolmap): Add header comment.
3730         * font/devps/generate/textmap: Ditto.
3731         Remove `charXXX' entries.
3732         * font/devps/symbolmap: Regenerated.
3733         * font/devps/*: Regenerated all font definition files.
3735 2002-02-28  Werner LEMBERG  <wl@gnu.org>
3737         Add color support to grodvi (for drawing colors are currently
3738         translated to gray values).
3740         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
3741         (dvi_printer): Add `cur_color' member.
3742         (dvi_printer::set_color): New function.
3743         (draw_dvi_printer): Remove `fill'.
3744         (draw_dvi_printer::fill_next): Pass environment as parameter.
3745         Update code for new color support translated to gray.
3746         (dvi_printer::set_char): Updated.
3747         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
3748         changes crossing the page border.
3749         (dvi_printer::draw): Updated.
3750         Remove cases `f' and `F'.
3751         * tmac/dvi.tmac: Add color definitions.
3752         * NEWS, src/devices/grodvi/grodvi.man: Updated.
3754         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
3755         used incorrectly.
3757         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
3758         versions of autoconf.
3759         * configure: Updated.
3761         * doc/homepage.ms: Use `.blm'.
3762         * tmac/www.tmac (www-depth): New auxiliary variable.
3763         (www-pop-level): Don't issue HTML tag.
3764         (ULS, ULE, LI): Use absolute indentation.
3766         * src/devices/grops/ps.cc (ps_printer::begin_page,
3767         ps_printer::end_page): Switch forth and back to default color while
3768         starting a new page.
3770 2002-02-27  Werner LEMBERG  <wl@gnu.org>
3772         Add EC and TC fonts to devdvi.
3774         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
3775         * font/devdvi/generate/cork.map: Renamed to...
3776         * font/devdvi/generate/ec.map: This.
3777         Remove entry for `aq'.
3778         * font/devdvi/generate/tc.map: New file.
3779         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
3780         EC and TC fonts.
3781         (FONTS): Updated.
3782         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
3783         * font/devdvi/Makefile.sub (DEVFILES): Updated.
3784         * tmac/ec.tmac: New file.
3785         * tmac/Makefile.sub (NORMALFILES): Updated.
3786         * NEWS, src/devices/grodvi/grodvi.man: Updated.
3787         * man/groff_char.man: Check `ECFONTS' register.
3789         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
3791 2002-02-26  Werner LEMBERG  <wl@gnu.org>
3793         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
3794         * font/devdvi/generate/cork.map: Add 'y and 'Y.
3795         * font/devdvi/*: Updated.
3796         * tmac/dvi.tmac: Formatting.
3798         Add font `HBI' for the dvi output.
3799         Add support for font families `T' and `H'.
3801         * font/devdvi/HBI: New file.
3802         * font/devdvi/B: Renamed to ...
3803         * font/devdvi/TB: This.
3804         * font/devdvi/BI: Renamed to ...
3805         * font/devdvi/TBI: This.
3806         * font/devdvi/I: Renamed to ...
3807         * font/devdvi/TI: This.
3808         * font/devdvi/R: Renamed to ...
3809         * font/devdvi/TR: This.
3810         * font/devdvi/H: Renamed to ...
3811         * font/devdvi/HR: This.
3812         * font/devdvi/Makefile.sub (DEVFILES): Updated.
3813         * font/devdvi/generate/Makefile (HBI): New rule.
3814         (FONTS): Updated.
3815         (R, I, B, BI, H): Renamed to ...
3816         (TR, TI, TB, TBI, HR): This, respectively.
3817         (srcdir): Fixed.
3818         * NEWS, src/devices/grodvi/grodvi.man: Updated.
3819         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
3820         Add `styles' and `family' keywords.
3821         * tmac/dvi.tmac: Alias `H' to `HR'.
3822         Add some fspecial requests for italic fonts.
3823         Add TR and TI as special.
3824         Add support for `_' with font CWI.
3826         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
3827         operator `:'.  Until now, the expression `0:1' would return 2
3828         instead of 1.
3830 2002-02-25  Werner LEMBERG  <wl@gnu.org>
3832         * man/groff_char.man: Added some missing PS glyph names (from the
3833         Adobe Glyph List).
3834         * font/devps/generate/textmap, font/devps/symbolmap: Add
3835         `arrowupdn'.
3837         * doc/groff.texinfo: Minor additions and fixes.
3838         * man/groff_diff.man: Remove documentation of fp request.  This
3839         is already covered in the original troff manual.
3840         Updated to be consistent with other doc files.
3841         * NEWS: Updated.
3843 2002-02-24  Werner LEMBERG  <wl@gnu.org>
3845         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
3846         TTYDEVDIRS.
3847         Define new variable OTHERDEVDIRS (containing `font/devlj4
3848         font/devlbp' if not EBCDIC).
3849         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
3850         (OTHERDEVDIRS): New variable.
3851         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
3852         * configure: Regenerated.
3854         * NEWS, src/devices/grotty/grotty.man: Updated.
3856 2002-02-23  Werner LEMBERG  <wl@gnu.org>
3858         * src/roff/troff/input.cc (do_overstrike, do_bracket,
3859         get_line_arg): Honour input level.
3861         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
3863         * font/*/*: Implement it in all font files.
3864         * font/devps/generate/textmap, font/devps/generate/symbolchars,
3865         * font/devps/symbolmap: Updated.
3866         * font/devlj4/generate/text.map: Updated.
3867         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
3868         * font/devdvi/generate/texmi.map: Updated.
3870         * font/devutf8/R.proto: Remove all `charXXX' entries.
3871         * font/devutf8/NOTES: Updated.
3873         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
3874         version 4.1.0.
3876         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
3878         * NEWS, man/groff_char.man: Updated.
3880 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
3882         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
3884 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3886         * src/roff/grog/grog.pl: Fix computation of $refer.
3888 2002-02-19  Werner LEMBERG  <wl@gnu.org>
3890         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
3891         `snprintf' and `vsnprintf'.
3893         * src/include/htmlindicate.h: Renamed to...
3894         * src/include/htmlhint.h: This.
3895         * src/include/Makefile.sub: Updated.
3896         * src/preproc/eqn/main.cc: Updated.
3898 2002-02-18  Werner LEMBERG  <wl@gnu.org>
3900         * man/roff.man, man/groff_out.man, man/groff.man,
3901         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
3902         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
3904         * win32-diffs: Updated.
3906 2002-02-17  Werner LEMBERG  <wl@gnu.org>
3908         * doc/Makefile (clean): Add *.eps.
3909         (MEMACROS): Removed.
3910         (TFLAG): New variable.
3911         (TROFF): Use it.
3912         Add -ww.
3913         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
3914         (.me.dit): Fixed.
3915         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
3917         * tmac/www.tmac: Use dummy diversion while resetting and disabling
3918         `.tl'.
3919         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
3920         unstripped.
3921         * src/roff/troff/troff.man: Fix order of parameter description.
3923         * NEWS: Updated.
3925 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
3927         Simplify image handling for grohtml.
3928         Fix <p> bug.
3930         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
3931         comment out.
3932         (html_text::dump_stack): Don't emit newline while debugging.
3933         (html_text::do_push) [DEBUGGING]: Print more info.
3934         (html_text::check_emit_text): Fix handling of <p>.
3935         * src/devices/grohtml/html.h: Updated.
3936         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
3937         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
3938         send its data to stderr also.
3939         Update all callers.
3940         (simple_output::space_or_newline) [DEBUGGING]: Removed.
3941         * src/devices/grohtml/post-html.cc (html_printer::do_links,
3942         html_printer::html_printer): Remove `DEBUGGING' conditionals.
3944         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
3945         Removed.
3946         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
3947         is_inline_image): Removed.
3948         (html_begin_suppress, html_end_suppress): Don't take a parameter.
3949         (graphic_start, graphic_end): Removed.
3950         * src/include/htmlindicate.h: Updated.
3951         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
3952         (macroset_template): New global variable.
3953         (makeFileName): Use `macroset_template'.
3954         (write_end_image): Don't take a parameter.
3955         Don't emit newline.
3956         (write_start_image: Don't emit newline.
3957         (char_buffer::write_upto_newline): Updated.
3958         (char_buffer::skip_to_newline): Renamed to ...
3959         (char_buffer::skip_until_newline): This.
3960         Fix code.
3961         (char_buffer::write_file_troff, char_buffer::write_file_html):
3962         Simplified.
3963         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
3964         (removeAllPages): Remove `DEBUGGING' conditionals.
3965         (addRegDef, dump_args): New functions.
3966         (char_buffer::do_html, char_buffer::do_image): Handle
3967         `www-image-template' command line variable.
3968         Add more debugging code.
3969         (addps4html): Removed.
3970         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
3972         * src/preproc/eqn/main.cc: Include `ctype.h'.
3973         (suppress_html): Removed.
3974         (do_file): Updated.
3975         (inline_equation): Use `html_begin_suppress' and
3976         `html_end_suppress'.
3977         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
3978         (troff_output::start_picture, troff_output::finish_picture):
3979         Updated.
3980         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
3981         (process_input_file): Updated.
3983         * src/roff/troff/div.cc (page_number): Set page number only if the
3984         `ps4html' register isn't defined.
3985         * src/roff/troff/input.cc (image_no): New external variable.
3986         (do_suppress): Use it.
3987         * src/roff/troff/node.h (suppress_node::image_id): New member.
3988         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
3989         (suppress_node::suppress_node): Initialize `image_id' member.
3990         (suppress_node::same): Handle `image_id' also.
3991         (suppress_node::copy): Updated.
3992         (last_image_id): New global variable.
3993         (suppress_node::tprint): Use it.
3995         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
3996         HTML-IMAGE-END.
3997         * tmac/pspic.mac (PSPIC): Fix html support.
3998         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
3999         * tmac/www.tmac (www-image-template): Set up.
4000         (HTMLINDEX): Renamed to...
4001         (HX): This.
4002         (BODYCOLOR): Renamed to...
4003         (BCL): This.
4004         (BACKGROUND): Renamed to...
4005         (BGIMG): This.
4006         (URL): Change order of parameters for consistency.
4007         (MAILTO): Renamed to...
4008         (MTO): This.
4009         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
4010         (IMG, PIMG, MPIMG): This.
4011         (HTML-H-BEGIN, HTML-H-END): Renamed to...
4012         (HnS, HnE): This.
4013         (LINKS): Renamed to...
4014         (LK): This.
4015         (LINE): Renamed to...
4016         (HR): This.
4017         (NO-AUTO-RULE): Renamed to...
4018         (NHR): This.
4019         (HTML-TL): Renamed to...
4020         (HTL): This.
4021         (UL-BEGIN, UL-END): Renamed to...
4022         (ULS, ULE): This.
4023         (DROPCAP): Renamed to...
4024         (DC): This.
4025         (TS, TE, EQ, EN): Provide default definitions.
4026         (www-make-unique-name): Updated.
4027         (HTML-IMAGE-INLINE): Fix typo.
4028         * tmac/groff_www.man: Updated.
4030         * doc/Makefile (homepage.html): Add option -r to grohtml.
4031         Use shortened image name.
4032         * doc/groff.texinfo: Updated info on grohtml strings and macros.
4033         * doc/homepage.ms: Updated and extended.
4035 2002-02-14  Werner LEMBERG  <wl@gnu.org>
4037         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
4039         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
4040         SGR_BACK_DEFAULT_COLOR): Replaced with ...
4041         (tty_printer::put_color): Use it.
4042         (ttr_printer::end_page): Simplify.
4044 2002-02-13  Werner LEMBERG  <wl@gnu.org>
4046         * tmac/groff_tmac.man: Moved to...
4047         * man/groff_tmac.man: This place.
4048         * tmac/Makefile.sub, man/Makefile.sub: Updated.
4050 2002-02-12  Werner LEMBERG  <wl@gnu.org>
4052         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
4053         $(COMPILE.c) to not include groff's assert.h.
4055         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
4056         variable.
4057         * NEWS, src/drivers/grotty/grotty.man: Document it.
4059 2002-02-11  Werner LEMBERG  <wl@gnu.org>
4061         * src/libs/snprintf/snprintf.c: Updated to latest version
4062         (2002-02-11).
4064         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
4065         test whether there is `.]' also.
4066         Don't check for spaces after `.['.
4067         * src/roff/grog/grog.sh: Do the same.
4069 2002-02-10  Werner LEMBERG  <wl@gnu.org>
4071         Illegal -> Invalid.
4073         * src/libs/libgroff/illegal.cc: Renamed to ...
4074         * src/libs/libgroff/invalid.cc: This.
4075         (illegal_char_table): Renamed to ...
4076         (invalid_char_table): This.
4077         * src/libs/libgroff/Makefile.sub: Updated.
4078         * win32-diffs: Updated.
4080         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
4081         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
4082         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
4083         font::load), src/preproc/eqn/main.cc (read_line, main),
4084         src/preproc/eqn/lex.cc (file_input::read_line),
4085         src/preproc/pic/lex.cc (file_input::read_line,
4086         simple_file_input::get, simple_file_input::peek),
4087         src/preproc/pic/main.cc (top_input::get, top_input::peek),
4088         src/preproc/pic/pic.man, src/preproc/refer/main.cc
4089         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
4090         do_bib), src/preproc/tbl/main.cc (table_input::get),
4091         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
4092         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
4093         do_zero_width, read_request, encode_char, ps_get_line,
4094         transparent_file, get_char_for_escape_name, transparent_translate,
4095         asciify, input_char_description, read_string, set_string),
4096         src/roff/troff/env.cc (environment::add_html_tag),
4097         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
4099         * src/include/lib.h: Updated.
4101         * src/preproc/eqn/eqn.cc: Removed.
4103         * NEWS: Updated.
4105         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
4107 2002-02-09  Werner LEMBERG  <wl@gnu.org>
4109         * doc/gnu.xpm: New image.
4110         * doc/Makefile (DOCS): Add homepage.ps.
4111         Add rules for converting xpm->png and xpm->eps.
4112         Use `gnu.{xpm,eps}' as image names.
4113         * doc/homepage.ms: Updated.
4115 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
4117         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
4118         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
4119         Remove calls to `B1' and `B2'
4120         (PNG-IMAGE): New macro for inclusion of images in PNG format.
4121         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
4122         auxiliary variables for MARGIN-PNG-IMAGE.
4123         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
4124         auxiliary macros for MARGIN-PNG-IMAGE.
4125         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
4126         the margin.
4127         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
4128         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
4129         (DROPCAP): New macro to produce dropcap characters.
4130         (www-do-image): Renamed back to...
4131         (HTML-DO-IMAGE): This.
4132         Updated all callers.
4134         * doc/Makefile (gnubw.eps): Updated.
4135         * doc/homepage.ms: Updated.
4137 2002-02-08  Werner LEMBERG  <wl@gnu.org>
4139         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
4140         Added `linethick' to table in section `Style Variables'.
4142 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
4144         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
4146 2002-02-07  Werner LEMBERG  <wl@gnu.org>
4148         Adding options -C (compatibility mode) and -c (grotty's old output
4149         scheme) to nroff.
4151         * src/roff/nroff/nroff.sh: Implement it.
4152         Remove `-Wall'.
4153         * NEWS, src/roff/nroff/nroff.man: Updated.
4155         * PROBLEMS: Document bison 1.32 bug.
4157         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
4159         * src/roff/troff/node.cc (make_tfont): Define it earlier.
4160         * src/roff/troff/div.h: Add prototype for `end_diversions'.
4161         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
4162         * src/roff/troff/env.h: Add prototype for `title'.
4164         Adding EBCDIC support to grotty.
4166         * src/devices/grotty/tty.cc (CSI): New macro.
4167         (SGR_*, tty_printer::put_color): Use it.
4169 2002-02-06  Werner LEMBERG  <wl@gnu.org>
4171         Implementing color support in grotty.  The new switch -c activates
4172         the old drawing scheme, disabling color at the same time.  The new
4173         switch `-i' selects italic instead of underlining (SGR only).
4175         * src/devices/grotty/tty.cc (putstring): New define instead of
4176         `fputs'.  Updated all callers.
4177         (old_drawing_scheme): New global variable.
4178         (COLOR_CHANGE): New enum value.
4179         (SGR_*): New defines containing color handling escape sequences.
4180         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
4181         (glyph): New members `back_color_idx' and `fore_color_idx'.
4182         (glyph::order): Add COLOR_CHANGE.
4183         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
4184         `is_underline', `is_bold', `cu_flag', `tty_colors'.
4185         New methods `make_underline', `make_bold', `color_to_idx',
4186         `change_color', `put_color'.
4187         (cu_flag): Moved into `tty_printer' class.
4188         (tty_printer::tty_printer): Initialize colors.
4189         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
4190         tty_printer::draw, tty_printer::end_page): Handle colors also.
4191         (main): Add options `-c' and `-i'.
4192         (usage): Updated.
4193         * NEWS, src/devices/grotty/grotty.man: Updated.
4195         * src/include/errarg.h (errarg): Add support for `unsigned int'.
4196         * src/libs/libgroff/errarg.c: Implement it.
4198         * src/include/printer.h (printer): Add `change_color' method
4199         (currently used by grotty only).
4200         * src/libs/libdriver/printer.cc: Implement it.
4201         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
4202         call to `pr->change_color'.
4204         * src/roff/troff/node.cc (troff_output_file::fill_color,
4205         troff_output_file::glyph_color): Call `do_motion'.
4207         * tmac/tty.tmac: Add color definitions.
4209         * src/roff/groff/groff.man: Minor fixes.
4211 2002-02-05  Bernd Warken  <bwarken@mayn.de>
4213         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
4214         it.  This is a preparation for future changes.
4216 2002-02-05  Werner LEMBERG  <wl@gnu.org>
4218         * src/roff/troff/input.cc (process_input_stack): Fix the case
4219         where leading spaces are followed by \f or \s; previously, an
4220         incorrect space width has been used.
4222         * doc/roff.man (quoted_char): Fix argument.
4223         (comment): Define string.
4225 2002-02-04  Larry Kollar  <kollar@alltel.net>
4227         * doc/groff.texinfo: More fixes.
4229 2002-02-04  Werner LEMBERG  <wl@gnu.org>
4231         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
4232         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
4233         `restore_compatibility' before `output_string' -- the LINE_STRING
4234         register now already contains proper switches from and to
4235         compatibility mode.
4237         * man/groff_char.man: Add Euro symbol.
4238         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
4239         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
4240         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
4241         Other minor fixes.
4243         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
4244         texinfo->pdf.
4245         (.texinfo.html): Add support for texinfo->html.
4247 2002-02-03  Werner LEMBERG  <wl@gnu.org>
4249         Added three new requests `ds1', `as1', and `ami'.  The former two
4250         are equivalent to `ds' and `as' with the difference that
4251         compatibility mode is saved on entry, switched off during string
4252         expansion, and restored on exit.  The latter is the pendant to `dei'
4253         for `am'.
4255         (do_define_string): Use `define_mode' and `calling mode'.
4256         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
4257         end of string, respectively.
4258         (define_string, append_string): Use `calling_mode'.
4259         (define_nocomp_string, append_nocomp_string,
4260         define_string_indirect): New functions.
4261         (init_input_requests): Updated.
4262         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4264         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
4265         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
4266         mm macro package accesses this string register directly.
4267         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
4269         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
4270         compatibility mode.
4272 2002-02-02  Larry Kollar  <kollar@alltel.net>
4274         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
4276 2002-01-31  Werner LEMBERG  <wl@gnu.org>
4278         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
4280 2002-01-31  Bernd Warken  <bwarken@mayn.de>
4282         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
4283         * man/groff_out.man: Revised and updated.
4285 2002-01-30  Bernd Warken  <bwarken@mayn.de>
4287         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
4288         out the unused `{' and `}' commands.  Undefined by default.
4289         (IntArray): Make `data' private.
4290         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
4291         new methods instead.
4292         (skip_line_D, skip_to_end_of_line): New functions.
4293         (get_D_fixed_args): Use `skip_line_D'.
4294         Changed to handle dummy odd arguments by ...
4295         (get_D_fixed_args_odd_dummy): This new function.
4296         (get_D_variable_args): Split some code into ...
4297         (get_possibly_integer_args): This new function.
4298         (send_draw): Use more `const'.
4299         (delete_current_env): New function.
4300         (position_to_end_of_args): Use `size_t'.
4301         Updated.
4302         (send_draw): Updated.
4303         (parse_D_command): Handle `c', `C', and `t' better.
4304         Updated.
4305         (do_file): Updated.
4307 2002-01-29  Werner LEMBERG  <wl@gnu.org>
4309         * NEWS: Revised.
4310         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
4311         @Def...ListEnd which replaces @Def...x.  This is necessary to get
4312         proper HTML output -- see the comment in the file for more
4313         information.
4314         Updated all calls.
4316 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
4318         Fixes to make color changes of 2002-01-21 work with grohtml.
4320         * src/devices/grohtml/post-html.cc (style): Updated.
4321         (html_printer): Remove unused methods.
4322         (html_printer::do_font, html_printer::draw, html_printer::set_char,
4323         html_printer::special): Updated.
4324         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
4325         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
4326         Added some debugging code.
4327         (html_text::start_tag): Updated.
4328         (html_text::do_push): New method.
4329         (html_text::push_para): Call it.
4330         Add method for handling color.
4331         (html_text::do_color): Updated.
4332         (html_text::shutdown): Handle color.
4333         * src/devices/grohtml/html-text.h (tag_definition): New member
4334         `col'.
4335         Updated.
4337 2002-01-28  Werner LEMBERG  <wl@gnu.org>
4339         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
4341 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
4343         Add two switches -a and -g to control the antialiasing bits for
4344         text and graphics, respectively.
4346         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
4347         `-g'.
4348         * src/devices/grohtml/grohtml.man: Document them.
4349         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
4350         New macros.
4351         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
4352         (setupAntiAlias): New function.
4353         (createAllPages): Updated.
4354         (scanArguments): Handle `-a' and `-g'.
4355         (main): Call `setupAntiAlias'.
4356         * NEWS: Updated.
4358 2002-01-27  Werner LEMBERG  <wl@gnu.org>
4360         * doc/groff.texinfo (Def*): Call index function after deffn.
4362         * tmac/html.tmac: Call `nroff' request.
4364 2002-01-26  Larry Kollar  <kollar@alltel.net>
4366         * tmac/groff_ms.man: Add some omissions.
4368 2002-01-25  Larry Kollar  <kollar@alltel.net>
4370         * tmac/groff_ms.man: Typographical improvements.
4372 2002-01-25  Werner LEMBERG  <wl@gnu.org>
4374         * doc/groff.texinfo: Updated version and copyright.
4375         * src/devices/grops/grops.man: Updated.
4377         * tmac/groff_tmac.man: Fix `ig' macro.
4379         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
4380         nroff mode.
4381         Use `.ne' unconditionally everywhere.
4382         (TS): Only insert some vertical space.  Doing a page break is no
4383         longer necessary due to the redefinition of the `ne' request.
4385         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
4386         warning for unknown subcommands but parse and pass them to the
4387         device driver.
4389 2002-01-24  Werner LEMBERG  <wl@gnu.org>
4391         * tmac/groff_www.man, NEWS: Fix typos.
4393 2002-01-21  Werner LEMBERG  <wl@gnu.org>
4395         Complete revision of color support:
4397           Adapt programs to the new libdriver/input.cc.
4399           Color spaces are no longer converted to RGB but transferred as-is
4400           in the troff intermediate output format.
4402           Handle default color gracefully.  troff now supports a `default'
4403           color (which can't be changed).
4405           grops will now use the proper color space functions if available.
4407           Update pic.
4409         Note that currently grohtml doesn't handle colors properly.  This
4410         has to be fixed.
4412         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
4413         (ui_to_a): New function.
4414         * src/include/lib.h: Updated.
4416         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
4417         (color): Simplified; removed all `double' members and methods.
4418         A new array `components' now holds the color parameters.
4419         (color::is_default, color::get_components): New methods.
4420         (color::operator==, color:operator!=): New.
4421         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
4422         to make access to the `components' array more comprehensible.
4423         * src/libs/libgroff/color.cc: Implement new color support.
4424         (atoh): Small fixes.
4425         (color::read_encoding): Simplified for new troff intermediate color
4426         output format.
4427         (default_color): New global variable.
4429         * src/roff/troff/input.cc (default_symbol): New global variable.
4430         (lookup_color): Use it.
4431         (default_black): Removed.
4432         (do_glyph_color, do_fill_color): Simplified.
4433         (define_color): Handle default color.
4434         Improve warnings.
4435         (do_if_request): Handle default color.
4436         * src/roff/troff/env.cc (environment::environment): Initialize
4437         colors with `default_color'.
4438         * src/roff/troff/node.cc (troff_output_file::put): Add method
4439         for `unsigned int'.
4440         (troff_output_file::hex): Removed.
4441         (troff_output_file::fill_color, troff_output_file::glyph_color):
4442         Updated to include/color.h and libdriver/input.cc.
4444         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
4445         fill color properly (identically to the outline color).  \D'f...'
4446         doesn't work any more.
4447         All function calls to it updated.
4449         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
4450         Updated.
4451         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
4452         Updated.
4454         * src/devices/grops/ps.cc (ps_output::put_color): New method.
4455         (ps_printer::sbuf_color): Make a real member instead of pointer.
4456         (ps_printer::fill_color, ps_printer::output_color): Removed.
4457         (ps_printer::ps_printer): Updated.
4458         (ps_printer::set_char): Ditto.
4459         (ps_printer::set_color): Use various color schemes.
4460         Use `put_color' method.
4461         (ps_printer::flush_sbuf): Don't set color.
4462         (ps_printer::fill_path): Take `environment' as parameter.
4463         Simplify color handling.
4464         (ps_printer::set_line_thickness): Renamed to ...
4465         (ps_printer::set_line_thickness_and_color): This (and updated).
4466         (ps_printer::set_color): Change second parameter from `complete'
4467         to `fill' which better describes what it does.
4468         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
4469         and text in the right order.
4470         Updated.
4471         Remove branches for `f' and `F'; this is handled by
4472         libdriver/input.cc.
4473         * src/devices/grops/ps.h: Updated.
4474         * font/devps/prologue (FL): Redefined.
4475         ({F,C}r,k,g: New color functions (with and without filling).
4477         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
4478         * man/groff_diff.man, man/groff.man, man/groff_out.man,
4479         doc/groff.texinfo, NEWS: Updated.
4481 2002-01-20  Bernd Warken  <bwarken@mayn.de>
4483         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
4484         in this file for what has been changed.
4486 2002-01-19  Werner LEMBERG  <wl@gnu.org>
4488         * test-groff: Fix GROFF_FONT_PATH.
4489         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
4490         is read before .TH or .Dd is parsed.
4492 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
4494         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
4495         quadrant boundaries.
4497 2002-01-18  Werner LEMBERG  <wl@gnu.org>
4499         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
4500         applied last patch.
4502 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
4504         * tmac/doc.common: Initialize %I register for the %I macro to
4505         avoid (harmless) warning.
4506         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
4507         when in the SYNOPSIS section.
4509 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
4511         * src/preproc/pic/lex.cc (get_token): Fix typo.
4513 2002-01-17  Werner LEMBERG  <wl@gnu.org>
4515         * devices/grops/ps.cc: Fix incorrectly applied last patch.
4517 2002-01-17  Larry Kollar  <kollar@alltel.net>
4519         * tmac/groff_ms.man: Completely rewritten.
4521 2002-01-16  Werner LEMBERG  <wl@gnu.org>
4523         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
4525 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
4527         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
4528         fill colors.
4529         (ps_printer::draw): Ditto.
4531 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
4533         * tmac/groff_mdoc.man: Minor fixes.
4535 2002-01-13  Werner LEMBERG  <wl@gnu.org>
4537         * man/groff_out.man: Some fixes.
4539 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
4541         * doc/pic.ms: Fix typos.
4543 2002-01-12  Werner LEMBERG  <wl@gnu.org>
4545         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
4547 2002-01-10  Werner LEMBERG  <wl@gnu.org>
4549         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
4550         symbols.
4551         * NEWS: Updated.
4553 2002-01-09  Bernd Warken  <bwarken@mayn.de>
4555         * man/groff_out.man: Revised.
4556         * man/roff.man: Minor fixes.
4557         * src/roff/troff/troff.man: Some reordering.
4559 2002-01-09  Werner LEMBERG  <wl@gnu.org>
4561         * tmac/an-old.tmac: Add dummy macros for equation support.
4563 2002-01-07  Werner LEMBERG  <wl@gnu.org>
4565         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
4567         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
4568         man pages.
4569         * tmac/groff_man.man: Small improvements.
4571 2002-01-07  Bernd Warken  <bwarken@mayn.de>
4573         * man/groff_diff.man: Revised.
4575 2002-01-06  Werner LEMBERG  <wl@gnu.org>
4577         * tmac/www.tmac: Remove extraneous backslash.
4579 2002-01-06  Bernd Warken  <bwarken@mayn.de>
4581         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
4583 2002-01-05  Werner LEMBERG  <wl@gnu.org>
4585         Integrated groffer, contributed by Bernd Warken.
4587         * contrib/groffer/*: New.       
4588         * Makefile.in, NEWS: Updated.
4590 2002-01-04  Werner LEMBERG  <wl@gnu.org>
4592         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
4593         registers defined in macro packages.
4594         Revising the ms part.
4596 2002-01-04  Larry Kollar  <kollar@alltel.net>
4598         * doc/groff.texinfo: Add documentation for ms macros.
4600 2002-01-02  Werner LEMBERG  <wl@gnu.org>
4602         First step in adding PS support for the Euro symbol.  `eu' is the
4603         official Euro logo, `Eu' is a font-specific glyph variant.
4605         * font/devps/text.enc: Add `Euro' at position 9.
4606         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
4607         * font/devps/symbolmap: Regenerated.
4609         * NEWS: Updated.
4611 2002-01-02  Bernd Warken  <bwarken@mayn.de>
4613         * man/roff.man: Revised.
4615 2002-01-01  Bernd Warken  <bwarken@mayn.de>
4617         * src/roff/groff/groff.man: Completely rewritten.
4619 2001-12-31  Werner LEMBERG  <wl@gnu.org>
4621         * doc/Makefile: Updated.
4623 2001-12-30  Werner LEMBERG  <wl@gnu.org>
4625         * tmac/www.tmac: Make all names of internal macros/registers/strings
4626         lowercase, and prepend `www-'.
4627         Other minor changes.
4628         * src/roff/troff/troff.man: Add preprocessor string at BOF.
4630 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
4632         Implement option `-b' in grohtml to set the HTML background colour.
4634         * src/devices/grohtml/post-html.cc (default_background): New global
4635         variable.
4636         (html_printer::html_printer): Initialize `background' to
4637         `default_background'.
4638         (main): Implement option `-b'.
4639         (usage): Updated.
4640         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
4641         of `-b' option.
4642         * src/devices/grohtml/grohtml.man: Updated.
4643         * doc/Makefile (.ms.html): Use `-b'.
4644         * tmac/html.tmac: Don't set background color.
4646         Add new grohtml tag `.html-tl'.
4648         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
4649         member variable.
4650         (title_desc::title_desc): Updated.
4651         (html_printer::troff_tag): Handle `.html-tl'.
4652         (html_printer::write_title): Use `with_h1'.
4653         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
4654         (HTML-TL): New macro.
4656         Add support for unordered lists in HTML.
4658         * tmac/www.tmac (www-level): New auxiliary register.
4659         (www-level1, www-level2, www-level3): New auxiliary strings.
4660         (www-push-level, www-pop-level): New auxiliary macros
4661         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
4663         Miscellaneous.
4665         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
4666         (DEFAULT_VERTICAL_OFFSET): Removed.
4667         (IMAGE_BOARDER_PIXELS): Set to 0.
4668         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
4669         (vertical_offset): Initialize with 0.
4670         (gsPaper): New global variable.
4671         (get_resolution): Scan for and return unsigned int.
4672         (get_papersize): New function to get paper length from devps/DESC.
4673         (determine_vertical_offset): New function.
4674         (createAllPages): Produce gray-level images and use proper page
4675         length.
4676         (createImage): Use `-quiet' option of pnmcrop.
4677         (addZ): Fix passing of `-Z'.
4678         (scanArguments): Fix handling of `-o'.
4679         (main): Call `determine_vertical_offset'.
4680         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
4681         code for `l'.
4683         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
4684         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
4685         glyph descenders properly.
4687         * doc/homepage.ms: Include `gnubw.eps'.
4688         * doc/Makefile (gnubw.eps): New rule.
4689         (homepage.html): Depend on `gnubw.eps'.
4691 2001-12-25  Werner LEMBERG  <wl@gnu.org>
4693         * src/roff/troff/input.cc (default_black): Fix return value.
4695 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
4697         * tmac/doc-common (Dt): Change output of architecture strings.
4698         Do some syntax cleanup.
4699         * tmac/groff_mdoc.man: Updated.
4701 2001-12-23  Werner LEMBERG  <wl@gnu.org>
4703         Adding an `itc' request (input line trap accepting \c).
4705         * src/roff/troff/env.h (environment): New member
4706         `continued_input_trap'.
4707         Make `do_input_trap' a friend function instead of `input_trap'.
4708         * src/roff/troff/env.cc (environment::environment,
4709         environment::copy): Updated.
4710         (environment::newline): Implement it.
4711         (do_input_trap): New function.
4712         (input_trap): Call `do_input_trap'.
4713         (input_trap_continued): New function.
4714         (init_env_requests): Updated.
4715         * src/roff/troff/TODO: Updated.
4717         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
4718         `.it'.
4720         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
4722 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
4724         * tmac/doc-common, tmac/doc-syms: Small updates.
4726 2001-12-22  Colin Watson  <cjwatson@debian.org>
4728         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
4730 2001-12-22  Bernd Warken  <bwarken@mayn.de>
4732         * MANIFEST: New file.
4734 2001-12-22  Werner LEMBERG  <wl@gnu.org>
4736         * src/preproc/grn/grn.man: Updated.
4738 2001-12-22  Solar Designer  <solar@openwall.com>
4740         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
4741         (DBRead): Use it.
4743 2001-12-19  Werner LEMBERG  <wl@gnu.org>
4745         Implement a fallback character request `.fchar'.
4747         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
4748         (is_fallback): New inline function.
4749         * src/roff/troff/input.cc (do_define_character): New function.
4750         (define_character): Call `do_define_character'.
4751         (define_fallback_character): New function.
4752         (init_input_requests): Add `fchar'.
4753         (charinfo::charinfo): Updated.
4754         (charinfo::set_macro): New argument to set `fallback' flag.
4755         * src/roff/troff/node.cc (make_glyph_node, make_node,
4756         node::add_char): Check `fallback' flag.
4757         * NEWS, man/groff_diff.man, man/groff_man: Updated.
4759 2001-12-16  Werner LEMBERG  <wl@gnu.org>
4761         * groff.texinfo: Document exact search algorithm for glyphs.
4763 2001-12-15  Werner LEMBERG  <wl@gnu.org>
4765         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
4766         the left side of $(MANPAGES) rule to make it always non-empty.
4768 2001-12-14  Werner LEMBERG  <wl@gnu.org>
4770         * src/roff/troff/input.cc (default_black): Define default color
4771         `black' if not yet defined.
4773 2001-12-13  Werner LEMBERG  <wl@gnu.org>
4775         Implement new string-valued register `.fn' to return the current
4776         real (internal) font name.
4778         * env.cc (environment::get_font_name_string): New function.
4779         (init_env_requests): Add `.fn' register.
4780         * env.h (environment): Updated.
4781         * node.cc (font_info): Make `get_font_name' a friend.
4782         (get_font_name): New function.
4783         * node.h: Updated.
4785         * man/groff_diff.man, man/groff.man, NEWS: Updated.
4787 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4789         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
4791 2001-12-12  Werner LEMBERG  <wl@gnu.org>
4793         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
4795 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
4797         * man/groff_diff.man: Adding documentation for \O.
4799 2001-12-10  Werner LEMBERG  <wl@gnu.org>
4801         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
4802         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
4804 2001-12-09  Werner LEMBERG  <wl@gnu.org>
4806         * man/roff.man: Revised.
4807         * src/roff/groff/groff.man: Replace man page references with a
4808         pointer to roff.man.
4810 2001-12-09  Bernd Warken  <bwarken@mayn.de>
4812         * man/roff.man: Completely rewritten.
4814 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4816         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
4818 2001-12-05  Werner LEMBERG  <wl@gnu.org>
4820         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
4821         longer used.
4822         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
4823         order of initializers.
4824         * NEWS: Updated.
4826 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
4828         * doc/groff.texinfo: Fix documentation of \O.
4830         * src/devices/grohtml/html-text.cc (html_text::do_indent,
4831         html_text::do_table, html_text::do_emittext, html_text::do_para):
4832         Use `const' for first argument.
4833         (html_text::do_table): Use cast.
4834         * src/devices/grohtml/html-text.h: Updated.
4835         * src/devices/grohtml/output.cc (simple_output::put_string): Add
4836         method for `const string &s'.
4837         * src/devices/grohtml/html.h: Updated.
4838         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
4839         (ANCHOR_TEMPLATE): Modified.
4840         (manufacture_headings): New global variable to handle `-h' option.
4841         (is_subsection): Removed.
4842         (char_buffer::add_string): Add `const' to first argument.
4843         Protect against invalid string argument.
4844         Add method for `const string &s'.
4845         (text_glob): Completely redesigned.
4846         (page): Use `const' for strings and remove string length variable.
4847         (page::add_html): Removed.
4848         (page::add_end_encode): New member function.
4849         (to_unicode): Moved upwards.
4850         (title_desc, header_desc): Updated.
4851         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
4852         definition.
4853         (html_printer::is_bold, html_printer::make_bold): New member
4854         functions.
4855         (html_printer::end_of_line): Updated.
4856         (generate_img_src, html_printer::do_auto_image,
4857         html_printer::do_title, html_printer::write_header,
4858         html_printer::determine_header_level, html_printer::do_heading,
4859         html_printer::do_linelength, html_printer::do_pageoffset,
4860         html_printer::do_indentation, html_printer::do_tempindent,
4861         html_printer::do_indentedparagraph, html_printer::do_break,
4862         html_printer::flush_sbuf, get_html_translation,
4863         html_printer::begin_page, html_printer::special): Rewritten to get
4864         rid of static string length limit.
4865         (html_printer::troff_tag): Added `.no-auto-rule'.
4866         (html_printer::flush_globs): Small fix.
4867         (html_printer::determine_space): Don't compute `space_width'.
4868         (html_printer::translate_to_html): Renamed to ...
4869         (html_printer::emit_html): This (with updates).
4870         (html_printer::write_header): Implement `-h' option.
4871         (html_printer::draw): Remove commented-out code.  Handle `F'
4872         command.
4873         (html_printer::add_char_to_sbuf): Removed.
4874         (html_printer::add_to_sbuf): Rewritten.
4875         (html_printer::sbuf_continuation): Fixed.
4876         (html_printer::seen_backwards_escape, reverse,
4877         html_printer::remove_last_char_from_sbuf): Removed.
4878         (char_translate_to_html, str_translate_to_html): Removed.
4879         (html_printer::overstrike): New function member.
4880         (html_printer::set_char): Use it.
4881         (html_printer::do_body): New function member.
4882         (html_printer::~html_printer): Use it.
4883         (main): Handle `-h' option.
4884         (usage): Updated.
4885         * src/devices/grohtml/grohtml.man: Document -h switch.
4887         * src/preproc/html/pre-html.cc: Include searchpath.h
4888         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
4889         (get_resolution): New function.
4890         (checkImageDir): Use `0777' permissions in mkdir()
4891         (write_start_image): Rewritten to use `\O[5...]'.
4892         (createImage, generateImages): Updated.
4893         (main): Handle `F' and `h' options.
4894         Use `get_resolution'.
4896         * src/roff/troff/input.cc (begin, end, image): Removed.
4897         (do_suppress): Take parameter.
4898         Handle modified syntax of `\O'.
4899         (token::next): Updated.
4900         (init_markup_requests): Removed.
4901         (main): Updated.
4903         * src/roff/troff/div.h: Add declaration for begin_page().
4905         * tmac/color-html.tmac: Removed.  Contents moved to...
4906         * tmac/html.tmac: Here.  Set background color.
4907         * tmac/color.tmac: Removed.  Contents moved to...
4908         * tmac/ps.tmac: Here.
4909         * tmac/www.tmac: Remove the title command when generating images
4910         for html.
4911         (NO_AUTO_RULE): New macro.
4912         (HTML_DO_IMAGE): Use revised `\O' escapes.
4913         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
4915 2001-12-02  Werner LEMBERG  <wl@gnu.org>
4917         * tmac/groff_mdoc.man: Fix typo.
4919 2001-12-01  Colin Watson  <cjwatson@debian.org>
4921         * man/roff.man: Fix typo.
4923 2001-11-29  Werner LEMBERG  <wl@gnu.org>
4925         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
4926         stdlib.h.
4928         * src/roff/troff/input.cc (read_draw_node): Emit error message if
4929         more than one argument to \D'f ...'.
4931         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
4933 2001-11-28  Werner LEMBERG  <wl@gnu.org>
4935         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
4936         loaded only once.
4938         * tmac/groff_man.man: Minor cosmetic fix.
4940 2001-11-27  Werner LEMBERG  <wl@gnu.org>
4942         * src/roff/groff/groff.man, tmac/groff_tmac.man,
4943         tmac/groff_www.man: s/mwww/www/.
4945 2001-11-26  Werner LEMBERG  <wl@gnu.org>
4947         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
4948         * configure: Regenerated.
4949         * win32-diffs: Updated.
4951         * tmac/groff_mwww.tmac: Renamed to ...
4952         * tmac/groff_www.tmac: This.
4953         * tmac/mwww.tmac: Removed.
4954         * NEWS, tmac/Makefile.sub: Updated.
4956 2001-11-21  Werner LEMBERG  <wl@gnu.org>
4958         * doc/groff.texinfo: Improve documentation of the `\v' escape.
4959         Fix explanation of `\D' and `rt'.
4961 2001-11-20  Werner LEMBERG  <wl@gnu.org>
4963         * tmac/an-old.tmac (an-header): Set header length equal to page
4964         width.
4965         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
4966         minor fixes.
4967         * NEWS: Small fix.
4969 2001-11-19  Werner LEMBERG  <wl@gnu.org>
4971         * NEWS, man/Makefile.sub: Updated.
4973 2001-11-19  Bernd Warken  <bwarken@mayn.de>
4975         * man/ditroff.man: New file.
4977 2001-11-17  Werner LEMBERG  <wl@gnu.org>
4979         * man/groff_differences.man: Renamed to ...
4980         * man/groff_diff.man: This.  Updated.
4981         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
4983         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
4984         * src/preproc/html/pushback.cc: This.  Updated.
4985         * src/preproc/html/pushbackbuffer.h: Renamed to ...
4986         * src/preproc/html/pushback.h: This.
4987         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
4988         Updated.
4990         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
4991         * src/libs/libgroff/htmlhint.cc: This.
4992         * src/libs/libgroff/Makefile.sub: Updated.
4994         * tmac/an-old.tmac (an-end): Fix page length.
4996 2001-11-16  Werner LEMBERG  <wl@gnu.org>
4998         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
4999         * man/Makefile.sub: Include groff_differences.man.
5000         * VERSION: Set to 1.18.
5001         * REVISION: Set to 0.
5003 2001-11-16  Bernd Warken  <bwarken@mayn.de>
5005         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
5006         the second dot (or ending macro name) to end a macro.
5007         * doc/groff.texinfo: Doc fix.
5009 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
5011         * tmac/doc-common (doc-header): Handle very long document titles
5012         better.
5014 2001-11-16  Werner LEMBERG  <wl@gnu.org>
5016         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
5018 2001-11-15  Werner LEMBERG  <wl@gnu.org>
5020         * src/roff/troff/troff.man: Revised and split into troff.man and...
5021         * man/groff_differences.man: New file.
5022         * NEWS: Updated.
5024 2001-11-13  Werner LEMBERG  <wl@gnu.org>
5026         * tmac/an-old.tmac (TS, TE): New macros for table support.
5028 2001-11-12  Werner LEMBERG  <wl@gnu.org>
5030         * src/include/lib.h: Provide a fix for emx to not include
5031         groff-getopt.h.
5033 2001-10-27  Werner LEMBERG  <wl@gnu.org>
5035         * src/roff/troff/input.cc (substring_macro): Fix computation of
5036         boundary values.
5038 2001-10-20  Werner LEMBERG  <wl@gnu.org>
5040         Undo change from 2001-08-28.
5042         * src/roff/troff/input.cc (have_input): New global variable.
5043         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
5044         in compatibility mode.
5045         (process_input_stack): Use it.
5047 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
5049         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
5050         being handled as end-of-sentence characters,
5052 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
5054         * src/roff/troff/input.cc (file_iterator): New members
5055         `suppress_newline_flag' and `seen_escape'.
5056         (file_iterator::next_file): Updated.
5057         (file_iterator::fill): Use it.
5058         (string_iterator): New member `suppress_newline_flag'.
5059         (string_iterator::fill): Set it.
5060         (get_color_element): Use MAX_COLOR_VAL.
5061         * src/roff/troff/env.cc (environment): Remove `need_eol'.
5062         (no_fill): Don't set `env->ignore_next_eol'.
5063         (environment::newline): Handle `eol' tag properly.
5064         Emit `eol.ce'.
5065         (environment::add_html_tag): Set `env->ignore_next_eol'.
5066         Don't handle `.ce'.
5067         * src/roff/troff/env.h (environment): Updated.
5069         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
5070         member function.
5071         (html_printer::outstanding_eol): New member function.
5072         (html_printer::do_title): Use new functions.
5073         (html_printer::troff_tag): Test `id_eol_ce'.
5075 2001-10-10  Werner LEMBERG  <wl@gnu.org>
5077         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
5078         files work with -C also.
5080 2001-10-05  Werner LEMBERG  <wl@gnu.org>
5082         * doc/pic.ms: Minor fix.
5083         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
5084         as a valid command line switch.
5085         * src/devices/grohtml/post-html.cc (main): Ditto.
5086         (usage): Updated.
5087         * src/devices/grohtml/grohtml.man: Updated.
5088         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
5090 2001-10-04  Werner LEMBERG  <wl@gnu.org>
5092         Implementing color support in troff, pic, grops, and grohtml.  These
5093         changes are based on a major patch provided by Gaius Mulley
5094         <gaius@glam.ac.uk>.
5096         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
5097         definitions with both hex values and fractions.
5099         New escapes: \m and \M for drawing and background color,
5100         respectively.  This corresponds to the troff output commands `m'
5101         and `DF'.
5103         groff and troff accept command line switch `-c' to disable color
5104         output (which is automatically disabled in compatibility mode).
5106         New scaling indicator `f' for fractions (1f = 65536u).
5108         New conditional operator `m' to test for defined colors with `if'
5109         and `ie'.
5111         New keywords `color' (or `colour', `colored', `coloured'), `outline'
5112         (or `outlined'), and `shaded' added to pic.
5114         * src/include/color.h: New file.
5115         * src/include/driver.h: Include it.
5116         * src/include/printer.h: Include color.h.
5117         (environment): New members `col' and `fill'.
5118         (printer): Remove `adjust_arc_center' member function.
5119         * src/include/Makefile.sub: Updated.
5121         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
5122         `env.fill'.
5123         Handle `m' and `DF' troff commands.
5124         * src/libs/libgroff/color.cc: New file.
5125         * src/libs/libgroff/Makefile.sub: Updated.
5127         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
5128         (stop): Removed.
5129         (createImage): Fix computation of `y2'.
5130         Use `pnmcrop' also.
5131         (buffer::write_file_html): Remove calls to `stop'.
5133         * src/preproc/pic/common.h (common_output): New abstract function
5134         members `set_color', `reset_color', `get_last_filled', and
5135         `get_outline_color'.
5136         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
5137         (object_spec): Add members `shaded' and `outlined'.
5138         * src/preproc/pic/output.h (output): `command' is now abstract.
5139         New function members `set_color', `reset_color', `get_last_filled',
5140         and `get_outline_color'.
5141         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
5142         `outline[d]', and `shaded'.
5143         * src/preproc/pic/object.cc (output::command): Removed.
5144         (output::set_location): Moved to output.h.
5145         (graphic_object): Add protected members `outline_color' and
5146         `color_fill'.
5147         Add member functions `set_outline_color', `get_outline_color', and
5148         `set_fill_color'.
5149         (closed_object): Add member function `set_fill_color'.
5150         Add member `color_fill'.
5151         (graphic_object::print_text): Use `out->set_color' and
5152         `out->reset_color'.
5153         (box_object::print, ellipse_object::print, circle_object::print,
5154         line_object::print, spline_object::print, arc_object::print): Ditto.
5155         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
5156         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
5157         `SHADED', making them `%left'.
5158         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
5159         * src/preproc/pic/tex.cc (tex_output): New dummy function members
5160         `set_color', `reset_color', `get_last_filled', and
5161         `get_outline_color'.
5162         * src/preproc/pic/troff.cc (simple_output): New abstract function
5163         members `set_color', `reset_color', and `get_last_filled'.
5164         (simple_output::polygon, simple_output::circle,
5165         simple_output::ellipse): Use `get_last_filled'.
5166         (troff_output): New members `last_filled' and `last_outlined'.
5167         New function members `set_color', `reset_color', `get_last_filled',
5168         and `get_outline_color'.
5169         (troff_output::finish_picture): Use `reset_color'.
5170         (troff_output::set_fill): Test `last_filled'.
5171         * src/preproc/pic/pic.man: Updated.
5173         * src/roff/groff/groff.cc (main): Implement `-c' option.
5174         (synopsis, help): Updated.
5175         src/roff/groff/groff.man: Updated.
5177         * src/roff/troff/troff.h: Include color.h.
5178         (warning_type): Add WARN_COLOR.
5179         * src/roff/troff/env.h (environment): New members
5180         `{cur,prev}_{glyph,fill}_color'.
5181         New member functions `get_{prev_,}{glyph,fill}_color'.
5182         * src/roff/troff/env.cc: Initialize and implement them.
5183         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
5184         Replace `NULL' with `0' everywhere for consistency.
5185         (lookup_color, default_black, do_glyph_color, do_fill_color,
5186         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
5187         define_color): New functions.
5188         (token::next): Implement \M and \m escapes.
5189         (do_if_request): Implement `m' operator.
5190         (usage): Updated.
5191         (main): Implement `-c' option.
5192         (init_markup_requests): Add `defcolor' request.
5193         (warning_table): Add `color' warning.
5194         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
5195         classes.
5196         * src/roff/troff/node.cc (troff_output_file): New members
5197         `current_{page,glyph}color'.  New member functions `put_hex',
5198         `glyph_color', and `fill_color'.
5199         (glyph_color_node::*, fill_color_node::*): Implement it.
5200         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
5201         (parse_term): Add support for `f'.
5202         * src/roff/troff/troff.man: Updated.
5204         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
5205         entry for `F'.
5206         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
5207         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
5209         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
5210         (tag_definition): Use `void *' for arg1.
5211         (html_text): New member functions `do_color' and `done_color'.
5212         Use `void *' for second parameter of `push_para' member function.
5213         New `push_para' member function with a single parameter.
5214         Use `char *' for parameter of `issue_table_begin' member funtion.
5215         New `issue_color_begin' member function.
5216         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
5217         COLOR_TAG.
5218         (html_text::issue_color_begin): New function.
5219         (html_text::issue_table_begin): Use `char *' for parameter.
5220         (html_text::start_tag, html_text::shutdown,
5221         html_text::check_emit_text): Updated.
5222         (html_text::push_para): Use `void *' for second parameter.
5223         Add same function with only one parameter.
5224         (html_text::do_*): Updated.
5225         (html_text::do_color, html_text::done_color): New functions.
5226         * src/devices/grohtml/post-html.cc (style): New member `col'.
5227         Mew member `style' with 6 parameters.
5228         (style::style, style::operator==): Updated.
5229         (html_printer::do_font): Use it.
5230         (html_printer::draw): Add dummy entry for `F'.
5231         (html_printer::set_char): Updated.
5232         * src/devices/grohtml/grohtml.man: Updated.
5234         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
5235         trailing zeroes removed.
5236         (ps_printer): New members `sbuf_color', `fill_color', and
5237         `output_color'.
5238         Removed member `fill'.
5239         New member function `set_color'.
5240         (ps_printer::ps_printer, ps_printer::set_char): Updated.
5241         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
5242         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
5244         * tmac/color-html.tmac, tmac/color.tmac: New files.
5245         * tmac/troffrc: Include them.
5246         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
5247         * tmac/Makefile.sub: Updated.
5249         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
5250         man/groff.man: Updated.
5251         * font/devps/prologue.ps: Define FC and CO functions.
5253 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
5255         Fix incorrect cropping of images and incorrect handling of special
5256         characters.  Fix handling of file names in \O.
5258         * src/include/geometry.h: New file.
5259         * src/libs/libgroff/geometry.cc: New file.
5260         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
5261         to `geometry.cc'.
5262         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
5263         initial spaces.
5264         (do_suppress): Updated.
5265         * src/roff/troff/node.cc: Include geometry.h.
5266         (troff_output_file::flush_tbuf): Fixed parameters to
5267         `check_output_limits'.
5268         (troff_output_file::check_charinfo): Ditto.
5269         (troff_output_file::determine_line_limits): Add support for `Da'
5270         and `Dl' commands.
5272         * src/devices/grohtml/post-html.cc (str_translate_to_html):
5273         Add new parameter `is_special' to decode special characters from
5274         escape sequences.
5275         (html_printer::do_title, html_printer::do_heading,
5276         html_printer::do_indentedparagraph,
5277         html_printer::translate_to_html, html_printer::special): Updated.
5279 2001-10-03  Werner LEMBERG  <wl@gnu.org>
5281         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
5282         Fix entry for config.h.
5283         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
5284         * tmac/troffrc: Translate nonbreakable space character to `\~'.
5285         * src/preproc/eqn/eqn.man: Document -d command line option.
5287 2001-09-27  Werner LEMBERG  <wl@gnu.org>
5289         * man/groff.man: Use
5291           .ev xxx
5292           .na
5293           .nh
5294           <table>
5295           .ev
5297         instead of the old code (`.ad .hy' after the table) to suppress
5298         incorrect hyphenation for grohtml output.
5300 2001-09-22  Werner LEMBERG  <wl@gnu.org>
5302         * man/groff_font.man, man/groff_out.man: Minor fixes.
5304 2001-09-20  Werner LEMBERG  <wl@gnu.org>
5306         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
5307         Arnold Robbins <arnold@skeeve.com>).
5309 2001-09-09  Werner LEMBERG  <wl@gnu.org>
5311         * configure: Regenerated with autoconf 2.52.
5313         * doc/groff.texinfo: Complete revision of indices.
5315 2001-09-07  Werner LEMBERG  <wl@gnu.org>
5317         * doc/Makefile (clean): Updated to delete all indices.
5319 2001-09-05  Werner LEMBERG  <wl@gnu.org>
5321         * src/roff/troff/troff.man: Remove superfluous line.
5323         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
5324         given on the command line (or rather, if only the default warnings
5325         are set).
5327 2001-09-03  Werner LEMBERG  <wl@gnu.org>
5329         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
5330         use .ne for TTY devices.
5332 2001-08-31  Werner LEMBERG  <wl@gnu.org>
5334         * src/roff/troff/token.h, src/roff/troff/input.cc:
5335         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
5337 2001-08-28  Werner LEMBERG  <wl@gnu.org>
5339         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
5340         * src/roff/troff/input.cc (token::next): Return
5341         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
5342         compatibility mode.
5343         (token::description): Updated.
5344         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
5345         (token::add_to_node_list, token::process): Ignore
5346         TOKEN_TRANSPARENT_ESCAPE.
5348 2001-08-27  Werner LEMBERG  <wl@gnu.org>
5350         * tmac/an-old.tmac: Fix `S' string.
5352 2001-08-26  Werner LEMBERG  <wl@gnu.org>
5354         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
5356 2001-08-25  Werner LEMBERG  <wl@gnu.org>
5358         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
5359         backslashes).
5360         Many other minor fixes.
5362         * configure.ac: Add message at end to inform how to compile
5363         xditview.
5364         * configure: Regenerated.
5366 2001-08-24  Werner LEMBERG  <wl@gnu.org>
5368         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
5369         Updated to latest version of libc.
5371 2001-08-23  Werner LEMBERG  <wl@gnu.org>
5373         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
5374         Autoconf 2.50 and newer can handle this.
5375         * configure: Regenerated.
5377 2001-08-21  Werner LEMBERG  <wl@gnu.org>
5379         * doc/pic.ms: Fix typo.
5380         * src/preproc/tbl/tbl.man: Document case of global options.
5382 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5384         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
5385         handling of `CR' font.
5387 2001-08-20  Werner LEMBERG  <wl@gnu.org>
5389         Use a config.h file.
5391         * src/include/lib.h: Include config.h.
5392         * All C files: Ditto (if necessary).
5393         * All C++ source and header files: Include lib.h first (if
5394         necessary).
5396         * src/include/config.hin: New file (autogenerated by autoheader).
5397         * stamp-h.in: New file.
5398         * configure.ac: Updated.
5399         * aclocal.m4: Add third parameters to AC_DEFINE macros.
5400         (GROFF_ARRAY_DELETE): Simplified.
5401         * Makefile.sub (DISTCLEANFILES): Updated.
5402         Added targets for remaking config.status, config.hin, config.h,
5403         stamp-h.in, and stamp-h.
5404         * configure: Regenerated.
5406 2001-08-19  Werner LEMBERG  <wl@gnu.org>
5408         * NEWS: Updated.
5410 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
5412         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
5413         (do_sprintf): Use snprintf().
5415 2001-08-18  Werner LEMBERG  <wl@gnu.org>
5417         * src/libs/snprintf/*: Added an snprintf module written by Mark
5418         Martinec.
5419         * src/libs/libgroff/Makefile.sub: Updated.
5420         * configure.ac: Add test for snprintf().
5421         * Makefile.in: Updated.
5422         * configure: Regenerated.
5424         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
5425         uses snprintf().
5427 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
5429         * tmac/doc.tmac (Ex): New implementation.
5430         * tmac/doc-common, tmac/groff_tmac.man: Updated.
5432 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
5434         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
5435         argument.
5436         * tmac/groff_tmac.man: Updated.
5438 2001-08-13  Werner LEMBERG  <wl@gnu.org>
5440         * src/preproc/tbl/tbl.man: Minor documentation update.
5442 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5444         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
5445         * configure.ac: Add declaration test for gettimeofday().
5446         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
5447         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
5448         * configure: Regenerated.
5450 2001-08-11  Werner LEMBERG  <wl@gnu.org>
5452         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
5453         * configure.ac: Add declaration test for strcasecmp().
5454         * Makefile.in: Updated.
5455         * configure: Regenerated.
5456         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
5457         this is necessary because groff's mkstemp.cc is C++.
5458         Add declaration conditionally for strcasecmp().
5460 2001-08-10  Werner LEMBERG  <wl@gnu.org>
5462         Integrated pic2graph, contributed by Eric S. Raymond.
5464         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
5465         files.
5466         * Makefile.in, NEWS: Updated.
5468         * src/preproc/tbl/tbl.man: Revised.
5470 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
5472         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
5474 2001-08-09  Werner LEMBERG  <wl@gnu.org>
5476         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
5477         requests.
5479 2001-08-08  Paul Eggert  <eggert@twinsun.com>
5481         * Makefile.sub (configure): Depend on configure.ac, not
5482         configure.in.
5483         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
5485 2001-08-07  Werner LEMBERG  <wl@gnu.org>
5487         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
5488         fixes.
5490 2001-08-06  Werner LEMBERG  <wl@gnu.org>
5492         * src/roff/troff/troff.man: Improve documentation of -E option.
5494 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5496         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
5497         Simplified.
5499 2001-07-27  Werner LEMBERG  <wl@gnu.org>
5501         * src/preproc/refer/refer.cc: Undo last change.
5502         * src/devices/grohtml/post-html.cc: Ditto.
5504 2001-07-26  Werner LEMBERG  <wl@gnu.org>
5506         * src/preproc/refer/refer.cc: Include `lib.h'.
5507         * src/devices/grohtml/post-html.cc: Ditto.
5509 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
5511         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
5512         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
5513         * Makefile.in: Comment updated.
5514         * configure: Regenerated.
5516 2001-07-25  Werner LEMBERG  <wl@gnu.org>
5518         * src/preproc/pic/pic.cc: Removed.
5519         * src/preproc/pic/pic_tab.h: Removed.
5520         * src/preproc/refer/label.cc: Removed.
5522         * doc/Makefile (.ms.html): Don't use a file name extension in
5523         argument to grohtml's -I option.
5524         * Makefile.in (dist): Remove CVS directories.
5525         Call `distfiles' target.
5527         * src/devices/grohtml/grohtml.man: Add information about valid
5528         versions of pnmtopng.
5529         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
5530         name instead of number.
5532 2001-07-24  Werner LEMBERG  <wl@gnu.org>
5534         * doc/groff.texinfo: Minor fixes.
5536 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
5538         * doc/Makefile (.ms.html): Put image files into a subdirectory.
5539         (clean): Updated.
5541 2001-07-20  Werner LEMBERG  <wl@gnu.org>
5543         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
5544         * src/libs/libgroff/mkstemp.cc: New file.
5545         * src/libs/libgroff/mksdir.cc: New file.
5546         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
5547         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
5548         * src/libs/libgroff/Makefile.sub: Updated.
5549         * src/include/lib.h: Add mksdir() prototype.
5550         * src/include/posix.h: Define S_IXUSR if not yet defined.
5552         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
5553         (createAllPages): Use mksdir() instead of current code.
5554         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
5555         (main): [!HAVE_MKSTEMP]: Removed.
5557         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
5558         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
5559         macros.
5560         * configure.ac: Add tests for stdint.h, sys/time.h, and
5561         gettimeofday().
5562         Call new GROFF_xxx macros.
5563         * configure: Regenerated.
5564         * Makefile.in: Comments updated.
5566 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
5568         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
5569         instead of current code.
5570         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
5571         * src/roff/groff/groff.cc (possible_command::insert_args): New
5572         function.
5573         (main): Use it for predriver handling instead of insert_arg().
5575 2001-07-19  Werner LEMBERG  <wl@gnu.org>
5577         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
5578         groff also.
5580         * src/include/posix.h: Define S_IWUSR if not yet defined.
5582 2001-07-18  Werner LEMBERG  <wl@gnu.org>
5584         * NEWS: Updated.
5586 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
5588         * tmac/groff_mdoc.man: Document new -width and -column syntax.
5589         Some other minor fixes.
5590         * tmac/an-old.tmac: Add `AT' and `UC' macros.
5592 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
5594         Replace call to `troff' with `groff -Z' to make it aware of
5595         GROFF_BIN_PATH.
5597         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
5598         (troff_command, command_prefix): Removed.
5599         (alterDeviceTo): Use groff.
5600         (addZ): New function.
5601         (char_buffer::do_html): Use it.
5602         (scanArguments): Use TROFF_COMMAND.
5603         (findPrefix): Removed.
5604         (main): Updated.
5605         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
5607 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
5609         * doc/pic.ms: Documentation fixes.
5611 2001-07-17  Werner LEMBERG  <wl@gnu.org>
5613         Replace atexit() with global destructor.
5615         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
5616         (xtmpfile_list_init): New global structure to deallocate
5617         xtmpfile_list on exit.  Its destructor inherits most code from
5618         remove_tmp_files().
5619         (remove_tmp_files): Deleted.
5620         (add_tmp_file): Simplified.
5622 2001-07-16  Werner LEMBERG  <wl@gnu.org>
5624         Replace strdup() with strsave().
5626         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
5627         (set_papersize): Use strsave() and a_delete.
5628         (main): Use strsave().
5629         * src/preproc/html/pre-html.cc (make_message, createAllPages,
5630         removeAllPages): Use strsave() and a_delete.
5632         * configure.ac: Remove test for strdup.
5633         * Makefile.in: Comment updated.
5634         * configure: Regenerated.
5636 2001-07-15  Werner LEMBERG  <wl@gnu.org>
5638         * win32-diffs: Updated.
5640 2001-07-14  Werner LEMBERG  <wl@gnu.org>
5642         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
5643         removing the old one.
5644         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
5646 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5648         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
5650 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
5652         Merge -xwidth into -width.  Add -xwidth functionality to -column
5653         also.
5655         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
5656         avoid warning.
5657         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
5658         string immediately following a leading dot starts with a valid mdoc
5659         argument.
5660         Add similar code to the -column branch.
5661         (doc-Bl-usage): Updated.
5662         * groff_mdoc.man: s/-xwidth/-width/.
5664 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
5666         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
5667         running into centered or non-formatted text.
5669 2001-07-11  Werner LEMBERG  <wl@gnu.org>
5671         Introduce short and long prefixes to have the selection at run-time
5672         whether there is a 8+3 limit for names of temporary files.
5674         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
5675         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
5676         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
5677         variables.
5678         (temp_init): New global structure to initialize above three
5679         variables.
5680         (xtmptemplate): Use two parameters for long and short prefix.
5681         Simplify code use above three variables.
5682         (xtmpfile): Use long and short prefixes as parameters.
5683         * src/include/lib.h: Updated.
5685         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
5686         with ...
5687         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
5688         (createAllPages, makeTempFiles): Updated.
5690 2001-07-09  Werner LEMBERG  <wl@gnu.org>
5692         * REVISION: Increased to 3.
5694 Version 1.17.2 released
5695 =======================
5697 2001-07-07  Werner LEMBERG  <wl@gnu.org>
5699         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
5700         to size_t.
5702 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
5704         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
5705         Fix synopsis.
5706         * tmac/groff_mdoc.man: Fix synopsis.
5708 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
5710         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
5711         Restore `doc-Pa-font'.
5713 2001-07-04  Werner LEMBERG  <wl@gnu.org>
5715         * src/utils/indxbib/dirnamemax.c: Moved to ...
5716         * src/libs/libgroff/maxfilename.cc: Here.
5717         s/dir_name_max/file_name_max/.
5718         Add copyright.
5719         * src/include/lib.h: Add file_name_max.
5720         * src/utils/indxbib/indxbib.cc: Updated.
5721         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
5722         Updated.
5724         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
5725         as empty.
5726         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
5728         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
5729         REGION_TEMPLATE): New macros.
5730         (createAllPages, makeTempFiles): Use them.
5731         Include `nonposix.h'.
5732         (html_system): New function.
5733         (createAllPages, createImage): Use it.
5734         Use EXE_EXT.
5736         * tmac/www.tmac: Fix typos.
5738 2001-07-03  Werner LEMBERG  <wl@gnu.org>
5740         * tmac/www.tmac: Disable hyphenation in normal text only if output
5741         device is html.
5742         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
5743         * tmac/groff_mwww.man, NEWS: Updated.
5745 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
5747         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
5748         image location.
5750 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
5752         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
5753         doc-display-ps-stack): Implement font and font size stack for
5754         displays.
5756 2001-07-02  Werner LEMBERG  <wl@gnu.org>
5758         * REVISION: Increased to 2.
5759         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
5761         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
5762         beginning of a line.
5763         * src/groff/grog/grog.sh: Ditto.
5765 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
5767         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
5768         make it portable.
5770 2001-06-27  Werner LEMBERG  <wl@gnu.org>
5772         Fix problems with preprocessor string for `man' program.
5774         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
5775         Updated/added copyright.
5776         Moved Emacs's local variable to identify nroff mode to the end of
5777         the file; add local variable if missing.
5779 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
5781         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
5782         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
5783         * configure: Regenerated.
5785 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
5787         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
5788         * configure: Regenerated.
5790 2001-06-24  Werner LEMBERG  <wl@gnu.org>
5792         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
5793         but www.tmac.
5794         * doc/pic.ms: Fix typos.
5796 Version 1.17.1 released
5797 =======================
5799 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
5801         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
5802         * configure: Updated.
5804 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
5806         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
5807         image names.
5808         * src/roff/troff/dic.cc (blank_line): Add html tag.
5810 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
5812         * src/roff/troff/input.cc (do_suppress): Fix typo.
5814 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
5816         Added two new options (-D and -I) to specify image names and a
5817         subdirectory to place the images in.
5819         Change syntax from \\Ox to \\O[x].
5821         * src/devices/grohtml/post-html.cc (main): Add options.
5822         (usage): Updated.
5823         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
5824         Use `NULL' instead of `0' for null string pointers.
5825         (MAX_RETRIES): New macro.
5826         (lengthOfintToStr, intToStr, make_message): New functions.
5827         (makeFileName): Make function static.
5828         Implement -D and -I options.
5829         (checkImageDir): New function.
5830         (write_end_image, write_start_image): Use new syntax of \O.
5831         (createAllPages, removeAllPages): Implement -D and -I options.  Use
5832         make_message().
5833         (createImage): Use make_message().
5834         (addps4html): Add guard for malloc().
5835         (usage, scanArguments): Updated.
5836         (makeTempFiles): Use mkstemp().
5837         (removeTempFiles): Use unlink().
5838         (findPrefix): Add guard for malloc().
5839         (main): Updated.
5840         * src/roff/troff/input.cc (get_delim_file_name): New function to
5841         parse \O.
5842         (do_suppress): Updated to parse new syntax.
5843         * src/devices/grohtml/grohtml.man: Updated.
5844         * tmac/www.tmac: Updated to new syntax.
5846         * NEWS: Updated.
5848 2001-06-15  Werner LEMBERG  <wl@gnu.org>
5850         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
5852         * src/devices/grohtml/grohtml.man: Minor improvements.
5854 2001-06-14  Werner LEMBERG  <wl@gnu.org>
5856         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
5858 2001-06-11  Werner LEMBERG  <wl@gnu.org>
5860         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
5861         line to specify preprocessor options -- mandb 2.3.1 only recognizes
5862         the former.
5863         * src/preproc/grn/grn.man: Add proper '\" string.
5865 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
5867         * test-groff: Don't use PATH but GROFF_BIN_PATH.
5869 2001-06-08  Werner LEMBERG  <wl@gnu.org>
5871         Updated to autoconf 2.50.
5873         * configure.in: Renamed to...
5874         * configure.ac: This.
5875         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
5876         (GROFF_OS390): Updated.
5877         * configure: Regenerated.
5879 2001-05-18  Werner LEMBERG  <wl@gnu.org>
5881         * src/roff/troff/env.c, src/roff/troff/env.h,
5882         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
5883         from 2000-12-21.
5885 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
5887         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
5889 2001-05-16  Werner LEMBERG  <wl@gnu.org>
5891         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
5892         less than or equal zero; set it to 1 then.
5893         * src/roff/troff/node.h (node::node): Initialize `last'.
5895 2001-05-08  Werner LEMBERG  <wl@gnu.org>
5897         * tmac/an-old.tmac: Make predefined strings work in compatibility
5898         mode.
5899         Add troff version guard.
5900         * tmac/doc.tmac: Simplify version guard.
5902 2001-05-07  Werner LEMBERG  <wl@gnu.org>
5904         The .ns and .rs requests are now honoured not only in the top-level
5905         but in all diversions (similar to UNIX troff).
5907         This change is based on a patch from Tadziu Hoffmann
5908         <hoffmann@usm.uni-muenchen.de>.
5910         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
5911         (top_level_diversion): Remove `no_space_mode' member.
5912         * src/roff/troff/div.cc (diversion::diversion,
5913         top_level_diversion::top_level_diversion): Updated.
5914         (macro_diversion::output): Reset `no_space_mode'.
5915         (no_space, restore_spacing): Use `curdiv' unconditionally.
5916         (space_request, blank_line): Check `curdiv->no_space_mode'.
5917         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
5918         `curdiv' unconditionally.
5919         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
5920         Updated.
5922 2001-05-06  Werner LEMBERG  <wl@gnu.org>
5924         Added two new requests `de1' and `am1' which are similar to `de' and
5925         `am' with the difference that compatibility mode is saved on entry,
5926         switched off during macro execution, and restored on exit.
5928         * src/roff/troff/input.h: Added two new special characters
5929         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
5930         * src/roff/troff/input.cc (input_iterator): Added two member
5931         functions `save_compatible_flag' and `get_compatible_flag'.
5932         (input_stack): Ditto.
5933         (string_iterator): Ditto.  Also add private member
5934         `saved_compatible_flag'.
5935         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5936         (calling_mode): New enumeration.
5937         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
5938         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
5939         (define_macro, define_indirect_macro, append_macro, ignore): Use
5940         `calling_mode'.
5941         (define_nocomp_macro, append_nocomp_macro): New functions.
5942         (init_input_requests): Updated.
5943         (do_request): Rename local variable `saved_compatible_flag' to
5944         `old_compatible_flag'.
5945         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5947         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
5948         public and trap-invoked macros.  As a consequence, the man macros
5949         work in compatibility mode also.
5951 2001-05-06  Solar Designer  <solar@openwall.com>
5953         * Makefile.in: Use $(mandir).
5955 2001-05-06  Alexios Zavras  <zvr@pobox.com>
5957         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
5959 2001-05-05  Werner LEMBERG  <wl@gnu.org>
5961         Added `.ns' number register: Returns 1 in no-space mode (if in
5962         top-level diversion), 0 otherwise.
5964         * src/roff/troff/div.cc (no_space_mode_reg): New class.
5965         (init_div_requests): Updated.
5966         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
5967         Document it.
5969 2001-05-04  Werner LEMBERG  <wl@gnu.org>
5971         * src/roff/nroff/nroff.man: Improved documentation (especially
5972         locales).
5974 2001-05-02  Werner LEMBERG  <wl@gnu.org>
5976         Added `brp' request: This is \p as a request.
5978         * src/roff/troff/env.cc (environment::do_break): Add parameter
5979         `spread'.
5980         (do_break_request): New function (was `break_request').
5981         (break_request): Calls `do_break_request'.
5982         (break_spread_request): New; calls `do_break_request'.
5983         (init_env_requests): Updated.
5984         * src/roff/troff/env.h: Updated.
5985         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5987         * REVISION: Increased to 1.
5988         * win32-diffs: Updated.
5990 2001-05-01  Werner LEMBERG  <wl@gnu.org>
5992         * tmac/an-old.tmac: Fix minor compatibility mode issue.
5993         * tmac/troffrc-end: Make it really work in compatibility mode.
5995 2001-04-27  Werner LEMBERG  <wl@gnu.org>
5997         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
5998         stdlib.h.
6000 2001-04-22  Werner LEMBERG  <wl@gnu.org>
6002         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
6003         latest versions from glibc CVS archive.
6005         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
6006         <c.zeelenberg@hccnet.nl>.
6008 2001-04-21  Werner LEMBERG  <wl@gnu.org>
6010         * configure.in: Move check for mkstemp() to...
6011         * aclocal.m4 (GROFF_MKSTEMP): This new function.
6012         * configure: Regenerated.
6014         * src/include/groff-getopt.h: Don't use variable names in
6015         declarations.
6017         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
6018         * src/devices/grohtml/Makefile.sub,
6019         src/devices/grohtml/post-html.cc: Updated.
6021 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
6023         * configure.in: Add special check for mkstemp().
6024         * src/libs/libgroff/tmpfile.cc: Use it.
6025         * src/utils/indxbib/indxbib.cc: Ditto.
6026         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
6027         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
6028         `const'.
6030 2001-04-20  Bruce Lilly  <blilly@erols.com>
6032         `Version_string' as C++ object was not visible to linker from C
6033         object files.
6034         Add `const' to `Version_string'.
6036         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
6037         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
6038         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
6039         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
6040         (scanArguments), src/preproc/refer/refer.cc (main),
6041         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
6042         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6043         (main), src/devices/grohtml/post-html.cc (main),
6044         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
6045         (main), src/utils/hpftodit/hpftodit.cc (main),
6046         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
6047         (main), src/utils/lkbib/lkbib.cc (main),
6048         src/utils/addftinfo/addftinfo.cc (main): Implement it.
6050         * src/roff/groff/pipeline.c: Add _UWIN.
6051         * src/include/nonposix.h: Ditto.
6053 2001-04-20  Werner LEMBERG  <wl@gnu.org>
6055         * src/include/lib.h: Use HAVE_STRERROR.
6056         * src/roff/groff/pipeline.c: Ditto.
6057         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
6058         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
6059         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
6060         * win32-diffs: Updated.
6061         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
6063 2001-04-19  Werner LEMBERG  <wl@gnu.org>
6065         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
6066         instead of hardwired `"troff"'.
6067         (char_buffer::read_file): Remove unused variables.
6068         (char_buffer::write_file_troff): Ditto.
6069         (char_buffer::write_file_html): Ditto.
6070         (generateImages): Ditto.
6071         (abs): Removed.
6072         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
6074         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
6076         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
6077         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
6078         index_search_item::search1): Ditto.
6079         * src/roff/troff/node.h (width_list): Reorder members.
6080         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
6081         (lookup_warning): Ditto.
6082         (prepend_string): Commented out.
6083         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
6084         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
6085         * src/preproc/tbl/main.cc (process_format): Ditto.
6086         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
6087         compiler warnings.
6088         * src/preproc/pic/pic.cc: Updated.
6089         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
6090         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
6091         * src/preproc/refer/command.cc (execute_command): Ditto.
6092         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
6093         * src/preproc/refer/token.cc (lookup_token): Ditto.
6094         * src/preproc/soelim/soelim.cc: Ditto.
6095         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
6096         (isHexDigit): Commented out.
6097         (pushBackBuffer::isString): Remove unused variable.
6098         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
6099         warning.
6100         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
6101         resource_manager::read_resource_arg, read_one_of, parse_extensions):
6102         Ditto.
6103         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
6104         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
6105         lookup_paper_size): Ditto.
6106         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
6107         (text_glob, element_list): Reorder members.
6108         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
6109         compiler warning.
6110         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
6111         return value to `void'.
6112         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
6113         of initializers.
6114         * src/devices/grohtml/html.h (simple_output::check_newline,
6115         simple_output::space_or_newline, simple_output::enable_newlines):
6116         Add return value.
6117         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
6118         compiler warnings.
6119         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
6120         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
6121         output_ligatures, output_charset, read_map): Ditto.
6122         * src/utils/lookbib/lookbib.cc (main): Ditto.
6123         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
6124         (do_file): Fix typo (`=' -> `==').
6125         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
6126         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
6128 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
6130         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
6131         Fix usage of GROFF_BIN_PATH.
6132         * src/roff/nroff/nroff.man: Updated.
6134 2001-04-18  Werner LEMBERG  <wl@gnu.org>
6136         * NEWS: Fixing typos.
6137         Updated.
6139 Version 1.17 released
6140 =====================
6142 2001-04-17  Werner LEMBERG  <wl@gnu.org>
6144         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
6145         directory, not in $(srcdir).
6147 2001-04-16  Werner LEMBERG  <wl@gnu.org>
6149         * doc/groff.texinfo: More info on conditionals.
6151 2001-04-15  Werner LEMBERG  <wl@gnu.org>
6153         * doc/groff.texinfo: Added some info about groff internals.
6155         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
6156         about missing special character only if the name is non-null.
6158 2001-04-14  Werner LEMBERG  <wl@gnu.org>
6160         Removing the grohtml-old device driver which is now obsolete.
6162         * src/devices/grohtml-old/*: Removed.
6163         * font/devhtml-old/*: Removed.
6164         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
6165         Remove comments.
6166         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
6167         * test-groff (PATH): Updated.
6168         * tmac/Makefile.sub (NORMALFILES): Updated.
6169         * tmac/an-old.tmac: Remove special code for html-old device.
6170         Replace `html-or-html-old' register with `an-html'.
6171         * tmac/eqnrc: Updated.
6172         * tmac/html-old.tmac: Removed.
6173         * tmac/troffrc, tmac/troffrc-end: Updated.
6174         * tmac/www.tmac: Remove special code for html-old device.
6175         Replace `html-or-html-old' register with `www-html'.
6177         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
6178         src/libs/libgroff/htmlindicate.cc (graphic_end),
6179         include/htmlindicate.h, src/preproc/grn/*.cc,
6180         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
6181         single argument for consistency with rest of source code.
6183         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
6185 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
6187         * src/roff/troff/troff.man: Fixing typos.
6189 2001-04-13  Werner LEMBERG  <wl@gnu.org>
6191         * doc/pic.ms: Fixing many font switches.
6192         * doc/groff.texinfo: Fixes, additions.
6193         * MORE.STUFF: Updated.
6195 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
6197         * src/devices/grohtml/grohtml.man: Updated manual page regarding
6198         simple anchor.
6199         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
6200         cropping of images.
6201         (removeTempFiles): New function to tidy up temporary files.
6202         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
6203         Many fixes to do with the new inline suppress node and image regions
6204         are much tighter.
6205         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
6206         (generate_img_src): New function.
6207         (html_printer::do_auto_image): Utilizes it.
6208         (do_heading, do_title): Include inline images within their contents.
6209         (html_printer::begin_page): Tidied up comments that are issued to
6210         the html output file.
6211         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
6212         than courier.
6213         (text_glob::is_br): New method used by do_heading.
6214         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
6215         equivalent diversion.
6216         * src/include/html-strings.h: Altered image tags to reflect the
6217         inline image node.
6218         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
6219         parameter.
6220         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
6221         it is already inside a pic image.  Only emit tags if the argument
6222         `-Tps:html' is present.
6223         * src/preproc/tbl/main.cc: Changes to reflect additional
6224         `html_end_suppress' parameter.
6225         * src/roff/troff/env.cc: Only emit eol tag if a node has been
6226         emitted since the last eol tag was written.
6227         * src/roff/troff/env.h: New boolean `emitted_node'.
6228         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
6229         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
6230         * src/roff/troff/node.cc (check_charinfo): New method. 
6231         (troff_output_file::determine_line_limits): Alterations to limit
6232         checking.
6233         * tmac/www.tmac: Changes to reflect new suppress nodes.
6234           
6235 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
6237         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
6238         Escape the html_glyph in the buffer.
6239         (str_translate_to_html): Output the unescaped escaped_char.
6240         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
6241         `frame=void', not `frame=none'.  Add `border=0'.
6243 2001-04-12  Werner LEMBERG  <wl@gnu.org>
6245         * PROBLEMS: Add some words on how to avoid wrapper macros.
6247 2001-04-11  Blake McBride  <blake@florida-software.com>
6249         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
6251 2001-04-11  Werner LEMBERG  <wl@gnu.org>
6253         * font/devlbp/Makefile.sub (CLEANADD): Set it.
6254         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
6255         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
6256         * Makefile.sub (DISTCLEANFILES): Here.
6258         * libs/libgroff/new.cc: Include `nonposix.h'.
6259         * win32-diffs: Updated.
6261 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
6263         Added skeleton macro for defunct macros.
6265         Updated documentation.
6267         When inside displays, an empty input line warning should be
6268         suppressed.  If another macro call is put inside a display,
6269         all subsequent empty lines found in that display caused a
6270         warning to be emitted.
6272         * tmac/doc.tmac (doc-defunct-macro): New macro.
6273         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
6274         (doc-restore-global-vars): Fixed typo.
6275         (doc-empty-line): Check the `doc-display-depth' register to
6276         determine whether we are inside display or not.
6278         * tmac/doc-common: Removed `Or' and `Sf' registers.
6279         Moved obsolete `Ds' macro to doc.tmac.
6281         * tmac/groff_mdoc.man: Bump document date.
6282         Document `.Vt' under ``Variable Types''.
6283         Removed documentation for obsolete `.Or' macro.
6285 2001-04-10  Werner LEMBERG  <wl@gnu.org>
6287         * NEWS: Updated.
6288         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
6290 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
6292         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
6293         (usage): Add stream argument. Don't exit.
6294         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
6295         Write --version output to stdout, not stderr.
6296         (usage): Add stream argument. Don't exit.
6297         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
6298         (usage): Add stream argument. Don't exit.
6299         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
6300         constants.
6301         (usage): Add stream argument. Don't exit.
6302         (main): Write --help output to stdout, not stderr.
6303         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
6304         (usage): Add stream argument. Don't exit.
6305         * src/devices/grops/ps.cc (main): Accept --help and --version.
6306         (usage): Add stream argument. Don't exit.
6307         * src/devices/grotty/tty.cc (main): Accept --help and --version.
6308         (usage): Add stream argument. Don't exit.
6309         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
6310         (main): Accept --help and --version.
6311         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
6312         (main): Accept --help and --version.
6313         * src/preproc/html/pre-html.cc (usage): Add stream argument.
6314         (scanArguments): Accept --help and --version.
6315         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
6316         (main): Accept --help and --version.
6317         * src/preproc/refer/refer.cc (main): Accept --help and --version.
6318         (usage): Add stream argument. Don't exit.
6319         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
6320         exit.
6321         (main): Accept --help and --version.
6322         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
6323         (main): Accept --help and --version.
6324         * src/roff/groff/groff.cc (main): Accept --help and --version.
6325         (synopsis): Add stream argument.
6326         (help): Write --help output to stdout, not stderr.
6327         (usage): Add stream argument. Don't exit.
6328         * src/roff/grog/grog.pl: Accept --help and --version.
6329         (help): New sub.
6330         * src/roff/grog/grog.sh: Accept --help and --version.
6331         * src/roff/nroff/nroff.sh: Accept --help and --version.
6332         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
6333         (usage): Add stream argument. Don't exit.
6334         (main): Accept --help and --version.
6335         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
6336         (usage): New function with stream argument, doesn't exit.
6337         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
6338         (usage): New function with stream argument, doesn't exit.
6339         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
6340         (usage): Add stream argument. Don't exit.
6341         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
6342         (main): Accept --help and --version.
6343         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
6344         exit.
6345         (main): Accept --help and --version.
6346         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
6347         (main): Accept --help and --version.
6348         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
6349         (usage): Add stream argument. Don't exit.
6351 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
6353         Fix indentation in SYNOPSIS.
6355         Updated to include changes of latest BSD mdoc version (basically,
6356         the only change is that `.Fn' and `.Fc' put a final semicolon after
6357         a function declaration in the SYNOPSIS section).
6359         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
6360         (doc-in-synopsis-section): New variable.  Updated all related
6361         functions.
6362         (doc-indent-synopsis-active): New register.
6363         (Nd, Fn, Fo): Use it.
6364         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
6365         `.Cd' with long argument line produces indented wrapped lines. 
6366         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
6367         undesirable line break to be output.
6368         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
6369         `.rs'.
6370         (Fn, Fc): Add final `;' to output.
6371         (doc-save-global-vars, doc-restore-global-vars): Updated.
6372         * tmac/doc-common: Remove `Ex' register.
6373         Updated.
6374         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
6375         copyright.
6377 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
6379         * tmac/doc.tmac (Cd): Simplify code.
6380         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
6382 2001-04-06  Werner LEMBERG  <wl@gnu.org>
6384         Implement continuous underlining for nroff mode.  To do that, a new
6385         request in the ditroff language has been added: `x u N' (N is 0
6386         or 1).
6388         \X and \Y are now transparent to end-of-sentence recognition.
6390         * src/include/printer.h (printer): Add `type' parameter to `special'
6391         method.
6392         * src/libs/libdriver/printer.cc (printer::special): Updated.
6393         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
6395         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
6396         specials of type `p'.
6397         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
6398         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
6399         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
6400         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
6401         (glyph::order): New method.
6402         (tty_printer::add_char): Use it.
6403         (tty_printer::special): New method.
6404         (tty_printer::end_page): Implement it.
6406         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
6407         * src/roff/troff/node.cc (special_node::special_node): Add parameter
6408         to set `no_init_string'.
6409         (special_node::tprint_start): Use it.
6410         (special_node::same, special_node::copy): Updated.
6411         (special_node::ends_sentence): New method.
6412         (troff_output_file::start_special): Add parameter to include
6413         inititialization of special conditionally.
6415         * src/roff/troff/env.h (environment): New member `underline_spaces'.
6416         * src/roff/troff/env.cc (do_underline_special): New function.
6417         (environment::set_font): Use it.
6418         (do_underline): Use it.  This was `underline()'.
6419         (underline): Call `do_underline()'.
6420         (continuous_underline): New function which calls `do_underline()'.
6421         (environment::newline): Use `do_underline_special()'.
6422         (init_env_requests): Updated.
6424         * NEWS, man/troff_out.man: Updated.
6426 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
6428         * font/devutf8/R.proto: Fix code of 'shc'.
6430 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
6432         Many fixes.  Diag lists can now be nested also; additionally,
6433         `-compact' and `-offset' are supported.
6435         * tmac/doc.tmac (doc-have-indent): Replaced with ...
6436         (doc-list-have-indent-stackXXX): A new register stack.
6437         (doc-have-diag-list): Removed.
6438         (Bl): Use `doc-list-have-indent-stackXXX'.
6439         (El): Updated.
6440         (doc-diag-list): Use `doc-compact-list-stackXXX'.
6441         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
6442         (doc-set-vertical-and-indent): Ditto.
6443         (doc-next-list-depth): Removed.
6444         (doc-increment-list-stack): Updated.
6445         (doc-decrement-list-stack): Use `doc-list-depth' instead of
6446         `doc-next-list-depth'.
6447         (doc-end-list, doc-end-column-list): Don't use
6448         `doc-increment-list-stack'.
6449         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
6450         (doc-save-global-vars, doc-restore-global-vars): Updated.
6451         * tmac/doc-common: Updated.
6452         * tmac/groff_mdoc.man: Updated.
6453         * NEWS: Fix typo.
6455 2001-04-02  Werner LEMBERG  <wl@gnu.org>
6457         * src/devices/grotty/grotty.man: Fix grammatical error.
6459 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
6461         Remove .Ld from mdoc package; replace it with special handling of
6462         `...'.
6464         * tmac/doc-common: Remove `Ld' register.
6465         Uncomment `doc-volume-ds-*' strings.
6466         Remove `doc-operating-system-default'.
6467         (Os): Updated.
6468         * tmac/doc-syms (Ld): Removed.
6469         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
6470         `...' specially.
6471         * NEWS: Updated.
6473         * tmac/groff_mdoc.man: Many fixes and updates.
6475 2001-03-29  Werner LEMBERG  <wl@gnu.org>
6477         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
6478         Bond <tkb@tkb.mpl.com>.
6479         * tmac/www.tmac: Save compatibility mode.
6481 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
6483         * tmac/groff_mdoc.man: Many fixes.
6485 2001-03-28  Werner LEMBERG  <wl@gnu.org>
6487         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
6488         isn't recognized.
6490 2001-03-27  Werner LEMBERG  <wl@gnu.org>
6492         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
6493         diversion.  This fixes overlong tags.
6495 2001-03-26  Werner LEMBERG  <wl@gnu.org>
6497         * doc/groff.texinfo: Fixed and improved documentation of fonts.
6498         * tmac/doc-syms: Fix error messages.
6499         * tmac/an-old.tmac: Remove incorrect double backslashes.
6501 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
6503         * tmac/Makefile.sub: Strip mdoc.local also
6504         * tmac/strip.sed: Fixed.
6506 2001-03-24  Werner LEMBERG  <wl@gnu.org>
6508         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
6509         selecting the font size.
6510         * tmac/groff_mdoc.man, NEWS: Document it.
6512 2001-03-23  Werner LEMBERG  <wl@gnu.org>
6514         * src/roff/troff/div.cc (save_vertical_space): Add default argument
6515         to `sv' request.
6516         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
6517         argument to restore previous font family.
6518         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
6520         * doc/groff.texinfo: More fixes and additions (mainly for font
6521         manipulating commands).
6523         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
6524         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
6525         * tmac/Makefile.sub, NEWS: Updated.
6527 2001-03-23  Werner LEMBERG  <wl@gnu.org>
6529         Replaced mdoc implementation.  The new version is `state of the
6530         art', using almost all new features of groff 1.17 -- it won't run
6531         with older versions.
6533         * tmac/doc.tmac: Completely rewritten.
6534         * tmac/doc-common: Ditto.
6535         * tmac/doc-nroff: Ditto.
6536         * tmac/doc-ditroff: Ditto.
6537         * tmac/doc-syms: Ditto.
6538         * tmac/mdoc.local: New file.
6539         * tmac/groff_mdoc.samples.man: Replaced with ...
6540         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
6541         * tmac/strip.sed: Updated.
6542         * tmac/Makefile.sub: Updated.
6543         * INSTALL: Updated.
6545         * tmac/groff_man.man: Add `man.local' to the FILES section.
6547 2001-03-22  Werner LEMBERG  <wl@gnu.org>
6549         * doc/groff.texinfo: Added many @noindent.
6550         Replaced @end_Example -> @endExample.
6551         Added info whether registers are r/o.
6552         Many other additions and fixes.
6554 2001-03-21  Werner LEMBERG  <wl@gnu.org>
6556         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
6557         in makeinfo of texinfo 4.0) to be used in @Def* macros.
6558         Improved @Def* macros: Now the exact syntax of request, register,
6559         and escapes is shown.
6560         Added macros for parentheses and brackets to be used in @Def*.
6561         Many fixes and improvements of the documentation.
6563 2001-03-20  Werner LEMBERG  <wl@gnu.org>
6565         * doc/groff.texinfo: Added new index: `st' (for strings).
6566         Added macros @Defstr(x).
6567         Added macro @Example (adding @group).
6568         Other minor improvements.
6570 2001-03-19  Werner LEMBERG  <wl@gnu.org>
6572         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
6573         `rq' for requests.  `fn' is no longer used.
6574         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
6575         Removed @Deffn(x).
6577         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
6578         number with name of man page.
6580 2001-03-19  Larry Kollar  <kollar@alltel.net>
6582         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
6583         consistency.
6585 2001-03-19  Werner LEMBERG  <wl@gnu.org>
6587         * man/groff_font.man: Document `prepro', `postpro', and `print'.
6588         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
6589         * src/devices/grohtml/grohtml.man: Fixing typos.
6591 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
6593         * tmac/s.tmac (@IP): Pass `.ip' html tag.
6594         * tmac/groff_mwww.man: Remove .LINE macro
6595         * tmac/www.tmac (LINE): Add `.ti'.
6597         * src/devices/grohtml/post-html.cc (html_printer): New member
6598         `indent'.
6599         (html_printer::emit_raw): Use it.
6600         (html_printer::do_linelength): Ditto.
6601         (html_printer::do_pageoffset): Ditto.
6602         (html_printer::do_indentation): Ditto.
6603         (html_printer::do_tempindent): Ditto.
6604         (html_printer::do_break): Ditto.
6605         (html_printer::begin_page): Ditto.
6606         (html_printer::do_indentedparagraph): New function.
6607         (html_printer::troff_tag): Handle `.ip'.
6608         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
6609         Add `<td width=...>' handling.
6610         (html_text::do_table): Add parameter.
6611         (html_text::do_indent): Updated.
6612         * src/devices/groohtml/html-text.h: Updated.
6614 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
6616         Introduced simple html tables to implement indentation.
6618         * src/devices/grohtml/html.h (word, word_list): New structures.
6619         (simple_output): Use it.
6620         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
6621         (html_printer): Improve indentation handling.
6622         (html_printer::emit_raw): Set `in_table' element.  Handle
6623         indentation if set.
6624         (html_printer::write_header): Move conditional downwards.
6625         Don't allow whitespace in tags.
6626         (html_printer::do_linelength): Handle line length and indentation
6627         conditionally.
6628         (html_printer::do_pageoffset): Handle indentation conditionally.
6629         (html_printer::do_indentation): Ditto.
6630         (html_printer::do_tempindent): New function member.
6631         (html_printer::do_fill): Take care of indentation.
6632         (html_printer::do_flush): Finish table.
6633         (html_printer::do_links): Ditto.
6634         (html_printer::do_break): New function for handling `.br' and `.ti'.
6635         (html_printer::troff_tag): Use it.
6636         Handle `.ti'.
6637         (html_printer::flush_globs): Fix.
6638         (html_printer::flush_page): Finish table.
6639         (html_printer::html_printer): Fix error message.  Set up
6640         `linelength'.
6641         (html_printer::add_to_sbuf): Remove special handling of character
6642         code 255.
6643         (to_unicode): Remove `stop()'.
6644         (html_printer::write_title): Cleanup.
6645         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
6646         (html_printer::~html_printer): Flush text and end the line.
6647         Use `put_string()'.
6648         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
6649         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
6650         emission of tags.
6651         (html_text::start_tag): Disable newlines.
6652         (html_text::table_is_void): New function.
6653         (html_text::issue_table_begin): Ditto.
6654         (html_text::issue_table_end): Ditto.
6655         (html_text::push_para): Better table handling.
6656         (html_text::do_indent): New function.
6657         (html_text::do_table): Ditto.
6658         (html_text::done_table): Ditto.
6659         (html_text::do_tt): Handle PRE_TAG.
6660         (html_text::is_in_table): New function.
6661         (html_text::check_emit_text): Handle tables.
6662         (html_text::do_emittext): Use `nl()'.
6663         (html_text::do_para): Handle table.
6664         (html_text::remove_def): New function.
6665         * src/devices/grohtml/output.cc (word, word_list): Implement
6666         methods.
6667         (simple_output::end_line): Flush last word.
6668         (simple_output::simple_comment): Ditto.
6669         (simple_output::begin_comment): Recoded.
6670         (simple_output::end_comment): Ditto.
6671         (simple_output::comment_arg): Removed.
6672         (simple_output::check_newline): Improve test and flush last word.
6673         (simple_output::space_or_newline): Improved.
6674         (simple_output::write_newline): Replaced with...
6675         (simple_output::nl): This.
6676         (simple_output::put_raw_char): Flush last word.
6677         (simple_output::check_space): Removed.
6678         (simple_output::put_translated_string): Ditto.
6679         (simple_output::put_string): Simplified.
6680         (simple_output::put_number): Updated.
6681         (simple_output::put_float): Ditto.
6682         (simple_output::put_symbol): Removed.
6683         (simple_output::enable_newlines): Add `check_newline()'.
6684         (simple_output::flush_last_word): New function.
6686         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
6687         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
6689         * tmac/s.tmac (@PP, @IP): Add html conditional code.
6690         * tmac/an-old.tmac (TP): Ditto.
6692 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
6694         * mdate.sh: Make it POSIX compliant.
6696 2001-03-09  Werner LEMBERG  <wl@gnu.org>
6698         Added the `return' request to end a macro immediately.  It simply
6699         pops iterators from the input stack until a macro iterator is found.
6701         * src/roff/troff/input.cc (input_iterator::is_macro,
6702         macro_iterator::is_macro): New member.
6703         (input_return_boundary): New class to signal an immediate return
6704         to while_request().
6705         (input_stack::add_return_boundary, input_stack::is_return_boundary):
6706         New functions.
6707         (input_stack::clear): Use it.
6708         (input_stack::pop_macro): New function.
6709         (while_request): Use `is_return_boundary()'.
6710         (return_macro_request): New function.
6711         (init_input_requests): Use it.
6713         * src/roff/troff/TODO: Updated.
6714         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6716 2001-03-08  Werner LEMBERG  <wl@gnu.org>
6718         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
6719         cleanup.
6721 2001-03-07  Werner LEMBERG  <wl@gnu.org>
6723         Make `\B' more rigid.
6725         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
6726         parameter.
6727         (get_number_rigidly): New function.
6728         * src/roff/troff/input.cc (do_expr_test): Use it.
6729         * src/roff/troff/token.h: Updated.
6731         * src/roff/troff/request.h: Fix typo (init_html_request ->
6732         init_markup_request).
6734 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
6736         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
6737         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
6738         are now `.begin', `.end', `.image'.
6740         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
6741         (html_printer::add_to_sbuf): Changing type of `code' parameter.
6742         Use add_char_to_sbuf().
6743         (to_unicode): New function.
6744         (char_translate_to_html): Changing type of `ch' parameter.
6745         Use `to_unicode()'.
6746         (html_printer::~html_printer): Comment out doctype string.
6747         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
6748         instead of `.html-end'.
6749         (write_start_image): Use `.begin' and `.image' instead of
6750         `.html-begin' and `.html-image'.
6751         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
6752         (html_begin): Renamed to ...
6753         (begin): This.
6754         (html_end): Renamed to ...
6755         (end): This.
6756         (html_image): Renamed to ...
6757         (image): This.
6758         (init_html_requests): Renamed to ...
6759         (init_markup_requests): This.
6760         * tmac/www.tmac: Updated.
6762 2001-02-28  Bram  <bram@avontuur.org>
6764         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
6765         constructor.
6767 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
6769         * doc/meref.me: Fixing some typos.
6771 2001-02-16  Werner LEMBERG  <wl@gnu.org>
6773         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
6774         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
6775         * src/roff/troff/node.h: Updated.
6777 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
6779         * tmac/groff_tmac.man: Fix typo.
6781 2001-02-16  Werner LEMBERG  <wl@gnu.org>
6783         Fixing a bug which prevented proper end-of-sentence recognition
6784         between an `unformatted' box and the following text.  As a
6785         consequence, vertical line distances are no longer preserved in
6786         boxes after a call to `.unformat' -- because boxes aren't
6787         line-oriented (contrary to diversions), this doesn't make sense
6788         anyway.
6790         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
6791         value.
6792         (vertical_size_node::set_unformat_flag): New method.
6793         * src/roff/troff/node.hh: Updated.
6794         * src/roff/troff/input.cc (word_space_node::reread,
6795         hmotion_node::reread): Reset `unformat' flag after usage.
6796         (unformat_macro): Append only if `set_unformat_flag()' returns
6797         non-zero.
6798         * src/roff/troff/troff.man: Updated.
6800 2001-02-15  Werner LEMBERG  <wl@gnu.org>
6802         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
6803         documentation of `asciify' and `unformat' requests.
6805 2001-02-13  Werner LEMBERG  <wl@gnu.org>
6807         Redesigned the `unformat' request.  It is no longer connected with
6808         `asciify' but rather uses new `reread()' methods if the `unformat'
6809         flag is set.  Additionally, the handling of space characters after
6810         unformatting has been fixed so that they retain their width.
6812         * src/roff/troff/node.h (width_list): New structure to store
6813         original widths of spaces.
6814         (node): Added `unformat' member.
6815         Replaced `num_spaces' variable with `orig_width' list.
6816         * src/roff/troff/node.cc (*node::asciify,
6817         asciify_reverse_node_list): Removed `unformat_only' flag and related
6818         code.
6819         (word_space_node::asciify, word_space_node::word_space_node): Use
6820         `orig_width'.
6821         (word_space_node::~word_space_node): New destructor.
6822         (word_space_node::copy): Updated to handle `orig_width'.
6823         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
6824         (*node::merge_space): Update `orig_width' list if necessary.
6825         (*node::set_unformat_flag): New methods to set the `unformat' flag.
6826         * src/roff/troff/enc.cc (environment::space_newline): Use
6827         `width_list'.
6828         (environment::space): Added method to handle space width and
6829         sentence space width as parameters.  Use `width_list'.
6830         (environment::make_tab_node): Updated.
6831         * src/roff/troff/env.h: Updated.
6832         * src/roff/troff/input.cc (word_space_node::reread,
6833         unbreakable_space_node::reread, hmotion_node::reread): New methods
6834         to handle nodes specially if `unformat' flag is set.
6835         (do_asciify_macro): Renamed back to ...
6836         (asciify_macro): This.
6837         (unformat_macro): New implementation to simply set the `unformat'
6838         flag.
6840         * MORE.STUFF: Added more info about deroff.
6842 2001-02-08  Werner LEMBERG  <wl@gnu.org>
6844         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
6845         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
6846         and `add_self()' methods to avoid hyphenation.  For example, the
6847         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
6848         soft hyphen after `foo'.  Now the hyphen list is correctly
6849         `foo<ignore><ignore>bar'.
6851 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
6853         * tmac/groff_tmac.man: Fix `BIR' macro.
6855 2001-02-04  Werner LEMBERG  <wl@gnu.org>
6857         A new escape sequence `\:', inserting a zero-width break point.
6859         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
6860         * src/roff/troff/input.cc (get_copy, token::next, asciify):
6861         Implement it.
6862         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
6863         method.
6864         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
6865         and `asciify()' methods.
6866         * src/roff/troff/node.cc (space_node::space_node): Updated.
6867         (space_node::asciify): Handle `was_escape_colon'.
6868         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6870         Handle `\~' similar to other comparable requests.
6872         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
6873         label.
6874         (token::next): Move creation of an unbreakable_space_node to...
6875         (token::add_to_node_list): Here.
6877         Fix a bug which sometimes prevented hyphenation of words connected
6878         with `\~' or `\ ' (and other escape sequences handled as
6879         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
6880         (after a call to the `unformat' request).
6882         * src/roff/troff/env.h (environment::possibly_break_line,
6883         environment::hyphenate_line): Introducing `start_here' parameter.
6884         * src/roff/troff/env.cc (environment::space_newline,
6885         environment::space): Use it.
6886         (environment::possibly_break_line, environment::hyphenate_line):
6887         Implement it.
6888         * src/roff/troff/input.cc (process_input_stack): Use it.
6889         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
6890         space_char_hmotion_node, overstrike_node): Add
6891         `get_hyphenation_type()' method.
6892         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
6893         if `unformat_only' is active.
6895 2001-01-30  Werner LEMBERG  <wl@gnu.org>
6897         Implemented new read-only number register `.linetabs' which
6898         returns 1 if in line-tabs mode, 0 otherwise.
6900         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
6901         * src/roff/troff/env.cc (get_line_tabs): New function.
6902         (init_env_requests): Use it.
6903         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6905         * VERSION, REVISION: Changing to 1.17.0.
6907 2001-01-28  Werner LEMBERG  <wl@gnu.org>
6909         Fixed a bug which prevented hyphenation of words which are finished
6910         with `\)'.
6912         * src/roff/troff/token.h (token): Add enum type
6913         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
6914         * src/roff/troff/input.cc (token::next, token::description,
6915         get_line_arg, token::add_to_node_list, token::process): Use it.
6917 2001-01-27  Werner LEMBERG  <wl@gnu.org>
6919         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
6920         * src/roff/troff/div.cc (do_divert): Use it.
6922         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
6924 2001-01-25  Werner LEMBERG  <wl@gnu.org>
6926         Adding the `linetabs' request.  If set, tab distances are not
6927         computed relative to the input line but relative to the output line.
6929         * src/roff/troff/env.h (environment): New member `line_tabs'.
6930         * src/roff/troff/env.cc (line_tabs_request): Implement request.
6931         (environment::environment, environment::copy): Updated.
6932         (environment::distance_to_next_tab): Use `line_tabs'.
6933         (init_env_requests): Register request.
6934         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
6935         fixes.
6937 2001-01-24  Werner LEMBERG  <wl@gnu.org>
6939         Introducing a new read-only register `.int' which is set to a
6940         positive value if the last output line is interrupted (i.e., if it
6941         contains `\c').
6943         * src/roff/troff/env.cc (init_env_requests): Add it.
6944         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6946 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
6948         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
6949         * src/preproc/html/pre-html.cc (findPrefix): New function which
6950         generates the troff executable name via the system prefix.
6951         * src/preproc/eqn/main.cc: Modified warning message.
6953 2001-01-23  Werner LEMBERG  <wl@gnu.org>
6955         troff's `box' and `boxa' requests didn't preserve temporary
6956         indentation.
6958         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
6959         `saved_target_text_length' members.
6960         * src/roff/troff/div.cc (do_divert): Use them.
6962         Tabs (but not yet leaders and fields) are now handled correctly by
6963         `asciify' request.
6965         * node.h (hmotion_node): Add field `was_tab'.
6966         * env.cc (environment::make_tab_node): Set it.
6967         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
6969         Added new request `unformat' which will, contrary to `asciify',
6970         preserve font information after unformatting (i.e., only nodes
6971         dealing with horizontal space are converted back to input
6972         characters).
6974         * input.cc (asciify_macro): Renamed to ...
6975         (do_asciify_macro): this, having a new parameter `unformat_only'.
6976         (asciify_macro, unformat_macro): New; using do_asciify_macro.
6977         (init_input_requests): Added `unformat'.
6978         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
6979         parameter to control asciification process.
6980         * node.h (*_node::asciify): Ditto.
6981         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6983 2001-01-20  Werner LEMBERG  <wl@gnu.org>
6985         * doc/groff.texinfo: Minor improvement of `.in' documentation.
6987 2001-01-18  Werner LEMBERG  <wl@gnu.org>
6989         * tmac/ps.tmac: Remove call of psold.tmac.
6990         * tmac/psold.tmac: Comment updated.
6991         * tmac/psnew.tmac: Removed since no longer needed.
6992         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
6994         * font/devutf8/R.proto: Adding `shc' glyph.
6995         * font/devutf8/NOTES: Updated.
6997         * test-groff: Updated.
6999 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7001         First cut of the new html device driver.  Changes to pre-html and
7002         the new grohtml are too numerous to be documented here.
7004         Stuff related to `html' has been renamed to `html-old' and `html2'
7005         stuff has been renamed to `html' (including directories).  The new
7006         html device driver is therefore invoked as `-Thtml'.
7008         Added new `\O' escape to suppress output (needed by html driver).
7010         Added functions and code to pass info about input-level commands
7011         (`.in', `.fl', etc.) to html driver.
7013         Three new functions (.html-begin, .html-end, and .html-image) for
7014         better html handling: `html-begin' will execute the remaining line
7015         if at the outermost nesting level, increasing an internal counter.
7016         `html-end' does the same but decreases the internal counter.
7017         `html_image' puts its arguments into a special node (suppress_node)
7018         to define an image region.
7020         The `output' request has been removed.
7022         * tmac/html-tags.tmac: Removed.
7023         * tmac/arkup.tmac: Updated and renamed to ...
7024         * tmac/www.tmac: New file.
7025         * tmac/markup.tmac Updated and renamed to ...
7026         * tmac/mwww.tmac: New file.
7027         * tmac/Makefile.sub: Updated.
7028         * tmac/an-old.tmac: Updated.
7029         * tmac/eqnrc: Updated.
7030         * tmac/groff_man.man
7031         * tmac/groff_markup.man: Updated and renamed to ...
7032         * tmac/groff_mwww.man: New file.
7033         * tmac/groff_tmac.man: Updated.
7034         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
7035         * tmac/html.tmac: Updated and renamed from html2.tmac.
7036         * tmac/pspic.tmac: Updated html support.
7037         * tmac/s.tmac: Added html output support.
7038         * tmac/troffrc, tmac/troffrc-end: Updated.
7040         * Makefile.in, doc/Makefile: Updated.
7041         * doc/groff.texinfo: Added info about new `\O' escape.
7042         * doc/homepage.ms: Use `MAILTO' macro.
7044         * font/devhtml/DESC.proto: Add `C' font.
7045         * font/devhtml/Makefile.sub: Updated.
7046         * font/devhtml/R.proto: Minor fixes.
7047         * font/devhtml-old/Makefile.sub: Updated.
7049         * src/devices/grohtml-old/Makefile.sub: Updated.
7051         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
7052         method.
7053         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
7054         graphic_start): Add `inline' parameter.  Update.
7055         (html_end_suppress, graphic_end): Update.
7057         * src/include/html-strings.h: New file.
7058         * src/include/htmlindicate.h: Comments updated.
7059         * src/include/printer.h: Updated.
7061         * src/preproc/eqn/main.cc (do_file, main): Updated.
7062         * src/preproc/pic/troff.cc (troff_output::start_picture,
7063         troff_output::finish_picture): Updated.
7064         * src/preproc/tbl/main.cc (process_input_file): Updated.
7066         * src/roff/groff/groff.cc (main): Updated.
7067         Pass device arguments to predrivers also.
7068         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
7069         * src/roff/troff/env.h (environment): Updated.
7070         New elements `need_eol' and `ignore_next_eol' (for html output).
7071         * src/roff/troff/env.cc (environment::environment): Add initializers
7072         for `need_eol' and `ignore_next_eol'.
7073         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
7074         functions.
7075         (point_size, fill, no_fill, center, right_justify, line_length,
7076         indent, temporary_indent, break_request, handle_tab): Use
7077         `add_html_tag()'.
7078         (set_tabs): Use `add_html_tag_tabs()'.
7079         (environment::add_html_tag): Updated.
7080         (environment::do_break): Updated.
7081         * src/roff/troff/div.cc (space_request, flush_output): Use
7082         `environment::add_html_tag()'.
7083         * src/roff/troff/input.cc: Updated.
7084         New variable `html_level' to indicate nested `html-begin' requests.
7085         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
7086         (non_interpreted_char_node, token_node, non_interpreted_node): Add
7087         `force_tprint()' method.
7088         (token::next): Handle `\O'.
7089         (do_suppress): Implement it.
7090         (html_begin, html_end, html_image): New functions.
7091         (init_output_requests): Renamed to ...
7092         (init_html_requests): this.
7093         (main): Use it.
7094         (macro::append_str, macro::append_unsigned, macro::append_int): New
7095         methods.
7096         New variable `output_low_mark_miny' to limit minimal value of y.
7097         (reset_output_registers): Use it.
7098         (output_request): Removed.
7099         (get_output_registers): New function.
7100         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
7101         (*_node): Added `force_tprint()' if necessary.
7102         (special_node): New elements `tf' and `get_tfont()'.
7103         (suppress_node): New class.
7104         * src/roff/troff/node.cc:
7105         New global variables `image_no' and `suppress_start_page'.
7106         (real_output_file): New method `is_on()'.
7107         (troff_output_file): New method `start_special(tfont)'.
7108         (troff_output_file::really_print_line): Use `tprint' conditionally.
7109         (real_output_file::print_line): Updated.
7110         (real_output_file::on): Updated.
7111         (*_node): Added `force_tprint()'.
7112         (special_node::special_node): Initializer updated.
7113         (special_node::same, special_node::copy, special_node::tprint_start):
7114         Updated.
7115         (get_reg_int, get_reg_str): New functions.
7116         (suppress_node::*): New methods.
7117         New global variables last_position, last_image_filename;
7118         (min): New inline function.
7119         * src/roff/troff/reg.h, src/roff/troff/request.h,
7120         src/roff/troff/troff.h: Updated.
7122 2001-01-13  Werner LEMBERG  <wl@gnu.org>
7124         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
7125         documentation of `asciify' request.
7127 2001-01-12  Werner LEMBERG  <wl@gnu.org>
7129         * src/roff/troff/input.cc: Move definition of special characters
7130         like `ESCAPE_TILDE' to ...
7131         * src/roff/troff/input.h: New file.
7132         * src/roff/troff/Makefile.sub (HDRS): Add it.
7134         Extending the .asciify request to `unformat' space characters also.
7136         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
7137         to count input space characters.
7138         Update constructors to take care of it.
7139         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
7140         `ESCAPE_SPACE' instead of normal space.
7141         (word_space_node::asciify): New method.
7142         (unbreakable_space_node::asciify): New method.
7143         (word_space_node::merge_space): New method.
7144         * src/roff/troff/env.cc (environment::space_newline,
7145         environment::space): Add code to initialize `num_spaces' (using the
7146         constructor of `word_space_node').
7147         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7148         Document it.
7150 2001-01-09  Werner LEMBERG  <wl@gnu.org>
7152         * man/groff_char.man: Use table header traps only conditionally.
7154 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
7156         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
7158 2001-01-08  Werner LEMBERG  <wl@gnu.org>
7160         Introducing the `box' and `boxa' requests which are similar to
7161         `di' resp. `da' but omitting a partially filled line (which is
7162         restored after ending the diversion).
7164         * src/roff/troff/div.h (diversion): Add elements to save partially
7165         filled line.
7166         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
7167         partially filled line.
7168         (divert, divert_append): Updated.
7169         (box, box_append): New functions.
7170         (init_div_requests): Use them.
7171         * src/roff/troff/env.h (environment): do_divert() is now a friend.
7172         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7174         * doc/groff.texinfo: Fix documentation of `lf' request.
7176 2000-12-25  Werner LEMBERG  <wl@gnu.org>
7178         * src/roff/troff/troff.man, NEWS: Document `writem' request.
7180 2000-12-21  Werner LEMBERG  <wl@gnu.org>
7182         Ignore `ss' request if in compatibility mode.
7184         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
7185         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
7186         * src/roff/troff/env.cc (space_size): Use it.
7188         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
7189         `ss' request in nroff mode.
7191         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
7192         changes.
7194 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
7196         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
7198 2000-12-13  Werner LEMBERG  <wl@gnu.org>
7200         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
7201         * src/preproc/eqn/neqn.man: Small fixes and additions.
7203 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
7205         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
7206         Fixing typo.
7208         * src/preproc/eqn/neqn.man: New file.
7210         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
7211         negative' warning.
7213         * tmac/e.tmac: Add `T&' macro.
7214         Fix `indent cannot be negative' warning.
7215         * tmac/s.tmac: Fix `indent cannot be negative' warning.
7217 2000-12-07  Werner LEMBERG  <wl@gnu.org>
7219         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
7221 2000-12-06  Werner LEMBERG  <wl@gnu.org>
7223         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
7224         `alloca' symbol .
7226         * MORE.STUFF: Added info about deroff for djgpp.
7228         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
7229         documentation of -rcR switch.
7231 2000-12-03  Werner LEMBERG  <wl@gnu.org>
7233         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
7234         if -rcR=1 (which is now the default in nroff mode), a single, very
7235         long page is created instead of multiple pages: All `ne' and `wh'
7236         requests are put into conditionals; a new macro `an-end' is added to
7237         be called with `em'.
7239         Some other minor cleanups.
7241         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
7243 2000-12-02  Werner LEMBERG  <wl@gnu.org>
7245         Fixing a bug which prevented hyphenation in words followed
7246         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
7248         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
7249         Adding possibly_break_line().
7250         * src/roff/troff/env.h (environment): Make possibly_break_line()
7251         public.
7253         Make `\~' usable in .tr request.
7255         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
7256         (token): Add stretchable_space().
7257         * src/roff/troff/input.cc (token::next, token::delimiter,
7258         token::description, process_input_stack, do_translate,
7259         add_to_node_list, token::process): Use it.
7260         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
7261         for adjusting the space.
7262         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
7263         for stretchable space.
7264         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
7265         (make_node): Add code for stretchable space.
7266         * src/roff/troff/env.cc (environment::add_char): Use it.
7267         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
7268         (get_copy, token::next, transparent_translate, asciify): Use it.
7270         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
7271         doc/groff.texinfo: Updated.
7272         * man/groff.man: Small reorderings.
7274 2000-11-23  Werner LEMBERG  <wl@gnu.org>
7276         * NEWS: Fixes.
7277         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
7278         option.
7279         * src/roff/troff/input.cc (main): Add `config_macro_path' and
7280         `safer_macro_path' to -M option.
7281         * src/roff/troff/troff.man: Fixes.
7283 2000-11-22  Werner LEMBERG  <wl@gnu.org>
7285         Use safer path (except for config files) if -U isn't specified.  Add
7286         a special macro path (without home and current directory) for config
7287         files.  Add home directory to unsafe path for consistency.  Don't
7288         include the home directory in the font path.
7290         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
7291         `macro_path'.
7292         * src/include/macropath.h: Add `config_macrp_path'.
7293         * src/libs/libgroff/fontfile.cc: Fix font path.
7294         * src/roff/troff/input.cc (process_startup_file): Use
7295         `config_macro_path'.
7296         (main): Select unsafe path if -U is given.
7298         * src/preproc/eqn/main.cc (main): Fixing search path for
7299         configuration file.
7300         * src/preproc/eqn/eqn.man: Updated.
7302         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
7303         Updated.
7305         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
7306         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
7307         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7308         src/devices/grotty/grotty.man: Updated.
7310         * Makefile.in: Fix comments.
7312 2000-11-17  Werner LEMBERG  <wl@gnu.org>
7314         * tmac/safer.tmac: Empty file added (again) for compatibility
7315         reasons.
7316         * tmac/Makefile.sub: Updated.
7318 2000-11-16  Werner LEMBERG  <wl@gnu.org>
7320         * src/devices/grodvi/dvi.cc (main),
7321         src/devices/grohtml2/post-html.cc (main),
7322         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7323         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7324         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7325         (main), src/preproc/html2/pre-html.cc (main),
7326         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7327         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7328         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7329         (main), src/utils/hpftodit/hpftodit.cc (main),
7330         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
7331         (main), src/utils/lookbib/lookbib.cc (main),
7332         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
7333         (main): Use stdout for -v.
7334         * src/roff/groff/groff.cc (run_commands),
7335         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
7336         to make direct printing to stdout possible.
7337         * src/roff/groff/pipeline.h: Updated.
7339         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
7340         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
7341         * src/utils/afmtodit/afmtodit.man: Updated.
7343         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
7344         (version): New function.
7345         (usage): Updated.
7346         * src/utils/addftinfo/addftinfo.man: Updated.
7348         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
7349         Fixing copyright dates.
7351         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
7352         replacing it.
7354         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
7355         version_string.
7357         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
7359 2000-11-15  Werner LEMBERG  <wl@gnu.org>
7361         In all programs, make -v return immediately with exit status 0 to
7362         be compliant with the GNU standard.
7364         * src/devices/grodvi/dvi.cc (main),
7365         src/devices/grohtml2/post-html.cc (main),
7366         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7367         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7368         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7369         (main), src/preproc/html2/pre-html.cc (main),
7370         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7371         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7372         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7373         (main): Implement it.
7374         * NEWS: Updated.
7376         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
7377         and postprocessors to the -v option.
7379         * src/roff/grog/grog.pl: Implement -v.
7380         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
7381         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7383         * src/roff/nroff/nroff.sh: Implement -v.
7384         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
7385         * src/roff/nroff/nroff.man: Updated.
7386         
7387         * src/preproc/eqn/main.cc (main): Fix comment typo.
7389         * MORE.STUFF: Added info about djgpp port of grap.
7391 2000-11-14  Werner LEMBERG  <wl@gnu.org>
7393         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
7394         mode (or rather, implemented non-compatibility mode).
7395         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7397         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
7398         replacing it -- we don't find gxditview otherwise.
7399         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
7401         * src/preproc/pic/depend: Removed.  Unnecessary.
7403         Implemented dummy keyword `solid' in pic for compatibility with
7404         AT&T pic.
7406         * lex.cc (lookup_keyword): Added `solid'.
7407         * pic.y: Added SOLID with dummy rule.
7408         * pic.cc, pic_tab.h: Regenerated.
7409         * doc/pic.ms: Updated.
7411 2000-11-13  Werner LEMBERG  <wl@gnu.org>
7413         For security reasons, don't use the current directory but the home
7414         directory while searching and scanning troffrc and troffrc-end.
7415         Similarly, replace the current directory with the home directory
7416         in the font path.
7418         * Makefile.in (fontpath, tmacpath): Remove current directory.
7420         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
7421         two parameters `add_home' and `add_current'.
7422         (search_path::~search_path, search_path::command_line_dir,
7423         search_path::open_file): Remove tests for `dirs' being zero.
7424         * src/include/searchpath.h: Adjust.
7425         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
7426         `safer_macro_path'.
7427         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
7429         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
7430         * src/roff/troff/input.cc: Use `mac_path', initialized with
7431         `macro_path'.
7432         (process_startup_file): Set `mac_path' to `safer_macro_path'.
7433         * src/roff/troff/env.cc: Use `mac_path'.
7435         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
7437         * NEWS, man/roff.man, src/roff/troff/troff.man,
7438         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
7439         Updated.
7441 2000-11-12  Werner LEMBERG  <wl@gnu.org>
7443         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
7445         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
7446         * configure.in: Fix typo in comment.
7447         * configure: Regenerated.
7449         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
7450         copyright dates.
7452 2000-11-08  Werner LEMBERG  <wl@gnu.org>
7454         Add system tmac directory (/usr/local/lib/groff/site-tmac).
7456         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
7457         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
7458         $(systemtmacdir).
7459         Use @libdir@.
7460         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
7461         * tmac/Makefile.sub (install_data): Create
7462         $(systemtmacdir) and $(localtmacdir).
7463         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
7464         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
7465         NEWS, doc/groff.texinfo: Updated and minor fixes.
7467         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
7468         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
7469         $(systemtmacdir) since the wrapper files are platform-dependent.
7471 2000-11-01  Werner LEMBERG  <wl@gnu.org>
7473         * doc/groff.texinfo: Fix typo.
7475 2000-10-26  Werner LEMBERG  <wl@gnu.org>
7477         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
7478           tmac.doc.old -> doc-old.tmac
7479           tmac.an.old  -> an-old.tmac
7481         * tmac/tmac.*: Moved to ...
7482         * tmac/*.tmac: this.
7483         * tmac/man.local: Fix comment.
7484         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
7485         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
7486         Added some `FILES' sections.  More use of @...@ directives.  Other
7487         minor updates.
7488         * arch/djgpp/README, font/devutf8/NOTES: Updated.
7489         * doc/homepage.ms, doc/groff.texinfo: Updated.
7490         * man/groff.man, man/roff.man: Updated.
7491         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
7492         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7493         src/devices/grotty/grotty.man: Updated.
7494         * src/preproc/pic/pic.man: Updated.
7495         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
7496         instead of -mdoc.old.
7497         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
7498         * src/roff/nroff/nroff.man: Updated.
7499         * NEWS: Updated.
7501         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
7503         * tmac/mm.diff: Removed -- it has no use now since the mm package
7504         is part of groff.
7506         * tmac/*: Removed trailing spaces.
7508         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
7509         the tmac subdirectory also).
7511         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
7512         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
7513         stuff since it is no longer needed.
7515         * README, PROBLEMS: Updated.
7517 2000-10-25  Werner LEMBERG  <wl@gnu.org>
7519         Invert current behaviour: Search first FOOBAR.tmac, then
7520         tmac.FOOBAR.
7522         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
7523         (open_mac_file, macro_source): Implement it.
7524         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
7525         doc/groff.texinfo, NEWS: Document it.
7527         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
7528         Small documentation improvements.
7530         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
7531         subdirectory also).
7533         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
7535 2000-10-24  Werner LEMBERG  <wl@gnu.org>
7537         Add local tmac directory (groff/site-tmac).
7539         * Makefile.in: Add $(localtmacdir).
7540         (uninstall_dirs): Add $(localtmacdir).
7541         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
7542         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
7543         in $(localtmacdir).  Create $(localtmacdir).
7544         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
7545         Updated and minor fixes.
7547         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
7549         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
7551 2000-10-23  Werner LEMBERG  <wl@gnu.org>
7553         Move hyphen.us to tmac directory.
7555         * src/roff/troff/hyphen.us: Removed.
7556         * src/tmac/hyphen.us: Added.
7557         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
7559         Change installation structure for data files from .../groff/... to
7560         .../groff/<version><revision>/... to be conform with other GNU
7561         programs.
7563         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
7564         doc/Makefile: Implement it.
7565         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
7566         * configure: Updated.
7567         * arch/djgpp/README, font/devutf8/NOTES: Use it.
7568         * NEWS: Document it.
7569         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
7570         @MACRODIR@ instead of hard-coded directories.
7572 2000-10-22  Werner LEMBERG  <wl@gnu.org>
7574         Implement $GROFF_BIN_PATH environment variable (which defaults to
7575         $bindir) used for child programs of groff and similar wrappers.
7577         * gendefs.sh: Improve documentation.
7578         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
7579         src/preproc/eqn/Makefile.sub (neqn),
7580         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
7581         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
7582         $GROFF_BIN_PATH.
7583         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
7584         $GROFF_PATH__ (the latter for communication with troff).
7585         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
7586         set.
7587         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
7588         doc/groff.texinfo: Document it.
7590         * doc/groff.texinfo: Improve documentation of troff's -a option.
7592 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
7594         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
7595         non-intrusive eol marker.
7596         (troff_output_file::determine_line_limits): New function.
7597         (troff_output_file::draw): Use it.
7598         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
7599         output_pending_lines() instead of output_line().
7600         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
7601         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
7602         createImage): Small fixes.
7603         
7604 2000-10-14  Werner LEMBERG  <wl@gnu.org>
7606         Replace tmac.safer with a real secure solution.
7608         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
7609         system_request, pipe_output): Disable requests if in safer mode.
7610         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
7611         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
7612         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
7613         doc/groff.texinfo, src/roff/groff/groff.man,
7614         src/roff/troff/troff.man, arch/djgpp/README: Updated.
7616         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
7617         (resource_manager::output_prolog): Replace setenv() with putenv().
7619 2000-10-09  Werner LEMBERG  <wl@gnu.org>
7621         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
7622         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
7623         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
7624         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
7625         compilation errors with some compilers.  It seems that this code
7626         is no longer necessary -- if yes, it is easy to add some #ifdef's
7627         for that particular old-fashioned compiler.
7629         * MORE.STUFF: Added info about Meta-tbl.
7631         * doc/groff.texinfo: Added more info about `.if "..."..."'.
7633 2000-10-07  Werner LEMBERG  <wl@gnu.org>
7635         Adding a new escape sequence \B'...': If the string between
7636         the delimiters is a valid numeric expression, return the character
7637         `1', and `0' otherwise.  This is an analogon to \A.
7639         * src/roff/troff/input.cc (do_expr_test): Implement it.
7640         (token::next): Use it.
7641         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
7643         * tmac/tmac.trace: Made independent from escape character.
7645 2000-10-06  Werner LEMBERG  <wl@gnu.org>
7647         Adding a new request .dei: define indirect.  The first and second
7648         parameter of .dei are taken from string registers instead directly;
7649         this very special request is needed to make tmac.trace independent
7650         from the escape character (which might even be disabled).
7652         * src/roff/troff/input.cc (do_define_macro): Implement it.
7653         (define_macro_indirect): New function.
7654         (init_input_requests): Use it.
7656         Adding two requests .ecs and .ecr: Save and restore the escape
7657         character.  These two requests are needed to make tmac.trace
7658         independent from the escape character (which might even be
7659         disabled).
7661         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
7662         Implement it.
7663         (init_input_requests): Use it.
7665         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7667 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
7669         Adding a new option -P and new environment variable GROPS_PROLOGUE
7670         to grops, selecting a different prologue file (minor modifications
7671         by WL).
7673         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
7674         src/devices/grops/ps.cc (main): Implement it.
7675         * src/devices/grops/grops.man, NEWS: Document it.
7677 2000-09-22  Werner LEMBERG  <wl@gnu.org>
7679         * INSTALL: Add info about selecting paper format.
7681 2000-09-21  Werner LEMBERG  <wl@gnu.org>
7683         * src/roff/troff/input.cc (main): Fixing compiler warning.
7684         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
7685         strings.h from the former to the latter.
7686         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
7687         stuff from the former to the latter.
7689 2000-09-11  Werner LEMBERG  <wl@gnu.org>
7691         Implementing two new requests .tm1 and .tmc: The former is similar
7692         to .tm but can output leading spaces; its syntax is similar to
7693         defining a string, i.e., a `"' can be used to mark the beginning of
7694         the string to be written to stderr: `.tm1 " test'.  The latter is
7695         similar to .tm1 but doesn't write out a final newline character.
7697         * src/roff/troff/input.cc (terminal1, terminal_continue,
7698         do_terminal): New functions.
7699         (init_input_requests): Use them.
7700         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7702 2000-09-09  Werner LEMBERG  <wl@gnu.org>
7704         * tmac/groff_mdoc.samples.man: Small fixes.
7706 2000-09-08  Werner LEMBERG  <wl@gnu.org>
7708         * tmac/groff_mdoc.man: Fixing typo.
7710 2000-09-02  Werner LEMBERG  <wl@gnu.org>
7712         Implementing a .nop request which does nothing.
7714         * src/roff/troff/input.cc (nop_request): New function.
7715         (init_input_requests): Use it.
7716         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7718 2000-09-01  Werner LEMBERG  <wl@gnu.org>
7720         * doc/groff.texinfo: Added some comments.
7722 2000-08-30  Werner LEMBERG  <wl@gnu.org>
7724         * src/roff/troff/TODO: Updated.
7726 2000-08-25  Werner LEMBERG  <wl@gnu.org>
7728         * doc/groff.texinfo: Fix comment how to compile the DVI file.
7730 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
7732         * font/devps/generate/Makefile (SHELL): Define explicitly to
7733         "/bin/sh", for non-Unix platforms.
7734         (extraclean): Use a more portable "" quoting instead of a
7735         backslash (which doesn't work on DOS/Windows).
7736         
7737         * font/devlj4/generate/Makefile (extraclean): Ditto.
7739         * font/devdvi/generate/Makefile (extraclean): Ditto.
7741 2000-08-25  Werner LEMBERG  <wl@gnu.org>
7743         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
7744         src/roff/troff/troff.man: Document Eli's latest changes.
7746 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
7748         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
7749         macro file names of the form NAME.tmac as well as tmac.NAME.
7751 2000-08-25  Werner LEMBERG  <wl@gnu.org>
7753         * src/include/posix.h: Remove definition of FILENAME_MAX.
7755         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
7756         `sys_fatal' and `stop' function().
7758         * test-groff: Updated.
7760 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
7762         Added the new troff command .output <arg> to suppress output (while
7763         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
7764         registers (for passing the output dimensions to the output device).
7766         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
7767         parameter.
7768         * src/roff/troff/node.h, src/roff/troff/node.cc
7769         (troff_output_file::really_print_line,
7770         ascii_output_file::really_print_line,
7771         supress_output_file::really_print_line): Use `width' parameter.
7772         (troff_output_file::really_on, troff_output_file::really_off,
7773         output_file::on, output_file::off, real_output_file::on,
7774         real_output_file::off, real_output_file::really_on,
7775         real_output_file::really_off): New functions.
7776         (real_output_file:public output_file): New variable `output_on'.
7777         (real_output_file::begin_page, real_output_file::copy_file,
7778         real_output_file::transparent_char, real_output_file::print_line):
7779         Use it.
7780         (real_output_file::print_line): Use check_output_limits.
7781         * src/roff/troff/reg.h, src/roff/troff/request.h,
7782         src/roff/troff/input.cc (assign_registers): New function to remove
7783         two `goto's.
7784         (do_ps_file): Use it.
7785         (check_output_limits, reset_output_registers, output_request,
7786         init_output_requests): New functions.
7787         (init_input_requests): Updated.
7789         Added new grohtml2 device and html2 preprocessor (coding
7790         not yet finished) which will eventually replace grohtml.
7792         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
7793         Updated.
7794         * src/include/htmlindicate.h, src/include/htmlindicate
7795         (html_begin_suppress, html_end_suppress): New functions.
7796         * src/preproc/tbl/main.cc: Use it.
7797         * src/roff/groff/groff.cc: Add support for html2 device (which will
7798         automatically invoke the html2 preprocessor).
7799         * src/roff/troff/input.cc (is_html2): New variable.
7800         * src/roff/troff/troff.h, src/roff/troff/env.h,
7801         src/roff/troff/env.cc (environment::add_html_tag): New function
7802         (uses `is_html2').
7803         (environment::do_break): Use it.
7804         * font/devhtml2/*: New files.
7805         * src/devices/grohtml2: New device.
7806         * src/preproc/html2: New preprocessor.
7807         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
7809 2000-08-23  Werner LEMBERG  <wl@gnu.org>
7811         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
7813 2000-08-22  Werner LEMBERG  <wl@gnu.org>
7815         * src/include/lib.h: Provide a fix for IRIX to not include
7816         groff-getopt.h.
7818 2000-08-18  Werner LEMBERG  <wl@gnu.org>
7820         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
7821         since some non-GNU sed programs can't handle null regexps.
7822         * configure, src/preproc/eqn/Makefile.sub,
7823         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
7825         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
7826         bug (string.h and strings.h are both needed according to latest
7827         POSIX standard).
7829         * MORE.STUFF: Added info about unroff and troffcvt.
7831 2000-08-08  Werner LEMBERG  <wl@gnu.org>
7833         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
7834         used before -ms.
7836         * tmac/tmac.man.old: Remove unused number register.
7838         * tmac.doc: Minor documentation fix.
7840 2000-08-07  Paul Eggert  <eggert@twinsun.com>
7842         * src/roff/groff/pipeline.c (is_system_shell):
7843         Fix typo: "monocased_shell" no longer exists.
7845 2000-08-07  Paul Eggert  <eggert@twinsun.com>
7847         Remove FILENAME_MAX limits.
7849         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
7850         that the argument length is less than FILENAME_MAX.
7851         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
7852         Use struct hack to allocate and free file name.
7853         (struct xtmpfile_list): fname is now part of the structure,
7854         not a pointer to another string.
7856 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
7858         * src/include/posix.h: Add a default value for FILENAME_MAX.
7860 2000-08-06  Paul Eggert  <eggert@twinsun.com>
7862         Add support for new BSD-style man pages (with ".Dd" instead of
7863         ".TH"), so that "groff -man" understands both styles, even
7864         when running "groff -man" on a host whose system man page
7865         macros don't support ".Dd".
7867         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
7868         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
7869         in case the system man macros don't define Dd or TH.
7871         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
7872         * tmac/tmac.an: New one-line file.
7873         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
7875 2000-08-06  Werner LEMBERG  <wl@gnu.org>
7877         * src/roff/troff/troff.man: Fixing typos.
7879 Version 1.16.1 released
7880 =======================
7882 2000-07-31  Werner LEMBERG  <wl@gnu.org>
7884         Preparing release 1.16.1.
7886         * REVISION: Revision number set to 1.
7887         * MORE.STUFF: Added info about port to DOS.
7888         * NEWS, win32-diffs: Updated.
7890         * src/include/nonposix.h: Remove first line -- this file is used
7891         in C also.
7893         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
7894         link to it.
7896 2000-07-30  Werner LEMBERG  <wl@gnu.org>
7898         * doc/texinfo.tex: Update to latest version.
7900 2000-06-28  Paul Eggert  <eggert@twinsun.com>
7902         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
7903         commands that fail.  Don't assume that "export a=b" is valid shell
7904         syntax.  This is needed for Solaris 2.5.1.
7906         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
7907         comment about missing Solaris headers.
7909         * PROBLEMS: Add section about problems with Sun Make and VPATH.
7911 2000-06-25  Werner LEMBERG  <wl@gnu.org>
7913         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
7914         SET_BINARY().
7916         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
7918         * win32-diffs: Updated.
7919         * README.WIN32: Added CRs to make all Windows editors happy.
7921         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
7922         src/roff/groff/pipeline.c).
7924 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
7926         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
7927         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
7929 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
7931         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
7932         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
7933         are binary files.
7934         (main): Support non-Posix systems with several different styles of
7935         slash characters in file names.
7937         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
7938         (main) [SET_BINARY]: Switch stdin into binary mode.
7940         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
7941         (main): Support file names with several possible slash-type
7942         characters, as given by DIR_SEPS[] in nonposix.h.
7943         (main) [__MSDOS__]: If renaming the temporary index file fails
7944         because it has more than one dot in its trunk, replace the dot
7945         with an underscore and try again.
7946         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
7947         Newline.
7948         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
7950         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
7951         (File::File): Open the input file in binary mode.  Strip CR
7952         characters from each CR-LF pair.
7953         (xbasename): Support file names with several possible slash-type
7954         characters, as given by DIR_SEPS[] in nonposix.h.
7956         * src/include/Makefile.sub (HDRS): Add nonposix.h.
7958         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
7959         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
7960         [!_POSIX_VERSION]: Define for traditional Unix systems.
7961         (real_output_file::real_output_file): Remove the MSVC-specific
7962         call to popen, use instead POPEN_WT, appropriately defined on
7963         nonposix.h.  #include nonposix.h.
7964         (real_output_file::~real_output_file): Remove the MSVC-specific
7965         call to pclose, a suitable macro is now defined on nonposix.h.
7966         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
7967         and WEXITSTATUS instead of assuming traditional Unix
7968         interpretation of the status returned by pclose.
7970         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
7971         call to popen, use POPEN_RT instead (appropriately defined on
7972         nonposix.h).  #include nonposix.h.
7973         (ps_bbox_request): Open the PostScript file in binary mode.
7974         Close the file after processing it.
7975         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
7976         nonposix.h.
7978         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
7979         A version of run_pipeline that doesn't use `fork'.
7980         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
7981         (system_shell_name, system_shell_dash_c)
7982         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
7983         the ugliness of testing DOS/Windows file names for equality, and
7984         support both stock shells and ports of Unix shells.
7986         * src/roff/groff/groff.cc: #include nonposix.h.
7987         (BSHELL): Definition moved to nonposix.h.
7988         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
7989         instead of a literal "-c".
7990         (xbasename): Support file names with several possible slash-type
7991         characters, as given by DIR_SEPS[] in nonposix.h.
7992         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
7993         of literal strings.
7995         * src/preproc/soelim/soelim.cc: #include nonposix.h.
7996         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
7998         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
7999         pic_tab.h.
8001         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
8003         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
8004         eqn_tab.h.
8006         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
8008         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
8009         P_tmpdir is defined, use it instead of the literal "/tmp".
8010         (remove_tmp_files, add_tmp_file): New functions.
8011         (xtmpfile): Record temporary files and register an atexit function
8012         to delete them explicitly, instead of relying on the OS to do
8013         that, which doesn't work on non-Unix systems.
8015         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
8016         (search_path::search_path): Use PATH_SEP instead of a literal
8017         colon.
8018         (search_path::command_line_dir): Ditto.
8019         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
8020         to support non-Posix systems.
8022         * src/libs/libbib/search.cc: #include nonposix.h.
8023         (search_list::add_file): Open the file in binary mode.
8025         * src/libs/libbib/linear.cc: #include nonposix.h.
8026         (file_buffer::load): Remove \r characters preceding \n from the
8027         loaded buffer.
8029         * src/libs/libbib/index.cc: #include nonposix.h.
8030         (make_index_search_item): Open index_filename in O_BINARY mode.
8031         (index_search_item_iterator::get_tag): Ditto.  Remove \r
8032         characters before \n characters.
8033         (index_search_item::check_files): Open files in binary mode.
8034         (index_search_item::munge_filename): Support DOS-style file names
8035         with backslashes and drive letters, use IS_ABSOLUTE.
8037         * src/devices/grops/ps.cc: #include nonposix.h.
8038         (main) [SET_BINARY]: Switch stdout to binary mode.
8040         * src/devices/grolj4/lj4.cc: #include nonposix.h.
8041         (main) [SET_BINARY]: Switch stdout to binary mode.
8043         * src/devices/grolbp/lbp.cc: #include nonposix.h
8044         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
8046         * src/devices/grodvi/dvi.cc: #include nonposix.h.
8047         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
8048         nonposix.h).
8049         (main) [SET_BINARY]: Switch stdout to binary mode.
8050         [_MSC_VER]: Remove an explicit call to _setmode.
8052         * src/include/nonposix.h: New file.
8054         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
8055         operation when building with DJGPP.
8056         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
8057         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
8058         ENVSETUP.
8060         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
8061         MS-DOS.
8062         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
8063         etc. can include a semi-colon on DOS/Windows.
8064         (depend.temp): Use depend1.temp instead of depend.temp1, to
8065         prevent files from overerwiting each other on 8+3 filesystems.
8067         * gendef.sh (t): Change definition to work with DOS/Windows.
8069         doc/groff.texinfo: Apart of some typo corrections, I also changed
8070         some index entris, to make them more non-ambiguous, and also put
8071         @ignore around some parts that are not yet written, to allow the
8072         Info output be readable.
8074 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
8076         Replaced specific checks for function declarations with a generic
8077         routine taken from GNU bfd.
8079         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
8080         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
8081         * configure.in: Use it.
8082         * src/devices/grolbp/lbp.cc, src/include/lib.h,
8083         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
8084         src/roff/groff/groff.cc: Use it.
8085         * Makefile.in, configure: Updated.
8087 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
8089         * src/devides/grolbp/lbp.h: Removed unused variables.
8091 2000-05-31  Keith Thompson  <kst@sdsc.edu>
8093         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
8094         strncasecmp().
8096 2000-05-31  Werner LEMBERG  <wl@gnu.org>
8098         * aclocal.m4 (GROFF_SRAND): New function to test the return value
8099         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
8100         * configure.in: Use it.
8101         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
8102         * configure, Makefile.in: Updated.
8104         * configure.in: Add test for strncasecmp().
8105         * src/include/lib.h: Use it.
8107 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
8109         * src/preproc/grn/Makefile.sub: Add MLIB.
8111 2000-05-29  Nix  <nix@esperi.demon.co.uk>
8113         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
8115 2000-05-29  Werner LEMBERG  <wl@gnu.org>
8117         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
8119         * PROBLEMS: Small update.
8121         * src/devices/grolbp/lbp.cc: Various small fixes.
8123 2000-05-28  Keith Thompson  <kst@sdsc.edu>
8125         * src/roff/nroff/nroff.sh: Fix main loop syntax.
8127         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
8129 2000-05-25  Werner LEMBERG  <wl@gnu.org>
8131         * man/roff.man: Removed unused macro.
8133 2000-05-24  Werner LEMBERG  <wl@gnu.org>
8135         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
8136         This is needed e.g. if you do
8137         `make distclean; ./configure; make dist'.
8139 Version 1.16 released
8140 =====================
8142 2000-05-23  Werner LEMBERG  <wl@gnu.org>
8144         Adding font CWI (constant width italic) to devdvi.
8146         * font/devdvi/CWI: New file.
8147         * font/devdvi/generate/Makefile: Add generating rule.
8148         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
8149         tmac/tmac.dvi: Use it.
8150         * NEWS: Announce it.
8152         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
8153         * font/devlj4/generate/Makefile: Cosmetic changes only.
8155         * man/groff.man: Removed most of the redundant description of
8156         special characters (which is in groff_char.man).  Added font
8157         translation CB->CR for devdvi.  Other minor fixes.
8159         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
8160         (registered) symbols.
8162 2000-05-22  Werner LEMBERG  <wl@gnu.org>
8164         * doc/Makefile: Added rule for creating info files.
8166         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
8167         AMS font metrics.
8168         * font/devdvi/generate/Makefile: Fixed dependencies.
8170         * font/devps/*: Regenerated.  Heavy changes for Bookman and
8171         NewCentury Schoolbook!
8172         * font/devps/generate/afmname: Will now run with GNU awk.
8173         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
8174         * font/devps/generate/Makefile: Cosmetic changes only.
8176 2000-05-21  Werner LEMBERG  <wl@gnu.org>
8178         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
8179         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
8180         `.SS' now produces a heading with a smaller size than `.SH'. 
8181         Completely formatted.
8182         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
8184         * man/groff.man: Improved table appearance.  Use of `eo' request
8185         to reduce number of doubled backslashes in macro definitions.
8186         Replacing `\e' with `\(rs'.  Other minor fixes.
8188         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
8189         to have correct line number.
8191         * INSTALL: Small improvement.
8193 2000-05-20  Bernd Warken  <bwarken@mayn.de>
8195         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
8196         WL).
8198 2000-05-19  Bernd Warken  <bwarken@mayn.de>
8200         * man/groff.man: Complete update (with a lot of corrections by WL).
8202 2000-05-18  Werner LEMBERG  <wl@gnu.org>
8204         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
8206         * font/*/*: Implement it.
8207         * man/groff_char.man, NEWS: Document it.
8209         * src/include/unix.h: Removed.  It isn't used.
8211         * doc/groff.texinfo: Slight improvements.
8213 2000-05-17  Werner LEMBERG  <wl@gnu.org>
8215         * README, win32-diffs: Small fixes and improvements.
8217 2000-05-16  Werner LEMBERG  <wl@gnu.org>
8219         * FDL: New file (the Free Documentation License version 1.1).
8221         * doc/groff.texinfo: Added many start-up values for gtroff.
8222         Some structural improvements of the source code.
8224 2000-05-15  Werner LEMBERG  <wl@gnu.org>
8226         * src/roff/troff/input.cc: Added small comment about troffrc-end.
8227         * src/roff/troff/troff.man: Added info about troffrc-end.
8229 2000-05-14  Werner LEMBERG  <wl@gnu.org>
8231         * Makefile.in (EXTRADIRS): Fix typos.
8232         (dist): Handle deletion of old .tar.gz file correctly.
8233         (DISTDIRS): Include all tty output devices.
8235         * doc/groff.texinfo: Adding more cross references; countless other
8236         fixes.
8238 2000-05-13  Werner LEMBERG  <wl@gnu.org>
8240         * MORE.STUFF: Added Robert Marks's utilities.
8242 2000-05-12  Werner LEMBERG  <wl@gnu.org>
8244         Added win32 port contributed by Blake McBride
8245         <blake@florida-software.com>.
8247         * README.WIN32, win32-diffs: New files.
8248         * NEWS: Updated.
8250         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
8251         (tmove, tmove2): Added parentheses to avoid compiler warnings.
8252         (change): Removed unused variables.
8254         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
8255         (savebounds): Changed return value from `int' to `void'.
8256         * src/preproc/grn/hdb.cc: Ditto.
8258         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
8259         final backslash in comment to avoid compiler warning.
8261         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
8263         * doc/groff.texinfo: More fixes.
8265 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
8267         * tmac/tmac.doc: Documentation fix.
8269 2000-05-11  Werner LEMBERG  <wl@gnu.org>
8271         * doc/groff.texinfo: Reading the source code shows up a lot of
8272         omissions and incorrect data...  More conversion to @Deffn macros.
8274 2000-05-10  Werner LEMBERG  <wl@gnu.org>
8276         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
8277         dependency.
8279         * src/roff/troff/request.h: Removing unused `no_break_flag'.
8281 2000-05-09  Werner LEMBERG  <wl@gnu.org>
8283         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
8284         improvements.
8286         * doc/groff.texinfo: Extended history section.  More conversion to
8287         @Deffn macros.  More .tr documentation.
8289 2000-05-07  Werner LEMBERG  <wl@gnu.org>
8291         * doc/groff.texinfo: Completed tab section.  Added info about
8292         fields.
8294 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
8296         * PROBLEMS: Describe configure script fix for OS/390 Unix.
8298 2000-05-05  Werner LEMBERG  <wl@gnu.org>
8300         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
8301         LaTeX 2e).
8302         * NEWS: Document it.
8304         * man/troff.man: Minor optical improvements.
8306 2000-05-03  Werner LEMBERG  <wl@gnu.org>
8308         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
8310         * font/*/*: Implement it.
8311         * man/groff_char.man, NEWS: Document it.
8313 2000-05-02  Werner LEMBERG  <wl@gnu.org>
8315         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
8316         expansion.
8317         * NEWS: Document the three new man pages.
8319         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
8320         * configure: Updated.
8322         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
8324 2000-05-01  Werner LEMBERG  <wl@gnu.org>
8326         Added grap support to grog.
8328         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
8329         * src/roff/grog/grog.man: Document it.
8331         * doc/groff.texinfo, NEWS: Add info about grap support.
8333         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
8334         (with slight fixes by me).
8336         * tmac/groff_tmac.man: New file documenting tmac mechanism.
8337         * tmac/Makefile.sub: Add groff_tmac.man.
8338         * man/roff.man: New file giving overview of roff system.
8339         * man/troff.man: A short reference of troff.
8340         * man/Makefile.sub: Add roff.man and troff.man.
8342 2000-04-30  Werner LEMBERG  <wl@gnu.org>
8344         Added grap support to groff.
8346         * src/roff/groff/groff.cc: Implement it.
8347         * src/roff/groff/groff.man: Document it.
8349         * src/devices/grotty/grotty.man: Add cp1047 device.
8350         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
8351         Ditto.
8352         * src/roff/groff/groff.man: Ditto.
8353         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
8354         * doc/groff.texinfo: Ditto.
8356         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
8357         for cp1047.
8359 2000-04-29  Werner LEMBERG  <wl@gnu.org>
8361         * man/groff_char.man: Add `pc' glyph.
8362         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
8363         * tmac/tmac.tty: Add `pc' glyph.
8364         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
8365         we use cp1047 output device.
8367         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
8368         there are still hardcoded latin1->unicode values in utf8's font
8369         definition files.
8370         * configure: Updated.
8371         * NEWS: Minor clarification.  Updated.
8373         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
8374         Unix.
8376 2000-04-28  Werner LEMBERG  <wl@gnu.org>
8378         Adding EBCDIC code page 1047.
8380         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
8381         font/devcp1047/DESC.proto: New files.
8383         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
8384         either ascii/latin1 or cp1047.
8385         * Makefile.in: Use it.
8386         * configure: Updated.
8388         Replacing and/or adding `md' (mathdot) glyph with `pc'
8389         (periodcentered) in all text fonts.
8391         * font/*/*: Change it.
8393 2000-04-27  Werner LEMBERG  <wl@gnu.org>
8395         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
8397         * configure.in: Add check for strings.h.
8398         * src/include/driver.h: Use HAVE_STRINGS_H.
8399         * src/devices/grolbp/lpb.cc: Remove string.h.
8401         * src/include/groff-getopt.h: New file.  It will be used instead of
8402         getopt.h (to be included in lib.h) to avoid endless problems with
8403         picky C++ compilers.
8404         * src/include/lib.h: Use groff-getopt.h.
8405         * src/include/Makefile.sub: Updated.
8407         * configure: Updated.
8408         * Makefile.in: Updated.
8410         * NEWS: Mention EBCDIC support.
8412 2000-04-26  Werner LEMBERG  <wl@gnu.org>
8414         * TODO: Some additions.
8416 2000-04-25  Werner LEMBERG  <wl@gnu.org>
8418         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
8419         of mso request.
8421 2000-04-23  Werner LEMBERG  <wl@gnu.org>
8423         * src/roff/troff/troff.man: Minor fixes.
8425 2000-04-22  Werner LEMBERG  <wl@gnu.org>
8427         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
8428         `.T' string register and the incompatible definition of the `.T'
8429         number register (compared to Unix troff).
8431         * man/groff_char.man: Add some missing characters.
8432         * font/devutf8/NOTES: Update.
8434 2000-04-21  Werner LEMBERG  <wl@gnu.org>
8436         * src/include/htmlindicate.h, src/include/lib.h,
8437         src/include/posix.h: Fix copyright.
8439         * src/include/Makefile.sub: Update.
8441 2000-04-20  Werner LEMBERG  <wl@gnu.org>
8443         * src/roff/troff/input.cc (input_char_description): Removing
8444         superfluous space char.
8446         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
8448         * doc/groff.texinfo: Document EBCDIC.
8450 2000-04-19  Werner LEMBERG  <wl@gnu.org>
8452         Introducing `shc' as the glyph name for the soft hyphen character.
8454         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
8455         font/devlatin1/R.proto: Use it.
8457         * NEWS: Updated.
8459 2000-04-18  Werner LEMBERG  <wl@gnu.org>
8461         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
8462         dependency on ASCII order.
8464 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
8466         * src/libs/libgroff/illegal.c: Added EBCDIC table.
8467         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
8469         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
8470         to increase portability.
8472 2000-04-15  Werner LEMBERG  <wl@gnu.org>
8474         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
8475         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
8476         the generic `\n' if under OS/390 Unix.
8478         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
8480         * configure: Regenerated.
8482 2000-04-14  Werner LEMBERG  <wl@gnu.org>
8484         * doc/groff.texinfo: More conversions to @Deffn.
8486 2000-04-12  Werner LEMBERG  <wl@gnu.org>
8488         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
8489         with `:'.
8491         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
8493 2000-04-10  Werner LEMBERG  <wl@gnu.org>
8495         * doc/groff.texinfo: More conversions to @Deffn.
8497 2000-04-08  Werner LEMBERG  <wl@gnu.org>
8499         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
8500         Updated to latest version (glibc 2.1.3).
8502 2000-04-07  Werner LEMBERG  <wl@gnu.org>
8504         * doc/Makefile (clean): Include more index files.
8505         Add rule texinfo->dvi.
8507 2000-04-05  Werner LEMBERG  <wl@gnu.org>
8509         * doc/groff.texinfo: Added new index `op' for operators.  More
8510         info on end of sentence characters.  More use of @Deffn.
8512 2000-03-30  Werner LEMBERG  <wl@gnu.org>
8514         * */*.man: Adding a note that a whitespace can be inserted between
8515         a command line option and its parameter -- we are using GNU getopt.
8517         * src/roff/groff/groff.man: Add example of `-m mandoc'.
8519 2000-03-28  Werner LEMBERG  <wl@gnu.org>
8521         Correct anachronism of calling the man macro file with `-man'
8522         instead of `-m man' etc.
8524         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
8525         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
8526         load tmac.<package>.
8528         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
8530         * NEWS: Updated.
8532         * doc/groff.texinfo: Updated.
8534         * tmac/groff_man.man: Copyright added.
8536 2000-03-27  Werner LEMBERG  <wl@gnu.org>
8538         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
8539         typeset the request resp. escape name with a tt font -- due to a
8540         bug in texinfo.tex it is necessary to use the `-e' switch with
8541         texi2dvi.
8543         Improving info about usage of groff units.
8545         Other minor fixes.
8547 2000-03-20  Werner LEMBERG  <wl@gnu.org>
8549         * doc/groff.texinfo: Added section about man macro package
8550         (I've basically taken groff_man.man).  Introducing new indices `ma'
8551         for macros/strings and `gl' for glyph names.  Other minor fixes.
8553         * tmac/groff_man.man: Fixed some typos.
8555 2000-03-19  Werner LEMBERG  <wl@gnu.org>
8557         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
8558         Other minor fixes.
8560         * doc/texinfo.tex: New file.
8562 2000-03-18  Werner LEMBERG  <wl@gnu.org>
8564         * doc/groff.texinfo: Improved section on number registers.  Other
8565         minor updates.
8567 2000-03-16  Werner LEMBERG  <wl@gnu.org>
8569         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
8570         synopsis.
8572         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
8573         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
8574         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
8575         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
8577         * src/preproc/grn/grn.man: Better synopsis; added copyright.
8579         * src/roff/grog/grog.man: Updated copyright date.
8581 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
8583         * configure.in: Added test for strdup.
8585         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
8586         is available.
8588         Replaced dynamic allocation of arrays `[...]' with `new' operator.
8590         Other minor fixes.
8592 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
8594         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
8596 2000-03-11  Werner LEMBERG  <wl@gnu.org>
8598         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
8599         compilers silent.
8600         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
8601         * src/include/lib.h: Remove some spaces.
8603 2000-03-10  Werner LEMBERG  <wl@gnu.org>
8605         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
8606         initializers from arguments (some compilers don't like this).
8608 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
8610         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
8611         used by pic and eqn to tell grohtml where the graphic regions start
8612         and end.
8613         * src/libs/libgroff/Makefile.sub: Use it.
8614         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
8615         graphic_start() and graphic_end() from htmlindicate.cc.
8617 2000-03-09  Werner LEMBERG  <wl@gnu.org>
8619         * tmac/tmac.safer: Will now work correctly in compatibility mode.
8620         * tmac/groff_man.man: More fixes.
8622 2000-03-08  Werner LEMBERG  <wl@gnu.org>
8624         * doc/Makefile: Added texput.log to the `clean' target.
8625         * doc/groff.texinfo: Added info about delimiters for escapes.
8627 2000-03-08  Bernd Warken  <bwarken@mayn.de>
8629         * src/preproc/pic/pic.man: Add info on conversion of pic images to
8630         other graphic formats.
8632 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
8634         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
8635         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
8636         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
8637         files.
8639 2000-03-07  Werner LEMBERG  <wl@gnu.org>
8641         * doc/groff.texinfo: Spelling fixes.
8643 2000-03-06  Werner LEMBERG  <wl@gnu.org>
8645         * tmac/groff_man.man: Completely revised to cover everything in
8646         tmac.an.
8648         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
8649         Other minor fixings.
8650         * src/roff/troff/env.cc (environment_copy): Improve error message and
8651         fix itoa->i_to_a.
8652         * src/roff/troff/TODO: Updated.
8654         * doc/Makefile: Bug fixes -- this is still provisional, though...
8656         * tmac/eqnrc: Small fixes.
8658 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
8660         Adding a request `evc' to copy environments.
8662         * src/roff/troff/env.cc (environment::copy, environment_copy):
8663         Implement it.
8664         * src/roff/troff/env.h: Add prototype.
8666 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
8668         Adding strsep() -- Solaris 8 doesn't have it.
8670         * configure.in: Test it.
8671         * src/devices/grolbp/lbp.cc: Add code.
8673 2000-03-05  Werner LEMBERG  <wl@gnu.org>
8675         * src/roff/troff/div.cc (macro_diversion::output,
8676         top_level_diversion::output): Fixing an incompatibility with
8677         original troff: \x'0' updates the .a register also.  Thanks to
8678         <Andries.Brouwer@cwi.nl> for pointing this out.
8679         * doc/groff.texinfo: Document it.
8681         * Makefile.in: Create Makefile.dep if necessary before calling the
8682         submake process to avoid warning about nonexistent file.
8684         * NEWS, PROJECTS: Updated.
8686 2000-03-04  Werner LEMBERG  <wl@gnu.org>
8688         * tmac/troffrc: Add tmac.lbp.
8690 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
8692         * tmac/tmac.lbp: New file.
8693         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
8694         command.
8696 2000-03-03  Werner LEMBERG  <wl@gnu.org>
8698         * Makefile.in: Fixing $(subdir).
8700         * README, NEWS: Small fixes.
8702         * test-groff: Adding path to grolbp.
8704         * configure.in: The (new) file src/xditview/Imakefile.in will be
8705         also configured -- it is now possible to build gxditview in a
8706         directory different from $srcdir.
8708 2000-03-02  Blake McBride  <blake@florida-software.com>
8710         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
8712         * MORE.STUFF: Added website of bell labs and info about plot2dev.
8714 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
8716         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
8717         files.
8719 2000-02-29  Werner LEMBERG  <wl@gnu.org>
8721         Adding GNU getopt to the groff distribution.
8723         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
8724         New files.
8725         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
8726         * aclocal.a4: Remove GROFF_GETOPT function.
8727         * configure.in, Makefile.in, PROBLEMS: Update.
8728         * src/include/lib.h: Replace getopt tests with getopt.h.
8729         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
8731         * doc/groff.texinfo: Further checking/updating.  Adding more index
8732         entries.
8734         * man/groff_out.man: Fix nroff mode activation (for emacs).
8735         * man/groff_font.man: Add missing ligature.
8737 2000-02-28  Werner LEMBERG  <wl@gnu.org>
8739         * doc/groff.texinfo: Further checking/updating.  Adding more index
8740         entries.
8742         * src/devices/grolbp/grolbp.man: Added a comment line at the
8743         beginning of the file (similar to shell scripts) which indicates
8744         that `tbl' should be used as a preprocessor.
8746 2000-02-27  Blake McBride  <blake@florida-software.com>
8748         Adapting groff to MS Visual C++ 6.0 compiler (tested with
8749         Windows NT 4.0).  Uses _MSC_VER define where necessary.
8751         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
8752         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
8753         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
8754         src/include/lib.h, src/libs/libgroff/errarg.cc,
8755         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
8756         src/preproc/refer/label.y, src/preproc/refer/label.cc,
8757         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
8758         src/roff/troff/div.cc, src/roff/troff/env.cc,
8759         src/roff/troff/input.cc, src/roff/troff/node.cc,
8760         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
8761         if_to_a() to avoid name clashes.
8762         * src/include/posix.h: Don't use unistd.h.
8763         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
8764         clause for integrating non-Unix xtmpfile() code.
8765         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
8766         structure; use "rt" for popen() in pipe_source(); add getpid()
8767         dummy function.
8768         * src/roff/troff/node.cc: Use special versions of popen() in
8769         real_output_file() and pclose() in ~real_output_file().
8771 2000-02-27  Werner LEMBERG  <wl@gnu.org>
8773         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
8774         LBP-8 series laser printers).  This code has been contributed by
8775         Francisco Andrés Verdú <pandres@dragonet.es>.
8777         * src/devices/grolbp/*: The grolbp output device.
8778         * font/devlpb/*: The font description files.
8779         * Makefile.in: Add grolpb and devlbp subdirectories.
8781         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
8782         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
8783         typographic fixes.
8785         * doc/groff.texinfo: Further checking/updating.  Adding more index
8786         entries.
8788         * NEWS: Updated.
8790         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
8792         * man/groff_font.man: Adding info about obsolete DESC keywords.
8793         * src/devices/grolj4/grolj4.man: Documenting additional DESC
8794         keywords.
8796 2000-02-26  Werner LEMBERG  <wl@gnu.org>
8798         * src/preproc/grn/grn.man: Added info about the gremlin file format
8799         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
8801 2000-02-25  Werner LEMBERG  <wl@gnu.org>
8803         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
8804         friends to be non-integer.
8806         * src/preproc/grn/grn.man: Document it.
8808         * doc/groff.texinfo: Further checking/updating.  Adding more index
8809         entries.
8811 2000-02-24  Werner LEMBERG  <wl@gnu.org>
8813         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
8814         line thicknesses to be integer multiples of this value.
8816         * src/preproc/grn/grn.man: Commenting out the -s option -- the
8817         corresponding code doesn't work (yet).
8819         * doc/groff.texinfo: Further checking/updating.  Adding more index
8820         entries.
8822 2000-02-23  Werner LEMBERG  <wl@gnu.org>
8824         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
8825         specify line thickness instead of base units.  The new default
8826         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
8827         thick lines respectively.
8829         Removed unused variable `prevval'.
8831         * src/preproc/grn/grn.man: Updated.
8833 2000-02-22  Werner LEMBERG  <wl@gnu.org>
8835         * src/preproc/grn/main.cc: Slight formatting.
8837         * src/roff/groff/groff.man: Formatting fix.
8838         * src/preproc/grn/grn.man: Ditto.
8840         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
8842         * doc/groff.texinfo: Further checking/updating.
8844 2000-02-21  Werner LEMBERG  <wl@gnu.org>
8846         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
8848         * test-groff: Added grn subdir to path.
8850         * doc/groff.texinfo: Some restructing and other small improvements.
8852         * src/roff/groff/groff.cc (help): Fixed info string.
8854 2000-02-20  Werner LEMBERG  <wl@gnu.org>
8856         * doc/meref.me: Fix description of .GS request.
8858         * src/roff/troff/troff.man: Fixing typo.
8860         Adding the `grn' preprocessor for gremlin graphic files.
8862         * src/preproc/grn/*: This is the Berkeley distribution written by
8863         David Slattengren and Barry Roitblat, adapted to groff by Daniel
8864         Senderowicz and Werner Lemberg.
8866         * doc/grnexampl.{me,g}: A sample for grn.
8868         * Makefile.in: Added subdirectory entry for grn.
8870         * src/roff/groff/groff.cc: Added support for grn.  It can be now
8871         called with the switch `-g'.
8873         * src/roff/groff/groff.man: Updated.
8875         * src/roff/grog/grog.{man,pl,sh}: Updated.
8877         * NEWS: Updated.
8879 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
8881         * src/include/lib.h: Added xtmptemplate and made xtmpfile
8882         parametrically polymorphic.
8884         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
8885         and the alterations to xtmpfile.
8886         xtmpfile can be requested to return the filename created
8887         and asked not to unlink the temp file.  The default behaviour
8888         if parameters are absent is exactly the same as before.
8890 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
8892         A new request `length' is available which returns the length of a
8893         string in a number register:
8895         * src/roff/troff/input.cc (length_macro): Implement it.
8896         * src/roff/troff/input.cc (init_input_requests): Register it.
8898 2000-02-11  Werner LEMBERG  <wl@gnu.org>
8900         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
8901         of the `substring' request.
8903         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
8904         request.
8906         * src/roff/troff/TODO, NEWS: Updated.
8908 2000-02-09  Werner LEMBERG  <wl@gnu.org>
8910         * src/roff/groff/groff.man: Added an example.
8912 2000-02-06  Werner LEMBERG  <wl@gnu.org>
8914         I've considerably modified the directory structure of the
8915         distribution to get a more vertical layout.  For example, the number
8916         of top level directories has been reduced from 42 to 6.
8918         As a consequence, many changes, especially to the makefiles, were
8919         necessary:
8921         * The makefile variables `top_builddir' and `top_srcdir' have been
8922         introduced.  Virtually all relative paths have been replaced with
8923         absolute ones using these two variables.
8925         * Dependencies (in the files `Makefile.dep') are no longer part of
8926         the distribution.  Instead, they are created during a `make install'
8927         in the build directory.
8929         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
8930         make `top_srcdir' and `top_builddir' absolute.
8932         Some other changes:
8934         * Man pages now depend on the files `VERSION' and `REVISION'.
8936         * The added shell script `mkinstalldirs' will replace `mkdir' in
8937         almost all cases.
8939         * VERSION: Version number increased to 1.16.
8941 2000-02-04  Werner LEMBERG  <wl@gnu.org>
8943         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
8945         * Makefile.in: Removed $(tmac_m) since it is no longer needed
8946         (after an update of the mm stuff).
8948         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
8950 2000-02-03  Werner LEMBERG  <wl@gnu.org>
8952         The .psbb request will now also accept Mac PS images (i.e. using LF
8953         as the EOL character).
8955         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
8956         (with slight modifications).
8957         * troff/input.cc (do_ps_file): Use it.
8959         * test-groff: Add grohtml and grolj4 output devices to PATH.
8961 2000-01-30  Werner LEMBERG  <wl@gnu.org>
8963         * NEWS, MORE.STUFF: Updated.
8965 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
8967         Add the `srand' command to pic.
8969         * pic/lex.cc, pic/pic.y: Implement it.
8970         * pic/pic.man: Document it.
8971         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
8973 2000-01-30  Werner LEMBERG  <wl@gnu.org>
8975         Add a new request `.psbb'.  This does exactly what the external
8976         program psbb did.  It scans a PostScript image file for a
8977         %%BoundingBox comment and extracts the bounding box values (in
8978         PostScript units) which are then stored in the four new (read-only)
8979         number registers `llx', `lly', `urx', and `ury'.
8981         This will allow the usage of the .PSPIC macro without worrying
8982         about unsafe behaviour of groff, i.e., it will work without the
8983         `-U' switch of groff.
8985         * troff/input.cc: Implement it.
8986         * tmac/tmac.pspic: Use it.
8987         * troff/troff.man, grops/grops.man, NEWS: Document it.
8988         * psbb/*, Makefile.in: Remove it since it is no longer needed.
8990         This is bloody C code simply adapted from psbb.c!  Any improvements
8991         welcome.
8993 2000-01-29  Werner LEMBERG  <wl@gnu.org>
8995         * man/groff_font.man: Minor clarifications.
8997         * NEWS: Updated.
8999 2000-01-28  Werner LEMBERG  <wl@gnu.org>
9001         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
9003 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
9005         * man/groff_font.man: Brought up to date regarding tcommand
9006         extensions.
9007         * libgroff/font.cc: Handle everything after `--' as a comment
9008         in the font files.
9009         * devps/*: Added comment delimiter inside devps font files.
9011 2000-01-28  Werner LEMBERG  <wl@gnu.org>
9013         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
9014         \fC...\fP (which now works as expected).
9016         * troff/troff.man: Fix typo.
9018 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
9020         Completed the pass_filenames implementation in troff.
9022         * libdriver/input.cc: Will read the new `F' tcommand.
9023         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
9024         * troff/input.cc: Use it.
9026 2000-01-26  Werner LEMBERG  <wl@gnu.org>
9028         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
9029         font will now be updated even if an invalid font is selected.
9031 2000-01-24  Werner LEMBERG  <wl@gnu.org>
9033         * doc/homepage.ms: Updated for new tmac.arkup.
9035         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
9037         * tmac/tmac.arkup: Cleanup.
9039         Added `\&' to .HTML macro to `leave vertical mode', so to say.
9041         Removed obsolete .LINK macro completely.
9043         The macros .URL, .FTP, and .MAILTO now accept a third argument which
9044         will be immediately appended to the second argument (to be used with
9045         punctuation, for example).
9047         Disabled .CDFTP macro temporarily for security reasons.
9049         * tmac/groff_markup.man: Complete revision for latest changes in
9050         tmac.arkup -- note that it does not yet format correctly with
9051         grohtml :-(
9053 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
9055         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
9056         * devutf8/R.proto: Add mappings for wp, lh, rh.
9057         * devutf8/NOTES: Updated.
9059 2000-01-23  Werner LEMBERG  <wl@gnu.org>
9061         * doc/groff.texinfo: Updated version/copyright info.
9063 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
9065         Added support for two new directives in device descriptions:
9066         `pass_filenames' (to pass the input file name to the output device)
9067         and `use_charnames_in_special' (to support e.g. accented characters
9068         in the `X' request).
9070         * include/font.h, troff/charinfo.h: Declare it.
9072         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
9074         * devhtml/DESC: Use it.
9076         * troff/input.cc: New function encoded_char.
9078         * troff/token.h: Add test for `specialness'.
9080 2000-01-21  Werner LEMBERG  <wl@gnu.org>
9082         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
9083         mistake from the list of files to be installed.
9085 2000-01-18  Werner LEMBERG  <wl@gnu.org>
9087         * README: Added info how to apply patches.
9089 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
9091         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
9093 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9095         * troff/input.cc: Add support for troffrc-end.
9097         * tbl/main.cc: Altered to issue table-start and table-end special
9098         characters if using the html device.
9100         * devhtml/*: Modified font files to incorporate html encoding of
9101         characters.
9103         * tmac/groff_markup.man: New file documenting tmac.arkup.
9105         * tmac/troffrc-end: New file.  This is invoked after all user
9106         specified macros.  Currently used by the html device to include
9107         tmac.html.  Thus no need for users to specify -mhtml anymore.
9109         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
9110         (MAN7): Add groff_markup.man.
9112         * tmac/tmac.an, tmac/tmac.html: Small html updates.
9114         * tmac/troffrc: tmac.arkup will now be called for the html device.
9116         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
9117         extra device specific information about fonts.
9119         * doc/homepage.ms: New file.  It is an example how an HTML home page
9120         could look like with grohtml.
9122         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
9124 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
9126         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
9127         of Im, Re.
9129         * devutf8/NOTES: Updated.
9131 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
9133         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
9134         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
9135         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9136         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
9137         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
9138         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
9139         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
9140         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
9141         warnings.
9143         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
9145 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
9147         grolj4: Paper size will be searched case-insensitively.
9149         * include/lib.h: Add check for strcasecmp().
9150         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
9151         * configure.in: Check for strcasecmp().
9153 2000-01-11  Werner LEMBERG  <wl@gnu.org>
9155         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
9156         `REVISION'.
9158 2000-01-10  Werner LEMBERG  <wl@gnu.org>
9160         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
9161         revision scheme.
9163         Add a new read-only register, `.Y', which contains the groff
9164         revision.
9166         * troff/input.cc (init_input_requests): Define it.
9167         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
9168         * doc/groff.texinfo, troff/troff.man: Document it.
9170         * libgroff/Makefile.sub (version.cc): Add definition of
9171         `Version_string[]', consisting of `<major>.<minor>.<revision>'
9172         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
9173         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
9174         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
9175         troff/input.cc, pfbtops/pfbtops.c: Use it.
9177 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
9179         Add a revision scheme to the groff package.
9181         * REVISION: New file.
9182         * libgroff/Makefile.sub (version.cc): Use it to define
9183         `revision_string[]'.
9184         * grops/psrm.cc: Use revision_string (converted to an unsigned
9185         integer) in constructor of resource_manager.
9187 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
9189         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
9190         files.
9191         * Makefile.in (DEVDIRS): Add devutf8.
9192         * grotty/tty.cc: Include device.h.
9193         (glyph): Change type of `code' to `unsigned int'.
9194         (tty_printer): New field is_utf8.  Constructor takes device argument.
9195         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
9196         (tty_printer::add_char): Change type of first arg to `unsigned int'.
9197         (tty_printer::put_char): New function.
9198         (tty_printer::end_page): Use put_char() instead of ::putchar().
9199         (make_printer): Pass device to tty_printer constructor.
9200         * nroff.sh: Determine default device by calling 'locale'.  As a
9201         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
9202         Recognize UTF-8 locales.
9203         * tmac/eqnrc: Recognize utf8 like latin1.
9204         * tmac/troffrc: Device utf8 needs tmac.tty.
9206 2000-01-07  Werner LEMBERG  <wl@gnu.org>
9208         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
9210 2000-01-07  Paul Eggert  <eggert@twinsun.com>
9212         Add a new predefined writeable number register, `year',
9213         which contains the current year.
9215         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
9216         * tmac/tmac.s: Use it.
9217         * troff/input.cc (init_registers): Initialize it.
9219 2000-01-06  Werner LEMBERG  <wl@gnu.org>
9221         * PROBLEMS: Fixed typo.
9223 2000-01-04  Paul Eggert  <eggert@twinsun.com>
9225         * PROBLEMS: Add Y2k advice for the yr number register.
9227 2000-01-03  Paul Eggert  <eggert@twinsun.com>
9229         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
9231 2000-01-02  Werner LEMBERG  <wl@gnu.org>
9233         * tmac/tmac.arkup: Slight modification of macros to provide better
9234         appearance for non-HTML formats.
9236 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
9238         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
9239         does not automatically translate to malloc(n) on all OSes
9240         (e.g., SunOS) so do it explicitly.  Also, check the returned
9241         value.
9243 2000-01-01  Werner LEMBERG  <wl@gnu.org>
9245         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
9247         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
9248         expects this variable
9250 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
9252         * doc/Makefile: Added instructions to create HTML and text
9253         versions of some files.
9255 1999-12-31  Werner LEMBERG  <wl@gnu.org>
9257         * Updated INSTALL.gen.
9259         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
9260         better resp. correctly with non-HTML devices.
9262 Version 1.15 released
9263 =====================
9265 1999-12-28  Werner LEMBERG  <wl@gnu.org>
9267         * NEWS, VERSION: Changed to 1.15
9269 1999-12-27  Paul Eggert  <eggert@twinsun.com>
9271         * nroff/nroff.man: -S is safer, not safe.
9273         * groff/groff.cc (main): Use `safer', not `safe', in variable
9274         names.  This does not change the behavior.
9276         * troff/input.cc (main): Likewise.
9278         * nroff/nroff.sh: Likewise.
9280         * troff/input.cc (prepend_string): New function.
9281         (main): Prepend -msafer, so that we check macro libraries for
9282         safety.
9284         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
9286 Version 1.14 released
9287 =====================
9289 1999-12-26  Werner LEMBERG  <wl@gnu.org>
9291         * NEWS, VERSION: Changed to 1.14.
9293 1999-12-24  Werner LEMBERG  <wl@gnu.org>
9295         * refer/refer.cc: Fixing the last fix.
9297 Version 1.13 released
9298 =====================
9300 1999-12-23  Werner LEMBERG  <wl@gnu.org>
9302         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
9303         number disappear.
9305         * NEWS: Updated.
9307         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
9309         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
9310         document conventions, the version number must be a real.
9312 Version 1.12.1 released
9313 =======================
9315 1999-12-22  Werner LEMBERG  <wl@gnu.org>
9317         * VERSION: Changed to 1.12.1.
9319 1999-12-22  Alan Rooks  <arooks@istar.ca>
9321         * refer/refer.cc (do_file): Slight modification to satisfy the
9322         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
9323         UnixWare 7.1.
9325 1999-12-20  Werner LEMBERG  <wl@gnu.org>
9327         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
9328         notices.
9330         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
9331         list of unsafe requests.
9333         * pic/pic.man: Fixed a typo.
9335         * man/groff_out.man: Fixed a typo.
9337 1999-12-18  Werner LEMBERG  <wl@gnu.org>
9339         * Makefile.in: Doc fixes.
9341 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
9343         * groff/groff.cc: Missing `U' option added to getopt().
9345         * troff/troff.man: Missing `U' option added to synopsis.
9347 Version 1.12 released
9348 =====================
9350 1999-12-14  Werner LEMBERG  <wl@gnu.org>
9352         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
9353         to the synopsis.
9355         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
9356         with the more appropriate terms `safer' and `unsafe'.
9358         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
9359         sys_nerr and sys_errlist[].
9361         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
9363         * pic/pic.y, pic/pic.cc: Added check for fmod().
9365 1999-12-13  Werner LEMBERG  <wl@gnu.org>
9367         * VERSION: Changed to 1.12.
9369         Here some patches from various sources; most of them taken from
9370         the Debian distribution.
9372         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
9373         tmac/Makefile.sub: New files copied directly from the NetBSD
9374         distribution.  Probably, some additional adaptation later on is
9375         necessary...
9377         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
9378         of unsafe requests.
9380         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
9381         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
9382         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
9383         (`-S') is now the default.
9385         * README, NEWS: Updated.
9387 1999-12-09  Werner LEMBERG  <wl@gnu.org>
9389         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
9391         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
9393 1999-12-06  Werner LEMBERG  <wl@gnu.org>
9395         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
9396         grief than relief today.  Additionally, it is against the GNU
9397         coding standards.
9399         * configure: Recreated.
9401 1999-12-05  Werner LEMBERG  <wl@gnu.org>
9403         * configure.in: Added GROFF_LIBM.
9405         * configure: Recreated.
9407         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
9408         necessary.
9410         * Makefile.in: Added definition of $(LIBM).
9412         * Makefile.comm (LIBM): Removed.
9414         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
9416 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
9418         * doc/Makefile: Added rule for generation pic.html.
9420         (clean): Files produced by grohtml will be removed also.
9422         * doc/pic.ms: Small fix.
9424         * tmac/tmac.html: Fixed suppression of headers.
9426 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
9428         * tmac/tmac.html: Fixing horizontal arrows.
9430         Turning off hyphenation.
9432         * tmac/tmac.an: Improved support for grohtml; better indentation,
9433         no footers/headers.
9435 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
9437         * tmac/tmac.arkup: Added CDFTP macro
9439         * tmac/tmac.html: All headers are turned off for ms, me, and mm
9440         macros.
9442         * tmac/troffrc: Some additions for HTML stuff.
9444 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
9446         * tmac/tmac.html: Small changes.
9448 1999-09-26  Werner LEMBERG  <wl@gnu.org>
9450         * doc/groff.texinfo: Minor fixes.
9452 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
9454         * devhtml/TR: Changed spacewidth to 3.
9456         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
9458         * tmac/tmac.html: Moved markup macros to tmap.arkup.
9460         * tmac/tmac.arkup: New file.
9462         * grohtml/ChangeLog: New file.
9464 1999-09-16  Werner LEMBERG  <wl@gnu.org>
9466         * doc/groff.texinfo (Common Features): Added Copying chapter.
9467         Changed format to @smallbook.
9469 1999-09-15  Werner LEMBERG  <wl@gnu.org>
9471         * NEWS: Added info about groff.texinfo.
9473         * doc/groff.texinfo: Will now compile (using texi2dvi) without
9474         warning messages.
9476 1999-09-14  Werner LEMBERG  <wl@gnu.org>
9478         * groff/groff.man: More updates.
9480 1999-09-13  Werner LEMBERG  <wl@gnu.org>
9482         * doc/groff.texinfo: New file.  This manual is still very
9483         rudimentary.  It has been originally contributed by Trent
9484         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
9485         additions by me.
9487         * INSTALL: Added information about the `doc' subdir
9489         * troff/troff.man: Minor fixes.
9491         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
9492         reordered options.
9494         * troff/input.cc (usage): Added missing `-ffam' to usage message.
9496         * Makefile.in (dist): groff-$(version).tar.gz must be removed
9497         also, otherwise it is included itself in another call of `make
9498         dist'.
9500         * groff/groff.cc (synopsis): Removed superfluous space.
9502         * PROJECTS, PROBLEMS, NEWS: Updated.
9504         * VERSION: Updated to 1.12beta.
9506         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
9508         * README: Updated: Included documentation about CVS repository,
9509         mailing lists, and daily snapshots.
9511         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
9513 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
9515         * tmac/tmac.an: If the tag didn't fit into the space that the
9516         macro `TP' specifies, the rest of the tag went into the space for
9517         the next line.
9519 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
9521         * grolj4/lj4.cc: Added duplex printing (option `-d').
9523         * grolj4/grolj4.man: Document duplex printing.
9525 1999-09-12  Werner LEMBERG  <wl@gnu.org>
9527         * doc/Makefile (pic.ps): Fixed rule which caused problems with
9528         non-GNUish sed programs.
9530         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
9531         definition.
9533         * configure.in (LIBS): Added `-lc'
9535         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
9537         * pic/tex.cc (solid_arc): Casting M_PI to double.
9539         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
9541         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
9542         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
9543         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
9545         * groff/groff_man.man: New file.  This manual page was originally
9546         written for the Debian GNU/Linux system by Susan G. Kleinmann
9547         <sgk@debian.org>.
9549         * eqn/list.cc (list_box::compute_metrics,
9550         list_box::compute_sublist_width): Removed variable declaration to
9551         avoid shadowing warnings.
9553         * grops/psrm.cc (resource_manager::process_file): Ditto.
9555         * tfmtodit/tfmtodit.cc (main): Ditto.
9557         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
9558         to avoid shadowing warnings.
9560         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
9561         shadowing loop variable.
9563         * groff/groff.man, troff/troff.man: Added doc about grohtml.
9565 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
9567         New grohtml frontend to convert groff input to html.
9569         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
9571         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
9573         * tmac/eqnrc: Added html device.
9575         * tmac/tmac.html: New file.
9577         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
9578         (troff_output::start_picture, troff_output::finish_picture),
9579         tbl/main.cc (process_input_file):
9580         Surrounded output with `graphics_start' and `graphics_end' so that
9581         the html driver can identify non-text portions.
9583         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
9584         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
9585         grotty/tty.ps (tty_printer::set_char): Additional parameter
9586         `name'.
9588         * include/printer.h: Class printer: New function
9589         set_char_and_width; new variables (is_char_named, is_named_set,
9590         named_command, named_char_s, named_char_n) to hold information
9591         about named characters -- needed by the html driver.
9593         * libdriver/printer.cc (printer::set_ascii_char,
9594         printer::set_special_char): Use set_char_and_width.
9596         * devhtml/*: New device files for html driver.
9598         * grohtml/*: New driver grohtml.
9600 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
9602         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
9603         default strings.
9605 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
9607         * libgroff/string.cc (search): Small fix to test against NULL
9608         pointer.
9610 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
9612         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
9613         \b'abc') were stacked in reverse order when processed in a
9614         diversion.
9616         * troff/node.h: Added `*last' to struct `node' to make the above
9617         fix work.
9619         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
9620         The default scale for the 'f' and 't' graphics functions were 'm'
9621         rather than 'u' (i.e., no scaling).
9623 1999-09-11  Peter Miller  <peterm@jna.com.au>
9625         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
9626         do_file), soelim/soelim.man: Added `-I file' option to soelim,
9627         defining include paths.
9629         * soelim/soelim.cc (include_path_append): New function.
9631 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
9633         * tbl/main.cc (process_options): Unix (at least Documenter's
9634         Workbench) tbl allows arbitrary non-alpha characters between
9635         options.
9637 1999-09-11  Paul Eggert  <eggert@twinsun.com>
9639         Y2k fixes.  Don't assume that the current year precedes 2000.
9641         * doc/meref.me: Add \n(y2, \n(y4.
9643         * tmac/doc-common (Yr): New number register.
9644         (Dd): Don't assume current year precedes 2000.
9646         * tmac/tmac.e (td): Likewise.
9647         (y2, y4): New number registers.
9649         * pic/pic.man: Update reference for pic paper to May, 1991
9650         version.
9652 1999-09-11  Werner LEMBERG  <wl@gnu.org>
9654         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9655         Removed quotation marks which prevented correct expansion of
9656         $(tmac_wrap).
9658         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
9660 1999-09-10  Werner LEMBERG  <wl@gnu.org>
9662         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
9663         `config.cache'.
9665         * Removed configure.old.
9667 1999-08-31  Werner LEMBERG  <wl@gnu.org>
9669         * VERSION: Updated to 1.11.1
9671 1999-05-27  Werner LEMBERG  <wl@gnu.org>
9673         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
9675         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9676         added quotations around $(tmac_wrap) to avoid syntax error if
9677         variable is empty.
9679         * configure: Newly generated using autoconf 2.13.
9681         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
9683 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
9685         * README, PROJECTS, NEWS, INSTALL, VERSION, 
9686         doc/Makefile. doc/pic.ms, groff/groff.man:
9687         Prepare for 1.11 release.  No code changes.
9688         Documentation for pic added (doc/pic.ms).
9690 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
9692         * Version 1.10 released.
9694 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
9696         * afmtodit/afmtodit.pl: Avoid comment on first line.
9698 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
9700         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
9701         * configure.in: Call it.
9703         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
9704         (distfiles): Doesn't depend on config.log or config.cache.
9706 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
9708         * grog/grog.sh: Use print "" rather than print in END rule.
9710 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
9712         * tbl/main.cc (process_data): Don't give error for excess data
9713         entries that are comments.
9715 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
9717         * tbl/main.cc (process_data): Fix case where new for-scope rules
9718         silently change meaning of code.
9720 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
9722         * troff/env.cc (hyphenate): Loop over all consecutive sequences
9723         of non-zero hyphenation codes.
9725 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
9727         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
9729 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
9731         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
9733 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
9735         * tmac/tmac.andoc: Make it work in compatibility mode.
9737         * refer/token.h (token_info::is_range_sep): New function.
9738         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
9739         * refer/ref.cc (reference::output): More sophisticated check for
9740         multiple pages.
9742         * devps/prologue.ps (MANUAL): New procedure.
9743         * grops/ps.cc (main): New -m option.
9744         (usage): Include -m.
9745         (ps_printer::~ps_printer): Implement -m.
9747         * aclocal.m4 (GROFF_G): New macro.
9748         * configure.in: Call it.
9749         * Makefile.in (g): Provided by configure.
9751         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
9753         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
9754         translations.
9756         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
9757         (tmac_m, tmac_s): Deleted.
9758         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
9759         tmac_s_prefix): New variables.
9760         (MDEFINES): Change accordingly.
9761         * Makefile.comm (.man.n): Use new TMAC_* variables.
9762         * configure.in (GROFF_TMAC): Call.
9763         * aclocal.m4 (GROFF_TMAC): Define.
9764         * tmac/Makefile.sub (stamp_wrap): New target.
9765         (install_data, uninstall_sub): Handle macro wrapping.
9767 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
9769         * tbl/main.cc (main): Ignore -T option.
9771 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
9773         * devlj4/generate/special.map: Add definition of \(nb.
9775         * tmac/tmac.dvi: Add definition of \(nb.
9777         * troff/dictionary.c (dictionary::dictionary): association::v gets
9778         initialized by association::association.
9780         * tmac/Makefile.sub: Avoid using temporary files when installing.
9782         * troff/env.cc (environment::set_font): Make bad font number a
9783         warning.
9785         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
9787         * Makefile.in (datadir): Use share rather than lib.
9789         * groff/groff.cc (basename): Rename to xbasename.
9791 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
9793         * Makefile (CCLIBS): Don't use.
9794         * Makefile.ccpg: Likewise.
9796         * acgroff.m4: Rename to...
9797         * aclocal.m4: Modify extensively for autoconf 2.
9798         * configure.in: Likewise.
9799         * Makefile.in: Likewise.
9801         * groff/pipeline.c (const): Declare as empty if __STDC__ not
9802         defined.
9803         (xstrsignal): Check for definition of NSIG. Conditionalize
9804         on SYS_SIGLIST_DECLARED.  Make return type const.
9806 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
9808         * troff/input.cc (interpolate_macro): Rephrase missing space
9809         warning.
9811 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
9813         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
9814         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
9815         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
9816         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9817         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
9818         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
9819         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
9820         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
9821         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
9822         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
9823         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
9824         Fix 'for' scoping.
9826 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
9828         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
9829         string_iterator.
9830         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
9831         file.
9832         (macro_iterator::macro_iterator): Add additional argument.
9834 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
9836         * troff/div.cc (vertical_size::vertical_size): In place of integer
9837         specifying line spacing use cunits specifying post vertical
9838         space.
9839         (macro_diversion::output, top_level_diversion::output): Likewise.
9840         * troff/div.h: Change declarations accordingly.
9841         * troff/env.cc (pending_output_line): Replace ls field by post_vs
9842         field.
9843         (pending_output_line::pending_output_line,
9844         pending_output_line::output, environment::output,
9845         environment::output_line, environment::output_title,
9846         environment::hyphenate_line):  In place of
9847         integer specifying line spacing use cunits specifying post vertical
9848         space.
9849         (environment::environment): Add post_vertical_spacing and
9850         prev_post_vertical_spacing arguments.
9851         (environment::get_post_vertical_spacing): New function.
9852         (environment::total_post_vertical_spacing): New function.
9853         (environment::post_vertical_spacing): New function.
9854         (init_env_requests): Initialize pvs request and .pvs register.
9855         * troff/env.h: Change declarations.
9857 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
9859         * tmac/tmac.pspic: Immediately remove the temporary file.
9861 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
9863         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
9864         height is specified.
9866 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
9868         * tbl/table.c (struct vertical rule, class table_entry): Use int
9869         not short for start_row and end_row.
9871 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
9873         * troff/input.cc (trapping_blank_line, blank_line_macro): New
9874         functions.
9875         (diverted_space_node::reread, process_input_stack): Call
9876         trapping_blank_line() rather than blank_line().
9877         (init_input_requests): Bind "blm" to blank_line_macro().
9879         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
9881 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
9883         * troff/env.cc (environment::possibly_break_line): Require that
9884         width total excluding width of final space node be greater than
9885         the target text length.
9887 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
9889         * troff/node.cc (kern_pair_node::vertical_extent): New function.
9891 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
9893         * troff/node.cc (charinfo_node): New class.
9894         (glyph_node, composite_node): Derive from charinfo_node.  Change
9895         member functions accordingly.
9897 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
9899         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
9901 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
9903         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
9905         * devps/generate/textmap (notsubset): Add.
9907         * tmac/tmac.a4: New file.
9909 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
9911         * pic/main.cc (had_parse_error): New variable.
9912         (do_picture, do_whole_file): Set had_parse_error if yyparse()
9913         returns non-zero.
9914         (main): Return 1 if had_parse_error is true.
9916 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
9918         * grolj4/lj4.cc (main): Avoid use of strtoul.
9920 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
9922         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
9923         iso_8859_1 or $LESSCHARSET is latin1.
9925 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
9927         * hpftodit: New directory.
9928         * Makefile.in (CCPROGDIRS): Add hpftodit.
9929         * devlj4/generate: New directory.
9931 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
9933         * configure.in: Don't use AC_VFORK.
9934         * groff/pipeline.c (run_pipeline): Use fork() always.
9936 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
9938         * grops/ps.cc (main): Use %1 not %s in error message for -w.
9940         * Makefile.in (CCPROGDIRS): Add grolj4.
9941         (DEVDIRS): Add devlj4.
9942         * grolj4, devlj4: New directories.
9943         * tmac/troffrc: Handle lj4.
9944         * tmac/tmac.lj4: New file.
9946 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
9948         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
9950 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
9952         * troff/input.cc (do_if_request): At end of second string, switch
9953         environments before getting next token.
9955 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
9957         * devps/psstrip.sed: Split rule that strips whitespace on either
9958         side of delimiters.
9960 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
9962         * troff/node.h (font_family::make_definition): Add return value to
9963         declaration.  * troff/symbol.h (symbol::operator==,
9964         symbol::operator!=): Likewise.
9966 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
9968         * groff/groff.cc (main, help, synopsis): Handle -S.
9969         (possible_command::insert_arg): New function.
9971         * tmac/tmac.safer: New file.
9972         * tmac/msafer.man: New file.
9973         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
9975 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
9977         * pic/pic.h, pic/main.cc (safer_flag): New variable.
9978         * pic/pic.y (placeless_element): Avoid unsafe operations if
9979         `safer_flag' is set.
9980         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
9982 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
9984         * eqn/lex.cc (get_token): Put call to add_context() in block to
9985         work around Sun C++ 4.0 bug.
9987         * include/stringclass.h (operator +): Use ?: instead of `if' to
9988         work around Sun C++ 4.0 bug.
9990 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
9992         * tbl/main.cc (process_format): Accept - as a synonym for the _
9993         key letter.
9995         * libbib/index.cc (minus_one): Don't declare as const.
9997 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
9999         * troff/input.cc (get_char_for_escape_name): Push back a newline.
10001 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
10003         * troff/input.cc (write_macro_request): New function.
10004         (init_input_requests): Bind write_macro_request to writem.
10006 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
10008         * tmac/tmac.s (@EN): Turn filling back on even if there was no
10009         equation.
10011         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
10013         * tmac/tmac.s (@TS): Renamed from TS.
10014         (TS): Call LP then TS again.
10015         (cov*ab-init): Alias @TS to TS.
10017         * tmac/tmac.s: Allow QP or RS to initialize.
10019         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
10020         Move initializations of PS and LL here.
10021         (par@init): Don't initialize HY.  Avoid changing environment 0.
10022         (par*env-init): Don't all par@reset.
10024 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
10026         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
10028 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
10030         * Makefile.in (MDEFINES): Add LDFLAGS.
10031         (LDFLAGS): Add definition line.
10033 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
10035         * troff/input.cc (get_optional_char): Split off error check into...
10036         (check_missing_character): New function.
10037         * troff/token.h: Declare it.
10038         * troff/env.cc (margin_character): Don't call get_optional_char.
10039         Only call tok.next() after making the node.
10041         * include/lib.h (getopt): Make 2nd argument char *const *.
10043 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
10045         * nroff/conftest.sh: Deleted.
10047 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
10049         * pic/make-dos-dist: Deleted.
10051 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
10053         * devps/psstrip.sed: Strip comments before stripping trailing
10054         white space.
10056 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
10058         * Version 1.09 released.
10060 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
10062         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
10064 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
10066         * libgroff/font.cc (font::load_desc): Fix typo in error message.
10068 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
10070         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
10071         about returning without a value.
10073         * troff/charinfo.h (charinfo::get_special_translation): Cast
10074         TRANSLATE_NONE to int.
10076         * refer/token.cc (lookup_token, store_token): Remove bogus loop
10077         test.  Fix test so that it works with n unsigned.
10079         * pic/pic.y (defaults_table): Fully bracket initializer.
10080         * pic/lex.cc (lookup_keyword): Likewise.
10081         * eqn/lex.cc (token_table, def_table): Likewise.
10082         * eqn/box.cc (param_table): Likewise.
10083         * troff/input.cc (warning_table): Likewise.
10084         * libgroff/font.cc (table): Likewise.
10085         * grops/ps.cc (ps_printer::special): Likewise.
10086         * grops/psrm.cc (resource_manager::process_file): Likewise.
10087         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
10088         * refer/command.cc (command_table): Likewise.
10089         * addftinfo/addftinfo.cc (param_table): Likewise.
10091         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
10092         about temp's being unused.
10093         (unused): New function.
10095         * groff/pipeline.cc: Declare c_fatal.
10097         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
10098         uchar.
10100         * libbib/index.cc (index_search_item::load): Prevent compiler
10101         warnings about fd_closer's being unused.
10102         (unused): New function.
10104 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
10106         * troff/input.cc (copy_mode_error): Make `prefix' static.
10107         Fix typo.
10109         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
10110         defined.
10111         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
10112         HAVE_CC_OSFCN_H and modify accordingly.
10114         * troff/input.cc (init_charset_table): radicalex overlaps
10115         horizontally.
10117         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
10118         udodo!hans@relay.NL.net).
10119         * groff/configure.in: Call it.
10121         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
10122         * groff/configure.in: Call it.
10123         * include/lib.h: Conditionalize declaration of pclose.
10125         * troff/div.cc (last_page_number): New global variable.
10126         (top_level_diversion::begin_page): Exit if we just printed the
10127         last page.
10128         * troff/div.h (last_page_number): Declare it.
10129         * troff/input.cc (parse_output_page_list): Set last_page_number.
10131         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
10132         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
10133         tmac/tmac.X: Likewise.
10134         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
10135         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
10137 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
10139         * tmac/doc-ditroff (hK): Remove groff specific code which
10140         prevented page-breaks between separate manual entries.  If this is
10141         the first page, don't set the page number to 1.
10143         * acgroff.m4 (GROFF_POSIX): New macro.
10144         * configure.in: Use it.
10146         * troff/node.cc (class real_output_file,
10147         real_output_file::real_output_file,
10148         real_output_file::~real_output_file): Conditionalize use of
10149         popen/pclose on POPEN_MISSING.
10150         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
10151         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
10152         (pipe_source): Similarily.
10154         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
10156         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
10157         presence of declarations by trying to compile example with
10158         conflicting declarations.  (gcc only gives a warning for missing
10159         declarations.)
10161 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
10163         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
10164         (from Ulrich Lauther).
10166 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
10168         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
10170 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
10172         * indxbib/indxbib.cc (write_hash_table): Add code for case where
10173         pointers and ints have different sizes.
10175 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
10177         * tmac/tmac.s (par*env-init): Call par@reset.
10179 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
10181         * tmac/tmac.s (@IP): Switch to a new environment when diverting
10182         tag.
10183         (par*push-tag-env, par*pop-tag-env): New macros.
10185 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
10187         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
10188         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
10190         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
10191         comment.  Include <time.h>.
10193 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
10195         * grops/ps.cc (is_small_h, is_small_v): Deleted.
10196         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
10197         lines.
10199 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
10201         * troff/input.cc (read_request): Only print a prompt if reading
10202         from the terminal.  Also clearerr on EOF if reading from the
10203         terminal.  Declare isatty.
10205 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
10207         * refer/label.y: Rename map_t to map_func and extractor_t to
10208         extractor_func.
10210 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
10212         * include/assert.h: Don't use volatile.
10213         * libgroff/assert.cc: Likewise.
10215 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
10217         * troff/input.cc (abort_request): Look at character in tok before
10218         calling get_copy().
10220 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
10222         * troff/troff.h (NO_RETURN): Deleted.
10223         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
10224         * troff/input.cc (exit_troff): Likewise
10226         * Makefile.in: Remove `Making ...' messages since GNU make now
10227         gives these. 
10229         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
10231 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
10233         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
10234         to constant 1 inch.
10236 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
10238         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
10240 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
10242         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
10243         MARK_REG if there was no left delimiter.
10245 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
10247         * pic/troff.cc (troff_output::text): Set line thickness to
10248         relative before outputting text.
10250         * tmac/tmac.e (@k): Don't zero ?T.
10251         ((z): Likewise.
10253 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
10255         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
10257 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
10259         * troff/input.cc (decode_args): Warn about unquoted tabs (from
10260         Paul Eggert).
10262 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
10264         * troff/input.cc (ignoring): New variable.
10265         (ignore): Set ignoring during call to do_define_macro.
10266         (do_define_macro): Clear ignoring before interpolating terminating
10267         macro.
10268         (copy_mode_error): New function.
10269         (get_char_for_escape_name, read_long_escape_name,
10270         interpolate_arg): Use copy_mode_error.
10271         (warning_table): Add WARN_IG.
10272         * troff/troff.h (WARN_IG): Declare.
10273         (WARN_TOTAL): Change accordingly.
10275         * groff/pipeline.c (strsignal): Rename to xstrsignal.
10276         * groff/groff.cc (strsignal): Delete declaration.
10278 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
10280         * troff/div.cc (page_offset): Use 'm' as default scaling.
10282 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
10284         * nroff/nroff.sh: Ignore -u.
10286 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
10288         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
10290 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
10292         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
10293         drawing box.
10294         (B2): With -Tascii, leave additional vertical space before
10295         and after. Ensure that the left and right indent is restored to
10296         what it was even if the point size changes.  Don't call
10297         par@finish. Change the indent, line length and title length
10298         directly.  With -Tascii, make the width of the box 1n less.
10299         (B1): Remember 1n at the current point size.  Don't call
10300         par@reset.  Change the indent, line length and title length
10301         directly.  Ensure that the temporary indent is preserved.
10302         (par*box-mark-top): Turn off no spacing mode.
10304 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
10306         * Makefile.in (dist): Use .gz suffix.
10308 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
10310         * troff/input.cc (main): Add return 0.
10311         * pic/main.cc (main): Use return instead of exit.
10312         * tbl/main.cc (main): Likewise.
10313         * eqn/main.cc (main): Likewise.
10314         * grops/ps.cc (main): Likewise.
10315         * grotty/tty.cc (main): Likewise.
10316         * groff/groff.cc (main): Likewise.
10317         * grodvi/dvi.cc (main): Likewise.
10318         * refer/refer.cc (main): Likewise.
10319         * indxbib/indxbib.cc (main): Likewise.
10320         * lkbib/lkbib.cc (main): Likewise.
10321         * soelim/soelim.cc (main): Likewise.
10322         * addftinfo/addftinfo.cc (main): Likewise.
10323         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
10324         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
10326         * troff/token.h (process_input_stack): Don't declare as static.
10327         * troff/input.cc: Likewise.
10329         * troff/node.c (invalidate_fontno): Make it a static member of
10330         class font_family.  Change callers.
10331         * troff/node.c: Change declaration.
10333         * tbl/main.cc (struct input_entry_format): Add explicit public
10334         specifier.
10335         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
10336         struct double_hline_stuff): Likewise.
10337         * tbl/table.h (struct entry_format): Likewise.
10338         * pic/object.h (struct saved_state): Likewise.
10340         * include/stringclass.h: Add forward declarations of friend
10341         functions that are later declared as inline.  Don't include inline
10342         specifier in friend declaration.
10344         * libgroff/lib.h: Declare popen and pclose.
10345         * acgroff.m4 (GROFF_POPEN): New macro.
10346         * configure.in: Call it.
10348         * include/lib.h (PI): New constant. Undef first if necessary.
10349         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
10350         * grops/ps.cc (degrees, radians): Likewise.
10351         * libgroff/font.cc (font::get_skew): Likewise.
10353         * grops/ps.cc (is_ascii): New function.
10354         (ps_output::put_string): Use is_ascii.  Use csprint rather than
10355         isprint.
10356         (ps_printer::define_encoding): Use csspace.
10357         * libgroff/strtol.c (ISASCII): New macro.
10358         (strtol): Cast arguments to is*() and tolower() to unsigned char.
10359         Use ISASCII rather than isascii.
10360         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
10361         * libgroff/cset.cc: Likewise.
10362         * libdriver/input.cc: Include cset.h.
10363         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
10364         than isdigit().
10366         * refer/refer.cc (main): Use %ld rather than %d for longs.
10368         * libbib/index.cc (index_search_item_iterator::get_tag): Use
10369         S_ISREG macro.
10371         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
10373 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
10375         * troff/input.cc (hyphenation_code): Skip white space between
10376         char/code pairs.
10378 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
10380         * tbl/table.h (table::entry_list_tailp): New member.
10381         (table::table): Initialize it.
10382         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
10383         behaviour.
10385 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
10387         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
10388         with negative horizontal positions. Remove casts of glyph::hpos to
10389         int.
10390         (USHRT_MAX): Delete definition.
10391         (SHRT_MAX, SHRT_MIN): New definitions.
10392         (glyph::hpos): Change type to short.
10393         (tty_printer::end_page): Output multiple backspaces if necessary.
10394          Remove casts of glyph::hpos to int.
10395         
10396 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
10398         * tmac/tmac.s (@RT): New definition.
10400 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
10402         * refer/refer.cc (do_file): Make sure current_filename is set when
10403         filename is "-".
10405         * pic/common.cc (common_output::dot_line): Handle zero length
10406         lines.
10408 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
10410         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
10411         (par@init): Initialize \n[HY].
10413 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
10415         * troff/dictionary.cc (dictionary::remove): Continue when
10416         r < j < i.
10418 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
10420         * Makefile.com (.y.cc): Avoid ending up with two versions of
10421         $(YTABH).
10423 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
10425         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
10426         (\(,C): Likewise.  Also fix typo.
10428 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
10430         * lib.h: Delete extraneous semi-colon.
10432         * Add pso request: `so' from a pipe.
10433         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
10434         (file_iterator::close): New function.
10435         (file_iterator::~file_iterator, file_iterator::next_file): Use
10436         file_iterator::close.
10437         (file_iterator::backtrace): Say `process' rather than `file' when
10438         the stream is popened.
10439         (pipe_source): New function.
10440         (init_input_requests): Bind ".pso" to pipe_source.
10442 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
10444         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
10446         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
10447         digits in lower case.
10449 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
10451         * Version 1.08 released.
10453         * Makefile.in (dist): Insert || true after ln -s commands that
10454         might fail.
10456         * mm: Update to mm 1.16.
10458         * acgroff.m4 (GROFF_CSH_HACK): New macro.
10459         * configure.in: Call GROFF_CSH_HACK.  Substitute for
10460         SH_SCRIPT_SED_CMD.
10461         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
10462         MDEFINES.
10463         * nroff/Makefile.sub (nroff): New target.
10464         (install_data): Install nroff.
10465         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
10466         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
10468 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
10470         * eqn/Makefile.sub (neqn): Add chmod +x.
10472         * grog/Makefile.sub (grog): Remove spurious semi-colon.
10474 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
10476         * troff/input.cc (string_iterator::string_iterator()): Initialize
10477         lineno and count.
10479 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
10481         * troff/div.cc (macro_diversion::space,
10482         top_level_diversion::space): Don't set high_water_mark.
10483         (macro_diversion::output, top_level_diversion::output): Don't
10484         include post line space in high water mark.
10486 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
10488         * eqn/eqn.y: Don't define YYDEBUG.
10489         * pic/pic.y: Likewise.
10491 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
10493         * tmac/tmac.e ([3): Add space after comma following editors.
10494         Change double spaces to single spaces.
10495         ([4): Change double spaces to single spaces.
10497         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
10498         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
10499         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
10500         after %!PS-Adobe- (for Newsprint).
10502         * troff/div.cc (top_level_diversion::begin_page): When
10503         before_first_page is 1, set page_number to 1.
10505 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
10507         * eqn/box.cc (box::top_level): Protect equation with \&.
10509 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
10511         * groff/groff.cc (possible_command::set_name): Delete old name.
10513         * groff/groff.cc (possible_command::~possible_command): Use
10514         a_delete.
10516         * troff/node.cc (troff_output_file::begun_page): New member.
10517         (troff_output_file::troff_output_file): Initialize it.
10518         (troff_output_file::really_begin_page): Only output V command if a
10519         page has been begun.
10521         * pic/pic.y (placeless_element): Delete argument to PRINT after
10522         use.
10524 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
10526         * Make wrapman work.
10527         * troff/div.h (class top_level_diversion): Replace
10528         first_page_begun by before_first_page (with opposite sense).
10529         * Change first_page_begun to before_first_page inverting sense.
10530         * troff/div.cc (class nl_reg): New class.
10531         (init_div_requests): Use class nl_reg for \n(nl.
10532         (top_level_diversion::begin_page): Don't call
10533         output_file::begin_page if before_first_page is 2;
10534         reset before_first_page afterwards.  If have_next_page_number is
10535         false, then always increment page_number.
10536         * tmac/tmac.an: Set traps within TH rather than at the top-level.
10537         Restore compatibility mode after loading, and then disable
10538         compatibility mode in TH.
10540 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
10542         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
10543         past last line.
10544         * troff/node.h (output_file::trailer): Declare.
10545         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
10546         * troff/node.cc (output_file::trailer): New function.
10547         (troff_output_file::~troff_output_file): Move most code into...
10548         (troff_output_file::trailer): New function.
10549         (class troff_output_file): Delete page_length member. Declare
10550         trailer().
10551         (troff_output_file::really_begin_page): Use current page length
10552         for final V command.
10554         * tbl/main.cc (struct options): New decimal_point_char member.
10555         (options::options): Initialize this.
10556         (process_options): Implement decimalpoint option.
10557         (process_data): Pass decimal_point_char option to table::table.
10558         * tbl/table.h (class table): New decimal_point_char member.
10559         (table::table): Add additional argument.
10560         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
10561         second argument specifying decimal point character.  Use this
10562         instead of '.'.
10563         (table::table): Initialize decimal_point_char.
10564         (table::add_entry): Change call to find_dot.
10566         * troff/input.cc (get_copy, token::next): Implement \V.
10567         (interpolate_environment_variable): New function.
10569 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
10571         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
10572         * pic/pic.y: Likewise.
10574         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
10575         Add casts to int.
10576         * refer/ref.cc (reference::insert_field, reference::delete_field):
10577         Likewise.
10578         * troff/number.cc (parse_term): Likewise.
10580         * acgroff.m4 (GROFF_PROG_YACC): New macro.
10581         * configure.in: Use GROFF_PROG_YACC.
10583         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
10584         and g++.
10585         * Makefile.in (OPTIMIZE): New define.
10586         (DEBUG): Empty by default.
10587         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
10589         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
10590         (GROFF_ARRAY_DELETE): Likewise.
10591         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
10593         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
10595         * devps/psstrip.sed: Use different delimiter on last line (so that
10596         it works with BSD 4.4 sed.)
10598 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
10600         * devps/psstrip.sed: Delete comments.
10602         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
10603         optind, opterr, optarg.
10604         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
10605         opterr, optarg.
10607 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
10609         * Makefile.in (check): Dummy target.
10611 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
10613         * Version 1.07 released.
10615         * Integrate mm 1.11.
10617         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
10618         where start_col was meant.
10620 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
10622         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
10624 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
10626         * troff/input.cc (token::next): Make \z\o'...' and similar things
10627         work.
10629         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
10630         constants.
10631         (environment): Add margin_character_flags member.
10632         * env.cc (environment::environment(symbol),
10633         environment::environment(const environment *): Initialize
10634         margin_character_flags.
10635         (margin_character): Rewrite.
10636         (environment::output_line): Add a margin character if
10637         margin_character_flags is non-zero.  Turn off the
10638         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
10639         zero, use margin_character_node without copying and then set
10640         margin_character_node to 0.
10642         * devps/DESC.in: Change minimum size to 1000.
10644 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
10646         * troff/symbol.h (symbol::hash): Change return type to unsigned
10647         long.
10648         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
10649         Add casts to int.
10651         * test-groff: Use -r rather than -x.
10653         * grops/psfig.diff: Include in distribution again.
10655 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
10657         * Makefile.in (dist): Use gzip.
10659 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
10661         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
10662         unistd.h as well as in stdlib.h.
10663         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
10664         defined; otherwise include <sys/types.h> and <unistd.h> if
10665         UNISTD_H_DECLARES_GETOPT is defined.
10667         * configure.in: use builtin(include, ... rather than include(...
10668         * configure: Regenerate with autoconf 1.3.
10670         * libdriver/print.cc (printer::adjust_arc_center): Use new
10671         algorithm suggested by Andy Fyfe.
10673         * libdriver/printer.cc (printer::adjust_arc_center): New function.
10674         * include/printer.h: Declare this.
10675         * grops/ps.cc (ps_printer::draw): Use it.
10676         * grodvi/dvi.cc (dvi_printer::draw): Use it.
10678 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
10680         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
10682 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
10684         * eqn/main.cc (main): Handle "eqn -".
10686 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
10688         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
10690         * mm: Integrate version 1.08.
10692         * pic/troff.cc (troff_output::finish_picture): Set
10693         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
10694         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
10695         if it's not defined. Check whether the register is non-zero rather
10696         than whether it's not defined.
10697         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
10699         * indxbib/indxbib.cc: Move all signal handling into...
10700         * indxbib/signal.c: New file.
10701         * configure.in: Call AC_RETSIGTYPE.
10703         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
10704         * configure.in: Call GROFF_STRUCT_EXCEPTION.
10705         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
10707         * troff/input.cc (token::token, token::operator=): Work round SGI
10708         C++ bug.
10709         * pic/object.cc (position::position): Likewise.
10711 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
10713         * pic/pic.h: Move declaration of hypot().
10715 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
10717         * pic/pic.h: Declare hypot().
10719         * pic/pic.h: Define M_PI if necessary.
10721 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
10723         * tmac/tmac.e (re): Add alternative version that doesn't use groff
10724         `.ta T' feature.
10726         * devps/prologue.ps (RE): Handle the possibility that the old font
10727         doesn't have a FontName entry.
10729 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
10731         * tmac/tmac.e (fam): Redefine to set family in environment 2.
10732         (@C): Use @fam not fam.
10734 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
10736         * lookbib/lookbib.cc (main): Change type of start to const char *.
10737         * lkbib/lkbib.cc (main): Likewise.
10739         * eqn/lex.cc (definition::definition): Don't use member
10740         initializer syntax for members of anonymous unions.
10742         * troff/input.cc (input_stack::backtrace): Change type of to const
10743         char *.
10745 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
10747         * include/stringclass.h (class string): Declare inline friend
10748         functions as inline in class declaration.
10749         * troff/hvunits.h (class hunits, class vunits): Likewise.
10750         * include/refid.h (class reference_id): Likewise
10751         * troff/troff.h (points_to_units(units), scale(units, double)):
10752         Delete declarations.
10753         * libdriver/input.cc (get_char): Delete declaration.
10754         * include/lib.h: Change 2nd argument of getopt from const char **
10755         to char **.
10756         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
10757         char **' before assigning to a `const char **'.
10758         * tbl/table.cc: Delete extra declarations of prints().
10760 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
10762         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
10763         char **' before assigning to a `const char **'.
10765         * libgroff/errarg.cc (errarg::errarg): Don't use member
10766         initializer syntax for members of anonymous unions.
10768 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
10770         * mm: Integrate version 1.07.
10772 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
10774         * troff/input.c (translate2): Rename to
10775         (translate_no_transparent).
10776         (init_input_requests): Rename tr2 to trnt.
10778 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
10780         * troff/charinfo.h (class charinfo): Add transparent_translate field.
10781         (charinfo::set_translation, charinfo::set_special_translation):
10782         Add second argument that specifies value for
10783         transparent_translate.
10784         (charinfo::get_translation, charinfo::get_special_translation):
10785         Add optional second argument that specifies whether translation is
10786         being used for transparent throughput.
10787         * troff/input.cc (charinfo::set_translation,
10788         charinfo::set_special_translation): Handle second argument.
10789         (charinfo::charinfo): Initialize transparent_translate.
10790         (translate): Split main part off into
10791         (do_translate): New function.  Pass argument saying whether
10792         translation applies to transparent throughput.
10793         (translate2): New request.
10794         (init_input_requests): Bind translate2 to `tr2'.
10796 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
10798         * tbl/table.h (class table): Add `nokeep' flag.
10799         * tbl/main.cc (process_options): Handle `nokeep' option.
10800         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
10801         table::do_bottom): Don't output keep/release macro definitions or
10802         calls when `nokeep' option has been specified.
10804 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
10806         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
10808 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
10810         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
10811         block_entry::divert, alphabetic_block_entry::divert): Add extra
10812         argument giving column separation.
10813         (table::compute_widths): Pass column separation to
10814         table_entry::divert().
10815         (block_entry::do_divert): If an entry spans multiple columns and a
10816         minimumum width has been specified for each column, then set the
10817         line length to the sum of the widths (plus possibly the column
10818         separations).
10820         * troff/input.cc (set_escape_char): Don't set the escape_char
10821         until after calling has_arg().
10823 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
10825         * tbl/table.cc (table::do_top): Add missing \s0 for double box
10826         case.
10828         * tbl/table.cc (table::print_double_hline): Avoid extra new line
10829         in case where r > nrows - 1.
10831         * tbl/table.cc (BODY_HEIGHT): Deleted.
10832         (LINE_SEP): New definition.
10833         (table::print_single_hline, table::print_double_hline,
10834         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
10835         table::do_row, table::do_top): Use LINE_SEP space before a line
10836         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
10838         * tbl/table.cc (text_entry::print_contents): New function.
10839         (text_string_name, right_text_string_name): Deleted.
10840         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
10841         (simple_text_entry::do_width, numeric_text_entry::do_width,
10842         alphabetic_text_entry::do_width): Don't store the contents of the
10843         entry in a string.
10844         (left_text_entry::simple_print, right_text_entry::simple_print,
10845         center_text_entry::simple_print,
10846         alphabetic_text_entry::simple_print,
10847         numeric_text_entry::simple_print): Print the entry directly
10848         instead of using the stored string.
10850 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
10852         * devps/Makefile: Strip PostScript files.
10853         * devps/prologue: Rename to...
10854         * devps/prologue.ps.
10855         * devps/psstrip.sed: New file.
10856         * devps/download: Use .pfa rather than .ps for installed versions
10857         of fonts.
10859 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
10861         * troff/env.cc (input_trap): Give a warning if the argument is out
10862         of range.
10864         * troff/env.cc (adjust): Treat negative argument as missing. Round
10865         argument > 5 down to 5.
10867         * troff/env.cc (center, right_justify): Make negative argument zero.
10869         * troff/div.cc (page_offset, vertical_position_traps): Treat
10870         invalid argument as missing.
10871         * troff/env.cc (line_spacing, line_length, title_length, indent,
10872         underline, hyphen_line_max_request, control_char,
10873         no_break_control_char, widow_control_request, adjust, input_trap,
10874         point_size): Likewise.
10875         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
10876         constant_space): Likewise.
10877         * troff/input.cc (compatible, shift, warn_request,
10878         set_escape_char): Likewise.
10880         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
10881         * tbl/table.cc (table::table): Likewise.
10883         * Makefile.dev (install_dev): depends on $(DEVFILES).
10885 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
10887         * devX75, devX75-12, devX100, devX100-12: New directories.
10888         * Makefile.in: Add these to DEVDIRS.
10890         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
10891         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
10892         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
10893         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
10894         targets.
10895         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
10896         (uninstall): New target.
10897         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
10898         uninstall_prog, uninstall_dev): New targets.
10900         * troff/div.cc (return_request): Treat an invalid argument as
10901         missing.
10903 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
10905         * tmac/tmac.e ((f): Set up the environment even when there's a
10906         current diversion.  Transperently throughput a call to @N.
10907         (@N): New macro.
10909 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
10911         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
10912         up to vertical resolution.
10914         * tbl/table.cc (table::do_row): Change row number after printing
10915         stuff list.
10917         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
10919 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
10921         * Rename CHANGES to NEWS.
10923 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
10925         * libgroff/new.cc (operator new): Avoid calling malloc(0).
10927 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
10929         * man.ultrix: Removed.
10931 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
10933         * Makefile.comm (extraclean): Delete files whose names begin with
10934         `='.
10936         * pic/troff.cc (troff_output::text): Fix typo in implementation of
10937         aligned text.
10939 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
10941         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
10942         * troff/div.cc (page_length, need_space, space_request): Treat
10943         invalid optional argument as missing.
10944         * troff/env.cc (number_lines): If the first argument is present
10945         but not a number, turn on line numbering, don't change the next
10946         line number and parse the remaining arguments.
10948         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
10950 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
10952         * eqn/box.h: Change declaration accordingly.
10953         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
10954         the specified size was bad but don't give an error.  Check for
10955         overflow.
10956         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
10957         * eqn/lex (do_size): Likewise.
10959 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
10961         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
10962         compatible headers.
10964 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
10966         * tbl/table.cc (table::init_output): Improve error message when
10967         table won't fit on one page.
10969 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
10971         * pic/troff.cc (troff_output::start_picture): Generate line
10972         containing a horizontal motion equal to the width of the picture.
10974         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
10975         using GROFF_COMMAND_PREFIX environment variable.
10977 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
10979         * mdate.sh: Use $NF rather than $(NF).
10981 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
10983         * pic/main.cc (main):  Use %1 not %c in argument to warning.
10985         * eqn/main.cc (main): Output code to check that geqn was given the
10986         correct -T option.
10988 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
10990         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
10991         `ln -s ../Makefile .; make; rm -f Makefile'.
10993         * troff/hyphen: Rename to...
10994         * troff/hyphen.us:
10995         * troff/input.cc (main): Delete -H option. Don't call
10996         read_hyphen_file().
10997         * troff/env.cc: Include searchpath.h and macropath.h.
10998         (exception_dictionary): Deleted.
10999         (ht): Deleted.
11000         (read_hyphen_file): Deleted.
11001         (hyphenation_language): New struct.
11002         (class trie, class hyphen_trie): Move declarations up.
11003         (trie_node::~trie_node): Deleted.
11004         (trie::delete_trie_node): New function.
11005         (trie::do_delete): New pure virtual function.
11006         (hyphen_trie::do_delete): New function.
11007         (trie::~trie): New function.
11008         (hyphen_trie::~hyphen_trie): New function.
11009         (trie::clear): No need to chcek that tp is not 0.
11010         (current_language, language_dictionary): New variables.
11011         (hyphen_word): Give an error if no current language.  Use
11012         exceptions dictionary in current language.
11013         (hyphen_trie::read_patterns_file): Find file using macro_path.
11014         Allow comments (starting with %) in patterns file.  Don't make it
11015         a fatal error if the file can't be found.
11016         (hyphenate): Return if no current language.  Get the exceptions
11017         dictionary and the hyphenation patterns from the current language.
11018         (set_hyphenation_language): New variable.
11019         (hyphenation_patterns_file): New function.
11020         (hyphenation_language_reg): New class.
11021         (hyphenation_language_reg::get_string): New function.
11022         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
11023         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
11024         register.
11025         * groff/groff.cc (main, help, synopsis): Delete -H option.
11026         * include/Makefile.sub: Don't define HYPHENFILE.
11027         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
11028         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
11029         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
11030         hyphenation patterns.
11032 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
11034         * eqn/neqn.sh: New file.
11035         * eqn/Makefile.sub: Handle neqn.sh.
11037         * eqn/eqn.h: Declare `nroff' variable.
11038         * eqn/box.cc (param_table): Add `nroff' param.
11039         (nroff): Define it.
11040         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
11041         variable.
11042         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
11044         * troff/troff.h (WARN_FONT): New warning.
11045         (WARN_TOTAL): Change accordingly.
11046         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
11047         (warning_table): Add WARN_FONT.
11048         * troff/node.cc (mount_font_no_translate): Pass argument to
11049         font::load_font.  If this is non-zero, give a warning.
11050         Don't give an error message when accessing a font that has already
11051         been found to be invalid.
11052         * include/font.h (font::load, font::load_font): Add additional
11053         optional argument which suppresses error message if the font is
11054         not found.
11055         * libgroff/font.cc (font::load_font): Handle additional argument.
11056         (font::load): Add additional argument. If this is non-null, set it
11057         to 1 and don't give error message.
11059         * include/printer.h (printer::end_page): Add argument giving
11060         length of page.
11061         * libdriver/input.cc (do_file): Pass this.
11062         * grops/ps.cc (ps_printer::end_page): Add argument.
11063         * grodvi/dvi.cc (dvi_printer::end_page,
11064         draw_dvi_printer::end_page): Add argument.
11065         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
11066         columns_per_page members. New member nlines.
11067         (DEFAULT_LINES_PER_PAGE): Deleted.
11068         (tty_printer::tty_printer): Don't compute lines_per_page from
11069         font::paperlength. Don't compute columns_per_page from
11070         font::paperwidth.
11071         (tty_printer::add_char): Don't check horizontal position against
11072         columns_per_page. Grow glyphs vector if neccessary.
11073         (tty_printer::end_page): Add argument giving page_length in units.
11074         Discard lines past end of page.
11076 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
11078         * tmac/tmac.tty-char: Fix definition of \(/l.
11080         * tmac/tmac.X: Define \(en.
11082 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
11084         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
11085         lpq, then use lp rather than lpr.
11087         * tmac/tmac.s (par@reset): Don't call `ad'.
11088         (par*env-init): Call `ad'.
11090 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
11092         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
11093         date.
11095         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
11096         * indxbib/indxbib.cc: Likewise.
11098 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
11100         * libgroff/putenv.c: New file.
11101         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
11102         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
11103         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
11104         stdlib.h with AC_HAVE_HEADERS.
11106 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
11108         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
11109         does not exist.
11111 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
11113         * eqn/box.cc (gsize): Make it an int.
11114         (set_gsize): Parse argument handling increment or decrement.
11115         (box::top_level): Convert gsize to a string.
11117         * troff/input.cc (exit_troff): Make buf unsigned char [].
11118         Call to make_temp_iterator casts buf to char*.
11120         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
11122         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
11123         * Makefile.cpg (depend.temp): Likewise.
11125         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
11127         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
11129 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
11131         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
11133 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
11135         * Version 1.06 released.
11137         * Integrate mm 1.04.
11139 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
11141         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
11143 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
11145         * afmtodit/afmtodit.pl: Add -n option that disables generation of
11146         ligatures command.
11147         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
11148         afmtodit. Regenerate.
11150         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
11151         @f back past the current position.
11153         * tmac/tmac.e: Change calls to @R so that comments are not part of
11154         arguments.
11156 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
11158         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
11160         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
11161         check that we can link a call to a function declared in <stdio.h>.
11162         (GROFF_UNISTD_H): New macro.
11163         * configure.in: Call it.
11164         * Makefile.in: Document it.
11165         * include/posix.h: New file.
11166         * troff/troff.h: Don't include <osfcn.h>
11167         * troff/input.cc: Include posix.h.
11168         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
11169         osfcn.h.
11170         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
11171         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
11172         <fcntl.h>.
11173         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
11174         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
11175         * libbib/search.cc (O_RDONLY): Delete definition.
11176         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
11177         Don't include <osfcn.h>.
11179         * acgroff.m4 (GROFF_TIME_T): New macro.
11180         * configure.in: Call it.
11181         * Makefile.in: Document it.
11183         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
11184         * configure.in: Call it.
11185         * Makefile.in: Document -DTRADITIONAL_CPP.
11186         * include/ptable.h: Don't include generic.h.
11187         (name2): Define it.
11189         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
11190         Afterwards remove [T1 and [T2.
11191         (ref*spec!0, ref*spec!2): Use T1 rather than T.
11192         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
11193         (ref*add-T2): Renamed from ref*add-T.
11194         (ref*add-T1): New macro.
11196 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
11198         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
11200         * libbib/index.cc: Include <fcntl.h>.
11201         (O_RDONLY): Define if necessary.
11202         (make_index_search_item, index_search_item_iterator::get_tag,
11203         index_search_item::check_files): Use O_RDONLY.
11204         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
11205         (O_RDONLY): Define if necessary.
11206         (search_list::add_file): Use O_RDONLY.
11207         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
11208         <sys/stat.h>.
11209         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
11210         (main): Use these.
11212         * libbib/index.cc (S_ISREG): Define it if necessary.
11213         (index_search_item::load): Use S_ISREG.
11215         * include/driver.h: Include <errno.h>.
11217 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
11219         * eqn/box.cc (body_height): Increase default value to 85.
11220         (body_depth): Increase default value to 35.
11222 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
11224         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
11225         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
11226         protected from expansion with \E.
11228         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
11230         * Makefile (Makefile): New target.
11232         * Makefile.sub (configure, distfiles): New targets.
11234         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
11235         construct.
11237 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
11239         * eqn/box.cc (param_table): Add body_height and body_depth.
11241         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
11243 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
11245         * psbb/Makefile.sub: Don't link with libgroff.a.
11247         * acgroff.m4 (GROFF_PUTENV): New macro.
11248         * configure.in: Call GROFF_PUTENV.
11249         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
11250         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
11251         is defined.
11253         * troff/env.cc (distribute_space): Rename force_forward argument
11254         to force_reverse.  Reverse the list if force_reverse is true.
11256 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
11258         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
11260         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
11261         height or depth to be negative.  Guard against SUP_RAISE quantity
11262         being negative.
11264 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
11266         * devps/generate/textmap: Add `an' (arrowhorizex).
11267         * tmac/tmac.ps: \(an overlaps horizontally.
11268         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
11270         * devps/symbolchars: Add arrowverttp, arrowvertbt.
11271         * devps/textmap: Add arrowvertex.
11272         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
11273         updownarrow delimiters.
11274         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
11276         * tbl/table.cc (simple_entry::position_vertically,
11277         block_entry::position_vertically):  For a centered entry, perform
11278         the motion in two stages.
11280         * refer/refer.cc (split_punct): Don't call lookup_token if there
11281         is no token.
11283 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
11285         * troff/input.cc (token::next): Delete token_node after copying
11286         token.
11288         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
11289         cur_point_size.
11291         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
11293         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
11295 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
11297         * grops/ps.cc (usage): -b option takes an argument.
11299         * devps/prologue (PLG): New procedure.
11300         * grops/ps.cc (main, usage): New -g option.
11301         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
11302         length using PLG.
11304 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
11306         * include/cset.h: Include <limits.h> if we have it.
11308         * libgroff/illegal.cc: New file.
11309         * include/lib.h (illegal_input_char): Use table.
11310         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
11311         * pic/lex.cc (ARG1): Renumber to 14.
11312         * eqn/lex.cc (ARG1): Likewise.
11314         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
11315         (eg 1.05.90) correctly.
11317 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
11319         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
11320         Rename $r and $R registers to $v and $V.
11321         ($r, $R): Initialize to 0.
11322         (@v, @V): New macros.
11323         (sz): Call @v.
11324         (@M): Call @V.
11326         * troff/input.cc (main, usage): Add -R option that says not to
11327         load troffrc.
11328         * eqn/main.cc (main, usage): Rename -n to -R.
11330 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
11332         * devps/DESC.in: Leave font positions 5-9 blank.
11333         * devdvi/DESC.in: Likewise.
11335         * grog/grog.pl: Handle `.PS <file' correctly.
11337         * troff/input.cc (input_stack::push): Improve error message when
11338         input stack limit exceeded.
11340 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
11342         * refer/refer.cc (main): Fix typo in handling of `a' option.
11344         * refer/refer.cc (do_bib): In state START after a newline remain
11345         in state START.
11347         * groff/groff.sh: Deleted.
11348         * groff/Makefile.sub: Delete handling of groff.sh.
11350         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
11351         to determine whether to use \X'ps:...'.
11352         * tmac/troffrc: Set 0p register to 0.
11353         * tmac/tmac.ps: Set 0p register to 1.
11355         * groff/groff.cc: Support -X option. Give warning for -TXps and
11356         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
11357         * tmac/troffrc: Support -r.X=1.
11359         * pic/troff.cc (troff_output::dot): Don't test
11360         zero_length_line_flag.
11362 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
11364         * include/lib.h: Declare getopt() and friends unless
11365         STDLIB_H_DECLARES_GETOPT is defined.
11367         * doc/chars.tr: Delete.
11368         * man/groff_char.man: New file.
11370 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
11372         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
11373         user has changed register format.
11375 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
11377         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
11378         `postpro' command in DESC file.  Get spooler command from `print'
11379         command in DESC file.  Execute spooler command with /bin/sh.
11381         * groff/groff.cc: Split Unix-specific parts into...
11382         * groff/pipeline.c: New file.
11384         * LICENSE: Delete.
11385         * COPYING: New file.
11386         * all files: Update copyright notices.
11388         * Rearrange files.  Redo Makefiles.  Use autoconf.
11390 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
11392         * troff/input.c (charinfo_to_node_list): Interpret character
11393         definition with escape_char of `\'.
11395 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
11397         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
11398         Define INT_DIGITS as big enough for 64-bit integer.
11399         * lib/strtol.c: Don't include lib.h.
11400         * lib/lib.h: Delete ifdef __cplusplus stuff.
11402 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
11404         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
11405         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
11406         get DESC from current directory.
11408 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
11410         * tbl/main.c (main): Always reset the line number when reading
11411         from stdin.
11413         * tbl/table.c (table::print_single_hline, table::print_double_hline,
11414         table::define_bottom_macro, table::do_row, table::do_top): Round
11415         vertical spacing up to vertical resolution.
11417 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
11419         * ps/ps.h (enum resource_type): Avoid comma at end of
11420         enumerator-list.
11421         * dvi/dvi.c (class dvi_printer): Likewise.
11422         * dvi/tfmtodit.c (gf::load): Likewise.
11423         * refer/label.y (struct expression): Likewise.
11424         * refer/refer.c (class label_processing_state): Likewise.
11425         * refer/indxbib.c (do_file): Likewise.
11426         * troff/troff.c (enum warning_type): Likewise.
11427         * tbl/main.c (process_data): Likewise.
11428         * troff/charinfo.h (class charinfo):
11430 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
11432         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
11434 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
11436         * groff.c: Move to new groff subdirectory.
11437         * groff/Makefile: New file.
11438         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
11440         * man/mdate.sh: Use ls -L if supported.
11442         * Consolidate all header files produced by gendef into lib/defs.h.
11443         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
11444         Don't include path.h.
11445         * lib/Makefile (path.h): Don't generate.
11446         * troff/input.c: Include defs.h. Don't include config.h.
11447         * troff/Makefile (config.h): Don't generate.
11448         * refer/index.h: Don't include suffix.h.
11449         * refer/index.c: Include defs.h.
11450         * refer/indxbib.c: Include defs.h.
11451         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
11452         defs.h.
11453         * refer/Makefile (suffix.h, path.h): Don't generate.
11454         * groff.c: Don't include config.h. Include defs.h.
11455         * Makefile (config.h): Don't generate.
11456         (lib/defs.h): Generate.
11457         (topclean): Remove lib/defs.h.
11459 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
11461         * lib/malloc.c, lib/getpagesize.h: Deleted.
11462         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
11463         related stuff.
11464         * lib/Makefile: Delete malloc-related stuff.
11465         * lib/new.c: Workaround COOKIE_BUG if necessary.
11467         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
11468         needed header files directly.
11469         * refer/refer.h: Omit definition of DEFAULT_INDEX.
11470         * Makefile: Include definition of DEFAULT_INDEX in path.h.
11472 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
11474         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
11475         argument.
11476         * lib/font (font::load_desc, font::load): Don't split argument of
11477         unknown command.
11478         (font::handle_unknown_font_command): Change type.
11479         * ps/ps.c (ps_font::handle_unknown_font_command,
11480         handle_unknown_desc_command): Change type.
11481         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
11483 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
11485         * lib/font.h (font::handle_unknown_font_command): Add file and
11486         line arguments.
11487         * lib/font.c (font::handle_unknown_font_command):
11488         * ps/ps.c (ps_font::handle_unknown_font_command):
11489         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
11490         lineno arguments.  Use _with_file_and_line functions for error
11491         reporting.
11493         * lib/fontfile.c (font::unknown_desc_command_handler): New static
11494         data member.
11495         * lib/font.c (font::set_unknown_desc_command_handler): New
11496         function.
11497         (font::load_desc): For unknown commands, call
11498         unknown_desc_command_handler if not null.
11499         * lib/font.h (class font): Declare them.
11500         (FONT_COMMAND_HANDLER): New typedef.
11501         * ps/ps.c (handle_unknown_desc_command): New function.
11502         (main): Set bflag if we had a -b option. Call
11503         font::set_unknown_desc_command_handler.
11504         (broken.h): Don't include.
11505         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
11506         submake 
11507         * ps/devps/Makefile: Add `broken' command to DESC file using
11508         BROKEN_SPOOLER_FLAGS.
11510         * macros/tmac.e ([, ]): Add as synonyms for { and }.
11512         * macros/tmac.e ($p): Only exdent if \$3 > 0.
11514         * macros/tmac.e (@R, @S): New macros.
11515         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
11516         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
11517         Declare $H, $[0-9], .. macros with @S.
11518         Declare |0, |1, |2, |3 strings with @S.
11520         * macros/tmac.e (@S): Rename to @U.
11522         * macros/tmac.e (@z): Define @b and bp as empty instead of
11523         deleting them,
11525         * macros/tmac.e (@m): Deleted.
11526         (@h): Don't call @m.
11527         (@z): Don't set @m trap.
11529         * macros/tmac.e ($h, $f): Define |z as empty string.
11531         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
11532         (@q): Likewise.
11534         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
11535         removing them.
11536         ()f): Likewise for * register.
11538         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
11539         argument is missing, don't change $R.  Call sr with three
11540         arguments when initializing.
11542 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
11544         * macros/tmac.e (sr): New macro.
11545         Initialize $r and $R using sr.
11547         * macros/tmac.e (,): Delete \*(#[.
11549         * troff/env.c (set_tabs): Read the tab type even if the position
11550         is bad.  Allow the position of the first tab stop to be negative.
11552 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
11554         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
11555         _POSIX_VERSION.
11556         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
11557         rather than -DPATHCONF_MISSING.
11558         * Makefile: Get rid of PATHCONF_MISSING.
11560         * refer/map.c: New file.
11561         * refer/index.c: Interface to mmap through map.c.  Rename map_size
11562         to map_len.
11563         * refer/Makefile: Handle map.c.
11564         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
11566 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
11568         * Makefile: RANLIB should be `true' if there is no ranlib.
11569         * lib/Makefile (libgroff.a): Simplify.
11570         * driver/Makefile (libdriver.a): Simplify.
11572         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
11573         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
11574         defined.
11576 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
11578         * troff/env.c (compare_ranges): Declare as extern "C".
11580         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
11582         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
11584 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
11586         * pic/troff.c (troff_output::text): Merge in grops_output::text,
11587         but conditionalize use of \X based on \*(.T.
11588         (grops_output::*): Deleted.
11589         * pic/output.h: Delete declaration of make_grops_output.
11590         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
11591         by default. -n sets it to 0.
11592         (usage): Corresponding changes.
11593         * groff.c (main): Don't pass -x or -p to pic.
11594         * groff.sh: Likewise.
11596         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
11597         to be non-zero.
11599         * ps/devps/afmtodit: Change calculation of asc_boundary and
11600         desc_boundary.  Make these bounds inclusive.
11601         * ps/devps: Regenerate font files.
11603 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
11605         * macros/tmac.latin1: New file.
11606         * macros/tmac.tty-char: Use tmac.latin1.
11607         (tmac.tty-tr): Deleted.
11608         * macros/Makefile: Install tmac.latin1.
11609         * macros/tmac.dvi: Use tmac.latin1.
11610         * macros/troffrc: Translate \[char160] onto no-break space here.
11611         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
11613 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
11615         * macros/tmac.Xps: Use `do' request.
11617         * macros/tmac.ps: Use `do' request.
11619         * macros/tmac.e (@C): Use `do' request.
11621         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
11622         * macros/Makefile: Install tmac.X*.
11624         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
11625         * tty/Makefile: Don't install tmac.tty*.
11626         * macros/Makefile: Install tmac.tty*.
11628         * dvi/tmac.dvi: Move to macros.
11629         * dvi/Makefile: Don't install tmac.dvi.
11630         * macros/Makefile: Install tmac.dvi.
11632         * ps/tmac.ps*: Move to macros.
11633         * ps/Makefile: Don't install tmac.ps*.
11634         * macros/Makefile: Install tmac.ps*.
11636         * eqn/box.c: Provide draw_lines parameter corresponding to -D
11637         option.
11638         * macros/eqnrc: Set draw_lines parameter based on device.
11639         * groff.c: Don't pass -D flag to eqn.
11640         * groff.sh: Likewise.
11641         * eqn/main.c: Warn about use of -D.
11643         * troff/input.c (process_startup_file): New function.
11644         (main): Call process_startup_file().
11645         * macros/troffrc: New file.
11646         * macros/Makefile: Install troffrc.
11647         * groff.c (main): Don't pass extra -m option to troff. For a 
11648         pseudo device pass the name of the pseudo device to troff using
11649         -d.
11650         * groff.sh: Likewise.
11651         * groff.c (possible_command::prepend_arg): Deleted.
11653         * troff/input.c (do_request): New function.
11654         (init_input_requests): Bind "do" to do_request.
11656         * eqn/main.c (main): Instead of loading eqnchar from device directory,
11657         load eqnrc from macro directory.
11658         * macros/eqnrc: New file.
11659         * macros/Makefile: Install eqnrc.
11660         * ps/devps/eqnchar: Deleted.
11661         * ps/devps/Makefile: Don't install eqnchar.
11662         * dvi/devdvi/eqnchar: Deleted.
11663         * dvi/devdvi/Makefile: Don't install eqnchar.
11664         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
11665         variable optM.
11667         * lib/device.[ch]: New files.
11668         * lib/font.h (font::set_device_name, font::get_device_name):
11669         Deleted.
11670         * lib/fontfile.c: Use device.h.
11671         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
11672         * troff/input.c: Delete definition of `device'.
11673         (main): Don't initialize device.
11674         * troff/troff.h: Include device.h rather than declaring device.
11675         * troff/Makefile: No need to handle DEVICE.
11676         * driver/input.c: Include device.h. Don't use
11677         font::{set,get}_device_name.
11678         * groff.c, Makefile: Rename device.h to config.h.
11679         * groff.c: Use library device variable.
11680         * eqn/main.c: Use library device variable.
11681         * eqn/Makefile: No need to handle DEVICE.
11683         * lib/searchpath.[ch]: New files.
11684         * lib/Makefile: Handle searchpath.[ch].
11685         * troff/input.c (open_file, init_dirs): Deleted.
11686         (macro_dirs): Deleted.
11687         (open_mac_file, macro_source): Use class search_path.
11688         (add_string, struct string_list): Move definition.
11689         (main): Change -M option to use macro_path. Delete call to
11690         init_dirs().
11691         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
11692         Rewrite to use class search_path.
11693         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
11694         * lib/Makefile: fontfile.c depends on searchpath.h.
11695         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
11696         MACROPATH.
11697         * lib/macropath.[ch]: New files.
11698         * troff/Makefile: No need to handle MACROPATH.
11700         * troff/input.c: Delete DUMP code.
11701         * lib/fontfile.c, lib/font.h: Delete
11702         font::forget_command_line_font_dirs.
11704         * troff/input.c (push_token): New function.
11705         (handle_first_page_transition): Use push_token().
11706         (process_input_stack): Change handling of a space at the beginning
11707         of the line.
11709 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
11711         * troff/input.c (font_dirs): Delete unused variable.
11713         * eqn/lex.c (do_set): Correct error messages.
11715 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
11717         * troff/input.c (do_define_string): Allow the string name to be
11718         followed immediately by a tab.
11719         (define_character): Likewise.
11721 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
11723         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
11724         be negative.
11726         * troff/input.c (input_iterator::is_file): New virtual function.
11727         (file_iterator::is_file): New function.
11728         (input_stack::end_file): New function.
11729         (input_stack::next_file): Handle the situation where there is no
11730         file on the input stack correctly.  Avoid making two passes over
11731         the input stack.
11732         (next_file): Make the filename optional; in this case call
11733         input_stack::end_file().
11735 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
11737         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
11738         produce a real _ charater when the current font is CW and _
11739         otherwise.
11741         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
11742         expression to work around gcc 2.2 bug.
11744 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
11746         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
11748         * troff/env.c (environment::add_padding): New function.
11749         (environment::add_char): Use add_padding().
11750         (environment::space): Likewise.
11751         (environment::wrap_up_field): Add some padding if there is none
11752         and there's no current tab.
11753         * troff/env.h: Declare environment::add_padding.
11755 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
11757         * pic/pic.y: undef fmod and rand before declaring them.
11759 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
11761         * troff/input.c (main): If the DESC file specifies a font name of
11762         0, then leave the corresponding font position empty.
11764         * nroff.sh: New file.
11765         * Makefile (install.nobin): Install nroff.sh.
11767         * tty/devlatin1/R.proto: Add ao as synonym for de.
11768         * tty/tmac.tty-char: Define ao as o.
11770         * tty/dev{ascii,latin1}/R.proto: Add aq.
11771         * tty/tmac.tty-char: Delete definition of aq.
11773 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
11775         * troff/input.c (init_charset_table): Don't translate 0240.
11776         * ps/tmac.ps: Translate char160 to space.
11777         * dvi/tmac.dvi: Likewise.
11778         * tty/tmac.tty: Likewise.
11780 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
11782         * dvi/tmac.dvi: Add support for all Latin-1 characters.
11784         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
11785         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
11786         \(oe, \(r?, \(r!.
11788         * tty/tmac.tty-char: Add \(ah.
11790         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
11791         No need to define \(FM and \(!/. Conditionalize all character
11792         definitions.
11794         * ps/devps/lgreekmap: Add +h, +f, +p.
11796         * ps/tmac.psnew: New file.
11797         * ps/Makefile: Install tmac.psnew.
11799         * troff/input.c (charinfo_to_node_list): Don't ever interpret
11800         character definitions in compatible mode.
11802         * troff/input.c (remove_character): New function.
11803         (init_input_requests): Bind remove_character to "rchar".
11805         * ps/tmac.psold: New file.
11806         * ps/Makefile: Install tmac.psold.
11807         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
11808         characters into tmac.psold.  Make these definitions unconditional.
11810         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
11812         * ps/tmac.ps: Don't define \('c and \('C.
11814         * ps/devps/textmap: Move Greek characters to...
11815         * ps/devps/symbolchars:
11817 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
11819         * ps/devps/text.enc: Add quotesingle.
11820         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
11821         * tty/tmac.tty-char: Likewise.
11822         * dvi/devdvi/texmi.map: Add +h, +f, +p.
11823         * dvi/devdvi/texi.map: Add Fn.
11824         * dvi/devdvi/msam.map: Add lz.
11825         * dvi/tmac.dvi: Handle Bq, bq, aq.
11827         * pic/lex.c (get_token): Recognize 'th.
11828         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
11830 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
11832         * ps/devps/textmap: Move di, mu, +- to...
11833         * ps/devps/symbolchars:
11835         * macros/tmac.s (@XS): Don't call par@reset or fi.
11836         (XA): Call LP. Turn off adjustment. Reduce line length.
11838         * macros/tmac.s: Initially alias XS to LP.
11839         (XS): Rename to @XS.
11840         (cov*ab-init): Alias XS to @XS.
11842 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
11844         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
11845         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
11846         (token::is_size, token::changes_env): Deleted.
11847         * troff/number.c (parse_term): No need to process \s explicitly.
11848         Call tok.next() only after scale indicator has been processed.
11849         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
11850         \f etc explicitly.
11851         (token::next): Handle \s, \f, \S, \H immediately rather than
11852         returning them as tokens.
11853         (token::operator==, token::description, token::add_to_node_list,
11854         token::process): Remove handling of deleted tokens.
11856         * troff/env.c (environment::add_char): When adding padding
11857         indicator character, call start_line() if necessary.
11859 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
11861         * ps/devps/afmtodit: Don't output 0 kerns.
11863         * ps/devps/afmtodit: Remove directory from name of encoding in
11864         font description file.
11866         * ps/devps/afmtodit: Improve error messages.
11868         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
11870         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
11871         * ps/devps/FontMakefile: Deleted.
11872         * ps/devps/afmname: New file.
11874         * ps/devps/symbol.sed: New file.
11875         * ps/devps/symbol.diff: Deleted.
11876         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
11877         Generate zapfdr.afm from zapfd.afm.
11879         * tty/tmac.tty (tty-char): Prefix definition with ".
11881         * macros/tmac.an (TP): Don't start a diversion if one has already
11882         been started.
11884         * tty/tmac.tty-char: Add Latin-1 characters.
11886         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
11888 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
11890         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
11891         Move declaration of struct horizontal_span.
11893         * tbl/table.c (table::table): Initialize span_list.
11894         (table::~table): Delete span_list.
11896         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
11898         * ps/devps/Makefile: Avoid dependency on GNU make.
11900         * ps/tmac.ps: Check that character does not already exist before
11901         defining it.
11903         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
11904         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
11905         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
11906         files.
11908         * tty/tmac.tty-char: New file.
11909         * tty/Makefile: Install tmac.tty-char.
11910         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
11911         tmac.tty-char.
11913         * tty/tmac.tty: Fix definition of \(34.
11915         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
11916         bracket-drawing characters onto |. Add *o.
11918         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
11919         only if current_field.
11921         * troff/dictionary.c (dictionary::lookup): Free old_table after
11922         rehashing. 
11924 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
11926         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
11927         whose glyphs are identical to glyphs of some Roman character.
11929         * tty/devlatin1/R.proto (bu): Deleted.
11930         * tty/devascii/R.proto (bu): Deleted.
11931         * tty/tmac.tty: Add definition of \(bu.
11933         * eqn/main.c (do_file): Pass FILE as argument.
11934         (main): Automatically load eqnchar.  New options -F and -n.
11935         Pass do_file an opened FILE.
11936         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
11937         No need to include font.h.
11938         * groff.sh: Likewise.  Don't need to use - for standard input.
11939         Prefix files with -- if first file starts with -.
11941         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
11943         * troff/env.c (environment::possibly_break_line): Don't set line
11944         to 0 across call to output_line().  Don't call output_line() until
11945         after discarding nodes after break.
11947 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
11949         * request.h (macro::empty): Declare it.
11950         * input.c (macro::empty): New method.
11951         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
11952         macro is empty.
11954 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
11956         * troff/env.c (environment::start_field): Decrement space_total
11957         when a space is frozen.
11959 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
11961         * macros/tmac.an (R): Delete macro.
11963         * troff/input.c (get_copy, token::next): Support \# (like \" but
11964         newline is ignored).
11966         * troff/input.c (token::next): Fix error message in 'Y' case.
11968 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
11970         * eqn/delim.c (define_extensible_string): Recognize any prefix of
11971         a delimiter name.
11973 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
11975         * c++test.c: Include <osfcn.h>.
11977         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
11978         <errno.h> doesn't.
11980 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
11982         * tbl/table.c (table::divide_span): Don't count column separation
11983         if expand was specified.
11985         * tbl/main.c (process_format): Don't ignore width specs in
11986         continued format.  Give warning for changing equal widths or
11987         column separation in continued format.
11988         (process_data): Set column separation, minimum width, equal
11989         columns at end of table.
11991 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
11993         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
11994         node::add_discretionary_hyphen): Use soft_hyphen_char.
11995         (set_soft_hyphen_char): New function.
11996         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
11998         * Makefile (c++tested): Give more helpful message if test fails.
12000 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
12002         * troff/input.c (init_charset_table): Translate 0240 to
12003         an unbreakable space.
12005         * troff/token.h (token::hyphen_indicator): New function.
12006         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
12007         translation.
12008         * troff/input.c (translate): Allow translation to \%.
12009         * troff/node.c (node::add_char): Handle
12010         TRANSLATE_HYPHEN_INDICATOR.     
12011         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
12013         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
12014         for \(hy.
12016         * tty/devlatin1/R.proto: \(hy and - should print as 055.
12018 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
12020         * groff.c (run_commands): If the last command gets a SIGPIPE send
12021         a SIGPIPE to all children than haven't yet terminated.  When
12022         command terminates, set pid field to -1.
12024 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
12026         * groff.c (main): Pass an appropriate -filename option to gxditview.
12028 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
12030         * Makefile.bd (install): Remove existing program before copying.
12032         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
12033         programs which have Unix counterparts to be installed with
12034         user-specified prefix.
12036         * troff/input.c (exit_troff): Don't check if exit_started.
12037         (exit_request): Don't call exit_troff if exit_started.
12039         * Makefile.bd (install.mm): Rename to install.dwbmm.
12041 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
12043         * driver/input.c (do_file): Add missing break for '#' case.
12045 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
12047         * troff/input.c (input_stack::clear):  Clear past any boundaries and
12048         then add the boundaries back.
12050         * troff/input.c (exit_troff): Return immediately if already
12051         exiting.
12053         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
12054         end macro.
12055         (pg*end-page): If the text has ended and there are no more
12056         footnotes or keeps, exit.
12058         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
12060         * troff/input.c (init_charset_table): Make \(rq transparent by
12061         default.
12063         * macros/tmac.an: Define lq and rq strings.
12065         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
12067 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
12069         * troff/env.c (environment::final_break): New function.
12070         (environment::newline): Set prev_line_interrupted to 2 if
12071         exit_started.
12072         * troff/env.h: Declare environment::final_break.
12073         * troff/input.c (exit_troff): Call environment::final_break()
12074         instead of environment::do_break().
12076         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
12077         doesn't already exist.
12078         * macros/man.local: New file.
12079         * macros/tmac.an: Load man.local.
12080         * macros/man.ultrix: New file.
12082 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
12084         * troff/input.c (exit_groff): Rename to...
12085         (exit_troff): New function.
12087         * troff/div.c (exit_started, done_end_macro,
12088         seen_last_page_ejector): New global variables.
12089         (began_page_in_end_macro): New static variable.
12090         (exit_flag): Deleted.
12091         (top_level_diversion::top_level_diversion): Initialize
12092         last_page_count.
12093         (top_level_diversion): More elaborate test for whether
12094         cleanup_and_exit() should be called.
12095         Set began_page_in_end_macro if the end macro isn't yet finished.
12096         * troff/div.h (top_level_diversion::last_page_count): New data
12097         member.
12098         (top_level_diversion::set_last_page): New function.
12099         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
12100         * troff/env.c (do_break): Zero prev_line_interrupted.
12101         * troff/input.c (exit_flag): Delete declaration.
12102         (LAST_PAGE_EJECTOR): New magic cookie.
12103         (token::next): Handle LAST_PAGE_EJECTOR.
12104         (exit_groff): Set exit_started and done_end_macro instead of
12105         exit_flag.  Call top_level_diversion::set_last_page.  Push a
12106         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
12107         another ejection after setting seen_last_page_ejector.
12109 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
12111         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
12113         * macros/tmac.e (TH): Make sure there's room for the initial
12114         header.
12116         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
12117         Set FVS in points rather than units.
12119 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
12121         * troff/div.c (top_level_diversion::add_trap): Don't consider the
12122         position of empty slots.
12124 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
12126         * ps/devps/S: Fix height and depth of parenrightex.
12127         * ps/devps/symbol.diff: Regenerate.
12129 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
12131         * tmac.e (u): Do underlining as in -mgs.
12133 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
12135         * tty/tty.c (tty_printer::end_page): If overstriking is
12136         suppressed, still turn overstruck horizontal and vertical lines
12137         into +.
12139         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
12140         2.1.
12142         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
12144 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
12146         * Version 1.05 released.
12148 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
12150         * tty/tty.c: Instead of keeping an array of glyphs and then
12151         sorting it, keep a ordered linked list of glyphs for each line.
12153         * driver/driver.h: Include stddef.h.
12155         * tty/tty.c (compare_glyph):
12156         * refer/refer.c (rcompare):
12157         * troff/env.c (compare_ranges): Arguments of qsort comparison
12158         function should be const void *.
12160         * troff/number.c (parse_term):
12161         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
12162         switch statement.
12164         * refer/label.y (consider_authors): Don't access variables
12165         constructed under a condition outside that condition: put braces
12166         round for statement containing declaration; redeclare use of same
12167         variable later.
12169         * pic/pic.y (text_expr): Delete production that allows
12170         parenthesised text_expr.
12171         (expr): Allow a conditional_expr to appear in parentheses.
12172         (conditional_expr): Rename to any_expr.
12174         * mm: Install new version 1.01 from jh.
12176         * lib/font.c (font::get_width): Cache scaled widths.
12177         (font::font): Initialize widths_cache.
12178         (font::~font): Destroy widths_cache.
12179         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
12181 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
12183         * c++test.c, c++test.ref: New files.
12184         * Makefile: Check that the C++ compiler works.
12186         * ps/tmac.pspic (PSPIC): Do a break.
12188         * ps/tmac.ps: Move definition of PSPIC into...
12189         * ps/tmac.pspic: New file.
12190         (PSPIC): Draw box around picture, but make it invisible to grops.
12191         * ps/tmac.ps: Load tmac.pspic.
12192         * ps/Makefile: Install tmac.pspic.
12194 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
12196         * lib/font.c (scale_round): If n is negative,
12197         subtract .5 before truncating floating point result.
12199         * lib/fontfile.c: Include <errno.h>.
12201 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
12203         * driver/input.c (get_char): Inline. Don't update current_lineno.
12204         Change callers to up date current_lineno if necessary.
12205         Use get_char() instead of getc(current_file).
12207 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
12209         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
12211 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
12213         * tty/tty.c (tmac.tty): Define \(rg as (R).
12215 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
12217         * lib/lib.h: New define a_delete.
12218         * Use a_delete instead of delete when deleting an array of objects
12219         without destructors.
12221         * lib/lib.h: Rename adelete to ad_delete.
12222         * Change uses of adelete.
12224 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
12226         * eqn/eqn.y: Include lib.h.
12228         * troff/node.c (grow_font_table): Delete old_font_table.
12230         * mm: Install new version from jh.
12232 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
12234         * tbl/table.h (format_type): Make global instead of local to class
12235         entry_format.  Prefix enumerators with FORMAT_.
12236         * tbl/table.c, tbl/main.c: Corresponding changes.
12237         * refer/token.h (token_type): Make global.  Prefix enumerators
12238         with TOKEN_.
12239         * refer/token.[ch]: Corresponding changes.
12240         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
12242         * troff/div.c (node::set_vertical_size): Don't name argument.
12244 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
12246         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
12247         * lib/lib.h: Define adelete accordingly.
12248         * pic/object.c (graphic_object::graphic_object):
12249         * tbl/main.c (format::~format):
12250         * tbl/table.c (table::~table):
12251         * refer/ref.c (reference::~reference, reference::merge,
12252         reference::insert_field, reference::delete_field): Use adelete.
12254         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
12255         * refer/token.h:
12256         * tbl/table.h: Corresponding changes.
12258         * common.c (common_output::dashed_arc, common_output::dotted_arc):
12259         Ensure total_angle is positive.
12261 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
12263         * refer/ref.c (reference::merge, reference::insert_field,
12264         reference::delete_field): Avoid delete[0].
12266         * refer/token.c (init_special_chars): Move calls to cmupper
12267         outside calls to init_two_char_letter to work around bug in gcc
12268         2.0.
12270 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
12272         * lib/new.c (operator new): Use __builtin_new for g++.
12274         * pic/object.c (graphic_object::~graphic_object):  Don't use
12275         delete [] on 0.
12277         * pic/object.c (output::compute_scale): Initialize max_width and
12278         max_height.
12280 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
12282         * troff/input.c (write_request): Call fflush.
12284         * troff/node.h (class composite_node): Move declaration to node.c
12285         * troff/input.c (charinfo_to_node): Rename to ...
12286         (charinfo_to_node_list): Return node list rather than composite
12287         node.
12288         * troff/node.c (make_composite_node): New function.
12289         (make_node, add_char): Call make_composite_node instead of
12290         charinfo_to_node.
12291         (class composite_node): Add a tfont * member.  Delete font_size
12292         member.
12293         (composite_node::composite_node, composite_node::copy,
12294         composite_node::size): Corresponding changes.
12295         (composite_node::tprint): Provide constant spacing, emboldening
12296         and track kerning as specified in tfont.
12297         (composite_node::width): Change width calculation accordingly.
12298         * troff/env.h (environment::composite): New member.
12299         (environment::is_composite, environment::set_composite): New
12300         functions.
12301         * troff/env.c (environment::environment): Initialize composite.
12302         * troff/input.c (charinfo_to_node): Call
12303         environment::set_composite.
12304         * troff/node.c (make_composite_node, make_glyph_node): Use the
12305         plain version of the tfont if the environment is composite.
12307         * troff/node.c (font_info::get_space_width): Additional argument
12308         giving space_size.  Handle constant space correctly. Scale by
12309         space_size unless constant spaced.
12310         (env_sentence_space_width): New function.
12311         * troff/node.h: Declare it.
12312         * troff/env.h (environment::get_space_size,
12313         environment::get_sentence_space_size,
12314         environment::get_narrow_space_width,
12315         environment::get_half_narrow_space_width): Make inline.
12316         (environment::get_space_width): Make inline.  Just call
12317         env_space_width.
12318         * troff/env.c: Delete definitions for funtions made inline.
12319         (environment::space_newline, environment::space): Use
12320         env_sentence_space_width(). Don't scale by space_size.
12321         * troff/node.h: Move declarations of env*space_width() functions
12322         into env.h.
12324 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
12326         * macros/tmac.s (PS): Don't try to set negative indent.
12328 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
12330         * pic/pic.y: Fix min function.
12332 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
12334         * man/mdate.sh: Clear LANGUAGE.
12336 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
12338         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
12339         * pic/lex.c: New COMMAND keyword.
12340         * pic/pic.y (print_args, print_arg): New rules.
12341         (placeless_element): Use print_args for PRINT.
12342         New COMMAND element.
12344 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
12346         * troff/input.c (terminal): Handle missing argument correctly.
12348         * pic/pic.y (text_expr): New rule.
12350         * pic/pic.y: Implement := operator.
12352 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
12354         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
12355         mdoc.
12357 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
12359         * ps/devps/dingbatsrmap: Include this in the distribution.
12361         * macros/tmac.doc: Replace with new version from 2nd Networking
12362         Release. Fix loading of doc-* files.
12363         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
12364         * macros/tmac.doc.old: New file.  Apply fixes that had been
12365         applied to old tmac.doc.
12366         * macros/tmac.andoc: Check that we're running under groff.
12367         * macros/Makefile: Rework.
12369 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
12371         * tbl/table.h (format_type): 
12372         * refer/token.h (token_type): If NESTED_TYPES is defined, use
12373         typedef to make these types visible at file scope.
12374         * Makefile: Add NESTED_TYPES configuration option.
12376         * troff/div.c (mark): At the top level use the value of
12377         nl_reg_contents rather than the current vertical position.
12379 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
12381         * tty/tty.c: Implement \D for horizontal or vertical lines.
12382         (tty_printer::set_char): Use vec_used+2 as serial number.
12383         Don't allow size of vector to exceed USHRT_MAX-2.
12384         Split off part into...
12385         (tty_printer::add_char): New function.
12386         (tty_printer::draw): New function.
12387         (compare_glyph): Handle equal serial numbers.
12388         (tty_printer::end_page): Handle overstruck characters from \D.
12389         (main, usage): Implement -d option.
12391 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
12393         * tbl/main.c (process_format):
12394         * eqn/text.c (split_text):
12395         * troff/input.c (token::next): Use inner block for declarations
12396         with initializers in switch statement.
12398 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
12400         * pic/common.c (common_output::dash_line): Cope with zero-length
12401         lines.
12403 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
12405         * Version 1.04 released.
12407 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
12409         * macros/tmac.an (TH): Define a macro an-init to define variables
12410         based on command line arguments.
12411         (an-header): Call it.
12413 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
12415         * Makefile (install.mm): Rename to install.dwbmm.
12417         * Makefile: Integrate mm.
12418         * mm: New directory.
12420 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
12422         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
12423         <sys/types.h>.
12425         * pic/troff.c (troff_output::simple_spline,
12426         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
12427         shadowing parameter.
12429         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
12431         * lib/ptable.h: Add explicit casts when converting from unsigned
12432         long to unsigned.
12434         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
12435         * dvi/devdvi/Makefile: Install SA, SB.
12437         * refer/indxbib.c: Add declaration of mktemp.
12439         * refer/lookbib.c: Add declaration of isatty.
12441 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
12443         * pic/lex.c (interpolate_macro_with_args):  While collecting
12444         arguments, keep track of whether we're in a string.
12446 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
12448         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
12449         down with \v, so as to avoid problems with top of page trap
12450         setting no space mode.
12452 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
12454         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
12456 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
12458         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
12459         Improve error message.
12461 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
12463         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
12464         printf("%03o");
12466 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
12468         * groff.c (possible_command::execp): Always use _exit() after a
12469         failed exec.
12471         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
12472         NO_SYS_WAIT_H   configuration options.
12473         * groff.c: Use these options.  Use POSIX-style macros to extract
12474         fields from the status returned by wait().
12476 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
12478         * tbl/table.c (table::compute_separation_factor): Allow the
12479         separation factor to drop to 0.
12481 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
12483         * refer/search.c: Include <errno.h>.
12485 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
12487         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
12489         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
12490         C++. 
12492         * pic/lex.c (input_stack::bol): Move definition out of class body.
12494         * pic/main.c: On MSDOS munge argv[0].
12496         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
12498         * lib/ptable.c (hash_string): Use unsigned long rather than
12499         unsigned.
12500         (next_ptable_size): Use unsigned rather than int.  Give an error
12501         message if we've hit the largest table size.
12502         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
12503         table size.
12505         * pic/object.h (object_spec): Make flags unsigned long.  Declare
12506         flags as const unisgned long rather than as enums.
12508         * pic/output.c: Deleted.
12510         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
12512         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
12513         Add additional argument.
12514         (line_entry::note_double_vrule_on_{left,right}): Set value of
12515         douvle_vrule_on_{right,left} flag according to argument.
12516         (simple_line_entry::simple_print,
12517         simple_line_entry::double_line_print): If adjacent to double vrule
12518         on a corner extend rather than shorten the rule by half the double
12519         vrule sep.
12521         * troff/number.c (parse_term): In checking for overflow, handle the
12522         case where the current horizontal position is negative.
12524 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
12526         * pic/object.c (draw_arrow): Check for object having zero length.
12528 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
12530         * eqn/main.c (do_file): Split off inline equation handling into...
12531         (inline_equation): New function.  Search for starting delimiter
12532         using...
12533         (delim_search): New function. Don't recognize a delimiter that
12534         occurs in the name of an escape sequence, number register, string
12535         etc.
12537 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
12539         * eqn/delim.c (delim_box::compute_metrics): Don't call
12540         define_extensible_string if left is 0.
12541         (delim_box::output):  Don't print the left delimiter if left is 0.
12542         (delim_box::debug_print): Check for left == 0 before calling printf.
12544 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
12546         * troff/Makefile (majorminor.c): Include only digits in
12547         minor_version.
12549 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
12551         * refer/dirnamemax.c: new file.
12552         * refer/genlimits.c: Deleted.
12553         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
12554         Don't check path length.
12555         * refer/Makefile: Add dir_name_max.o; delete genlimits.
12556         * Makefile: Add PATHCONF_MISSING option.
12558         * refer/indxbib.c (get_cwd): New function.
12559         (main): Use get_cwd().
12560         * lib/getcwd.c: New file.
12561         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
12562         GETCWD in SUBFLAGS.
12563         * lib/Makefile: Compile getcwd.o.
12565         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
12566         userdict.
12568         * refer/indxbib.c (main): Check success of mktemp.
12570         * lib/tmpfile.c: New file.
12571         * lib/Makefile: Add tmpfile.c.
12572         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
12573         * ps/ps.h: Delete declaration of mktemp().
12574         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
12575         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
12576         * driver/driver.h: No need now to include errno.h.
12578         * everywhere: Set errno to 0 before calling fopen().
12580         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
12581         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
12582         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
12584 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
12586         * troff/env.h (translate_space_to_dummy): Declare it.
12587         * troff/env.c (environment::space_newline, environment::space):
12588         If translate_space_to_dummy is set then make the width of spaces 0.
12589         * troff/input.c (translate): If the second character of a
12590         translation is a space, translate to unbreakable space.  If the
12591         first character is a space, set or clear translate_space_to_dummy
12592         according to whether the second character is \&.  Weird!
12594 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
12596         * groff.c (run_commands): Don't use non-zero exit code because a
12597         command gets SIGPIPE.
12599         * groff.c, groff.sh: Use -mXps with -TXps.
12601         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
12602         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
12603         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
12604         (ps_printer::special): New specials invis and endinvis.
12605         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
12606         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
12607         (ps_printer::end_page): Check that invis_count == 0.
12608         (ps_printer::invis_count): New member.
12609         (ps_printer::ps_printer): Initialize invis_count to 0.
12611         * troff/env.c (environment::hyphenate_line): Hyphenation
12612         indicator at beginning of word inhibits splitting after -, \(em
12613         etc.
12615         * pic/pic.y (element): Allow another element to follow } without
12616         any intervening separator.
12618 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
12620         * pic/lex.c (get_delimited): Allow tabs before delimiter.
12622 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
12624         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
12625         declaration of wait() in header files.
12626         * Makefile: Get rid of -DHAVE_UNION_WAIT.
12628         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
12630         * lib/lib.h: Declare return type of strerror as char *.
12632         * man/Makefile: Add g flag to sed substitutions.
12633         * Makefile (shgroff, bindist): Likewise.
12635 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
12637         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
12638         * ps/devps/prologue (PBEGIN): Define showpage after pushing
12639         userdict.
12641 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
12643         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
12644         userdict.
12646 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
12648         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
12649         group.
12651 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
12653         * troff/input.c (define_number_reg):  If currently undefined,
12654         don't define it if the argument is an invalid expression.
12656         * Makefile: Ignore return value of `if' commands without `else'
12657         parts.
12659         * Makefile: Split up CPPDEFINES into a series of separate
12660         configuration options.
12662         * troff/input.c (init_registers): Use time_t instead of long
12663         unless LONG_FOR_TIME_T is defined.  Use returned result rather
12664         than passing pointer.
12665         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
12667         * lib/Makefile (fontpath.h): Use gendef.
12669 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
12671         * troff/input.c (input_iterator::shift): Delete argument name.
12672         * troff/node.c (suppress_output_file::really_begin_page,
12673         suppress_output_file::really_transparent_char, node::ascii_print,
12674         node::tprint): Delete names of unused arguments.
12676 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
12678         * refer/label.y (string):  Pass $4 to command_error.
12680 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
12682         * Version 1.03 released.
12684 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
12686         * Makefile: Pass definition of SHELL in SUBFLAGS.
12688         * gendef: New file.
12689         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
12690         ps/Makefile: Use gendef to construct header files that are
12691         constructed from the Makefile.
12693         * macros/Makefile: make all should build stripped version of tmac.e.
12695         * refer/Makefile (clean): Remove y.output.
12697 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
12699         * ps/pfbtops.c (main): Add -v option which prints out a version
12700         number.
12701         * ps/Makefile (pfbtops): Link with libgroff.a.
12703 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
12705         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
12706         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
12708         * refer/lkbib.c (main): Always terminate reference with blank
12709         line.
12710         * refer/lookbib.c (main): Likewise.
12712         * refer/linear.c (file_buffer::load): Check that the file is not a
12713         binary file.
12715         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
12716         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
12717         Delete second inclusion of <sys/param.h>.
12719 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
12721         * troff/token.h (token::special): Deleted.
12723         * tbl/main.c (process_format): Rework so that opt->tab_char is
12724         recognized only when appropriate.
12726         * ps/Makefile (clean): Remove pfbtops.
12728 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
12730         * lib/font.c (text_file::next): Don't return if we have got a
12731         blank line.
12733 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
12735         * refer/refer.c (store_reference): Get hash code from old_table[i]
12736         when rehashing the table.
12738 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
12740         * eqn/box.c (box::top_level): Save size and prev size using \R and
12741         restore it afterwards. Set the size to the size at the beginning
12742         of the line.
12743         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
12744         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
12746         * refer/Makefile (limits.h): Use ./genlimits.
12748 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
12750         * refer/index.c: Delete declarations of stat() and fstat().
12752 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
12754         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
12756 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
12758         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
12760 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
12762         * troff/input.c (token::get_char): Handle \e.
12764         * refer/linear.c: Delete declarations of fstat() and stat().
12766 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
12768         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
12769         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
12771 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
12773         * troff/input.c (do_define_macro): Improve error handling for end
12774         of file while defining macro.
12776 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
12778         * eqn/box.h: Fix declaration of set_gsize.
12779         * eqn/box.c (set_gsize): Make argument const char *.
12780         (gsize): Declare as char *.
12781         * eqn/main.c (main): Don't convert gsize to int.
12782         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
12784         * Version 1.02 released.
12786 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
12788         * macros/tmac.andoc: New file.
12789         * macros/Makefile: Install tmac.andoc.
12791         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
12792         operator new and delete on OP_DELETE_BROKEN not being defined.
12793         * Makefile: Mention OP_DELETE_BROKEN.
12795 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
12797         * Makefile (bindist): Pass SUBFLAGS.
12799 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
12801         * Makefile, groff.c: Pass definitions to groff.c via device.h.
12803         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
12804         parameter.
12806         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
12808         * ps/ps.h, ps/psrm.c: Make comment_table and
12809         header_comment_table local to resource_manager::process_file.
12811         * groff.sh: With -TXps pass -printCommand option to gxditview.
12813         * groff.c (possible_command::print): Implement using
12814         append_arg_to_string.
12816         * xditview: Merge in new implementation with own ChangeLog.
12818 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
12820         * groff.c (main): Implement PRINT_OPTION.
12821         (append_arg_to_string): New command.
12822         (device_table): Set PRINT_OPTION flag for Xps.
12824 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
12826         * troff/groff.h: Rename to troff.h.
12828         * pic/lex.c (lookup_keyword, docmp): New functions.
12829         (get_token): Use new lookup_keyword.
12830         Don't include key.h.
12831         * pic/key.[ch], pic/pic.gperf: Deleted.
12832         * pic/Makefile: Remove gperf stuff.
12834         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
12835         into output.h.
12836         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
12838         * troff/Makefile, troff/node.c: Move definition of
12839         STORE_WIDTH into node.c.
12841         * etc/grog.pl, etc/grog.sh: Support -mdoc.
12843 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
12845         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
12846         dvi/devdvi/texb.map: Add lq and rq.
12847         dvi/devdvi: Regenerate fonts.
12848         * ps/devps/textmap: Add lq and rq.
12849         * ps/devps: Regenerate fonts.
12850         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
12851         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
12853         * pic/object.c (position_rectangle): When checking radius
12854         cope with possiblity that width or height is negative.
12855         (box_object::box_object): Have separate xrad and yrad with
12856         signs matching signs of dim components.
12857         (box_object::{north,south}_{east,west}): Use xrad and yrad.
12858         (box_object::print): With rounded boxes use absolute values
12859         for dim and rad arguments.
12861         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
12862         in fontpath.h.
12864         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
12866         * various files: Add explicit destructors to keep Saber CC +d
12867         happy.
12869 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
12871         * eqn/box.c (box::top_level): Restore fonts correctly after
12872         font changes in line containing inline equation.  Also
12873         restore previous font as well as current font.
12874         * eqn/pbox.h: Define necessary string and register names.
12876         * troff/input.c (token::next): Case 'R' calls do_register.
12877         (do_register): New function.
12879 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
12881         * groff.c, groff.sh: Support Xps device.  Allow each device
12882         to have a pseudo_name and a real_name.
12884         * groff.c (run_commands): Don't print `Broken pipe' messages.
12886         * ps/pfbtops.c: New file.
12887         * ps/Makefile: Add pfbtops.
12889         * troff/number.c (parse_term): Improved error message.
12891 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
12893         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
12895         * Makefile: Integrate refer.
12896         * refer: New directory.
12897         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
12898         man/lkbib.man: New files.
12899         * man/Makefile: Support refer man pages.
12901         * lib/lib.h: Declare is_prime.
12902         * lib/prime.c: New file.
12904         * troff/input.c (macro_source): New function.
12905         (init_input_requests): Bind "mso" to macro_source.
12907         * troff/env.c (environment::possibly_break_line): Maintain
12908         pointer to pointer to node to be split in ndp so as to avoid
12909         using address of freed node.
12911         * troff/env.c (environment::hyphenate_line): Maintain pointer to
12912         pointer to first node to be hyphenated in startp so as to
12913         avoid using address of freed node.
12915         * troff/env.c (class trie, class hyphen_trie): Make the
12916         elements of the trie be of type char not unsigned char.
12917         Declare arguments to be const char* instead of unsigned char *.
12918         
12919         * troff/env.c (hyphenate): Initialize hbuf[0].
12921         * troff/input.c (set_string): Declare p to be char * and cast
12922         *p to unsigned char when necessary.
12924         * troff/input.c (do_define_macro): Declare s to be const
12925         char*. Cast element to unisgned char when necessary, Declare
12926         d to be an int.  Handle EOF better.
12928         * troff/Makefile, troff/input.c: Different scheme for passing
12929         definitions of MACROPATH, HYPHENFILE and DEVICE.
12931 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
12933         * tty/devascii/R.proto: Delete entry for em.
12934         * tty/devlatin1/R.proto: Likewise.
12936 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
12938         * troff/input.c (translate): Stop when we get a space. Treat eof
12939         like newline.
12941         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
12943 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
12945         * tbl/main.c (process_format): A font name following a `f'
12946         modifier that starts with a digit can be only one character long.
12947         Also deal with EOF on the second character of the font name.
12949 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
12951         * troff/input.c (token::next): Turn \~ into an
12952         unbreakable_space_node.
12953         * troff/node.c (unbreakable_space_node): New class.
12954         * troff/node.h: Declare it.
12956 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
12958         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
12959         it's >= 0, before outputting it as a single byte.
12961 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
12963         * lib/font.c: Make font_char_metric::code an int.
12964         (font::get_code): Change return type to int.
12965         (font::load): Allow code to be arbitrary integer.
12966         * lib/font.h (font::get_code): Change return type to int.
12967         (font::number_to_index): Change argument type to int.
12968         * troff/input.c (token::next):  In case 'N', allow any value.
12969         Store value in token::val.
12970         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
12971         (token::get_char, token::add_to_node_list, token::process): Get
12972         number from val.
12973         (charinfo::set_number): Change argument to int.
12974         (charinfo::get_number):  Require that NUMBERED flag be set.
12975         (get_charinfo_by_number): Store numbered characters not between 0
12976         and 255 in a dictionary.
12977         * troff/charinfo.h (get_charinfo_by_number): Change argument type
12978         to int.
12979         (charinfo::number): Change type to int.
12980         (charinfo::set_number): Change type of set_number to int.
12981         * troff/node.c (troff_output_file::put_char_width,
12982         troff_output_file::put_char): Test whether character is numbered
12983         using charinfo::numbered().
12984         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
12985         values of num.
12986         * lib/nametoindex.c: New implementation to cope with arbitrary
12987         number characters.
12989         * troff/input.c (token::operator==): Test val for
12990         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
12991         TOKEN_SIZE.
12993         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
12994         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
12996 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
12998         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
12999         variable.
13001         * all Makefiles: rm targets of cp and >.
13003         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
13004         it.
13006         * eqn/lex.c (def_table): Add dollar.
13008 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
13010         * troff/input.c (do_width): Push back newline before closing delim
13011         like do_bracket.
13013 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
13015         * groff.c (possible_command::prepend_arg): New function.
13016         (main): Prepend device -m option.
13017         * groff.sh: Put device -m options before command-line options.
13019 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
13021         * macros/tmac.an (IP): Quote argument to TP.
13023         * ps/ps.c (main): New option -b, which sets...
13024         (broken_flags): New variable.
13025         (ps_printer::~ps_printer): Incorporate the setup section in the
13026         prolog if (broken_flags & NO_SETUP_SECTION).
13027         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
13028         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
13029         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
13030         ps_printer::print_needed_font_comment,
13031         ps_printer::print_supplied_font_comment,
13032         ps_printer::print_include_font_comments,
13033         ps_printer::lookup_doc_font, ps_printer::download_fonts,
13034         ps_printer::read_download_file, read_document_fonts, add_font,
13035         skip_line, parse_fonts_arg, document_font::document_font,
13036         document_font::~document_font, document_font::download,
13037         ps_output::include_file):  Deleted.
13038         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
13039         rather than %!PS-Adobe-2.0.  Make calls to
13040         resource_manager::need_font for each font that we used. Replace
13041         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
13042         print_supplied_font_comment, print_needed_font_comment by call to
13043         resource_manager::print_header_comments. Output %%Orientation
13044         comment. Output %%Requirements: numcopies comment if ncopies > 1.
13045         Don't output the prolog directly.  Instead call
13046         resource_manager::output_prolog.  Only define #copies when ncopies
13047         > 1.  Delete calls to print_include_font_comments  and
13048         download_fonts.  Add call to resource_manager::document_setup.
13049         (ps_printer::do_file): Call resource_manager::import_file instead
13050         of including it ourselves.
13051         (ps_printer::do_import): Likewise.  Also don't call
13052         merge_import_fonts. Push userdict on the dictionary stack before
13053         and pop it afterwards.
13054         Move declaration of ps_output into ps.h.
13055         * ps/psrm.c: New file implementing resource_manager class.
13056         * ps/ps.h: New file declaring ps_output and resource_manager
13057         classes.
13058         * ps/devps/zapfdr.ps:
13059         * ps/devps/symbolsl.ps:
13060         * ps/devps/prologue:  Use 3.0 conventions.
13061         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
13062         Add default definition of BROKEN_SPOOLER_FLAGS.
13063         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
13064         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
13066 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
13068         * etc/grog.pl: New file.
13069         * Makefile (GROG): New variable.
13070         Add GROG to SUBFLAGS.
13071         * etc/Makefile (GROG): New variable.
13072         (install.nobin): Install $(GROG) rather than grog.sh.
13074 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
13076         * eqn/special.c (special_box::compute_metrics): Make the input and
13077         output strings the same.  Get the new height and depth from the
13078         predefined height and depth registers.  Also make subscript kern
13079         and skew available.
13080         (special_box::compute_subscript_kern, special_box::compute_skew):
13081         New functions.
13083         * eqn/box.c (pointer_box::compute_skew,
13084         simple_box::compute_metrics, box::top_level)
13085         * eqn/text.c (prime_box::compute_metrics,
13086         prime_box::comput_subscript_kern)
13087         * eqn/limit.c (limit_box::compute_metrics):
13088         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
13089         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
13090         negative numbers in `nr' requests with a leading 0.
13092 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
13094         * eqn/special.c: New file.
13095         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
13096         Add new rule for simple.
13097         * eqn/lex.c (token_table): Add SPECIAL.
13098         * eqn/box.h: Declare make_special_box.
13099         * eqn/Makefile: Add special.[co].
13101 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
13103         * ps/devps/prologue: Possibly set packing to true while defining.
13104         Create grops dictionary here.  Initialize local variables before
13105         defining procedures.
13106         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
13107         the dictionary stack. Set strokeadjust and overprint to false if
13108         the relevant operators are defined.
13109         (PEND): New procedure.
13110         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
13111         prologue.  Do everything else in the setup section.
13112         (ps_printer::do_import): Just call PBEGIN and PEND around the
13113         picture. Also push userdict before, and pop it afterwards.
13115 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
13117         * troff/node.c (bracket_node::tprint): Brackets were being printed
13118         1m too low.
13120         * macros/tmac.an (SH, SS): Set fill mode.
13122 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
13124         * troff/div.c (top_level_diversion::begin_page): Set
13125         high_water_mark to 0.
13127 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
13129         * man/mdate.sh: New file.
13130         * man/mdate.c: Deleted.
13131         * man/Makefile: Use mdate.sh instead of mdate.
13132         (mdate): Deleted.
13134         * eqn/lex.c (do_gsize): Supply missing argument to error message.
13136 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
13138         * man/mdate.c: New file.
13139         * man/*.man: Replace modification date by @MDATE@.
13140         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
13141         (mdate): New target.
13143         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
13144         Remove illegal input characters.
13146 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
13148         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
13150 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
13152         * troff/div.c (begin_page): Change behaviour when
13153         !first_page_begun and !break_flag.
13155         * troff/input.c (do_name_test): Return 0 if argument is empty.
13157         * troff/input.c (read_long_escape_name): Require closing ] to be
13158         at same input level as opening [.
13160         * troff/input.c (read_increment_and_escape_name): New function.
13161         (get_copy, process_input_stack): Use this for \n.
13163 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
13165         * troff/div.c (top_level_diversion::begin_page): Ignore the
13166         current value of page_number if !first_page_begun.
13168         * groff.c (main): Fix declaration of buf.
13170         * troff/input.c (do_name_test): New function.
13171         (token::next): Implement \A.
13172         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
13173         (token::description, token::add_to_node_list, token::process):
13174         Handle TOKEN_ESCAPE.
13175         * troff/token.h: New token TOKEN_ESCAPE.
13177 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
13179         * pic/main.c (do_picture): Allow space before and after filename
13180         following `<'.  Check that the filename is not empty.
13182 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
13184         * Version 1.01 released. 
13186         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
13188         * dvi/tmac.dvi: ftr HR to H.
13190         * macros/tmac.e: Round up computation of $r.
13192         * xditview/tmac.X:  Don't give up completely in compatibility mode.
13193         Use \n(.s instead of \n[.s].
13195         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
13196         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
13197         Add u to factors inside \s[...]. Rename frac to dvi-frac.
13198         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
13199         short names in the char definitions.
13201         * ps/tmac.ps: Don't give up completely in compatibility mode.
13202         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
13203         quote in front of \n(.s. Add u to factors inside \s[...].
13205 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
13207         * tty/tmac.tty: Call the nroff request.
13209         * macros/tmac.e ((x, )x):  Better definitions that work properly
13210         in a diversion.
13211         (@0, @1): Helper macros for (x.
13213         * macros/tmac.e ($s, hl): Use \l rather than \D.
13215         * tty/tmac.tty: Make it work better in compatibility mode.
13216         (pchar): Rename to tty-char.
13218         * macros/tmac.e (@E): New macro.
13219         (r, i, b, rb, bi): Use @E.
13221         * macros/tmac.e (@F): Don't use (;...) syntax.
13223         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
13224         it was modified for groff.
13226         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
13228         * macros/tmac.e (<., .>): Removed.
13229         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
13231         * macros/tmac.e: Remove check that groff is being used.
13233         * macros/tmac.e (@C): Change families only if using groff; turn
13234         compatibility mode off while changing familes. Save compatibility
13235         mode before changing families and restore it afterwards.
13237         * macros/tmac.e (@h): Remove test for offset + line length.
13239         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
13240         (lo, th, ac): Define to call @S instead of using als.
13242         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
13243         the ratio of the vertical spacing to the point size in units
13244         expressed as a percentage.  Use these instead of $10r and $10R,
13245         Delete $10r and $10R.
13247         * lib/font.c (font::load): In default computation of space_width,
13248         divide by sizescale.  Use scale_round.
13250         * macros/tmac.an (TP): Don't call `nf'.
13251         (an-do-tag): Don't call `fi'.
13253 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
13255         * troff/input.c (process_input_stack): Handle the case where
13256         spaces at the beginning of an input line are followed by a
13257         newline.
13259 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
13261         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
13262         * groff.sh: Use pic -x with the dvi device.
13264         * dvi/devdvi/FontMakefile (H): Don't use -s.
13266         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
13267         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
13268         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
13269         in FONTS.
13271 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
13273         * ps/psfig.diff: New file.
13274         * ps/tmac.psfig: New file.
13276 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
13278         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
13279         (]-): Don't call ref*do-tl.
13281         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
13283         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
13284         (fn@do-FS): Rename to fn*do-FS.
13286         * troff/input.c (transparent_translate): New function.
13287         (process_input_stack): Apply transparent_translate before calling
13288         diversion::transparent_output(unsigned char).
13290 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
13292         * troff/input.c (do_define_macro): Define the macro before calling
13293         skip_line.
13295         * xditview/Makefile: Add DEVICES variable.  Change install target
13296         to use this.
13298 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
13300         * groff.c (run_commands): Handle the possibility that there are
13301         child processes other than those forked by us.
13303 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
13305         * lib/string.c (string::append): New function.
13306         * lib/stringclass.h: Declare it.
13308 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
13310         * eqn/main.c (main): New option -N which sets
13311         no_newline_in_delim_flag. 
13312         (do_file): If no_newline_in_delim_flag is set don't allow newlines
13313         in delimiters.
13314         * groff.c (main): Pass -N on to eqn.
13315         (help, synopsis): Mention -N.
13316         * groff.sh: Implement -N.
13318 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
13320         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
13321         (]-): Call ref*do-tl if ref*need-tl is non-zero.
13322         (XP): Allow as initializer.
13324 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
13326         * troff/env.c (environment::wrap_up_field): If field_spaces are
13327         non-zero and we have a current_tab, subtract padding from
13328         tab_distance.  If this makes tab_distance <= 0, use the next tab
13329         stop instead.  If there isn't any next tab or it's a left tab,
13330         wrap up the current tab.
13331         (environment::start_field): Initialize tab_precedes_field.
13332         (environment::wrap_up_tab): If there's a current field, update
13333         pre_field_width, field_distance and tab_precedes_field.
13334         * troff/env.h (environment::tab_precedes_field): New member.
13336 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
13338         * ps/ps.c (ps_printer::do_file): New function.
13339         (ps_printer::special): Bind to `file' special.
13340         (ps_printer::do_exec): Set ndefined_styles to 0.
13342 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
13344         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
13345         Avoid stripping first character from the start of unrecognized
13346         escapes.  Use lex_error instead of error to report errors.
13347         * eqn/lex.c (get_token): Rework handling of escapes.
13348         (lex_error): Move declaration into...
13349         * eqn/eqn.h.
13351         * xditview/xditview.c (main): Make -page option work.
13353         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
13355 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
13357         * macros/tmac.s (B2): Correct size of box.
13359 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
13361         * macros/tmac.s (B2): Postpone drawing the box until in the
13362         top-level diversion.
13364         * tty/tmac.tty: Add font translations for C, CR, CW.
13366         * groff.c (synopsis, help): Document -i.
13367         * groff.sh: Implement -i.
13369         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
13370         Simplify the construction of SN.
13372         * troff/number.c (parse_term): Give `|' a higher precedence.
13373         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
13374         accordingly.
13376         * macros/tmac.s (B2): Use par@finish instead of par@reset.
13378 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
13380         * lib/string.c (string::move): New function.
13381         * lib/stringclass.h: Declare it.
13383 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
13385         * troff/env.c (distribute_space): Add optional argument
13386         `force_forward'.
13387         (environment::wrap_up_field): Call distribute_space with
13388         `force_forward' argument of 1.
13390 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
13392         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
13393         Inline it.  Move reallocation into...
13394         (string::grow1): New function.
13395         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
13396         dependencies to include library header files.
13397         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
13399 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
13401         * macros/tmac.s (@NH): Use the same number registers than -ms does
13402         for the heading level counters.  Use the same string that -ms does
13403         for the number for this heading.
13405 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
13407         * lib/new.c (operator new): Cast result of malloc to char *.
13409         * troff/input.c (spring_trap, lookup_request): Add assert that nm
13410         is not null.
13412 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
13414         * groff.c (main): Support -i.
13416 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
13418         * pic/pic.h: Include <osfcn.h>.
13420         * ps/ps.c: Add declaration of mktemp.
13422         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
13423         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
13424         argument as union wait *.
13425         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
13426         argument to union wait *.
13428 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
13430         * tty/tmac.tty: Add definition of \(co.
13432         * pic/object.c (make_arc): Only increase radius when radius
13433         strictly less than d.
13434         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
13435         more than once.
13437         * troff/env.c (environment::environment(symbol),
13438         environment::environment(const environment *)):  Initialize
13439         input_trap_count.
13441 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
13443         * tbl/main.c (main): Add exit(0).
13445         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
13447         * pic/main.c (main):
13448         * eqn/main.c (main):
13449         * tbl/main.c (main):
13450         * etc/soelim.c (main):
13451         * driver/printer.c (printer::~printer):
13452         * troff/node.c (real_output_file::~real_output_file,
13453         real_output_file::flush):  Check for errors on stdout.
13455         * most files: Add 1991 to copyright notice.
13457         * macros/tmac.s: Don't test \n(.x and \n(.y.
13459         * troff/input.c (token::next): Rename `escape_char' label to
13460         `handle_escape_char' and `normal_char' label to
13461         `handle_normal_char'.
13463 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
13465         * groff.c (main, synopsis, help): Support -a option.
13466         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
13467         to trflags while parsing options.
13469 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
13471         * troff/number.c (parse_term): With `m', `M' and `n' scale
13472         indicators, convert scale factor to hunits before scaling.
13474 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
13476         * lib/font.c (scale_round): Better test for overflow when n is
13477         negative.
13479 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
13481         * tbl/main.c (process_format): Add second argument of type
13482         options*. Change callers.  Allow opt->tab_char as well as '\t'
13483         between format items.
13485 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
13487         * macros/tmac.an (PD): With no arguments, make sure register PD is
13488         at least \n[.V].
13489         (TH): Call PD with no argument, instead of setting register PD
13490         directly.
13492 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
13494         * Version 1.00 released.
13496 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
13498         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
13500         * dvi/devdvi/DESC: Mount CW instead of CR.
13502         * dvi/tmac.dvi: Add definition of \(tm.
13504         * dvi/devdvi/texsy.map: Add lh, and rh.
13505         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
13506         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
13508         * dvi/devdvi/FontMakefile: Generate H from cmss10.
13509         * dvi/devdvi/Makefile: Install H.
13510         * dvi/devdvi/H: New file.
13512 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
13514         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
13515         be 0.
13517 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
13519         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
13521         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
13523         * macros/tmac.s (@EN): Handle the case where the equation is empty
13524         but the label is not.
13526 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
13528         * troff/groff.h: New warning category WARN_SPACE.
13529         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
13530         WARN_SPACE to warning_table.
13531         (interpolate_macro): Give a warning of type WARN_SPACE if the name
13532         is longer than two characters and is not defined, but the first
13533         two characters do make a defined name.
13535         * PROBLEMS: New file.
13537         * CHANGES: New file.
13538         * README-0.6, README-1.00: Deleted.
13540         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
13541         * xditview/devX75/Makefile: Make devX75-12.
13542         * xditview/devX100/Makefile: Make devX100-12.
13544         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
13545         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
13547 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
13549         * README-0.7: Rename to README-1.00.
13551         * macros/tmac.pic: New file.
13552         * macros/Makefile (install.nobin): Install tmac.pic.
13554 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
13556         * troff/env.c (hyphen_word): Correct the test for whether the
13557         token is a hyphen.  Reset npos to 0.
13559         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
13561 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
13563         * macros/tmac.s (ds*common-end): Call par*reset.
13564         (PE): Likewise.
13565         (par@reset-indent): Deleted.
13567         * macros/tmac.s (@IP): Divert the label.
13569 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
13571         * xditview/draw.c (setGC): Use a line width of .1m rather than
13572         .04m by default; round rather than truncate value.
13574         * tbl/table.c (class empty_entry): New class.
13575         (empty_entry::empty_entry, empty_entry::line_type): New functions.
13576         (table::add_entry): Represent empty entries by objects of type
13577         empty_entry.
13578         (table_entry::line_type): Return -1.
13579         (table::determine_row_type): Ignore entries with line_type 0.
13580         Treat type -1 as non-lines.
13582 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
13584         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
13585         macros/tmac.s: Rename \(-d to \(Sd.
13587 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
13589         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
13590         * xditview/libXdvi/DviChar.c: Likewise.
13591         * dvi/devdvi/texsy.map: Add `<<', `>>'.
13593 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
13595         * troff/div.c (top_level_diversion::begin_page): Call
13596         init_output() if the_output is 0.
13598 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
13600         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
13601         ESCAPE_c.
13602         (get_copy): Turn \E into ESCAPE_E.
13603         (token::process, asciify): Handle ESCAPE_E.
13605         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
13606         (RD): New macro.
13607         (DS): Implement `.DS R'.
13609 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
13611         * macros/tmac.s (FS): New macro.
13613         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
13615         * macros/tmac.s (cov*tl-init): Remove after first execution
13616         instead of aliasing to @nop.  Call top of page macro explicitly
13617         instead of setting trap; call @init first.  Set pg@top as top of
13618         page macro.
13619         (cov*auto-init): Deleted.  Set cov*tl-init instead of
13620         cov*auto-init as top of page trap. 
13621         (TL, LP): Do a break instead of calling cov*tl-init.
13622         (cov*print): With RP format but no TL, alias FS and FE to @FS and
13623         @FE; in this case also give a warning and always start another
13624         page. No need to set pg@top here.
13625         (cov*tl-init): Rename to cov*first-page-init.
13627         * macros/tmac.s (RP): Do `.pn 0'.
13628         (cov*tl-init): With RP format don't do `.pn 0'.
13630         * macros/tmac.s (pg@cs-top): Set no space mode.
13632         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
13633         (cov*ab-init): Alias TL, AU and AI to these.
13635 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
13637         * macros/tmac.s (@EQ): Move the space before the equation into @EN
13638         (@EN): Do nothing unless \n[dl] is > 0.
13640 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
13642         * pic/object.c (ellipse_object::radius): New function.
13644         * VERSION: Change version to 0.7.
13646         * tbl/table.c (block_entry::do_divert): Declare return type as
13647         void.
13648         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
13650 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
13652         * troff/column.c: New file.
13653         * troff/Makefile: Corresponding changes.
13655         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
13656         Friend of vunits.
13658         * troff/div.c (top_level_diversion::space): If the space causes
13659         the first-page transition and springs a trap, truncate the space
13660         to 0.
13662 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
13664         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
13665         the document.
13667         * pic/troff.c (troff_output::line_thickness,
13668         troff_output::set_fill): Do a horizontal motion to compensate for
13669         the width of the \D escape sequence.
13671 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
13673         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
13674         (not X75).
13676         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
13677         to printf.
13679         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
13680         Supply empty definition.
13681         (text_entry::simple_print, simple_text_entry::simple_print):
13682         Delete declarations.
13683         (table::add_entry): Represent empty entries by objects of type
13684         `simple_entry'.
13686 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
13688         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
13690         * tbl/table.c (left_text_entry::add_tab): New function.
13692         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
13693         initialize like LP.
13695 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
13697         * troff/env.c (environment::start_field): Give an error message if
13698         there is no next tab.
13700 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
13702         * troff/env.c (hyphenate): Skip initial elements with zero
13703         hyphenation code.
13705         * macros/tmac.s (par@init): Keep VS in points rather than units.
13707 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
13709         * pic/main.c (main): Implement `-c' option.
13710         * pic/output.h: Declare make_tpic_output().
13711         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
13712         protected.
13713         (tpic_output): New class.
13714         (tpic_output::tpic_output, tpic_output::set_pen_size,
13715         tpic_output::command, make_tpic_output): New functions.
13717 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
13719         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
13720         if they're not already defined.
13721         * tbl/table.c (init_output): Don't test \n(.g.
13723         * troff/input.c (do_if_request): Delete `g' condition. Recognize
13724         `d', `r' and `c' conditions even in compatibility mode.
13726 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
13728         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
13729         box.
13731 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
13733         * troff/env.h (environment::prev_line_interrupted): New member.
13734         (environment::get_prev_line_interrupted): New function.
13735         * troff/env.c (environment::newline): Set prev_line_interrupted.
13736         (environment::environment(const environment *),
13737         environment::environment(symbol)): Initialize
13738         prev_line_interrupted.
13739         * troff/input.c (process_input_stack): Don't give special
13740         treatment to space and newline at the beginning of the line if the
13741         previous line was interrupted.
13743 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
13745         * eqn/eqn.y: Disallow PRIME by itself.
13746         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
13747         PRIME.
13748         (def_table): Remove definition of '.  Define prime to be `.
13750         * eqn/eqn.y: Split off part of rule `script' into a new rule
13751         `nonsup'.
13753 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
13755         * macros/tmac.s ({, }): New string aliases.
13757 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
13759         * README-0.7: New file.
13761 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
13763         * macros/tmac.s: New file.
13764         * man/groff_ms.man: New file.
13765         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
13766         * Makefile.bd: Similarily.
13767         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
13768         definition of TMAC_S.
13769         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
13770         * macros/TODO: New file.
13772 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
13774         * troff/env.c (right_justify): New function.
13775         (init_env_requests): Bind this to request "rj".
13776         (center_lines): Set right_justify_lines to 0. If we get a bad
13777         integer, center 1 line.
13778         (environment::environment(symbol), environment::environment(const
13779         environment *)): Initialize right_justify_lines.
13780         (environment::get_right_justify_lines): New function.
13781         (init_env_requests): Bind this to number_register ".rj".
13783         * troff/env.c (environment::choose_breakpoint): Implement
13784         hyphenation_margin and hyphenation_space.
13785         (environment::get_hyphenation_space,
13786         environment::get_hyphenation_margin): New functions.
13787         (init_env_requests): Bind these to .hys and .hym.
13788         (hyphenation_space_request, hyphenation_margin_request): New
13789         functions
13790         (init_env_requests): Bind these to hys and hym.
13791         (environment::environment(symbol), environment::environment(const
13792         environment *)): Initialize hyphenation_margin and
13793         hyphenation_space.
13794         * troff/env.h: Corresponding changes to class environment.
13796 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
13798         * troff/div.c (blank_line): Always do a break.
13800         * eqn/box.c (do_text): Turn off escapes while appending text to
13801         string.
13803 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
13805         * troff/input.c (while_break_request, while_continue_request): New
13806         functions.
13807         (init_input_requests): Bind these to "break" and "continue".
13808         (while_depth, while_break_flag): New variables.
13809         (while_request): Update while_depth.  Break out of loop if
13810         while_break_flag is set.
13812 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
13814         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
13815         rather than 0.
13817 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
13819         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
13821         * stringify: New file.
13822         * Makefile (groff.o): Use stringify.
13824         * xditview/tmac.X: Remove definition of \(rn.
13825         * xditview/libXdvi/DviChar.c: Remove radicalex from
13826         Adobe_symbol_map.
13828 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
13830         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
13831         (alphabetic_block_entry::alphabetic_block_entry,
13832         alphabetic_block_entry::divert, alphabetic_block_entry::print):
13833         New functions.
13834         (block_entry::divert): Split off body into ...
13835         (block_entry::do_divert): If the block is alphabetic, subtract 2n
13836         from the line length; also update the span width to dl+2n, and the
13837         alphabetic span width to dl.
13839         * driver/input.c (do_file):  While reading argument to D command,
13840         when expanding buffer, multiply szp by sizeof(int) rather than 2
13841         in the argument to memcpy.
13843         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
13844         width of alphabetic columns.
13846 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
13848         * troff/node.c (lookup_family): Supply second argument to lookup.
13850         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
13851         search, return immediately if v is 0.
13853         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
13854         (troff_output::start_picture): Set this reg.
13855         (troff_output::end_picture): Remove this reg
13856         * eqn/box.c (box::extra_space): Don't produce `\x's if
13857         EQN_NO_EXTRA_SPACE_REG is defined.
13859         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
13860         * eqn/text.c (split_text): Map ' to \(fm when it's the first
13861         character.
13863 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
13865         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
13866         requests.
13868         * troff/div.c (top_level_diversion::top_level_diversion):
13869         Initialize page_number to 0.
13871 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
13873         * groff/troff (environment::environment(const environment *)):
13874         Initialize name to e->name, rather than "anonymous".
13876 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
13878         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
13879         requested_page.  Split middle part into ...
13880         (FindPage): New function.
13881         (SetValues): If we don't yet know the last page, and the requested
13882         page is greater than the current page, call FindPage.
13883         Update the font_map_string before doing this.
13885         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
13886         Translate \(lh and \(rh into left and right double arrows.
13888         * troff/node.c (class hyphen_inhibitor_node): New class.
13889         (hyphen_inhibitor_node::hyphen_inhibitor_node,
13890         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
13891         hyphen_inhibitor_node::type,
13892         hyphen_inhibitor_node::get_hyphenation_type): New functions.
13893         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
13894         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
13895         word.
13897 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
13899         * troff/node.h (dummy_node::get_hyphenation_type,
13900         transparent_dummy_node::get_hyphenation_type):  Declare them.
13901         * troff/node.c: (dummy_node::get_hyphenation_type,
13902         transparent_dummy_node::get_hyphenation_type): New functions.
13904 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
13906         * xditview/libXdvi/draw.c: If M_PI not defined after including
13907         math.h, then define it.
13909         * xditview/Makefile: Add definition of AR. Pass it to the submake
13910         in libXdvi.
13911         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
13913 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
13915         * troff/dictionary.h (object_dictionary::alias): Declare return
13916         value as int.
13917         * troff/dictionary.c (object_dictionary::alias): Return non-zero
13918         if the old name was defined.
13919         * troff/input.c (alias_macro): Give a warning if the old name was
13920         not defined.
13921         * troff/reg.c (alias_reg): Likewise.
13923 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
13925         * troff/input.c (token::next): Delete implementation of \R.
13927         * macros/Makefile: Strip comments from tmac.e while installing it.
13929         * troff/input.c: New variable `nroff_mode'.
13930         (troff_request, nroff_request): New functions.
13931         (init_input_requests): Bind `troff' and `nroff' to troff_request
13932         and nroff_request.
13933         (do_if_request): Compute results of t and n conditions from
13934         nroff_mode.
13936         * text/text.c (split_text): Fix typo in >=.
13938         * eqn/lex.c: Add definition of `==' to def_table.
13940 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
13942         * pic/tex.c (tex_output::start_picture): Change the definitions of
13943         \graph and \graphtemp so that they work properly with Plain TeX.
13945         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
13946         argument to `ar' is not less than the first.
13948         * pic/pic.y: Allow a comma between elements of the variable list
13949         in the argument to `reset'.
13951         * pic/object.c (arc_object::arc_object): Fix computation of
13952         radius.
13954         * eqn/main.c (main): Add exit(0).
13956 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
13958         * troff/div.c (begin_page): Test no_space_mode after doing the
13959         break, but still push the page ejector cookie before doing the
13960         break.  Also set the next page number after doing the break.
13961         
13962         * xditview/xditview.c (NewFile): Don't set the title and icon name
13963         if this is the first file and its name is `-'.
13964         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
13965         the X75 and X100 devices.
13966         (main): If a device has the XT_OPTION flag set and there's exactly
13967         one file argument, pass the driver -xrm and -title options to set
13968         the icon name and window title to the name of the file.
13970         * troff/env.c (environment_switch): If there was an argument but
13971         it wasn't a valid number or name, then pop an environment but
13972         don't give an error message on underflow.
13974         * troff/number.c (start_number): Correct spelling in error message.
13976         * troff/input.c (token::delimiter): Don't print an error message
13977         if err is false.
13979         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
13980         ParseDrawFunction if dw->display_enable is true.
13982 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
13984         * pic/pic.y: Parse text positioning like normal attributes, so as
13985         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
13986         positioning attribute.
13988 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
13990         * tbl/main.c (process_data): When in state START while reading a
13991         text block, don't change to state MIDDLE if c is a newline.
13993 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
13995         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
13996         so as to avoid shadowing parameter.
13998 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
14000         * tbl/table.c (trim_space): Deleted.
14001         (table::add_entry): Don't call trim_space.
14003 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
14005         * VERSION: Change version to 0.6.
14007         * troff/number.c (parse_expr): Make == work.
14009 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
14011         * man/grog.man: New file.
14012         * man/Makefile: Add grog.n to MAN1PAGES.
14013         * etc/grog.sh: New file.
14014         * etc/Makefile: Install grog.sh as grog.
14016 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
14018         * troff/input.c (token::next): Implement \E.
14020 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
14022         * xditview/tmac.X: Change font translations to match tmac.ps.
14024         * troff/input.c (non_empty_name_warning): Don't give a warning if
14025         `\{' terminates the name.
14027 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
14029         * ps/devps/symbol.diff: New file.
14030         * ps/devps/FontMakefile: Mention symbol.diff.
14032 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
14034         * troff/node.c (font_position): Use get_long_name to read the
14035         external_name.
14037         * troff/env.c (environment_switch): If we get a number that's < 0
14038         or >= NENVIRONMENTS, treat it like a name.
14039         Change NENVIRONMENTS to 10.
14041         * troff/groff.h: Remove definition of FONTS_MAX.
14042         * troff/node.h (class font_family): Make map a pointer instead of
14043         an array. Add a map_size member. Make it a class. Make nm const
14044         and public. Make invalidate_fontno a friend.
14045         * troff/node.c: Define font_table_size. Make font_info a pointer
14046         rather than an array.
14047         (class troff_output_file): Allocate font_position dynamically. Add
14048         nfont_positions member.
14049         (troff_output_file::set_font): Grow font_position if necessary.
14050         (troff_output_file::~troff_output_file): Delete font_position.
14051         (troff_output_file::troff_output_file): Allocate font_position.
14052         (grow_font_table): New function.
14053         (troff_output_file::really_begin_page,
14054         troff_output_file:really_copy_page): Use nfont_positions rather
14055         than FONTS_MAX.
14056         (mount_font_no_translate, mount_style): Call grow_font_table if
14057         necessary.
14058         (font_family::font_family): Allocate map.
14059         (font_family::make_definite): Grow map if necessary. Use
14060         font_table_size instead of FONTS_MAX.
14061         (font_family::~font_family): New function.
14062         (invalidate_fontno): Use font_family::map_size.
14063         (get_fontno, env_space_width, env_half_narrow_space_width,
14064         env_narrow_space_width, symbol_fotno, is_good_fontno,
14065         get_bold_fontno, make_glyph_node): Use font_table_size rather than
14066         FONTS_MAX.
14067         (next_available_font_position): Never return 0.
14069 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
14071         * ps/tmac.ps: Add font translations for compatibility with dpost.
14073 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
14075         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
14076         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
14077         Move definitions baseline_sep, shift_down, column_sep,
14078         matrix_side_sep into...
14079         * eqn/box.c: Add them to param_table.
14080         * eqn/pbox.h: Add declarations to pbox.h.
14082         * troff/input.c (set_string): Cast value to unsigned char *.
14084         * troff/token.h (process_input_stack): Declare it static before
14085         declaring it a friend.
14087 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
14089         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
14090         and bottom.
14091         * dvi/devdvi/EX: Regenerate.
14093         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
14094         transparent.
14096 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
14098         * eqn/lex.c: In defaults_table, make definition of `dot' call
14099         `dot_def'.  Don't explicitly make it roman.  Similarily for other
14100         accents.
14102         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
14103         argument.
14104         (for_input::get, for_input::peek): Use this.
14105         (do_for): Add by_is_multiplicative argument.
14106         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
14107         Change semantic value of optional_by to be a double plus a flag
14108         saying whethet the by clause is multiplicative.
14110         * eqn/lex.c (get_delimited_text): Remember location of start of
14111         definition.  Improve error handling when EOF is encountered.
14113         * lib/font.h: Rename handle_x_command to
14114         handle_unknown_font_command.
14115         * lib/font.c (font::load): Call handle_unknown_font_command for
14116         any unknown command in the font description file.  Don't call
14117         handle_x_command. Include the name of the command in the argv.
14118         Improve message for unknown command after kernpairs or charset
14119         command.
14120         * ps/ps.c (ps_font::handle_x_command): Rename to
14121         handle_unknown_font_command.  Remove message about `x download'
14122         command.  Give error message for wrong number of arguments.
14123         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
14124         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
14125         handle_unknown_font_command. Give an error message for wrong
14126         number of arguments.  Rename design_size to designsize.
14127         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
14128         checksum', `designsize' instead of `design_size'.
14130 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
14132         * eqn/*.[chy]: Change underaccent to uaccent.
14134         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
14135         give it the same precedence as ACCENT.
14136         * eqn/other.c (make_underaccent_box): New function.
14137         * eqn/box.h: Declare it.
14138         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
14139         def_table.
14141 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
14143         * pic/pic.y (reset_all): New function. Called in rule for RESET.
14144         (parse_init): Call reset_all.
14145         (define_variable): When defining scale reset only those
14146         pre-defined variables that are scaled.
14147         (defaults_table): Add `scale' as non-scaled value.
14149         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
14150         together with the text; allow any number of positioning words;
14151         allow center as a positioning word.
14153         * pic/object.c (output::compute_scale): Get picture maximum height
14154         and width from variables called maxpswid and maxpsht.
14155         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
14157 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
14159         * pic/object.c (object_spec::make_text): Multiply textht by number
14160         of text items.
14162         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
14163         occur.
14164         (do_sprintf): New function.
14165         (pic.gperf): Add sprintf token.
14166         (text, sprintf): New rules.
14168         * pic/pic.y: `rand()' with no arguments returns a random number
14169         in the range [0,1).
14171         * pic/pic.y: Allow a bare expression to be an attribute: change
14172         precedences to support this.  Change optional_ordinal rule to
14173         optional_ordinal_last to avoid reduce/reduce conflict.
14174         * pic/object.c (object_spec::object_spec): Initialize direction.
14176         * pic/pic.y: Implement ^ operator meaning exponentiation.
14178         * troff/node.h: Add default argument to mount_font.
14179         * troff/node.c (font_position): Read an optional third argument
14180         giving the external_name.
14181         (mount_font): Add optional argument giving the external_name.
14182         (mount_font_not_translate): Have additional argument giving
14183         external name.  Use this name to load the font.  Pass both names
14184         to font_info::font_info.
14185         (font_info::font_info): Have additional argument giving
14186         external_name.
14187         (class tfont): New member external_name.
14188         (font_info::get_tfont): Use external name to construct tfont_spec.
14190 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
14192         * eqn/lex.c (init_table): Add argument giving device.  Define
14193         name of device to be "1".
14194         (do_ifdef): Counts as true if the argument has been defined with
14195         `define'.
14196         * eqn/main.c (main): Call init_table with device argument. Make
14197         device local to main.
14198         * eqn/eqn.h: Change declaration of init_table. Remove declaration
14199         of device.
14201         * pic/lex.c (get_delimited): Allow text to be delimited by
14202         matching {}s.  Don't recognize ending delimiter within a string.
14204         * troff/input.c (get_delim_name): New function.
14205         (token::next): Implement \C.
14207         * lib/font.c (font::load): Grok ---.  Add an alias for each
14208         character based on its code.
14209         (font::get_code_width): Deleted.
14210         * lib/font.h (class font): Declare font::number_to_index().
14211         Remove declaration of font::get_code_width.
14212         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
14213         to indices of named characters.
14214         (font::number_to_index): New function.
14215         * troff/input.c (font::number_to_index): New function.
14216         (get_charinfo_by_number, charinfo::get_number,
14217         charinfo::set_number): New functions.
14218         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
14219         (token::process, token::description, token::get_char,
14220         token::add_to_node_list, token::operator==): Handle
14221         TOKEN_NUMBERED_CHAR.
14222         * troff/charinfo.h: Declare get_charinfo_by_number,
14223         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
14224         charinfo class.
14225         (charinfo::numbered): New function.
14226         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
14227         * troff/env.h (class environment): Remove declaration of ...
14228         * troff/env.c (environment::make_numbered_char_node): Deleted.
14229         * troff/node.c (make_numbered_node): Deleted.
14230         (class numbered_glyph_node): Remove.
14231         (troff_output_file::put_char_width, troff_output_file::put_char):
14232         Handle numbered chars.
14233         (troff_output_file::numbered_char): Removed.
14234         (tfont::get_code_width): Removed.
14235         (make_glyph_node): Don't search special fonts for numbered
14236         characters.
14237         * troff/node.h: Remove declaration of make_numbered_node.
14238         * driver/input.c (do_file): Handle N command.
14239         * driver/printer.h: Add declaration of ...
14240         * driver/printer.c (printer::set_numbered_char): New function.
14241         * dvi/tfmtodit.c (main): Generate unnamed entries.
14242         * ps/devps/afmtodit: Likewise.
14243         * xditview/xtotroff.c (MapFont): Likewise.
14244         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
14246         * tbl/main.c (process_format): If multiple widths are specified
14247         for a column but all the widths are the same, don't give an error
14248         message.
14250         * tbl/table.c (table::do_row): If the current row is all lines and
14251         the stuff doesn't contains a line, mark the top of the row after
14252         printing stuff before the row.  If the current row is not all
14253         lines and the stuff doesn't contain a line, don't unnecessarily
14254         mark the top of the row before printing the stuff.
14255         
14256 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
14258         * troff/groff.h: Remove MAX_PATH.
14259         * troff/input.c (open_file): Dynamically allocate space for the
14260         path.
14261         (open_mac_file, process_macro_file): Corresponding changes.
14263 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
14265         * troff/node.h (class output_file): Make copy_file pure.  Add
14266         vspace method ifdef COLUMN. Add is_printing method.
14267         * troff/node.c: Add class printing_reg. Add class
14268         real_output_file. Derive other output_file classes from
14269         real_output_file; in these classes rename begin_page to
14270         really_begin_page, print_line to really_print_line, copy_file to
14271         really_copy_file, transparent_char to really_transparent_char.
14272         Move output_file::flush to real_output_file. Add printing member
14273         to class output_file.
14274         * troff/div.h: Remove printing member from top_level_diversion.
14275         Add vspace member function to class diversion ifdef COLUMN. Add
14276         some declarations ifdef COLUMN.
14277         * troff/div.c (top_level_diversion::copy_file,
14278         top_level_diversion::transparent_output,
14279         top_level_diversion::output): Don't test printing member before
14280         output.
14281         * troff/input.c: Handle initial variable_space_request ifdef
14282         COLUMN.
14283         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
14284         but comment it out.
14286 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
14288         * troff/div.c (diversion::need): Make any space forced.  If we
14289         sprung a trap, set truncated_space to minus the distance to the
14290         trap and set needed_space to the amount that was needed.
14291         (top_level_diversion::space): A forced space turns no_space_mode
14292         off.
14293         (class constant_vunits_reg): New class.
14294         (init_div_requests): Implement number registers .trunc and .ne
14295         using constant_vunits_reg.
14296         (class truncated_space_reg): Deleted.   
14298         * troff/div.h: Don't have a no_space_mode member in diversion.
14299         Instead have it in top_level_diversion.
14300         * troff/div.c (diversion::diversion): Don't initialize
14301         no_space_mode.
14302         (top_level_diversion::top_level_diversion): Initialize
14303         no_space_mode.
14304         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
14305         (macro_diversion::output): Don't clear no_space_mode.
14307         * troff/input.c (diverted_space_node::reread): Don't call
14308         environment::do_break.  In fill mode, act like a blank line.
14309         (diverted_copy_file_node::reread): Don't call
14310         environment::do_break.
14312         * troff/div.c (blank_line): New function.
14313         * troff/div.h: Declare it.
14314         * troff/input.c (process_input_stack): Call it.
14316         * troff/div.c (truncated_space_reg::get_string): New function.
14317         (init_div_requests): Bind to .trunc.
14318         (space_request, top_level_diversion::space,
14319         top_level_diversion::output, macro_diversion::space,
14320         macro_diversion::output): Update truncated_space.
14321         (macro_diversion::output): Redo calculations when trap sprung.
14322         (macro_diversion::output, macro_diversion::space): No need for
14323         trap_flag.
14325         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
14326         after truncating post line spacing.
14328 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
14330         * ps/devps/prologue (MF, SF): Make them work even if setfont is
14331         defined as a procedure rather than as an operator.
14333 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
14335         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
14337 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
14339         * troff/div.c (top_level_diversion::output): Merge
14340         output_file::print_line and output_file::end_of_line member
14341         functions.
14342         * troff/div.h (class output_file):
14343         * troff/node.c (troff_output_file::print_line,
14344         troff_output_file::end_of_line, output_file::end_of_line,
14345         ascii_output_file::print_line, suppress_output_file::print_line):
14346         Corresponding changes.  
14348 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
14350         * troff/input.c (token::next): Don't give a warning for `\.'.
14352         * troff/env.c (environment::get_center_lines): New function.
14353         (init_env_requests): Bind number register .ce to it.
14354         * troff/env.h: Declare it.
14355         * tbl/table.c (table::init_output): Define reset macro to restore
14356         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
14357         Then do .ce 0.
14358         (table::print): If center option not given, then imply center
14359         option if SAVED_CENTER_REG > 0.
14361 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
14363         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
14364         Troff.ps from DOWNLOAD.
14365         
14366         * troff/Makefile: Change comment in DEFINES to avoid confusing
14367         System V make.
14369         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
14370         code.  Don't try to catch errors with stopped.
14371         (check_line_lengths): New function.
14372         * ps/devps/prologue (EXEC): Deleted.
14373         (EBEGIN, EEND): New procedures.
14375 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
14377         * troff/input.c: Include request.h before node.h.
14378         * troff/node.c: Likewise.
14379         * troff/env.c: Likewise.
14380         * troff/div.c: Likewise.
14381         * troff/node.h (class special_node): Store argument as a macro
14382         rather than a char *.
14383         * troff/node.c (special_node::special_node, special_node::copy):
14384         Grok this.
14385         (special_node::~special_node): Deleted.
14386         (special_node::tprint): Deleted.
14387         (special_node::tprint_start, special_node::tprint_end,
14388         special_node::tprint_char): New functions.
14389         (troff_output_file::special): Deleted.
14390         (troff_output_file::start_special, troff_output_file::end_special,
14391         troff_output_file::special_char): New functions.
14392         * troff/input.c (special_node::tprint): New function.
14393         (do_special): Use macro not char *.
14394         (do_transparent_macro): Deleted.
14395         (token::next): Don't call do_transparent_macro.
14397         * troff/input.c (token::next): Add 'Y' case.
14398         (do_transparent_macro): New function.
14399         * troff/node.c (troff_output_file::special): Handle newlines with
14400         argument using new continuation convention.
14401         * driver/input.c (get_string): Cope with continuation convention.
14402         (do_file): Don't call skip_line after calling get_string(1).
14403         * ps/ps.c (ps_printer::special, ps_printer::do_import,
14404         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
14405         arg.
14406         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
14407         with +.
14409 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
14411         * troff/input.c (asciify): By default, illegal input characters
14412         should return empty string.
14414         * troff/input.c (copy_file): Handle first page transition like title.
14415         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
14417         * troff/input.c (token::next): Improve error message for EOF after
14418         escape character.
14419         (input_char_description): New function.
14420         (get_char_for_escape_name): Use input_char_description.
14421         (token::next): Warn about unrecognized escape sequences.
14422         (warning_table): Add WARN_ESCAPE.
14423         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
14424         accordingly.
14426         * troff/token.h: Remove declaration of process_input_stack.
14428         * troff/input.c: Remove declaration of init_hyphen_requests.
14429         * troff/request.h: Correct spelling in declaration of same.
14431         * troff/input.c (token::next): Check whether escape_char is 0.
14433 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
14435         * groff.c (main, usage, help): Implement -P and -L options.
14436         * groff.sh: Likewise.
14438         * troff/input.c (token::next): Use some gotos to avoid code
14439         duplication.
14441         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
14442         Avoid calling symbol::symbol if name empty.
14444 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
14446         * troff/input.c (init_input_requests): Make \n(.x return the major
14447         version number and \n(.y return the minor version number.
14448         * troff/Makefile: Construct file majorminor.c defining
14449         major_version and minor_version automatically from ../VERSION.
14451         * troff/node.c (class glyph_node): Make operator new and operator
14452         delete public.
14453         (class ligature_node): Similarily.
14455         * troff/input.c (operator==(const macro &, const macro &)): New
14456         function.
14457         (non_interpreted_node::same): Use this.
14458         (string_iterator::string_iterator): Make macro& argument const.
14460         * troff/input.c (input_iterator::get): New function. Don't make
14461         asciify_macro or class non_interpreted_node friends of class
14462         input_iterator.
14463         (non_interpreted_node::interpret): Use input_iterator::get.
14464         (asciify_macro): Likewise.
14466         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
14467         ~non_interpreted_node): Deleted.
14468         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
14469         Deleted.
14471         * troff/symbol.h: Make all symbol member functions const.
14473         * lib/strtol.c: New file.
14474         * lib/Makefile: Add strtol.c.
14475         * Makefile: Define STRTOL as strtol.o to include strtol in
14476         libgroff.a.
14478 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
14480         * pic/troff.c (troff_output::simple_circle): Divide by scale.
14482 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
14484         * troff/input.c (do_special): Use input_level.
14486         * troff/token.h (TOKEN_BACKSPACE): New token.
14487         (token::backspace): New function.
14488         * troff/input.c (token::description, token::next, token::process):
14489         Grok TOKEN_BACKSPACE.
14490         (do_special): Turn TOKEN_BACKSPACE back into \b.
14492         * troff/token.h (token::leader): New function.
14493         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
14495         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
14497         * troff/input.c (do_special): Use token::description in error
14498         message.
14500 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
14502         * troff/input.c (decode_args): Combine quoted and
14503         quote_input_level variables. Make it a for (;;) loop.
14505         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
14507         * troff/input.c (read_long_escape_name): The test for whether to
14508         expand buffer was off by 1.
14509         (read_string): Similarily.
14511 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
14513         * troff/input.c: Use `const int' rather than `static const int'.
14515         * troff/div.h (diversion::copy_file): Declare as pure virtual.
14516         (macro_diversion::copy_file): New function.
14517         * troff/node.h: New class diverted_copy_file_node.
14518         * troff/node.c: Implement it.
14519         * troff/input.c (copy_file): Use diversion::copy_file. Handle
14520         first page transition by pushing a diverted_copy_file_node.
14521         * troff/input.c (token::next, process_input_stack): Don't handle
14522         COPY_FILE_REQUEST.
14524 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
14526         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
14527         whether space widths need adjusting.
14529         * troff/charinfo.h: Generalize translated_to_space to
14530         special_translation so as to allow translation to \&.
14531         * troff/input.c (translate): Allow translation to \&.
14532         (charinfo::*): Corresponding changes.
14533         * troff/node.c (make_node, node::add_char): Corresponding changes.
14534         * troff/node.h (dummy_node::dummy_node): Allow optional first
14535         argument.
14537         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
14538         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
14539         TOKEN_REQUEST.
14540         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
14541         TOKEN_REQUEST with an argument of TITLE_REQUEST.
14542         (token::process): Grok that.
14543         * troff/input.c (copy_file): Handle first page transition like
14544         title by pushing a COPY_FILE_REQUEST cookie.
14545         (token::next, process_input_stack): Grok that.
14546         * troff/node.h (output_file::copy_file): Add x and y arguments.
14547         Make it non-pure.
14548         * troff/div.c (top_level_diversion::copy_file): Supply them.
14549         * troff/node.c (troff_output_file::copy_file): Add x and y
14550         arguments; moveto specified position.  Invalidate font_position
14551         array after copying file.
14552         (output_file::copy_file): New function.
14553         (suppressed_output_file::copy_file, ascii_output::copy_file):
14554         Removed.
14555         * troff/input.c (transparent_file): New function.
14556         (init_input_requests): Bind to "trf".
14557         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
14558         (process_input_stack): Likewise.
14560         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
14562         * troff/node.c (init_node_requests): New number registers .kern
14563         pointing to global_kern_mode, and .lg pointing to
14564         global_ligature_mode.
14566         * troff/node.c (ligature): Don't change it if we get a bad
14567         integer.
14569         * troff/input.c (do_define_string): Don't strip tabs.
14571         * troff/input.c (asciify_macro): Make the string_iterator auto.
14573         * troff/node.c (init_font_requests): Rename to...
14574         (init_node_requests):
14575         * troff/node.h: Change declaration.
14576         * troff/input.c (main): Change call.
14578         * troff/input.c (node::reread, diverted_space_node::reread): New
14579         methods.
14580         (process_input_stack): Call reread rather than
14581         get_diverted_space_node.
14582         * troff/node.c (node::get_diverted_space_node,
14583         diverted_space_node::get_diverted_space_node): Removed.
14584         * troff/node.h: Declare reread methods instead of
14585         get_diverted_space_node methods. Make `n' member private.
14586         * troff/input.c: (token::diverted_space): Removed.
14587         * troff/token.h: Removed declaration.
14588         
14590 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
14592         * eqn/script.c (script_box::compute_metrics): Don't let
14593         SUP_RAISE_FORMAT become negative.
14595         * tbl/table.c (table::do_row): Entries that don't end in the
14596         this row shouldn't make the row non-blank.
14597         
14598         * tbl/table.c (table::make_columns_equal): Only set the width of
14599         columns which are marked as equal.
14600         
14601         * tbl/main.c (process_data): Before issuing excess data error,
14602         if last character was a newline unget it; then get it again after
14603         the error.  Also include the contents of the entry in the message.
14605         * groff.c: New file.
14606         * Makefile: Build groff from groff.c.  Make it possible to use
14607         either groff.sh or groff.c as groff.
14608         * Makefile.bd: Similarily.
14610 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
14612         * groff.sh: Don't delay expansion of $@ in assignment to files.
14613         Remove occurrences of \".
14615 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
14617         * all Makefiles: Simplify and rearrange.
14619         * Makefile: Handle fmod like malloc.
14620         * lib/Makefile: Similarily.
14621         * lib/fmod.c: Remove #ifdef NEED_FMOD.
14623         * Makefile: Rename OPTIMISE to OPTIMIZE.
14625         * groff.sh: Remove assignment to PATH.
14626         * Makefile: Remove SHPATH variable.
14627         * Makefile.bd: Similarily.
14629         * groff.sh: Add -V option to print the pipeline instead of
14630         executing it.
14632 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
14634         * lib/font.c: Split off file searching into ...
14635         * lib/fontfile.c: New file.
14637         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
14639 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
14641         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
14642         Also change misleading comment.
14643         (table::do_vspan): Change similarily misleading comment.
14644         * tbl/main.c (process_data): A format row with an explicit `s'
14645         uses up a data line, even if all the other columns are `_' or `='.
14647         * troff/input.c (token::description): Fix description of
14648         TOKEN_DUMMY and TOKEN_EMPTY.
14650 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
14652         * groff.sh: Fix description of -Z in help message.
14654 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
14656         * pic/object.c (object_spec::make_object): Allow negative and zero
14657         line thicknesses.
14658         * pic/pic.y: Give linethick default value of -1.0.
14659         * pic/troff.c (troff_output::troff_output): Initialize
14660         last_line_thickness to BAD_THICKNESS.
14661         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
14662         (troff_output::line_thickness): Canonicalize negative thicknesses
14663         to RELATIVE_THICKNESS.
14664         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
14665         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
14666         to -1.0.
14667         (tex_output::start_picture): Set pen_size to -2.0.
14669         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
14670         0, then use 0 linewidth.
14671         (ps_printer::ps_printer): Initialize line_thickness to -1.
14673         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
14675         * ps/devps/symbolchars: Remove `or'.
14676         * ps/tmac.ps: Implement \(or with .char.
14678         * ps/devps/symbolchars: Move most characters into textmap.
14679         * ps/devps/textmap: Add names for troff bracket characters. Remove
14680         ul, ru, br, bv.
14682         * ps/devps/TSymbol.ps: Removed.
14683         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
14684         * ps/tmac.ps: Do with .char what TSymbol did.
14685         * ps/devps/download: Remove TSymbol.
14687         * ps/devps/T: Removed.
14688         * ps/devps/Troff.ps: Removed.
14689         * ps/devps/Troff.afm: Removed.
14690         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
14691         * ps/devps/download: Remove Troff.
14692         * ps/devps/FontMakefile: Remove T target.
14693         * ps/devps/DESC-A4: Remove T from font list.
14694         * ps/devps/DESC-letter: Likewise.
14696         * troff/input.c (macro_to_node): Rename to ...
14697         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
14698         character's definition while processing it.
14699         * troff/node.c (node::add_char, make_node): Change calls to
14700         macro_to_node accordingly.
14702         * troff/input.c (token::next): Translate \_ to \(ul.
14704         * tty/devascii/R.proto: Add `|'.
14705         * tty/devlatin1/R.proto: Likewise.
14707 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
14709         * man: Put the version number in all the man pages.
14711 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
14713         * Makefile.bd: New file.
14714         * README.bd: New file.
14716         * VERSION: New file.
14717         * lib/version.c: Removed.
14718         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
14719         in clean target.
14721         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
14722         environment variable.
14724         * all Makefiles: Split install target into install.bin for
14725         binaries, and install.nobin for everything else.
14726         * Makefile: Add bindist target.
14728         * man/afmtodit.man: New file.
14729         * man/Makefile: Add afmtodit.n to MAN1PAGES.
14730         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
14731         in BINDIR.
14732         * ps/Makefile: Pass BINDIR to make install in devps.
14734         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
14735         the space character.
14737         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
14739 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
14741         * ps/ps.c: Redo font downloading.
14742         * ps/devps/download: New file.
14743         * ps/devps/Makefile: Add download to DEVICEFILES.
14744         * ps/devps/afmtodit: Remove -d option.
14745         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
14746         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
14747         * ps/devps/zapfdr.ps: Likewise.
14748         * ps/devps/TSymbol.ps: Likewise.
14750 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
14752         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
14754 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
14756         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
14757         then strip the first line if it starts with %.
14758         * Makefile: Add a comment about this.
14760         * man/tfmtodit.man: New file.
14761         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
14762         * dvi/Makefile: Install tfmtodit in BINDIR.
14764         * dvi/tfmtodit.c (usage): Mention -v option.
14766 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
14768         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
14769         * troff/node.c (troff_output_file::transparent_char): Don't call
14770         flush_tbuf.
14772         * eqn: Add check_tabs method to most box classes.
14773         * eqn/box.c (box::top_level): Call check_tabs.
14775         * eqn/script.c (script_box::output): Use \Z.
14776         * eqn/limit.c (limit_box::output): Use \Z.
14778         * eqn/box.c (box::top_level): Use itoa.
14780 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
14782         * dvi/tmac.dvi: Add font translations for CR, C, TT.
14783         * dvi/devdvi/Makefile: Don't make links to CW.
14785         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
14786         HX, HD.
14787         * xditview/tmac.X: Likewise.
14789         * troff/node.c: Add font translation feature.
14790         (get_font_translation): New function.
14791         (symbol_fontno): Translate the font name.
14792         (mount_font_no_translate): Rename to mount_font to this.
14793         (mount_font): New function.
14794         (font_family::make_definite): Call mount_font_no_translate instead
14795         of mount_font.
14796         (mount_style): Translate the font name.
14797         (font_translate): New function.
14798         (init_font_requests): Bind "ftr" to font_translate.
14800         * ps/devps/prologue (SN): New procedure that rounds a position to
14801         the nearest (pixel + (.25,.25)).
14802         (DL): Use SN to round endpoints.
14804         * lib/version.c: Changed version to 0.5.
14806 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
14808         * Makefile: Move definition of PAGE to the very beginning, so that
14809         people are less likely to miss it.
14811 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
14813         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
14815         * troff/env.c (environment::choose_breakpoint): Make `can't find
14816         breakpoint' error a warning of type WARN_BREAK.  Change message to
14817         `can't break line'.
14818         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
14819         code 040000.
14820         * troff/input.c: Add WARN_BREAK to warning_table.  Include
14821         WARN_BREAK in DEFAULT_WARNING_MASK.
14823         * tty/tmac.tty: Add definition of \(+-.
14825         * groff.sh: Remove `--' option to set command.
14827         * dvi/devdvi/texsy.map: Remove duplicate md entry.
14829         * ps/devps/eqnchar: Better definition of cdot using md.
14830         * dvi/devdvi/eqnchar:  Likewise.
14831         * xditview/devX100/eqnchar:  Likewise.
14832         * xditview/devX75/eqnchar: Likewise.
14833         * eqn/lex.c: Add definition of cdot.
14835 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
14837         * troff/input.c (get_optional_char): New function.
14838         * troff/input.c (set_page_character): Use get_optional_char(),
14839         rather than has_arg() and tok.get_char(1).
14840         * troff/env.c (tab_character, leader_character, hyphen_char,
14841         field_characters): Likewise.
14842         (margin_character): Likewise.  Also always delete the
14843         margin_character_node.
14845         * troff/input.c (token::get_char): Use token::description.
14847         * troff/input.c (has_arg): Don't skip over tab and \}.
14848         * troff/number.c (start_number): Give a warning if the number
14849         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
14851 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
14853         * troff/input.c (empty_name_warning, non_empty_name_warning): New
14854         functions.
14855         (get_name, get_long_name): Use these.  Rename `warn' argument to
14856         `required'.
14858         * troff/node.c (get_fontno): Test that the symbol is not null.
14860         * troff/input.c (token::description): New function.
14861         * troff/number.c (parse_term): Use token::description in `numeric
14862         expression expected' message.
14863         * troff/groff.h: Add WARN_MISSING.
14864         * troff/number.c (start_number): New function.
14865         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
14866         get_incr_number): Use start_number().
14867         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
14868         default.
14869         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
14870         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
14871         token::descripion.
14872         * troff/input.c (token::get_char): Use WARN_MISSING.
14873         * troff/input.c (token::delimiter): Use token::description.
14874         * troff/env.c (environment_switch): Back out Aug 3 change.
14875         * troff/input.c (has_arg): Skip over \}s and tabs but give a
14876         warning.
14877         * troff/token.h (token::tab): New function.
14878         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
14879         * troff/reg.c (alter_format): Likewise.
14880         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
14882 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
14884         * troff (most files): Redo warnings. Divide warnings into various
14885         categories; warning() has an additional first argument indicating
14886         the category it falls into.
14887         * troff/input.c (main): -w now takes an argument. New option -W.
14888         (enable_warning, disable_warning): New functions.
14890         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
14891         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
14893 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
14895         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
14896         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
14897         * xditview/devX75/eqnchar: Likewise.
14898         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
14900         * eqn/other.c: When bar or over applies to a single character
14901         don't produce an overline_box or an underline_box. Instead produce
14902         an accent_box or an underaccent_box, with the accent a line
14903         whose width is accent_width.  New classes underaccent_box,
14904         overline_char_box and underline_char_box.
14905         * eqn/box.h: Move overline_box, underline_box, accent_box class
14906         declarations into eqn/other.c. Add declarations of
14907         make_underline_box, make_overline_box, make_accent_box.
14908         * eqn/eqn.y: Call make_overline_box, make_underline_box
14909         make_accent_box instead of constructors.
14910         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
14912         * eqn/other.c: Add accent_box::~accent_box.
14913         * eqn/box.h: Declare it.
14915         * groff.sh: With -Tps, use eqn -D.
14917         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
14918         rather than \l.
14919         (underline_box::output): Similarily.
14920         (accent_box::output): Use \Z.
14922         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
14923         bit smaller.)
14925 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
14927         * troff/div.c (top_level_diversion::transparent_output(unsigned
14928         char)): Use asciify.
14929         * troff/input.c (asciify): Don't make it static.
14930         * troff/token.h (asciify): Declare it.
14931         
14932         * troff/input.c (get_name, get_long_name, token::get_char,
14933         token::delimiter): Add an extra default argument which says
14934         whether a warning should be printed.
14935         * troff: Pass a non-zero argument to one of these rather than
14936         printing a warning directly.
14938 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
14940         * troff: Consistently use symbol::is_null.
14942         * troff/dictionary.h: Move some inline functions into
14943         dictionary.c.
14945         * troff/request.h: Move inline functions into input.c.
14946         (request_or_macro::invoke): Make it pure.
14948         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
14949         * troff/input.c (init_input_requests): Use class constant_int_reg.
14950         (class compatible_reg): Deleted.
14951         * troff/div.c (init_div_requests): Use class constant_int_reg.
14952         (class last_post_line_extra_space_reg): Deleted.
14954         * troff/env.c (tab_character): Don't change the tab character if
14955         we get an invalid argument.
14956         (hyphen_char): Similarily.
14958         * troff/reg.c (alter_format): Check that nm is not null.
14960         * Makefile, groff.sh: Make it possible to customize the commands
14961         used for printing PostScript and dvi files. Also make it possible
14962         to customize the path used by groff.sh.
14964         * eqn/eqn.y: Make `left' right associative.
14966 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
14968         * pic/pic.h: Added definition of M_SQRT2 for those systems that
14969         don't have it.
14971         * pic/pic.h: Removed definition of INT_MAX.
14973         * troff/node.c (italic_corrected_node::vertical_extent): Omit
14974         `return'.
14976         * troff/input.c (token::next):  Handle \R like \n.
14978 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
14980         * ps/tmac.pc (PSPIC): Simplify.
14982         * troff/env.c (tab_stops::to_string):
14983         * pic/pic.y (object_type_name):
14984         * pic/troff.c (simple_output::line):
14985         * pic/tex.c (tex_output::spline):
14986         * pic/object.c (object_spec::make_object):
14987         * tbl/main.c (process_data):  Add cases to switch statements to
14988         avoid cfront warnings. (Some of these are spurious, since the
14989         switch already has a default case.)
14991         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
14992         `ps-'.  Don't test systat; instead check number of arguments to
14993         ps-bb.
14995 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
14997         * macros/tmac.e: Do not decrease the page offset by 0.5i.
14999         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
15000         Unlink the file as soon as we have opened it, so that we don't
15001         have to bother with signal handlers.
15002         (handler): Deleted.
15003         (fatal_error_exit): Deleted.
15004         (main): Don't call signal.
15006         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
15007         can be ignored.
15008         * dvi/devdvi/Makefile: Use the -k option with S and MI.
15010         * pic/pic.y:  If there is a label, or an nth construction before
15011         the first `.' in the argument to `with', ignore it and generate a
15012         warning.
15013         * pic/lex.c (lex_warning): New function.
15015         * tbl/table.c (table::init_output): In section keep and release
15016         macro, use 0 indent when diverting and the correct indent when
15017         rereading.
15019         * troff/input.c (interpolate_number_format): Do not interpolate
15020         anything if the number register is not defined.
15022         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
15024 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
15026         * ps/devps/prologue (PICTURE): Set components of graphics state to
15027         their default values.
15029         * ps/devps/text.enc: Add trademark
15030         * ps/devps/textmap: Add names for club, spade, heart, diamond,
15031         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
15032         * ps/devps/symbolchars: Add names for summation and product.
15034         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
15035         suchthat. Add pp. Add upper-case letters.
15037         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
15038         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
15039         Upsilon.
15041         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
15042         rA (right angle bracket) to ra.  Introduce names for double-headed
15043         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
15044         * ps/devps/textmap: Likewise for ps device.
15045         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
15046         * tty/devascii/R.proto: Rename lA to la and rA to ra.
15047         * tty/devascii/R.proto: Likewise.
15048         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
15049         \(uA, \(dA.
15050         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
15052         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
15054         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
15055         def_table.
15057 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
15059         * troff/div.c (when_request): Use symbol::is_null rather than
15060         has_arg to determine whether we have an argument.
15061         (change_trap): Remove the trap if we get an invalid number. Give
15062         an error if we don't get at least the macro name.
15063         (diversion_trap): Remove trap if we get an invalid name or number.
15065         * troff/env.c (environment_switch): Pop if we get an invalid
15066         symbol or numeric expression.
15068         * troff/input.c (do_define_macro):  If EOF is encoutered while
15069         defining the macro, do tok.next() before returning.
15071         * troff/token.h (has_arg): Move definition from here, to ...
15072         * troff/input.c (has_arg): ... here
15074         * troff/env.c (space_size): Do nothing if we get an invalid argument.
15075         * troff/input.c (shift): Likewise.
15077         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
15078         for `.c'.
15080         * pic/troff.c (troff_output::start_picture):  Comment out calls to
15081         `..'.
15083         * eqn/main.c (do_file): Subtract 1 from current_lineno if
15084         interpret_lf_args succeeds.
15086         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
15087         \\.  This avoids problems with \$N.
15089         * groff.sh: Pass -C to preprocessors.
15091         * lib/lf.c (interpret_lf_args):  Be more flexible.
15093         * tbl/main.c (main): Add -C option.
15094         (table_input::get): Do not recognize TE if followed by character
15095         other than a space or newline unless -C option given.
15096         (process_input_file): Likewise for lf, TS.
15097         (process_data): Likewise for lf in text blocks.
15099         * eqn/main.c (main): Add -C option.
15100         (do_file): Don't recognize EQ, EN or lf if followed by character
15101         other than space or newline unless -C option given.
15102         * eqn/lex.c (file_input::read_line): Similarily.
15103         * eqn/eqn.h: Declare compatible_flag.
15105         * etc/soelim.c (main): Add -C option.
15106         (interpret_lf_args): Use version in libgroff.
15107         (do_file):
15109         * pic/main.c (main): Add -C option, which sets compatible_flag.
15110         (top_input::get), (top_input::peek):  If -C option not given,
15111         do not recognize .PS/.PE/.PF/.lf if followed by a character
15112         other than space or newline.
15113         * pic/lex.c (file_input::read_line): Similarily.
15114         * pic/pic.h: Add declaration of compatible_flag.
15116 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
15118         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
15120         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
15121         derived from node.  New class space_char_hmotion_node.
15122         * troff/input.c (asciify_macro): New function.
15123         * troff/input.c (init_input_requests): New request `asciify' bound
15124         to asciify_macro.
15125         * macros/mm.diff: New file.
15126         * Makefile:  In install.mm target use `patch' to apply
15127         macros/mm.diff.
15129         * troff/input.c (macro::print_size): Just print the size in bytes.
15131         * troff/div.c (return_request): Correct the argument
15132         interpretation.
15134 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
15136         * troff/node.h (class composite_node): Add sz member.
15137         * troff/node.c (composite_node::size): Return sz.
15138         * troff/input.c (macro_to_node):  Use the initial size in the
15139         environment as the size of the composite_node.
15141         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
15142         default.
15144 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
15146         * troff/div.c (change_trap): If we get a bad number expression,
15147         do nothing.
15149 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
15151         * lib/matherr.c (matherr): Define this only if math.h defines
15152         TLOSS.
15154 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
15156         * troff/div.c (macro_diversion::distance_to_next_trap): If there
15157         no diversion trap return vunits(INT_MAX - vresolution).
15159 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
15161         * troff/input.c (do_zero_width): New implementation that doesn't
15162         use a temporary environment. Use instead:
15163         (token::add_to_node_list): New function.
15164         * troff/env.c (environment::get_prev_char_height),
15165         (environment::get_prev_char_height),
15166         (environment::get_prev_char_skew): New functions.
15167         (environment::get_prev_char): New function.
15168         (environment::get_prev_char_width): Change to use get_prev_char.
15169         (init_env_request): Implement new registers .cht, .cdp, .csk.
15170         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
15171         \Z being processed in a separate environment.
15173 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
15175         * tbl/table.c: Removed TABLE_BOTTOM_REG.
15177         * tbl/table.c (table::init_output): In the section release macro,
15178         give a warning message if the section won't fit on one page.
15180         * tbl/table.c (table::do_top): Emit table keep only if table is
15181         boxed.
15182         (table::do_bottom): Likewise for table release.
15183         (table::table), (table::add_vertical_rule):  Remove reference to
15184         keep member.
15185         * tbl/table.h: Remove keep member.
15187         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
15188         SECTION_RELEASE_MACRO, if there's not enough space before the next
15189         trap to output the diversion, call T# ourselves, set
15190         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
15191         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
15192         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
15193         vertical position and return to it before turning traps on again.
15194         
15195 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
15197         * troff/node.c, troff/node.h: In classes derived from node,
15198         replace prev_char_width method by last_char_node method.
15199         * troff/env.c (environment::get_prev_char_width): Use
15200         node::last_char_node rather than node::get_prev_char_width.
15202         * Makefile: Added comment about -fno-inline on 68030-based
15203         Apollos.
15205         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
15206         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
15207         expressions using sizeof to int.
15208         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
15210         * macros/tmac.e (TS):  Don't move @f back past the current
15211         position.
15213 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
15215         * ps/ps.c (main): Buffer stderr.
15216         * dvi/dvi.c (main): Likewise.
15217         * tty/tty.c (main): Likewise.
15219         * ps/ps.c (ps_printer::do_import): Improve error handling.
15221         * troff/input.c (abort_request): Use asciify.
15223         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
15224         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
15225         type of first argument int rather than char.  This works around a
15226         bug on the 68030 based Apollo using g++ 1.37.1.
15228         * tbl/table.h (class table): Add `keep' member.
15229         * tbl/table.c (table::table): Initialize `keep'.
15230         (table::add_vertical_rule): Set `keep' to 1.
15231         (table::do_top): Only emit table keep macro is `keep' is non-zero.
15232         (table::do_bottom): Likewise for table release macro.
15233         (table::do_row): Emit section keep macro even if the row is 0.
15235 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
15237         * macros/tmac.e (@C): Preserve the font family across the change
15238         in environments.
15240 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
15242         * lib/font.c: Initialize font::hor and font::vert to 1.
15243         (font::load_desc): Check the values of font::hor and font::vert.
15245         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
15246         be included in a C compilation.
15247         (iftoa): Use INT_DIGITS. Include lib.h.
15248         (itoa): Likewise.
15249         (as_string): Likewise.
15250         * tbl/table.c: Removed definition of INT_DIGITS.
15251         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
15252         * troff/input.c (input_input_requests): Likewise.
15253         * ps/ps.c (make_encoding_name): Likewise.
15254         (ps_printer::set_style): Likewise.
15255         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
15257         * tty/devascii/R.proto: Map fm onto '.
15258         * tty/devlatin1/R.proto: Likewise.
15260 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
15262         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
15263         argument to \w is at a different input level.
15265         * tbl/table.c (table::init_output): Define a new macro
15266         REPEATED_VPT_MACRO, like vpt but if in a diversion also
15267         transparently outputs itself.
15268         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
15269         vpt.
15270         (table::do_row): Likewise.
15272         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
15273         TRANSPARENT_STRING_NAME.
15275         * tbl/table.c (table::init_output): In the table release macro
15276         print an error message and don't produce any output if after
15277         issuing the need request the table still will not fit.  Also
15278         remove the diversion after bringing it back.
15280         * tbl/table.c (table::init_output): Define a new macro
15281         REPEATED_MARK_MACRO, like mk but if in a diversion also
15282         transparently outputs itself.
15283         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
15284         is necessary because .TH might not call .T#.
15285         (table::do_top): Likewise TOP_REG.
15286         (table::define_bottom_macro): If TOP_REG is no longer valid, use
15287         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
15288         table header might contain just the two top rules.
15290 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
15292         * troff/div.c: Implement new request `ptr' to print all traps.
15294         * troff/env.c (init_env_requests): Implement `.tabs' reg with
15295         init_string_env_reg.
15296         * troff/env.c (class tab_reg): Deleted.
15298 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
15300         * troff/div.c: New number register .pn returns the number of the
15301         next page as set by the pn request.
15303         * macros/tmac.an: Redid headers and footers.  Number each manual
15304         entry starting from 1 unless \nC is > 0, like Sun.  Added an
15305         optional 5th argument to .TH which specifies the manual name and
15306         appears in the center of the header.  Understand the X, P and D
15307         registers like Sun.
15309 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
15311         * troff/env.c (init_env_requests): New number register `.lt' to
15312         return the title length.
15314         * troff/node.h (class transparent_dummy_node): New class.
15315         * troff/node.c (class transparent_dummy_node): Provide member
15316         functions. 
15317         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
15318         than a dummy_node.
15320         * troff/input.c (token::next): New escape sequence \).
15321         * troff/input.c (get_copy): Recognize \) in copy mode.
15323         * troff/input.c (input_stack::clear): New function.
15324         * troff/input.c (exit_request): Use input_stack::clear.
15326         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
15327         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
15329         * troff/env.c: Move set_page_character to input.c.  Move
15330         page_character to input.c also.
15331         * troff/env.c (title): Split off the reading of the parts of the
15332         title into read_title_parts.
15333         * troff/input.c (read_title_parts): New function.  Check the
15334         input_level when testing whether a token matches the delimiter.
15336         * troff/input.c (exit_request): New function.
15337         * troff/input.c (init_input_requests): Bind ex request to
15338         exit_request rather than exit_groff.
15340         * troff/input.c (exit_groff): Call tok.next() before
15341         process_input_stack().
15343 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
15345         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
15346         * troff/env.h: ditto.
15347         * troff/input.c: ditto.
15349         * troff/env.c (environment::is_empty): Test pending_lines.
15351         * troff/env.c (environment::have_pending_lines): Removed.
15353         * troff/input.c: Add request to flush pending lines from the
15354         environment.
15356         * troff/env.c, troff/env.h: Add automatic widow control feature.
15358         * troff/input.c (exit_groff):  Do process_input_stack() after
15359         do_break() but before setting exit_flag to 2.
15361         * troff/input.c: Remove FLUSH_PENDING_LINES and
15362         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
15363         environment after END_TRAP token seen, but only if there aren't
15364         any more traps still unfinished.
15365         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
15367 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
15369         * troff/env.c: Rename the `retain_size' member of class
15370         pending_output_line to `no_fill'.
15372         * troff/env.c (title): When the line is output, make the
15373         retain_size argument !fill.
15375         * troff/node.h: Add `hyphenated' member to struct breakpoint.
15376         * troff/node.c (space_node::get_breakpoints),
15377         (dbreak_node::get_breakpoints):  Fill this in.
15378         * troff/env.c:  Allow specification of maximum number of
15379         consecutive hyphenated lines.
15381         * troff/env.c (environment::is_empty): Add test for !current_tab.
15383 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
15385         * troff/env.c (environment::hyphenate_line): Don't completely give
15386         up if the word is not to be hyphenated; continue so that breaks
15387         can be made at break_char_node's.
15389         * lib/lib.h: Only define INT_MAX if it's not already defined;
15390         undef INT_MIN if it's already defined.
15392         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
15394         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
15395         This works around a bug in AT&T C++ 2.0 used with an ANSI C
15396         compiler.
15397         
15398         * macros/tmac.an (an-header): Set no-space mode.
15400         * macros/tmac.an (TH): Start a new page if necessary.
15402         * Started using ChangeLog at version 0.4.
15404 Local Variables:
15405 version-control: never
15406 coding: latin-1
15407 End: