* tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
[s-roff.git] / ChangeLog
blobea2f281b8952004ab0b23f4ab16407bed718d0fa
1 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
3         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
4         * tmac/groff_mdoc.man: Updated.
6 2004-07-05  Werner LEMBERG  <wl@gnu.org>
8         * doc/groff.texinfo: Further improve documentation of `hcode'.
10 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
12         Improve appearance of arrows in pic.
14         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
15         arrow head thin.
16         Use two line segments for drawing non-filled arrow head.
17         (line_object::print, spline_object::print): Shorten line length to
18         avoid arrow sticking.
19         (arc_object::print): Take arrow direction into account.
21 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
23         * tmac/groff_www.man: Update documentation of .MPIMG.
25 2004-07-03  Werner LEMBERG  <wl@gnu.org>
27         * tmac/an-old.tmac (RI): Always start with font `R'.
28         (RI, IR): Properly end with font `R'.
30 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
33         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
34         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
35         Don't pass more than six arguments to .R, .I, .B, etc., for
36         compatibility with traditional troff macros.
38 2004-07-02  Werner LEMBERG  <wl@gnu.org>
40         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
41         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
42         Update all users.
43         (PUSH_COMP_MODE): New internal character constant.
44         Update all users.
46         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
47         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
48         (token::next, macro::append): Handle PUSH_COMP_MODE.
49         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
50         POP_GROFFCOMP after each of the decoded arguments to make them
51         independent from the compatibility mode status.
52         (comp_mode): Add `COMP_ENABLE'.
53         (do_define_string, do_define_macro): Handle COMP_ENABLE.
54         (define_string, append_string, define_macro, define_indirect_macro,
55         append_macro, append_indirect_macro): Handle `compatible_flag'.
56         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
58         * man/groff_diff.man, doc/groff.texinfo: Updated.
60 2004-07-01  Werner LEMBERG  <wl@gnu.org>
62         * doc/groff.texinfo: Improve documentation of `hcode'.
63         Use @documentencoding and convert document to latin-1; to do that
64         make latin characters active and assign proper macros (within a
65         @tex...@end tex environment).
66         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
67         * doc/Makefile.sub (groff): Ditto.
69 2004-06-29  Werner LEMBERG  <wl@gnu.org>
71         Implement two new conditional operators `F <name>' and `S <name>'
72         which check whether <name> is a valid font or style, respectively.
74         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
75         (text_file::text_file): Updated.
76         (text_file::error): Don't emit message if `silent' is set.
77         (font::load_font): Add optional third argument (which is directly
78         passed to `load'.
79         (font::load): Add optional second argument to check the header of
80         a font only, without emitting warning or error messages.
81         * src/include/font.h (font): Updated.
83         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
84         conditionals.
85         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
86         fourth argument to check a font without mounting.
87         (check_font, check_style): New functions.
88         * src/roff/troff/node.h: Updated.
90         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
91         Updated.
93 2004-06-27  Werner LEMBERG  <wl@gnu.org>
95         Implement new string-valued register `.sty' to return the current
96         style name.
98         * env.cpp (environment::get_style_name_string): New function.
99         (init_env_requests): Add `.sty' register.
100         * env.h (environment): Updated.
101         * node.cpp (font_info): Make `get_style_name' a friend.
102         (get_style_name): New function.
103         * node.h: Updated.
105         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
106         Updated.
108 2004-06-15  Werner LEMBERG  <wl@gnu.org>
110         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
111         `nospaces' option.
113 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
115         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
116         and \n[mo] to avoid dependency on current date.
118 2004-06-08  Werner LEMBERG  <wl@gnu.org>
120         * Makefile.sub (install_data): New target.
122 2004-06-04  Werner LEMBERG  <wl@gnu.org>
124         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
126 2004-06-03  Werner LEMBERG  <wl@gnu.org>
128         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
129         order of libraries.
130         (install_data): Add $(srcdir).
132         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
133         libraries.
135 2004-06-02  Werner LEMBERG  <wl@gnu.org>
137         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
138         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
139         Add test for Xmu library.
140         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
141         GROFF_APPRESDIR_DEFAULT): New macros.
143         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
144         and GROFF_APPRESDIR_DEFAULT.
146         * configure: Regenerated.
148         * Makefile.in (appresdir): New variable.
149         (MDEFINES): Add appresdir.
151         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
152         -Xt.
153         (install_data, uninstall_sub): New targets to handle GXditview.ad.
155         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
156         `$(srcdir)/eign', not `eign'.
158         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
160         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
161         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
162         Protect (g)xditview with `\%' to avoid hyphenation.
163         Other minor formatting.
165 2004-06-01  Werner LEMBERG  <wl@gnu.org>
167         Integrate gxditview into groff's standard directory hierarchy.
169         * src/xditview/*: Moved to ...
170         * src/devices/xditview/*: Here.
171         Moved DviChar.h and XFontName.h to src/include.
172         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
173         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
174         Moved xtotroff.c to new directory src/utils/xtotroff.
175         Provide proper Makefile.sub files (reusing the stuff from
176         Imakefile.in).
177         DESC renamed to DESC.in.
178         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
179         Converted everything from K&R to ANSI C.
180         Decorated with const where appropriate.
181         Cast string constants with `String' and `char *' where appropriate.
182         Made it compile with C++ (used as a C compiler).
183         Removed other minor compiler warnings.
185         * src/devices/xditview/device.c: Include config.h, string.h, and
186         defs.h.
187         Don't declare `exit', `strtok', `strchr', and `getenv'.
188         (FONTPATH): Remove.
190         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
191         `XFormatFontName'.
193         * src/devices/xditview/xditview.c: Include config.h.
194         Include stdio.h earlier.
195         Protect declaration of `popen' and `pclose' with
196         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
197         Replace `caddr_t' with `XtPointer'.
198         (MakePromptFunc): New typedef.
199         (DoPrint): Use RETSIGTYPE.
200         (promptfunction): Change type to MakePromptFunc.
201         (MakePrompt): Use MakePromptFunc for third argument.
202         (xmalloc): Removed.
204         * src/devices/xditview/ad2c: Add casts to `String'.
206         * src/include/XFontName.h (XFontNameString): Don't use array
207         notation.
208         Add prototypes for `XParseFontName', `XFormatFontName',
209         `XCompareFontName', and `XCopyFontName'.
211         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
212         `XFontName.h'.
214         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
215         Don't declare `XParseFontName' and `XFormatFontName'.
216         (xmalloc): Removed.
217         (main): Remove `optind' and `optarg'.
219         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
220         (to select programs which need X).
221         Make XDEVIDIRS depend on `FORCE'.
222         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
223         X support).
224         (MDEFINES): Updated.
225         (LIBDIRS): Use XLIBDIRS.
226         (CPROGDIRS): Use XPROGDIRS.
227         (DEVDIRS): Remove font directories for gxditview.
228         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
229         (EXTRADIRS): Remove src/xditview.
231         * Makefile.sub (DISCLEANFILES): Updated.
233         * Makefile.comm (LIBXUTIL): New variable.
234         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
235         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
237         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
239         * aclocal.m4 (GROFF_X11): New function.
241         * configure.ac: Call GROFF_X11.
242         Don't create src/xditview/Imakefile.
243         Don't emit notice how to build gxditview.
245         * configure: Regenerated.
247         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
249 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
251         * Makefile.in (CPPFLAGS): Define.
252         (MDEFINES): Add CPPFLAGS.
254 2004-05-27  Werner LEMBERG  <wl@gnu.org>
256         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
258 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
260         Fix problems with `friend name injections'.
262         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
263         make_script_box), src/roff/troff/div.h (end_diversions),
264         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
265         change 2004-04-08.
267 2004-05-25  Bernd Warken  <bwarken@mayn.de>
269         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
271 2004-05-25  Werner LEMBERG  <wl@gnu.org>
273         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
274         src/libs/libgroff/color.cpp: Include lib.h.
276 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
278         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
279         through Forte 6u1, and for how to get GNU make on Solaris.
281 2004-05-24  Werner LEMBERG  <wl@gnu.org>
283         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
284         by Paul Eggert.
286 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
288         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
289         rule.
291 2005-05-14  Werner LEMBERG  <wl@gnu.org>
293         * REVISION: Set to 2.
295         * aclocal.m4 (GROFF_STDINT_H): Removed.
296         (GROFF_INTTYPES_H): Define HACE_CC_INTTYPES_H.
298         * configure.ac: Updated.
299         * configure, src/include/config.hin: Regenerated.
301         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
302         inttypes.h conditionally.
304 2003-05-13  Werner LEMBERG  <wl@gnu.org>
306 Version 1.19.1 released
307 =======================
309 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
311         * src/preproc/refer/label.y (same_author_last_name,
312         same_author_name): Handle empty sort keys.
314 2004-05-10  Werner LEMBERG  <wl@gnu.org>
316         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
317         tmac/TODO: Updated.
319         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
320         doc-str-Lb-librt): Reset font.
321         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
322         Provide `doc-str-Lb' to reset font.
323         * tmac/groff_mdoc.man: Updated.
325 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
327         * src/preproc/html/pre-html.cpp (make_message): Make it work for
328         snprintf versions which don't conform to ANSI C 99 (this is,
329         counting the string's trailing null byte in the return value).
331 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
333         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
334         that all implementations of sprintf handle null pointers correctly.
336 2004-05-04  Werner LEMBERG  <wl@gnu.org>
338         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
339         Document `.U' register.
341         * src/roff/troff/env.cpp (environment::mark_last_line)
342         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
344 2004-05-04  Larry Kollar  <kollar@alltel.net>
346         New read-only register `.U'; it returns 1 in safer mode and 0
347         otherwise.
349         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
350         register.
352 2004-05-03  Werner LEMBERG  <wl@gnu.org>
354         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
356 2004-04-17  Werner LEMBERG  <wl@gnu.org>
358         * src/include/font.h (font): Use `int' for ch_index.
359         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
360         font::compact): Updated.
362         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
363         warnings.
365         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
366         (hyphen_word): Fix compiler warnings.
367         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
368         `char'.
369         Update all callers.
370         (get_delim_number, get_line_arg): Change second argument type to
371         `unsigned char'.
372         (macro_header::copy, token::next, do_define_string,
373         do_define_character, substring_request, asciify_macro,
374         unformat_macro, read_size, non_interpreted_node::interpret,
375         while_request, main: Fix compiler warnings.
376         (read_color_draw_node): Initialize `col'.
378         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
379         `start_col' and `end_col' of type `int'.
380         (vertical_rule): Make `col' of type `int'.
382         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
383         for EOF.
385         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
386         New arrays.
387         (format_serial): Use them to remove dependency on ASCII.
389         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
390         compiler warning.
391         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
392         Ditto.
394         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
395         compiler warnings.
396         (glyph): Change type of `hpos' to `int'.
398         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
399         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
401         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
403         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
405 2004-04-16  Werner LEMBERG  <wl@gnu.org>
407         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
408         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
409         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
410         `double' instead of `float' everywhere.
411         * src/preproc/grn/main.cpp: Use `double' instead of `float'
412         everywhere.
413         (main): Add return value.
414         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
415         everywhere.
416         Update all user functions.
418         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
419         src/preproc/eqn/box.h, src/preproc/pic/object.h,
420         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
421         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
422         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
423         src/roff/troff/input.cpp, src/roff/troff/request.h,
424         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
425         declarations.
427         * src/utils/indxbib/signal.c: Include stdlib.h.
429 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
431         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
432         before the first page.
434 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
436         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
437         (doc-operating-system-*): Updated.
438         * tmac/doc-syms (doc-str-St-*): Various small fixes.
439         (doc-str-Lb-*): Add more library names.
441 2004-04-10  Art Haas  <ahaas@airmail.net>
443         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
444         use anonymous type.
446 2004-04-09  Art Haas  <ahaas@airmail.net>
448         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
450 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
452         * arch/misc/shdeps.sh: Generate better comment for sed script.
454 2004-04-08  Art Haas  <ahaas@airmail.net>
456         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
457         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
458         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
459         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
460         (polyfill), src/preproc/grn/main.cpp (polyfill),
461         src/preproc/refer/command.cpp (command_table),
462         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
463         gcc 3.5 doesn't like).
465 2004-04-08  Werner LEMBERG  <wl@gnu.org>
467         Removing many compiler warnings.  groff should now compile with
468         a C++ compiler used for C files also.  [Simple variable renamings
469         to avoid shadowing aren't logged in detail.]
471         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
472         (draw_dvi_printer::draw) ['c']: Enclose in block.
474         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
475         (page::add_line): Fix typos.
476         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
478         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
479         Some local variable renamings.
480         * src/devices/grolbp/lbp.h: Some local variable renamings.
482         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
483         variable renamings.
485         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
486         Remove redundant local variable declaration.
487         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
488         Don't use `caddr_t' but `void *'.
489         Enclose functions with `extern "C"' for C++.
491         * src/libs/libdriver/input.cpp (remember_filename,
492         remember_source_filename): Use cast for string constant.
494         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
495         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
496         src/libs/libgroff/geometry.cpp: Some local variable renamings.
497         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
498         style.
499         Enclose functions with `extern "C"' for C++.
500         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
501         (needs_quoting): Return `int'.
502         (quote_arg): Add proper casts to malloc and realloc.
503         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
504         various MS Windows environments.
505         (spawnvp_wrapper): Add proper cast to malloc.
507         * src/preproc/eqn/box.h: Remove redundant declarations of
508         `make_script_box', `make_mark_box' and `make_lineup_box'.
509         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
510         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
511         variable renamings.
513         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
514         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
515         (dx, dy): Renamed functions to...
516         (deltax, deltay): This.
517         * src/preproc/grn/main.cpp: Some local variable renamings.
518         (deffont): Add `const'.
519         (initpic, conv): Use cast for string constant.
521         * src/preproc/html/pre-html.cpp: Some local variable renamings.
522         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
523         (char_buffer::run_output_filter): Second argument is unused.
524         * src/preproc/html/pushback.cpp: Some local variable renamings.
526         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
527         * src/preproc/pic/object.cpp: Some local variable renamings.
529         * src/preproc/refer/label.y (lookup_label): Remove redundant
530         declaration of local variable.
532         * src/preproc/soelim.cpp: Remove redundant declaration of
533         `interpret_lf_args'.
535         * src/preproc/tbl/main.cpp: Some local variable renamings.
537         * src/roff/groff/groff.cpp (main): Use cast for string constant.
538         * src/roff/groff/pipeline.c: Enclose declarations of `error',
539         `c_fatal', and `i_to_a' with `extern "C"' for C++.
540         Don't use C++-style comments.
542         * src/roff/troff/env.h: Remove redundant declaration of `title'.
543         * src/roff/troff/node.h, src/roff/troff/env.cpp,
544         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
545         renamings.
546         * src/roff/troff/div.h: Remove redundant declaration of
547         `end_diversions'.
548         * src/roff/troff/troff.h: Remove redundant declaration of
549         `cleanup_and_exit'
550         * src/roff/troff/input.cpp: Remove redundant declaration of
551         `handle_first_page_transition' and `process_input_stack'.
553         * src/utils/hpftodit.cpp: Some local variable renamings.
555         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
556         for C++.
557         Don't define RETSIGTYPE.
558         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
560         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
561         (error): Use `const' in argument.
562         (main): Remove redundant declaration of `optind'.
563         Move declaration of `Version_string' to top-level.
565         * PROBLEMS: Document difficulties compiling signal.c if a C++
566         compiler is used for C.
568 2004-04-07  Werner LEMBERG  <wl@gnu.org>
570         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
572 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
574         Make scripts like nroff.sh and neqn.sh portable across various
575         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
576         non-POSIX path separators.  The idea is to extend those scripts to
577         decide at run-time (of the script) which path separator to use.
579         * arch/misc/Makefile.sub: New file.
580         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
581         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
582         a proper definition of the variable `GROFF_RUNTIME'.
584         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
585         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
586         (PROGDEPDIRS): New variable.
587         `FORCE' it.
588         (PROGDIRS): Add PROGDEPDIRS.
590         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
591         Don't substitute @SEP@ and @BINDIR@.
592         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
593         (PATH): Use GROFF_RUNTIME.
595         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
596         Don't substitute @SEP@ and @BINDIR@.
597         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
598         (PATH): Use GROFF_RUNTIME.
600 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
602         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
603         Cygwin which doesn't handle stderr correctly.
605 2004-03-08  Werner LEMBERG  <wl@gnu.org>
607         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
608         against empty argument.  Problem reported by <cgd@broadcom.com>.
610 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
612         * Makefile.in (SEP): Replaced with...
613         (RT_SEP, SH_SEP): Separators for the target platform's native path
614         separator and the build environment, respectively.
615         (fontpath, tmacpath): Use RT_SEP.
616         (MDEFINES): Updated.
618         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
619         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
620         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
621         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
623 2004-03-05  Werner LEMBERG  <wl@gnu.org>
625         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
626         reduce alignment problems with newer printers which use built-in
627         TrueType fonts (instead of the older Intellifonts).  The ideal
628         solution is to provide a second set of groff metric files, but this
629         is extremely time-consuming to produce, given that HP's metric
630         files are very rudimentary.
632 2004-03-01  Werner LEMBERG  <wl@gnu.org>
634         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
635         s/operand/argument/ in error message.
637 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
639         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
640         is in use.
642 2004-03-01  Antti Kantee  <pooka@netbsd.org>
644         * tmac/s.tmac (XE): Fix error message.
646 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
648         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
649         New macros.
651         * src/roff/groff/pipeline.c: Declare strcasecmp.
652         (run_pipeline) [_WIN32]: Use function name variants which don't
653         start with `_'.
654         Fix stream handling.
656 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
658         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
659         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
660         for platforms which use the native Win32 runtime libraries.
661         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
663         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
664         QUOTE_ARG_REALLOC_ERROR): Fix string.
666         * src/preproc/html/pre-html.cpp: Remove declaration of
667         `spawnvp_wrapper'.
668         Don't use __MINGW32__.
669         s/DEBUG_FILE/DEBUG_FILE_DIR/.
670         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
671         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
672         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
673         calls to `set_redirection' and `WAIT'.
674         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
675         Fix calls to `set_redirection' and `save_and_redirect'.
676         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
677         to `set_redirection' and `save_and_redirect'.
678         (usage): Fix message.
679         (makeTempFiles, main): Use `DEBUG_FILE'.
681 2004-02-21  Werner LEMBERG  <wl@gnu.org>
683         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
685 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
687         * src/libs/libgroff/quotearg.c: New file, providing proper argument
688         quoting for MSVC's spawn* and exec* functions.
689         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
690         spawnvp with proper quoting for MSVC.
692         * src/libs/libgroff/assert.cpp (program_name),
693         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
694         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
696         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
698         * src/include/error.h (program_name): Declare as `extern "C"'.
699         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
701 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
703         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
704         spawnvp_wrapper.
705         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
707 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
709         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
710         variable.
711         (sbasename) [__MSDOS__ || ...]: New function.
712         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
713         generic algorithm.
714         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
715         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
716         of XXX.
717         Use STDOUT_FILENO instead of hardcoded file handle.
718         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
720 2004-02-19  Werner LEMBERG  <wl@gnu.org>
722         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
723         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
725 2004-02-18  Werner LEMBERG  <wl@gnu.org>
727         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
728         new font and mapping files.
730 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
731             Keith Marshall  <keith.d.marshall@ntlworld.com>
733         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
734         an input pipe.  This is needed for the MSVC compiler to make troff's
735         `-o' option work.
737         * src/roff/troff/div.cpp: Include nonposix.h.
738         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
740 2004-02-17  Werner LEMBERG  <wl@gnu.org>
742         * font/devlj4/generate/special.awk: New script.
743         * font/devlj4/generate/Makefile (S): Use special.awk.
744         * font/devlj4/*: Regenerated, including the following new files:
745         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
746         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
747         * NEWS: Document new lj4 fonts and revised hpftodit.
749 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
751         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
753 2004-01-25  Werner LEMBERG  <wl@gnu.org>
755         * src/libs/libgroff/progname.cpp: Replaced with...
756         * src/libs/libgroff/progname.c: New file.
757         * src/libs/libgroff/Makefile.sub: Updated accordingly.
759 2004-01-17  Werner LEMBERG  <wl@gnu.org>
761         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
763 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
765         * font/devlj4/generate/wingdings.map,
766         font/devlj4/generate/symbol.map: Include unnamed glyphs.
767         Use groff glyph names where possible.
768         * src/devices/grolj4/lj4_font.man: Minor updates.
770 2004-01-13  Werner LEMBERG  <wl@gnu.org>
772         * tmac/www.tmac (DC): Handle TTY devices.
774         * doc/webpage.ms: Document viewCVS from ffii.org.
775         * NEWS, README: Updated.
777         * src/roff/groff/groff.man: Mention lj4_font man page.
779         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
780         variables.
781         (FONTS): Add SYMBOL and WINGDINGS.
782         (SYMBOL, WINGDINGS): New targets.
784 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
786         * src/devices/grolj4/lj4_font.man: New man page.
787         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
788         * src/devices/grolj4.man: Mention lj4_font man page.
790         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
791         * src/utils/hpftodit/hpftodit.man: Document it.
792         (CW): New macro.
793         Remove details about fonts (which are now in lj4_font.man).
795         * font/devlj4/generate/symbol.map,
796         font/devlj4/generate/wingdings.map: New files.
798 2004-01-12  Werner LEMBERG  <wl@gnu.org>
800         * README: Mention ffii's viewcvs access.
802 2004-01-09  Werner LEMBERG  <wl@gnu.org>
804         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
806 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
808         Revert most of the change from 2004-01-03 to better control used
809         symbol sets.
811         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
812         (text_symbol_sets, special_symbol_sets): New arrays.
813         (symbol_set_table): New global variable.
814         (read_symbol_sets): Use search order given in the text_symbol_sets
815         and special_symbol_sets arrays.  If command line flag -a is not
816         given, search both arrays.
817         (output_charset): Require x_height_tag only for command line flag -i.
819 2004-01-06  Werner LEMBERG  <wl@gnu.org>
821         Implement string-valued registers \n[.m] and \n[.M] to return the
822         name of the current drawing and background color, respectively.
824         * src/roff/troff/symbol.h: Moved to...
825         * src/include/symbol.h: Here.
826         Small fixes to make it work outside of the `troff' directory.
827         * src/roff/troff/symbol.cpp: Moved to...
828         * src/libs/libgroff/symbol.cpp: Here.
829         Small fixes to make it work outside of the `troff' directory.
831         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
832         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
833         Updated.
835         * src/include/color.h: Include symbol.h.
836         (color): Add new field `nm'.
837         * src/libs/libgroff/color.cpp (color::color): Updated.
839         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
840         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
841         src/roff/troff/reg.cpp: Don't include symbol.h.
843         * src/roff/troff/env.cpp: Don't include symbol.h.
844         (environment::get_glyph_color_string,
845         environment_get_fill_color_string): New member functions.
846         (init_env_requests): Handle `.m' and `.M' registers.
847         * src/roff/troff/input.cpp: Don't include symbol.h.
848         (default_symbol): Moved to symbol.cpp/symbol.h.
849         (do_glyph_color, do_fill_color, define_color): Pass symbol name
850         to color constructor.
851         * src/roff/troff/env.h: Updated.
853         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
854         Document new registers.
856 2004-01-05  Werner LEMBERG  <wl@gnu.org>
858         * src/roff/troff/node.cpp (space_node::get_breakpoints,
859         space_node::nbreaks): Protect against zero `next' field.
861 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
863         In hpftodit, use the symbol sets offered in the TFM.
865         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
866         (symbol_set, text_symbol_sets, special_symbol_sets,
867         symbol_set_table): Removed.
868         (get_printcode): Removed.
869         (read_symbol_sets): Initialize `symbol_set' field with
870         `NO_SYMBOL_SET'.
871         Simplify code to just use the `kind' value.
872         (output_charset): Improve output formatting.
873         (dump_symbols): Simplified.
875 2004-01-02  Werner LEMBERG  <wl@gnu.org>
877         * font/devlj4/generate/text.map: Add more MSL numbers.
879 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
881         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
882         (text_symbol_sets): Add more symbol sets.
883         (debug_flag): New static variable (moved from `main').
884         (get_printcode, show_symset): New functions.
885         (main): Remove `debug_flag'.
886         (output_charset): Use `show_symset'.
887         (dump_symbols):  Use `show_symset'.
888         Print symsets for all glyphs.
889         (read_map): Actually call `unicode_to_ucode_make' but this time
890         correctly.
892 2004-01-01  Werner LEMBERG  <wl@gnu.org>
894         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
895         Fix placement of comments.
897 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
899         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
900         option `-d' is given.
901         (output_charset): Improve warning messages to give more information.
902         (dump_symbols): Make information more precise.
903         (usage): Updated.
904         (read_map): Don't call unicode_to_ucode_name; the glyph names must
905         appear as-is and shouldn't be decomposed.
907 2003-12-31  Werner LEMBERG  <wl@gnu.org>
909         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
910         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
911         (FONTS): Add TrueType font families Arial and Times New Roman.
912         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
913         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
914         `fl'.
916 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
918         * test-groff.in (SEP): Quote value.
919         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
920         `tem' to `char*' to avoid deallocation of a pointer to a constant
921         object which some compilers don't like.
923 2003-12-31  Werner LEMBERG  <wl@gnu.org>
925         * font/devlj4/generate (text.map, special.map): Rewritten to work
926         with the new hpftodit version.
928 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
930         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
931         set and 8bit character code for all glyphs also.
933 2003-12-30  Werner LEMBERG  <wl@gnu.org>
935         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
937 2003-12-29  Werner LEMBERG  <wl@gnu.org>
939         More fixes for MSVC compiler.
941         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
942         $(SEP).
944         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
945         STDERR_FILENO) [_MSC_VER]: Define conditionally.
946         (getpid) [_MSC_VER]: Remove.
947         Include direct.h and process.h conditionally.
949         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
950         parentheses for a_delete.
952         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
954         * test-groff: Replaced with...
955         * test-groff.in: This new template to handle path separator
956         properly.
958         * configure.ac: Check for direct.h and process.h.
959         Generate test-groff script.
960         * configure, src/include/config.hin: Regenerated.
962 2003-12-28  Werner LEMBERG  <wl@gnu.org>
964         Add integral extension glyph.
965         Add new option `-x' to afmtodit to suppress use of built-in AGL.
967         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
969         * font/devps/generate/textmap: Provide entry for `integralex' to
970         override (old) PUA value of the AGL.
971         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
972         * font/devps/*: Regenerated.
974         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
975         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
977 2003-12-27  Werner LEMBERG  <wl@gnu.org>
979         Add forgotten `coproduct' symbol (already available for DVI).
981         * font/devhtml/R.proto, font/devps/generate/textmap,
982         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
983         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
984         U+2210 (\[coproduct]).
986 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
988         hpftodit has been extended to handle TrueType metric files and
989         more glyphs.  See hpftodit.man for more details.
991         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
992         ctype.h, and unicode.h.
993         s/msl/charcode/ everywhere since we now handle Unicode values also.
994         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
995         Use it where appropriate.
996         (MULTIPLIER): Replaced with...
997         (multiplier): New global static variable.
998         (scale): Updated.
999         (tag_type): Add more TFM tags.
1000         (tag_name): New array.
1001         (ENUM_TYPE, FLOAT_TYPE): Removed.
1002         (BYTE_TYPE): New value assigned.
1003         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1004         (text_symbol_sets, special_symbol_sets): Extended to cover more
1005         sets.
1006         (check_type): Add return value.
1007         (check_units): Add parameters to get ppi and upem values.
1008         Handle TrueType TFM data.
1009         (output_font_name): New function.
1010         (output_charset): Add parameter to handle TFM type.
1011         Handle TrueType TFMs also.
1012         (em_fract): New macro.
1013         (dump_tags): Be much more verbose and handle more tags.
1014         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1015         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1016         functions.
1017         (read_map): Add parameter to handle TFM type.
1018         Handle both MSL and Unicode mappings.
1019         (main): Add two new command line options `-a' and `-q'.
1020         Updated to make use of new functions.
1021         (usage): Updated.
1023         * src/utils/hpftodit/hpuni.cpp: New file.
1025         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1026         Updated.
1028 2003-12-25  Werner LEMBERG  <wl@gnu.org>
1030         * src/include/nonposix.h (read) [_MSC_VER]: Define.
1032 2003-12-24  Werner LEMBERG  <wl@gnu.org>
1034         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1035         by Michail Vidiassov <master@iaas.msu.ru>.
1037 2003-12-20  Werner LEMBERG  <wl@gnu.org>
1039         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1040         and u0049_0307.
1041         Add missing latin-2 glyphs.
1042         * font/devutf8/R.proto: Add missing latin-2 glyphs.
1044         * tmac/troffrc: Load `composite.tmac' earlier.
1046         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1047         u00{53,73}_0327, and u0049_0307.
1048         * tmac/X.tmac: Add u00{47,67}_0306.
1049         * tmac/tty-char.tmac: Use composite glyph names for readability.
1051         * NEWS: Updated.
1053         * src/include/unicode.h: Remove `extern' keywords.
1055 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
1057         * tmac/latin5.tmac: New file.
1059 2003-12-19  Werner LEMBERG  <wl@gnu.org>
1061         Add some glyphs needed for Turkish.
1063         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1064         and u0049_0307.
1066         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
1067         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1068         u00{53,73}_0327, and u0049_0307.
1070 2003-12-18  Werner LEMBERG  <wl@gnu.org>
1072         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1073         from 2001-10-04.
1074         Remove trailing zeros.
1076 2003-12-17  Werner LEMBERG  <wl@gnu.org>
1078         Make \? transparent to end-of-sentence recognition.
1080         * src/roff/troff/input.cc (non_interpreted_node): Add
1081         `ends_sentence' member function.
1083 2003-12-16  Werner LEMBERG  <wl@gnu.org>
1085         * doc/groff.texinfo: Document `dt' request correctly.
1086         Other minor typographical improvements.
1088 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
1090         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1092 2003-12-10  Richard Stallman  <rms@gnu.org>
1094         * LICENSE: Better wording.
1096 2003-12-09  Werner LEMBERG  <wl@gnu.org>
1098         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1099         * configure, NEWS: Updated.
1101 2003-12-08  Werner LEMBERG  <wl@gnu.org>
1103         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1105 2003-12-07  Bernd Warken  <bwarken@mayn.de>
1107         * LICENSE: Updated.
1109 2003-12-07  Werner LEMBERG  <wl@gnu.org>
1111         * INSTALL: Improved.
1113 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1115         Use path separator character of target platform for compiled-in
1116         default paths.
1118         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1119         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1120         * configure: Regenerated.
1121         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1123 2003-12-05  Werner LEMBERG  <wl@gnu.org>
1125         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1126         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1128 2003-12-04  Bernd Warken  <bwarken@mayn.de>
1130         * LICENSE: New file.
1132 2003-12-03  Werner LEMBERG  <wl@gnu.org>
1134         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1135         ligatures present in AFM files since groff currently only
1136         understands some standard ligatures and nothing else.
1138 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
1140         * src/roff/groff/groff.cpp (main): Don't run the spooler if
1141         option -v is given.
1143         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1144         messages.
1145         Close stdout copy.
1146         Don't use Unix wait flags.
1148 2003-12-02  Werner LEMBERG  <wl@gnu.org>
1150         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1151         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1152         src/roff/troff/uniuni.cpp: Moved to...
1153         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1154         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1155         src/libs/libgroff/uniuni.cpp: Here.
1157         * src/include/Makefile.sub.old (HDRS),
1158         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1159         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1161 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1163         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
1164         `DEBUG_FILE'.
1165         Updated all users.
1167 2003-12-01  Werner LEMBERG  <wl@gnu.org>
1169         * groff.texinfo: Document special behaviour of `.vs 0'.
1170         Improve documentation of `cflags' request.
1171         * NEWS: Updated.
1173 2003-11-29  Werner LEMBERG  <wl@gnu.org>
1175         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
1176         * font/devlj4/CORONET: Regenerated.
1178 2003-11-24  Werner LEMBERG  <wl@gnu.org>
1180         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
1181         if processing hyphenation patterns in traditional mode.
1182         Improve error messages.
1184 2003-11-20  Werner LEMBERG  <wl@gnu.org>
1186         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
1187         troff_output_file::put_char): Fix type of local variable `c'.
1189 2003-11-19  Werner LEMBERG  <wl@gnu.org>
1191         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
1192         declarations.
1193         (i_to_a): Removed.  libgroff already provides this function.
1194         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
1196 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
1198         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
1199         HAVE_DECL_SYS_LIST.
1201 2003-11-17  Werner LEMBERG  <wl@gnu.org>
1203         * COPYING: Use correct version.
1205 2003-11-11  Werner LEMBERG  <wl@gnu.org>
1207         LynxOS 4.0.0 doesn't declare vfprintf.
1209         * configure.ac: Check for vfprintf.
1210         * configure: Regenerated.
1211         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
1212         * src/include/config.hin: Regenerated.
1214 2003-11-10  Werner LEMBERG  <wl@gnu.org>
1216         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
1218         * configure.ac: Check for vsnprintf.
1219         * configure: Regenerated.
1220         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
1221         `HAVE_VSNPRINTF'.
1222         * src/include/config.hin: Regenerated.
1224 2003-11-09  Werner LEMBERG  <wl@gnu.org>
1226         * aclocal.m4: Updated syntax to autoconf 2.59.
1227         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
1228         Don't check for gsos2.
1229         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
1230         working abs_top_srcdir and abs_top_builddir.
1232         * configure.ac: Updated syntax to autoconf 2.59.
1233         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
1234         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
1235         * configure: Regenerated.
1237         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
1238         s/@groff_top_builddir@/@abs_top_builddir@/.
1240         * src/roff/groff/pipeline.c (xstrsignal):
1241         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
1243 2003-11-07  Werner LEMBERG  <wl@gnu.org>
1245         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
1246         make start angle smaller than end angle to circumvent a bug in tpic
1247         handling of some versions of dvipdfm (and dvipdfmx).
1249 2003-10-30  Werner LEMBERG  <wl@gnu.org>
1251         * src/devices/grops/grops.man: Improve section on creating EPS.
1253 2003-10-29  Werner LEMBERG  <wl@gnu.org>
1255         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
1256         -P-pletter).
1258 2003-10-28  Werner LEMBERG  <wl@gnu.org>
1260         * doc/groff.texinfo: Fix documentation of `.if'.
1262 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
1264         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
1265         the form `uniXXXX' also.
1267 2003-10-27  Werner LEMBERG  <wl@gnu.org>
1269         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
1270         contrib/pic2graph/pic2graph.sh: Implement secure management of
1271         temporary files.
1272         Pass `-P-pletter' to groff to avoid data outside of the converted
1273         area -- some versions of `convert' (for example 5.3.8) don't check
1274         the bounding box of the image but always use a fixed image size
1275         (letter paper format).
1276         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
1277         contrib/pic2graph/pic2graph.man: Updated.
1279         * src/roff/groff/groff.man: Document $TMP and $TEMP.
1281 2003-10-26  Werner LEMBERG  <wl@gnu.org>
1283         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
1284         troff_output::simple_ellipse, troff_output::simple_arc,
1285         troff_output::simple_line, troff_output::simple_spline,
1286         troff_output::simple_polygon): Insert a space before arguments.
1287         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
1288         latter doesn't produce a node, so the following `.sp -1' would do
1289         the wrong thing.
1290         Don't emit `.sp -1' after \M.  This also doesn't produce a token
1291         (and we don't have to care about compatibility mode).
1292         (troff_output::set_color, troff_output::reset_color): Don't emit
1293         `.sp -1' after \M and \m.
1295         * src/roff/troff/input.cpp (old_have_input): New global variable.
1296         (input_stack::get): Handle `old_have_input'.
1297         (process_input_stack) <token::TOKEN_NEWLINE>: Call
1298         `trapping_blank_line' depending on `old_have_input', not
1299         `have_input'.
1301 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
1303         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
1304         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
1305         default directory names for temporary files.
1306         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
1308         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
1309         [__MSDOS__] (run_pipeline): Honour environment variables.
1310         Don't use `tmpnam' but `tempnam' to work around messy
1311         implementation.
1313         * README.MinGW: New file.
1315 2003-10-16  Werner LEMBERG  <wl@gnu.org>
1317         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
1318         `(*t)->next' without testing validity of `*t'.
1319         (usage): Make it more readable.
1321 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
1323         Make html device run under both MS-DOS and Win32.
1325         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
1326         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
1327         spawn or fork+exec has to be used, and whether parent must sleep
1328         until the child process terminates.  Used in
1329         `char_buffer::run_output_filter'.
1330         (copyofstdoutfd): Removed.
1331         (char_buffer): Replace `write_file_html' and `write_file_troff'
1332         member functions with `emit_troff_output' and `run_output_filter'.
1333         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
1334         macros.
1335         (replaceFd): Replaced with...
1336         (set_redirection): New auxiliary function.
1337         (waitForChild): Replaced with...
1338         (save_and_redirect): New auxiliary function for.
1340         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
1341         functions.
1343 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1345         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
1346         (GROFF_LIBC): New function.
1347         * configure.ac: Call GROFF_LIBC.
1348         Check for `kill'.
1349         * configure: Regenerated.
1351         * src/include/lib.h: Handle __MINGW32__.
1352         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
1353         Add macro for `pipe'.
1354         Define P_tmpdir.
1356         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
1357         correctly.
1359         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
1360         Implement.
1362 2003-10-13  Werner LEMBERG  <wl@gnu.org>
1364         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
1365         <chuq@chuq.com>.
1367         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
1368         directory.
1370 2003-10-12  Werner LEMBERG  <wl@gnu.org>
1372         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
1373         src/roff/troff/input.cc (usage): Updated.
1375         * NEWS, doc/groff.texinfo: Updated.
1377 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
1379         * src/libs/libgroff/searchpath.cpp
1380         (search_path::open_file_cautious): New function which also handles
1381         `-' as stdin and stdout depending on the access mode.
1382         * src/include/searchpath.h (search_path): Updated.
1384         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
1385         * src/devices/grops/ps.h: Include `searchpath.h'.
1386         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1387         Open resource file with `include_search_path.open_file_cautious'.
1388         * src/devices/grops/grops.man: Document new `-I' switch.
1390         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
1391         (main), src/devices/grolj4/lj4.cpp (main),
1392         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
1394         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
1395         Replaced with...
1396         (include_search_path): New global variable.
1397         (include_path_append): Removed.
1398         (main): Use `include_search_path.command_line_dir' to handle `-I'.
1399         (do_file): Simplify, using new
1400         `include_search_path.open_file_cautious'.
1402         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
1403         parameter.
1404         (main): Pass arguments to `-I' to both troff and devices.
1405         Improve handling of `-V'.
1406         * src/roff/groff/groff.man: Document changes to -I and -V.
1408         * src/roff/troff/input.cpp (include_search_path): New global
1409         variable.
1410         (next_file, source, ps_bbox_request, transparent_file,
1411         process_input_file): Use new
1412         `include_search_path.open_file_cautious'.
1413         (main) Handle `-I' switch.
1414         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
1415         Use new `include_search_path.open_file_cautious'.
1416         * src/roff/troff/node.h: New extern symbol `include_search_path'.
1417         * src/roff/troff/troff.man: Document new `-I' switch.
1419 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
1421         Support multiple calls of .Lb in LIBRARY section.
1423         * tmac/doc-common (doc-in-library-section): New register.
1424         (doc-section-library): New string.
1425         (Sh): Set `doc-in-library-section'.
1426         (Rd): Updated.
1427         * tmac/doc-syms (Lb): Insert breaks before and after arguments
1428         if in LIBRARY section.
1429         * tmac/doc.tmac (doc-save-global-vars): Updated.
1430         * NEWS, tmac/groff_mdoc.man: Updated.
1432 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
1434         * tmac/doc-common (doc-default-operating-system): New variable.
1435         (Os): Use it.
1437 2003-09-08  Werner LEMBERG  <wl@gnu.org>
1439         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
1441 2003-08-31  Werner LEMBERG  <wl@gnu.org>
1443         * contrib/mom/Makefile.sub: Fix last change to make it really work.
1444         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
1445         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
1446         $(DEVFILES) are not empty.
1447         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
1449 2003-08-26  Chuck Silvers  <chuq@chuq.com>
1451         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
1452         with parallel runs of `make'.
1454 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
1456         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
1457         insert SORT_SEP.  With certain combinations of sort specifications,
1458         refer sorted entries in the wrong order.  In particular, entries
1459         with a missing field should be be sorted before all entries that
1460         have that field, before refer looks to the next field.
1462 2003-08-23  Werner LEMBERG  <wl@gnu.org>
1464         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
1465         g++ linker is used.  Reported by Mark J. Reed
1466         <mark.reed@turner.com>.
1468 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1470         Add key character `x' to tbl which makes tbl call a user-defined
1471         macro on a table cell.
1473         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
1474         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
1475         `set_modifier' after printing the compatibility request.
1476         (set_modifier): Print call to `m->macro' if not empty.
1477         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
1478         `macro'.
1479         (process_format): Implement cases `x' and `X'.
1480         * src/preproc/tbl/tbl.man, NEWS: Updated.
1482 2003-08-15  Werner LEMBERG  <wl@gnu.org>
1484         * doc/groff.texinfo: Minor fixes.
1486 2003-08-09  Werner LEMBERG  <wl@gnu.org>
1488         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
1490 2003-08-07  Werner LEMBERG  <wl@gnu.org>
1492         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
1493         argument list to nothing if there is no file to match.  Use `ls' as
1494         a protection, similar to autoconf.
1496         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
1497         empty argument lists.
1499         * doc/groff.texinfo: Improve documentation how vertical spacing
1500         and line breaks interact.
1501         Other minor fixes.
1503         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
1505 2003-08-03  Werner LEMBERG  <wl@gnu.org>
1507         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
1508         EPS (using eps2eps or similar programs to compute the bounding box).
1510 2003-07-24  Werner LEMBERG  <wl@gnu.org>
1512         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
1513         * doc/texinfo.tex: Updated from texinfo 4.6.
1514         * README.CVS: From now on we need texinfo 4.6.
1516 2003-07-23  Werner LEMBERG  <wl@gnu.org>
1518         Add requests `dei1' and `ami1' for completeness.
1520         * src/roff/troff/input.cc (calling_mode): Remove
1521         CALLING_DISABLE_COMP.
1522         (comp_mode): New enumeration.
1523         (do_define_string, define_string, define_nocomp_string,
1524         append_string, append_nocomp_string): Updated.
1525         (do_define_macro): Add third parameter.
1526         (define_macro, define_nocomp_macro, define_indirect_macro,
1527         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
1528         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
1529         functions.
1530         (ignore): Updated.
1531         (init_input_requests): Add `dei1' and `ami1'.
1533         * tmac/trace.tmac: Handle de1 and am1.
1534         (de): Improve tracing message.
1535         (am): Add missing `do'.
1536         (return): Use de1.
1538         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1539         Document new requests.
1541 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1543         Add option -G to .MPIMG to insert a gap between text and the image.
1545         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
1546         www-finish-left-ll): Updated.
1547         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
1548         (MPIMG): Make option -L and -R optional.
1549         Implement option -G.
1551 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
1553         * src/devices/grohtml/post-html.cpp
1554         (html_printer::do_file_components): Don't use `stdout' as lvalue
1555         since it can be a macro.
1557 2003-07-22  Werner LEMBERG  <wl@gnu.org>
1559         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
1560         the corresponding test in aclocal.m4.
1562 2003-07-21  Werner LEMBERG  <wl@gnu.org>
1564         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
1565         names but RGB values directly.  Otherwise pnmtopng depends on
1566         an external file `rgb.txt' which maps colour names to values.
1568 2003-07-20  Werner LEMBERG  <wl@gnu.org>
1570         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
1571         * configure, src/include/config.hin: Regenerated.
1573         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
1575 2003-07-19  Werner LEMBERG  <wl@gnu.org>
1577         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
1579 2003-07-18  Werner LEMBERG  <wl@gnu.org>
1581         * *.man: Switch to non-compatibility mode temporarily if GNU
1582         syntax extensions are used in the particular man page.
1584         * PROBLEMS: Add solutions for SGR problems.
1586 2003-07-17  Werner LEMBERG  <wl@gnu.org>
1588         Don't ignore grotty's command line options if \X'tty: sgr ...' is
1589         used to change the drawing scheme.
1591         * src/devives/grotty/tty.cpp (bold_flag_option,
1592         underline_flag_option, italic_flag_option, reverse_flag_option,
1593         bold_underline_mode_option): New global variables.
1594         (update_options): New function.
1595         (tty_printer::special): Call update_options.
1596         (main): Don't set xxx_flag but xxx_flag_option, then call
1597         update_options.
1599 2003-07-14  Werner LEMBERG  <wl@gnu.org>
1601         Make grotty emit proper Unicode box drawing characters for -Tutf8.
1603         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
1604         values.
1605         (hline_char, vline_char): New global variables.
1606         (tty_printer::tty_printer): Initialize them.
1607         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
1608         horizontal and vertical lines.
1609         (crossings): New global array.
1610         (tty_printer::end_page): Use it to determine the proper crossing
1611         character for -Tutf8.
1613 2003-07-12  Werner LEMBERG  <wl@gnu.org>
1615         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
1616         (HTMLDOCFILES): Revert to `pic.html'.
1617         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
1619 2003-07-11  Werner LEMBERG  <wl@gnu.org>
1621         * doc/pic.ms: Improve documentation of absolute coordinates.
1622         Document absolute positioning of pictures.
1624         * NEWS: Add new pic capability.
1626 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
1628         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
1629         Rewritten.
1631 2003-07-07  Werner LEMBERG  <wl@gnu.org>
1633         Implement support for dashed and dotted ellipses in pic.  Based on
1634         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
1636         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
1637         common_output::dashed_ellipse, common_output::dotted_ellipse): New
1638         functions.  Ellipse arcs are approximated with circle arcs.
1639         * src/preproc/pic/common.h (common_output): Updated.
1640         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
1641         functions.
1642         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
1644         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
1646 2003-07-06  Werner LEMBERG  <wl@gnu.org>
1648         Make grotty work on platforms which have unsigned char as the
1649         default for char.  Based on a patch by Thomas Klausner
1650         <wiz@netbsd.org>.
1652         * src/devices/grotty/tty.cpp (schar): New typedef.
1653         Updated calls to declare_ptable and implement_ptable.
1654         (glyph): Use schar for back_color_idx and fore_color_idx.
1655         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
1656         (tty_printer::tty_color, tty_printer::tty_printer,
1657         tty_printer::color_to_idx, tty_printer::put_color): Updated.
1659 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
1661         * src/roff/nroff/nroff.sh: Add option -d for completeness.
1662         * src/roff/nroff/nroff.man: Updated.
1664 2003-07-05  Werner LEMBERG  <wl@gnu.org>
1666         * NEWS, tmac/groff_www.man: Updated.
1667         * doc/Makefile.sub: Updated.
1669 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
1671         Implement support for multiple HTML output files.
1673         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
1674         -j command line option.
1676         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
1677         global variables.
1678         (file): New fields `new_output_file', `require_links',
1679         `output_file_name'.
1680         (file::file): Updated.
1681         (files::set_file_name, files::set_links_required,
1682         files::are_links_required, files::is_new_output_file,
1683         files::file_name, files::next_file_name): New functions.
1684         (header_desc): New fields `no_of_level_one_headings',
1685         `header_filename'.
1686         (header_desc::header_desc): Updated.
1687         (header_desc::write_headings): Handle multiple files.
1688         (html_printer::write_header): Save file name in which header occurs.
1689         (html_printer::determine_header_level): Possibly split files on
1690         level one headings.
1691         (html_printer::do_links, html_printer::troff_tag): Updated.
1692         (html_printer::insert_split_file, html_printer::do_job_name,
1693         html_printer::emit_link, html_printer::write_navigation,
1694         html_printer::do_file_components): New functions.
1695         (html_printer::~html_printer): Handle multiple files.
1696         (main): Handle command line option `-j'.
1698         * src/devices/grohtml/grohtml.man: Updated.
1700         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
1701         which splits file.
1703         * tmac/www.tmac (JOBNAME): New macro.
1704         * tmac/s.tmac (SH-NO-TAG): New macro.
1705         (@SH): Call SH-NO-TAG.
1706         (@NH): Updated.
1708 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
1710         * tmac/groff_mdoc.man: Improve documentation of punctuation
1711         characters.
1713 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
1715         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
1717 2003-07-03  Werner LEMBERG  <wl@gnu.org>
1719         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
1721 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
1723         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
1724         after `/*' and `*/'.
1725         Fix spacing.
1726         (Fn, Fo): Reduce indentation in synopsis.
1728         * tmac/doc-common (doc-check-depth): New macro.
1729         (doc-end-macro, Sh, Ss): Use it.
1730         (Cd): Fix behaviour in synopsis.
1731         (In): Make it parsed and callable.
1732         If not in the synopsis, represent the C header file enclosed in
1733         angle brackets.
1734         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
1735         Use minus, not hyphen.
1737         * tmc/groff_mdoc.man: Updated.
1739 2003-07-01  Werner LEMBERG  <wl@gnu.org>
1741         Integrated grap2graph, contributed by Eric S. Raymond.
1743         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
1744         New files.
1745         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
1746         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
1748 2003-07-01  Colin Watson  <cjwatson@debian.org>
1750         * src/xditview/*.c: Add prototypes, fix return types, add includes.
1751         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
1753 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
1755         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
1757 2003-06-31  Werner LEMBERG  <wl@gnu.org>
1759         * doc/Makefile.sub (CLEANADD): Remove all files created by
1760         running `make groff.{pdf,dvi}'.
1762         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
1763         src/xditview also.
1765 2003-06-30  Werner LEMBERG  <wl@gnu.org>
1767         * Makefile.in (SHELL): Define as @SHELL@.
1768         (mkinstalldirs): Use $(SHELL).
1769         (MDEFINES): Add $(SHELL).
1770         * Makefile.comm (SHELL): Removed.
1772 2003-06-29  Werner LEMBERG  <wl@gnu.org>
1774         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
1775         The X11 documentation files use them.
1776         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
1778 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
1780         * tmac/e.tmac (@C): Handle .ad also.
1782 2003-06-12  Werner LEMBERG  <wl@gnu.org>
1784         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
1786         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
1787         Assign `n' even here.  It is possible to construct a node
1788         immediately following an escape character:
1790           .di xx
1791           \?\\\?a
1792           .br
1793           .di
1794           .xx
1796 2003-06-10  Werner LEMBERG  <wl@gnu.org>
1798         * README.WIN32: Removed.
1799         * MANIFEST: Updated.
1801 2003-06-07  Werner LEMBERG  <wl@gnu.org>
1803         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
1805 2003-06-05  Werner LEMBERG  <wl@gnu.org>
1807         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
1808         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
1810 2003-06-03  Werner LEMBERG  <wl@gnu.org>
1812         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
1813         is done by the calling function.
1815 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
1817         * tmac/X.tmac: Fix definition of `em'.
1819 2003-05-22  Werner LEMBERG  <wl@gnu.org>
1821         * src/roff/troff/input.cc (return_macro_request): Fix detection of
1822         argument.
1824 2003-05-18  Werner LEMBERG  <wl@gnu.org>
1826         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
1827         to make items work which consist only of a tag.
1829 2003-05-17  Werner LEMBERG  <wl@gnu.org>
1831         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
1832         aren't stretched in a tag (this can fail with unformatted boxes).
1833         Instead, insert a break and go back one line.
1835 2003-05-16  Werner LEMBERG  <wl@gnu.org>
1837         * src/roff/troff/input.cc (return_macro_request): If called with
1838         argument pop macro twice.  We need this to trace `return'.
1840         * tmac/trace.tmac: Handle `return'.
1841         Fix typos.
1843         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1844         Document.
1846 2003-05-15  Larry Kollar  <kollar@alltel.net>
1848         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
1849         registers `FPS', `FVS', and `FPD'.
1851 2003-05-15  Werner LEMBERG  <wl@gnu.org>
1853         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
1854         correctly.
1856 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
1858         * tmac/groff_mdoc.man: Slight improvements.
1860 2003-05-03  Werner LEMBERG  <wl@gnu.org>
1862         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
1863         `doc-header-space' after header line if register `cR' is set.
1865 2003-05-02  Werner LEMBERG  <wl@gnu.org>
1867         * TODO: Updated.
1869 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
1871         * tmac/doc-common (Nd): Use \[em].
1873 2003-05-01  Werner LEMBERG  <wl@gnu.org>
1875         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
1876         doc-footer-space): Initialize to 0.5i.
1877         (doc-setup-page-layout): Don't set doc-header-space and
1878         doc-footer-space.
1880 2003-04-30  Werner LEMBERG  <wl@gnu.org>
1882         * REVISION: Set to 1.
1884         * doc/pic.ms: Document possible problems with `figname'.
1886 2003-04-29  Werner LEMBERG  <wl@gnu.org>
1888 Version 1.19 released
1889 =====================
1891         * VERSION: Set to 1.19.
1892         * REVISION: Set to 0.
1893         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
1895         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1896         Define charset as `US-ASCII' in html output.
1898         * tmac/www.tmac (ULE): Add missing scaling indicator.
1900         * win32-diffs: Removed.
1902 2003-04-28  Werner LEMBERG  <wl@gnu.org>
1904         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
1905         `.da' and `.boxa'.
1906         Document how to insert discardable whitespace with `.ss'.
1908 2003-04-27  Werner LEMBERG  <wl@gnu.org>
1910         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
1911         work with plain TeX also.
1913         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
1915 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
1917         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1918         Use a loose DTD.
1920 2003-04-24  Werner LEMBERG  <wl@gnu.org>
1922         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
1923         vbox with positive height and zero depth if in TeX mode.
1925         * NEWS: Document glyph name changes for grodvi and grolj4.
1927 2003-04-23  Werner LEMBERG  <wl@gnu.org>
1929         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
1930         * doc/pic.ms: Fixed.
1932 2003-04-21  Werner LEMBERG  <wl@gnu.org>
1934         HP-UX 10.20 has `snprintf' but it isn't declared.
1936         * configure.ac: Add declaration test for snprintf.
1937         * configure: Regenerated.
1938         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
1939         * src/include/config.hin: Regenerated.
1941 2003-04-19  Werner LEMBERG  <wl@gnu.org>
1943         Add keyword `figname' to pic, specifying the name of the picture
1944         box in TeX mode.  Based on a patch from William J Poser
1945         <wjposer@unagi.cis.upenn.edu>.
1947         * src/preproc/pic/pic.y: New token `FIGNAME'.
1948         (macro_name): New rule of type <str>.
1949         (placeless_element): Handle `FIGNAME'.
1950         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
1951         * src/preproc/pic/main.cpp (graphname): New global variable.
1952         (do_picture): Initialize `graphname'.
1953         * src/preproc/pic/pic.h: Updated.
1954         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
1955         `graphname'.
1956         Simplify TeX code.
1957         (tex_output::text): Beautify output.
1958         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
1959         `shaded' and `outlined' unconditionally.
1960         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
1961         Minor improvements.
1963         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
1964         greater is necessary.
1966 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
1968         Add option -r to soelim to avoid emission of `.lf' lines.
1969         Add option -t to produces TeX comment lines instead of `.lf' lines.
1971         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
1972         and `tex_flag'.
1973         (usage): Updated.
1974         (main): Handle `-r' and `-t'.
1975         (set_location): Handle `raw_flag' and `tex_flag'.
1976         * src/preproc/soelim/soelim.man, NEWS: Updated.
1978 2003-04-17  Werner LEMBERG  <wl@gnu.org>
1980         * tmac/hyphenex.sh: Replaced with...
1981         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
1982         nightmares.
1984         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
1985         if --quiet is used for the configure script.
1986         * configure: Regenerated.
1988 2003-04-16  Werner LEMBERG  <wl@gnu.org>
1990         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
1991         Add `const' to second argument.
1992         (html_printer::add_table_end): Add `const' to argument.
1993         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
1994         `const' to arguments.
1995         * src/devices/grohtml/html-text.h: Updated.
1997         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
1998         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
1999         argument.
2001         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2002         cast for integer constant.
2004         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2005         (writeNbytes): Add `const' to first argument.
2006         (writeString): Add `const' to argument.
2007         (char_buffer::can_see): Add `const' to third argument.
2008         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2009         `const' to argument.
2010         * src/preproc/html/pushback.h: Updated.
2012         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2013         (include_path_append): Add `const' to argument.
2014         (do_file): Updated.
2016         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2017         for `value'.
2018         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2019         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2020         for `value'.
2021         (unicode_decompose_init::unicode_decompose_init): Updated.
2022         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2023         for `value'.
2024         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2025         * src/roff/troff/input.cc (process_startup_file): Add `const' to
2026         argument.
2028         * tmac/hyphenex.sh: Make script more portable by using a here
2029         document.
2031 2003-04-15  Werner LEMBERG  <wl@gnu.org>
2033         Renamed all `*.cc' files to `*.cpp'.
2034         Updated all configuration files, makefiles, and documentation.
2036 2003-04-14  Werner LEMBERG  <wl@gnu.org>
2038         * tmac/hyphenex.sh: Slight improvements.
2040 2003-04-13  Werner LEMBERG  <wl@gnu.org>
2042         * font/devascii/R.proto, font/devcp1037/R.proto,
2043         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2044         character slots with unnamed glyphs.
2046         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2047         (an-first): New global variable.
2048         (an-header): Emit vertical space between multiple man pages.
2050 2003-04-11  Werner LEMBERG  <wl@gnu.org>
2052         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2053         values.
2055 2003-04-10  Werner LEMBERG  <wl@gnu.org>
2057         * PROBLEMS: Revised.
2059 2003-04-10  Bernd Warken  <bwarken@mayn.de>
2061         * doc/webpage.ms: Improved.
2063 2003-04-09  Werner LEMBERG  <wl@gnu.org>
2065         Add register \n[.height] which returns the value of \H.
2066         Add register \n[.slant] which returns the value of \S.
2068         * src/roff/troff/env.cc (init_env_requests): Implement.
2069         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2070         Document.
2072 2003-04-08  Werner LEMBERG  <wl@gnu.org>
2074         * tmac/html.tmac: Move some of the data into html-end.tmac.
2075         Remove most of the character translations for eqn since html fonts
2076         now cover those characters.
2077         Load www.tmac.
2078         * tmac/html-end.tmac: New file.
2079         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2080         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2081         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2083 2003-04-07  Werner LEMBERG  <wl@gnu.org>
2085         * man/groff_out.man: Document negative values of `N' if -Thtml is
2086         used.
2088 2003-04-06  Werner LEMBERG  <wl@gnu.org>
2090         * Makefile.comm (depend.temp): Check location of YTABC.
2092 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2094         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2095         binary path.
2096         (groff_bin_path): Rename to GROFF_BIN_PATH.
2097         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2098         * doc/Makefile.in (TROFFBIN): New variable for troff
2099         binary path.
2100         (GROFFBIN): New variable for groff binary path.
2101         (groff_bin_path): Rename to GROFF_BIN_PATH.
2102         (TROFF): Use TROFFBIN.
2103         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2104         * doc/Makefile.sub (GROFFBIN): New variable for groff
2105         binary path.
2106         (groff_bin_path): Rename to GROFF_BIN_PATH.
2107         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2109         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2110         with INSTALL_SCRIPT.
2111         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2112         * Makefile.dev (all): Depend on DEVSCRIPTS.
2113         (install_dev): Likewise.
2114         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2115         scripts.
2116         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2117         (DEVGENSCRIPTS): New variable to hold generated scripts.
2119 2003-04-05  Werner LEMBERG  <wl@gnu.org>
2121         * src/libs/libdriver/input.cc (IntArray::operator[],
2122         IntArray::get_data): Remove meaningless `const' in return value.
2124         * README.CVS: New file.
2126 2003-04-04  Werner LEMBERG  <wl@gnu.org>
2128         Check for stdint.h in C++, not in C.
2130         * aclocal.m4 (GROFF_STDINT_H): New function,
2131         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2132         AC_CHECK_HEADERS.
2133         * configure, src/include/config.hin: Regenerated.
2134         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2137         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
2138         with a negative value, representing the width of the unbreakable
2139         space (only for -Thtml).  grohtml then converts this back to
2140         &nbsp; and uses the value of N as its width.
2142         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2143         unbreakable_space_node::tprint): Emit `N-<width>'.
2144         * src/include/printer.h (printer::set_numbered_char): Make it
2145         virtual.
2146         Make members `font_table' and `nfonts' protected instead of private.
2147         * src/devices/grohtml/post-html.cc
2148         (html_printer::set_numbered_char): New member function.
2151         * src/libs/libgroff/maxfilename.cc:
2152         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2154         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2155         emit word marker.
2157 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
2159         * man/roff.man: Small fixes.
2161 2003-04-03  Werner LEMBERG  <wl@gnu.org>
2163         Make groff independent from locale's numeric settings.
2165         * configure.ac: Check for `setlocale'.
2166         * configure, src/include/config.hin: Regenerated.
2168         * src/include/lib.h: Handle HAVE_SETLOCALE.
2170         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2171         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
2172         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
2175         * doc/groff.texinfo: Change dir category to `Typesetting'.
2176         (Man font macros): Mention that there is no space between arguments
2177         of .BI and friends.
2179         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
2180         (*printer::change_color, *printer::change_fill_color): Add missing
2181         `const'.
2183 2003-04-02  Werner LEMBERG  <wl@gnu.org>
2185         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2186         html_table::is_gap): Compute table widths after converting border
2187         positions to avoid rounding errors.
2189 2003-04-01  Werner LEMBERG  <wl@gnu.org>
2191         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
2192         `space_emitted' properly.
2194 2003-03-31  Werner LEMBERG  <wl@gnu.org>
2196         * src/devices/grohtml/html-table.cc: Fix column width calculation.
2197         (html_table::set_linelength): Don't add 1.
2198         (html_table::add_indent): Don't subtract 1.
2200         * tmac/html.tmac: Set default page offset to zero.
2202 2003-03-30  Werner LEMBERG  <wl@gnu.org>
2204         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
2206         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2207         unbreakable_space_node::tprint): New functions.
2208         (troff_output_file): Make space_char_hmotion_mode::tprint and
2209         unbreakable_space_node::tprint to friends.
2210         * src/roff/troff/node.h: Updated.
2212         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
2213         in the HTML standard).
2215 2003-03-29  Werner LEMBERG  <wl@gnu.org>
2217         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
2218         Otherwise, the following code
2220           .di xxx
2221           .ps 10
2222           a
2223           .br
2224           .di
2225           x\*[xxx]
2227         produces `x a' instead of `xa'.  This is a temporary fix, disabling
2228         font changes in diversions for -Thtml.
2230         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
2231         `HTML-TAG'.
2232         (an-do-tag-html): Merge with ...
2233         (an-do-tag): This macro.
2234         Change code slightly to circumvent grohtml bug.
2235         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
2237         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2238         html_table::is_gap): Round `width' properly.
2240         * tmac/html.tmac: Provide some default layout parameters for
2241         grohtml.
2243         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
2244         command.
2246 2003-03-28  Werner LEMBERG  <wl@gnu.org>
2248         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
2250 2003-03-27  Werner LEMBERG  <wl@gnu.org>
2252         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
2253         defined.
2255 2003-03-20  Werner LEMBERG  <wl@gnu.org>
2257         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
2258         `.vs'.
2259         * doc/groff.texinfo: Updated.
2261 2003-03-19  Werner LEMBERG  <wl@gnu.org>
2263         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
2264         TOKEN_END_TRAP>: Reset `have_input'.
2266 2003-03-18  Werner LEMBERG  <wl@gnu.org>
2268         * src/roff/groff/groff.man: Mention groff_trace man page.
2270 2003-03-16  Werner LEMBERG  <wl@gnu.org>
2272         * Makefile.in (LIBEXT): New variable to indicate the file extension
2273         of library files.  Computed heuristically from $(OBJEXT).
2274         (MDEFINES): Add $(LIBEXT).
2275         * Makefile.lib, Makefile.comm: Use it.
2277         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
2278         overlong lines into smaller chunks.
2279         (get_binary): New function.
2280         (main): Use them.
2281         * src/utils/pfbtops/pfbtops.man: Updated.
2283 2003-03-15  Colin Watson  <cjwatson@debian.org>
2285         * src/roff/groff/groff.man: Minor syntax fix.
2287 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
2289         * src/devices/grops/ps.cc (ps_printer::media_set,
2290         ps_printer::~ps_printer): Handle zero paper width and length.
2292 2003-03-13  Werner LEMBERG  <wl@gnu.org>
2294         Add options -p and -l to grodvi.
2296         * src/devices/grodvi/dvi.cc: Include paper.h.
2297         (landscape_flag, user_paper_length, user_paper_width): New global
2298         variables.
2299         (dvi_printer::begin_page): Emit `papersize' special.
2300         Set color after initialization of `cur_h' and `cur_v'.
2301         (main): Add options `-l' and `-p'.
2302         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
2303         * src/devices/grodvi/grodvi.man, NEWS: Updated.
2305         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
2307 2003-03-12  Werner LEMBERG  <wl@gnu.org>
2309         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
2310         * man/groff_tmac.man: This man page.
2311         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
2312         deprecated.
2314         * tmac/X.tmac: Don't load pspic.tmac.
2316 2003-03-11  Werner LEMBERG  <wl@gnu.org>
2318         Make variable `pr' local to libdriver/input.cc.  Based on a patch
2319         by Bernd Warken <bwarken@mayn.de>.
2321         * src/include/driver.h (pr): Removed.
2323         * src/libs/libdriver/input.cc (pr): New global variable.
2324         (do_file): Deallocate `pr'.
2325         * src/libs/libdriver/printer.cc (pr): Removed.
2327         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
2328         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2329         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2330         (main): Don't delete `pr'.
2332 2003-03-10  Werner LEMBERG  <wl@gnu.org>
2334         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
2335         * tmac/papersize.tmac: New file.
2336         * tmac/troffrc: Include `papersize.tmac'.
2337         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
2338         * tmac/an-old.tmac: Set LT to LL by default.
2340         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
2341         doc/groff.texinfo: Updated.
2343         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
2344         bug which caused all odd iso papers to have wrong dimensions.
2346         * src/devices/grops/ps.cc (user_paper_width): New global variable.
2347         (main) <'p'>: Set `user_paper_width' also.
2348         (ps_printer::media_width, ps_printer::media_height): Use values
2349         given with option `-p'.
2351 2003-03-09  Werner LEMBERG  <wl@gnu.org>
2353         * src/include/nonposix.h: Provide default for SET_BINARY.
2355         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
2356         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
2357         unconditionally.
2359         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
2360         (main): Treat \r\n as \n.
2362 2003-03-08  Werner LEMBERG  <wl@gnu.org>
2364         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
2365         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
2367 2003-03-07  Werner LEMBERG  <wl@gnu.org>
2369         Added support to access more than 256 glyphs in Type 1 fonts.
2371         * src/devices/grops/ps.cc (subencoding): New structure.
2372         (style): Add `sub' field.
2373         Updated all users.
2374         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
2375         Add `set_subencoding', `get_subfont' and `encode_subfont' member
2376         functions.
2377         Updated all users.
2378         (ps_printer::set_char): Use `set_subencoding'.
2379         (make_subencoding_name): New function.
2380         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
2381         (ps_printer::~ps_printer): Emit subencoding definitions.
2383         * src/devices/grops/psrm.cc (valid_input_table): New array to
2384         properly support EBCDIC.
2385         (white_space): Add `\f'.
2386         (ps_get_line): Change first argument to be of type `string &'.
2387         Updated all callers.
2388         This allows to get lines of arbitrary length.
2389         Use `valid_input_table'.
2390         Remove warning about non-conforming PS line length.  This seems
2391         not to be of great importance -- for example, dvips don't emit
2392         a warning either.
2393         (PS_LINE_MAX): Removed.
2394         (matches_comment): Change first argument to be of type `string &'.
2396         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
2398         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2399         %AGL_to_unicode, %default_ligatures): New hash tables.
2400         Read all map entries.
2401         Add unencoded characters.
2402         Check for default ligatures if there are no `L' entries.
2403         Print all kern entries.
2404         Print all characters in charset.
2405         * src/utils/afmtodit/afmtodit.man: Updated.
2407         * font/devps/*: Regerated all fonts.
2409         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
2410         of characters, just use `.trin'.  Otherwise the mapping depends
2411         on the font encoding.
2412         * tmac/ps.tmac: Add `fi' and `fl'.
2413         Improve `Fi' and `Fl'.
2414         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
2415         * tmac/Xps.tmac: Fix `em'.
2417         * NEWS: Updated.
2419 2003-03-04  Werner LEMBERG  <wl@gnu.org>
2421         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
2422         `have_input'.
2424 2003-03-03  Werner LEMBERG  <wl@gnu.org>
2426         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
2428         * font/devps/generate/textmap: Remove entry `similarequal'.
2429         * font/devps/symbolmap: Updated.
2431 2003-03-02  Werner LEMBERG  <wl@gnu.org>
2433         * src/libs/libgroff/font.cc (font::load): Fix error message for
2434         bad character type.
2436         * src/devices/grops/grops.man: Improve documentation of the -b
2437         flag.
2439         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
2440         `ascii' and `cp1047'.
2442 2003-03-01  Werner LEMBERG  <wl@gnu.org>
2444         Document composite glyphs and the `composite' request.
2446         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
2448 2003-02-28  Werner LEMBERG  <wl@gnu.org>
2450         * font/devdvi/generate/ec.map: Add some more Unicode entities.
2451         * font/devdvi/*EC: Updated.
2453         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
2454         * tmac/latin1 (latin1-tr): Undo any previous mapping.
2455         * tmac/troffrc: Load `composite.tmac'.
2456         * tmac/Makefile.sub (NORMALFILES): Updated.
2458         * doc/groff.texinfo (Input Encodings): New section.
2459         * NEWS: Updated.
2461 2003-02-27  Werner LEMBERG  <wl@gnu.org>
2463         * doc/texinfo.tex: New version 2003-02-11.06.
2465         * tmac/doc-common (Dt): Don't emit warning for unknown section.
2466         * tmac/groff_mdoc.man: Fix description of `Dt'.
2468 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
2470         * font/devps/prologue.ps: Fix for included Postscript that does
2471         a setpagedevice -- which is now safely ignored.
2473         * NEWS: Updated.
2475         * src/devices/grops/ps.cc: Now sets the page size in the generated
2476         document.  This is done in two ways: Via a %%-comment for gv and
2477         the like, and via a PageSize and setpagedevice for programs that
2478         understands Postscript proper, like ps2pdf.
2480         * src/devices/grops/ps.h: New broken-flag to avoid page size
2481         definition, if required.
2483         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
2485         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
2486         Not really necessary due to the fix in prologue.ps, but cleaner:
2487         Such information does not belong in an .eps file.
2489         * doc/Makefile.sub: See doc/Makefile.in.
2491 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
2493         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
2494         instead of P1 since the latter is broken in some versions of netpbm.
2495         * configure: Updated.
2497 2003-02-26  Larry Kollar  <kollar@alltel.net>
2499         Make man pages more customizable.
2501         * tmac/an-old.tmac (FT): New register holding footer distance from
2502         bottom.
2503         (HF): New string holding the default heading font.
2504         (TH): Handle registers `IN' and `SN' set on the command line.
2505         Use `FT'.
2506         (PT, BT): New strings to customize header and footer lines.
2507         (an-header, an-footer): Use them.
2508         (SH, SS): Use `HF'.
2509         * tmac/groff_man.man: Document changes.
2511         * doc/groff.texinfo: Document man changes.
2512         Document Ultrix extensions of man.
2514 2003-02-26  Werner LEMBERG  <wl@gnu.org>
2516         * src/roff/troff/input.cc (do_width, do_if_request): Reset
2517         `have_input' after changing back to old environment.
2519         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
2520         function up to be defined before first call.  This is necessary to
2521         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
2523         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
2524         the default font directory also.  Based on a patch from James
2525         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
2526         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
2527         * src/utils/afmtodit/afmtodit.man: Document it.
2529         * NEWS: Updated.
2531         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
2533 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
2535         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
2536         (GROFF_PNMTOPS_NOSETPAGE): New macro.
2537         * configure.ac: Use it.
2538         * configure: Regenerated.
2539         * Makefile.in: Updated.
2541         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
2542         (CLEANADD): Add www.tmac-sed.
2543         (pnmtops_nosetpage): Define default.
2544         (install_data): Handle www.tmac-sed and substitute
2545         @PNMTOPS_NOSETPAGE@.
2546         (stamp-sed): Add www.tmac.
2547         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
2548         It now breaks URLs at suitable places.
2549         (www:substring_ok): New register set by...
2550         (www:@test_substring): New macro.
2551         (www:error): New alias to www-error.
2552         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
2553         New macros.
2554         (URL): Use www:url_breaks.
2555         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
2556         (CDS, CDE): New macros.
2558 2003-02-25  Werner LEMBERG  <wl@gnu.org>
2560         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
2561         buffer overflow.
2563 2003-02-24  Werner LEMBERG  <wl@gnu.org>
2565         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
2566         can be negative also.
2568         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
2569         `int16'.
2570         (read_char_table): Avoid negative ascenders.
2571         (output_charset): Add cast.
2572         * font/devlj4/*: Regenerated.
2574         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
2575         possible.
2577         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
2578         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
2579         of `<>'.
2580         * font/devdvi/*: Regenerated.
2582         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
2583         normal width, while the previously used characters (U+2329 and
2584         U+232A) are classified as wide due to canonical equivalence with the
2585         CJK punctuation characters U+3008 and U+3009.
2587         * font/devutf8/R.proto: Updated.
2588         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
2590         * man/groff_char.man: Simplify handling of table traps by
2591         introducing `start block' and `end block' macros.
2592         (Ns, Ne, 2s, 2e, Ds, De): New macros.
2593         (DL): Make it work with Unix troff also.
2594         Fix code values of `la' and `ra'.
2596         * tmac/dvi.tmac: Define `<>' for CW and CWI.
2598 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
2600         * src/devices/grohtml/post-html.cc (element_list::~element_list):
2601         New destructor, fixing a major memory leak.
2603 2003-02-22  Werner LEMBERG  <wl@gnu.org>
2605         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
2606         to be in conformance with Unicode 3.0 and newer.
2608         * font/devlj4/generate/text.map: Add `Eu'.
2609         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
2610         * font/devlj4/S: Regenerated.
2612         * man/groff_char.man: Completely rewritten.
2614         * doc/groff.texinfo: Fix description of request and macro arguments.
2616 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
2618         Valgrind fixes.
2620         * src/devices/grohtml/html-table.cc (html_table::~html_table):
2621         Deallocate `columns' list.
2622         * src/devices/grohtml/post-html.cc (char_block::~char_block):
2623         New destructor.
2624         (text_glob::text_glob_html, text_glob::text_glob_special,
2625         text_glob::text_glob_line, text_glob::text_glob_auto_image,
2626         text_glob::text_glob_tag): Avoid memory leaks.
2627         (text_glob::remember_table): Free memory before reassigning.
2629 2003-02-19  Werner LEMBERG  <wl@gnu.org>
2631         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
2632         alias `hbar'), the Planck constant over two pi.
2634         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
2635         `+e' for position 34.
2636         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
2637         `u2662' and `u2661'.
2638         * font/devdvi/{MI,S}: Regenerated.
2639         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
2640         * font/devlbp/*: Add `hbar' alias.
2641         * font/devlj4/generate/special.map: Ditto.
2642         * font/devlj4/S: Regenerated.
2643         * font/devps/generate/symbolchars: Add `+e'.
2644         * font/devps/generate/textmap: Fix PS name for `-h'.
2645         Add `hbar' alias.
2646         * font/devps/symbolmap: Regenerated.
2648         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
2650         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
2651         `-h', `hbar'.
2652         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
2653         `-h'.
2655         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
2656         `hbar'.
2657         * tmac/tty-char.tmac: Add `+e'.
2659 2003-02-17  Werner LEMBERG  <wl@gnu.org>
2661         Another round trying to really fix problems with `have_input'.
2663         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
2664         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
2666         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
2667         handling if both foreground and background colors are default.
2669         * doc/groff.texinfo (Debugging): Document .lf differences to
2670         AT&T troff.
2672 2003-02-16  Werner LEMBERG  <wl@gnu.org>
2674         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
2675         null-bytes in created string.
2677         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
2678         alias_macro, lookup_request): Improve warning messages.
2680         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
2681         not `strdup'.
2682         Free `last_image_filename'.
2684         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
2685         `buffer'.
2686         (imageList::createPage, imageList::createImage): Use `free', not
2687         `a_delete'.
2688         (imageItem::~imageItem): Free `imageName'.
2689         (addRegDef): Use `strsave', not `strdup'.
2690         (get_resolution): Free `pathp'.
2692 2003-02-15  Werner LEMBERG  <wl@gnu.org>
2694         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
2695         to `dummy'.
2697 2003-02-14  Werner LEMBERG  <wl@gnu.org>
2699         Add memory management for colors to deallocate unnamed colors
2700         properly.
2702         * src/include/color.h (color): New members `free_list' and `next'.
2703         New member functions `new' and `delete'.
2704         Add destructor.
2705         * src/libs/libgroff/color.cc: Implement it.
2707         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
2708         for array size of new operator.
2710         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
2711         redundant comparison.
2713         * src/roff/troff/input.cc (word_space_node::reread,
2714         hmotion_node::reread): Avoid warning about unused parameter.
2715         (reset_output_registers): Remove redundant parameter.
2716         (define_color): Undo change 2003-02-12.
2718         * src/roff/troff/reg.h: Updated.
2720         * src/roff/troff/node.cc (troff_output_file::really_print_line,
2721         output_file::put_filename, real_output_file::really_put_filename,
2722         ascii_output_file::really_print_line,
2723         break_char_node::get_hyphen_list): Avoid warning about unused
2724         parameter.
2725         (suppress_node::tprint): Updated.
2727         * configure.ac: Check declaration for rand() and srand().
2728         * configure: Regenerated.
2730         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
2731         conditionally.
2732         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
2733         and srand().
2735         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
2736         to avoid compiler warnings.
2738         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
2739         unused.
2741         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
2742         is unused.
2743         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
2744         (unused) parameter.
2745         Updated all callers.
2747         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
2748         is unused.
2749         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
2750         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
2752         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
2753         Parameter is unused.
2754         (html_printer::add_table_end): Define parameter conditionally.
2755         * src/devices/grohtml/output.cc (simple_output::special): Parameter
2756         is unused.
2758         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
2759         (lbp_printer::set_char): Last parameter is unused.
2761         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
2763 2003-02-13  Werner LEMBERG  <wl@gnu.org>
2765         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
2766         Make \D'f ...' move horizontally again for backwards compatibility.
2767         Replace it with \D'Fg ...' where appropriate to avoid dependency
2768         on horizontal resolution.
2770         * src/roff/troff/input.cc (do_get_long_name): New function.
2771         (get_long_name): Call it.
2773         (read_draw_node): Handle `\D'Fx ...' by calling ...
2774         (read_color_draw_node): New function.
2776         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
2777         `end'.
2778         Pass it to `do_get_long_name' which is used instead of
2779         `get_long_name'.
2781         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
2782         unnecessary value guard.
2783         (parse_D_command) <'f'>: Add horizontal shift.
2785         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
2786         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2787         (FILL_MAX): Removed.
2789         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2790         Updated.
2792 2003-02-12  Werner LEMBERG  <wl@gnu.org>
2794         * src/roff/troff/input.cc (do_name_test, do_expr_test,
2795         do_zero_width): Push `\n' if closing delimiter is missing.
2797         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
2798         <'F'>: Make \F non-transparent at the beginning of line.
2799         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
2800         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
2801         `have_input'.
2803         (define_color): Free color in case of reassignment.
2805         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
2806         @DefescListEnd): Use @Var, not @var.
2807         Fix all calls.
2809         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
2811         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
2812         `shaded' and `outlined' arrays.
2813         (object_spec::object_spec): Initialize `shaded' and `outlined'.
2814         (graphic_object::set_fill_color, graphic_object::set_outline_color):
2815         Use strsave.
2816         (closed_object::set_fill_color): Ditto.
2817         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
2818         instead of strdup.
2819         (troff_output::reset_color): Use a_delete instead of free.
2820         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
2822 2003-02-11  Werner LEMBERG  <wl@gnu.org>
2824         * doc/groff.texinfo: Improve documentation of `ad'.
2825         Document that \D'f...' is dependent on the horizontal resolution.
2826         * man/groff_diff.man: Improve documentation of \D'f...'.
2828         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
2829         compensating \h'...' for \D'f ...' since the latter no longer moves
2830         current position.
2831         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2833 2003-02-10  Werner LEMBERG  <wl@gnu.org>
2835         Improve error messages for `x F' (and `F') commands.
2837         * src/include/error.h: Add declaration for
2838         `current_source_filename'.
2839         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
2840         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
2841         parameter for source file string.
2842         Updated all callers.
2844         * src/libs/libdriver/input.cc: Add `current_source_filename'.
2845         (remember_source_filename): New function.
2846         (parse_x_command <'F'>, do_file <'F'>): Use it.
2848 2003-02-09  Werner LEMBERG  <wl@gnu.org>
2850         Make grotty not emit warnings about unknown colors more than
2851         necessary.
2853         * src/devices/grotty/tty.cc: Include `ptable.h'.
2854         (TTY_MAX_COLORS): Removed.
2855         (DEFAULT_COLOR_IDX): Defined to -1.
2856         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
2857         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
2858         Change `tty_colors' to be a ptable.
2859         First arg of `put_color' is now `char'.
2860         New functions `make_rgb_string' and `tty_color'.
2861         (tty_printer::tty_printer): Use `tty_color'.
2862         (tty_printer::color_to_idx): Return value is now `char'.
2863         Use `tty_color'.
2865         * src/include/color.h (color): Add `print_color' member function.
2866         * src/libs/libgroff/color.cc (color::print_color): Implement it.
2868 2003-02-08  Werner LEMBERG  <wl@gnu.org>
2870         Valgrind fixes.
2872         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
2873         encoding file.
2875         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
2876         assume that value has been allocated with `new[]', thus use
2877         `a_delete' for deallocation.
2879         * src/libs/libdriver/input.cc (get_integer_arg,
2880         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
2881         where appropriate.
2883         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
2884         * src/libs/libgroff/nametoindex.cc
2885         (character_indexer::named_char_index): Use `new <type>[1]'.
2887         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
2888         <type>[1]'.
2889         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
2890         (split_text): Use `a_delete'.
2892         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
2893         <type>[1]'.
2895         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
2896         harmless memory leak.
2897         (hyphen_trie::read_patterns_file): Initialize `buf'.
2898         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
2899         Initialize `current_fill_color'and `current_glyph_color'.
2900         * src/roff/troff/glyphuni.cc
2901         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
2902         * src/roff/troff/uniuni.cc
2903         (unicode_decompose_init::unicode_decompose_init): Ditto.
2904         * src/roff/troff/uniglyph.cc
2905         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
2907 2003-01-26  Werner LEMBERG  <wl@gnu.org>
2909         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
2910         `access' before calling `unlink'.
2911         (do_file): Handle __EMX__.
2913         * src/include/nonposix.h: Handle __EMX__.
2915         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
2916         (fontpath,tmacpath): Use it.
2917         (MDEFINES): Add it.
2918         Sorted alphabetically.
2920         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
2921         @SEP@.
2922         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
2923         @SEP@.
2925 2003-01-27  Werner LEMBERG  <wl@gnu.org>
2927         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
2928         New files, copied from gnulib.
2929         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
2930         * configure.ac: Updated.
2931         * configure: Regenerated.
2933         * src/include/config.hin: Regenerated.
2934         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
2935         Don't define `strcasecmp' as `strcmp'.
2936         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
2937         Dont define `strncasecmp' as `strncmp'.
2939         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
2940         Removed.
2942 2003-01-26  Werner LEMBERG  <wl@gnu.org>
2944         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
2945         s/unline/unlink/.
2947 2003-01-25  Werner LEMBERG  <wl@gnu.org>
2949         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
2951 2003-01-24  Werner LEMBERG  <wl@gnu.org>
2953         Add US-english hyphenation exceptions (converted from Barbara
2954         Beeton's hyphenation exception log reports which appear irregularly
2955         in TUGBoat).
2957         * tmac/hyphen.us: Updated to latest version.
2958         * tmac/README: Updated.
2959         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
2960         * tmac/troffrc: Load `hyphenex.us'.
2961         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
2962         * doc/groff.texinfo: Updated.
2964 2003-01-23  Werner LEMBERG  <wl@gnu.org>
2966         Improve hyphenation slightly.  This is a first step in redesigning
2967         the hyphenation algorithm to make it more flexible (e.g. allowing
2968         kerns and ligatures between the hyphenation character and the
2969         following character -- while not used normally in English, other
2970         languages like German would benefit).
2972         * src/roff/troff/env.cc (environment::hyphenate_line): Use
2973         assertion instead of if-clause.
2974         Let `get_hyphen_list' return the number of involved characters in
2975         the hyphenation pattern instead of computing it directly (which
2976         often yields too small values).
2977         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
2978         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
2979         parameter.
2981 2003-01-22  Werner LEMBERG  <wl@gnu.org>
2983         Fixing a bug which caused groff to hang if the hyphenation exception
2984         dictionary tried to grow.
2986         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
2987         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
2988         pointer to dictionary.
2990 2003-01-20  Werner LEMBERG  <wl@gnu.org>
2992         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
2993         negative left italic correction.
2994         * src/utils/afmtodit/afmtodit.man: Document it.
2996         * font/devps/generate/Makefile (RFLAG): Add `-m'.
2997         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
2998         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3000         * NEWS: Updated.
3002 2003-01-16  Werner LEMBERG  <wl@gnu.org>
3004         * NEWS: Updated.
3006 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
3008         * src/preproc/refer/refer.man: Mention REFER environment variable.
3010 2003-01-05  Werner LEMBERG  <wl@gnu.org>
3012         Similar to \[is], the square root glyph (\[sr]) and the square root
3013         extension glyph (\[radicalex]) are now text symbols.  The new
3014         mathematical versions are called \[sqrt] and \[sqrtex],
3015         respectively.
3017         * font/devX*/S: Regenerated.
3018         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3019         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3020         * font/devdvi/EX, font/devdvi/S: Regenerated.
3021         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3022         * font/devlj4/generate/special.map: Add `sqrt'.
3023         * font/devlj4/S: Regenerated.
3024         * font/devps/generate/textmap: Add `sqrt'.
3025         * font/devps/S, font/devps/symbolmap: Regenerated.
3027         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3028         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3029         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3030         overlap horizontally.
3032         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3033         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3034         Fix `radicalex'.
3036         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3037         and `sqrtex' are overlapping glyphs.
3039 2003-01-04  Werner LEMBERG  <wl@gnu.org>
3041         * font/devdvi/generate/texsy.map: Add `is'.
3042         * font/devps/symbolmap: Regenerated.
3043         * font/devdvi/*TC, MI, S: Regenerated.
3045         * tmac/dvi.tmac: Remove `is'.
3047 2003-01-03  Werner LEMBERG  <wl@gnu.org>
3049         `is' is now a text symbol (only relevant for dvi).  The math variant
3050         can be accessed with `integral'.
3052         * font/devX*/S: Regenerated.
3053         * font/devdvi/generate/texex.map: Remove `is'.
3054         * font/devdvi/EX: Updated.
3055         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3056         * font/devlj4/generate/special.map: Ditto.
3057         * font/devlj4/S: Regenerated.
3058         * font/devps/generate/textmap: Add `integral'.
3059         * font/devps/S: Regenerated.
3061         * tmac/dvi.tmac: Define `is'.
3063         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3065         * src/preproc/tbl/main.cc (process_format): Fix error message.
3067 2003-01-02  Werner LEMBERG  <wl@gnu.org>
3069         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3070         * font/devps/textmap: Fix entries for `ne' and `nc'.
3071         * font/devps/symbolmap: Regenerated.
3073         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3074         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3075         `38', `58', `78', `-+', `|=', `nc', `ne'.
3077         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3078         Use `schar' for `aq'.
3079         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3080         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3081         * tmac/tty.tmac: Add `ne'.
3083         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3084         for fallback glyphs.
3086 2002-12-29  Werner LEMBERG  <wl@gnu.org>
3088         Add glyph `|='.
3090         * font/devX*/*: Regenerated.
3091         * font/devdvi/generate/ec.map: Remove `eq'.
3092         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3093         Assign `|=' to position 39.
3094         * font/devdvi/*EC, S: Regenerated.
3095         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3096         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3097         Assign `|=' to position 549.
3098         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3099         `equalmath'.
3100         Add `uni2243' for `|='.
3102         * tmac/ec.tmac: Add `eq'.
3103         * tmac/dvi.tmac: Add `=~'.
3104         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3105         `|='.
3107 2002-12-21  Werner LEMBERG  <wl@gnu.org>
3109         * font/devdvi/generate/tc.map: Remove `**'.
3110         * font/devdvi/*TC: Regenerated.
3111         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3112         `78', `<<', `>>'.
3113         * font/devutf8/NOTES: Updated.
3115         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3116         Don't give default parameter to `set_macro'.
3117         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3118         instead of `set_macro'.
3119         (charinfo::setx_macro): Implement it.
3120         (charinfo::set_macro): Don't change `mode'.
3122         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3123         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3124         * tmac/dvi.tmac: Define `!=' with `.schar'.
3126 2002-12-20  Werner LEMBERG  <wl@gnu.org>
3128         * font/devX*/S: Regenerated.
3129         * font/devdvi/generate/ec.map: Remove `pl'.
3130         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3131         * font/devdvi/*{TC,EC}: Regenerated.
3132         * font/devhtml/R.proto: Add `-+'.
3133         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3134         * font/devlbp/*: Remove `or'.
3135         * font/devlj4/generate/special.map: Remove `or'.
3136         * font/devlj4/S: Regenerated.
3137         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3138         `seveneighths', `threeeighths'.
3139         Remove `plusmath'.
3140         Replace `minusplus' with `uni2213'.
3141         * font/devps/symbolmap: Regenerated.
3142         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3143         Add `-+'.
3145         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3146         function.
3147         * src/roff/troff/node.cc (troff_output_file::put_char_width):
3148         Call glyph_color and fill_color even if tcommand_flag isn't set.
3149         (make_node, node::add_char): Check not ci->is_fallback but
3150         ci->is_normal.
3152         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3153         * tmac/ec.tmac: Add .rchar entry for `f/'.
3154         Don't remove `12', `14', `34'.
3155         Define `pl' to be always roman.
3156         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3157         Define `18', `38', `58', `78'.
3158         * tmac/tty.tmac: Add `-+'.
3159         * tmac/dvi.tmac: Define `f/'.
3160         (dvi-frac): Use `f/'.
3161         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3162         Define `18', `38', `58', `78'.
3164 2002-12-15  Colin Watson  <cjwatson@debian.org>
3166         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
3168 2002-12-10  Werner LEMBERG  <wl@gnu.org>
3170         Add glyph `tno', a textual variant of `no'.
3172         * font/devX*/*: Regenerated.
3173         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
3174         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
3175         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
3176         * font/devdvi/*: Regenerated.
3177         * font/devlbp/*: Add `tno'.
3178         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
3179         * font/devlj4/*: Regenerated.
3180         * font/devps/generate/textmap: Replace `no' with `tno'.
3181         * font/devps/generate/symbolchars: Add `no'.
3182         * font/devps/*: Regenerated.
3184         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
3186         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
3187         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
3189         * NEWS: Updated.
3191         * tmac/dvi.tmac: Replace most `\\' with `\E'.
3192         Add definition for `sd'.
3193         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
3195         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
3197 2002-12-08  Werner LEMBERG  <wl@gnu.org>
3199         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
3200         mode to avoid rounding errors.
3201         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
3203         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
3204         src/roff/troff/troff.man: Improve documentation of -T.
3206 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
3208         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
3209         (run_pipeline) [_WIN32]: Provide working function without `fork'.
3211 2002-12-06  Werner LEMBERG  <wl@gnu.org>
3213         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
3214         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
3215         Scaling Euro.sansserif glyphs down to have the same height as
3216         digits.
3217         Removed unnecessary points; added some extrema.
3219         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3220         Regenerated.
3222 2002-12-04  Werner LEMBERG  <wl@gnu.org>
3224         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
3225         and `Euro.symbol.bold.slanted'.
3226         Improve some glyph offsets and widths.
3227         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3228         Regenerated.
3229         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
3230         typo.
3231         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
3232         direcory.
3234         * tmac/europs.tmac: Updated to new glyph indices.
3235         Use Euro.symbol for font familiy `A'.
3237         * doc/groff.texinfo: Minor improvements.
3239 2002-12-02  Werner LEMBERG  <wl@gnu.org>
3241         * font/devdvi/generate.tc.map: s/%O/%0/.
3242         * font/devdvi/*TC: Regenerated.
3244         * src/roff/troff/div.cc (init_div_requests): Sorted.
3246         * tmac/dvi.tmac: Remove `Ye'.
3247         * tmac/ec.tmac: Remove `Ye'.
3248         Add .rchar entry for `de'.
3250         * man/groff.man, man/groff_diff.man: Document register `.pe'.
3251         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
3252         * NEWS: Updated.
3254 2002-11-30  Werner LEMBERG  <wl@gnu.org>
3256         Add PS font for various Euro glyphs.
3258         * font/devps/generate/freeeuro.sfd: New master font file for
3259         pfaedit.
3260         * font/devps/generate/sfdtopfa.pe: New conversion script for
3261         pfaedit.
3262         * font/devps/generate/Makefile (FONTS): Add `EURO'.
3263         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
3264         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
3265         `freeeuro.sfd'.
3266         * font/devps/EURO: Generated from `freeeuro.afm'.
3267         * font/devps/download: Add `freeuro.pfa'.
3268         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
3269         `freeeuro.pfa'.
3271         * tmac/europs.tmac: New file.
3272         * tmac/ps.tmac: Include `europs.tmac'.
3273         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
3275 2002-11-29  Werner LEMBERG  <wl@gnu.org>
3277         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
3278         * font/devdvi/S: Regenerated.
3279         * font/devhtml/R.proto: Fix `CR' and `ci'.
3280         Add `OK'.
3281         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
3282         Remove `bs'.
3283         * font/devps/symbolmap: Regenerated.
3284         * font/devutf8/R.proto: Fix `CR' and `ci'.
3285         Add `OK'.
3286         * font/devutf8/NOTES: Updated.
3288         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
3289         `ci'.
3290         Add `OK'.
3291         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3293         * tmac/dvi.tmac: Add `lh' and `rh'.
3294         * tmac/Xps.tmac: Fix `lh' and `rh'.
3295         * tmac/X.tmac: Add `OK'.
3296         * tmac/lj4.tmac: Ditto.
3298 2002-11-24  Werner LEMBERG  <wl@gnu.org>
3300         * font/devX*/S: Regenerated.
3301         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
3302         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
3303         * font/devdvi/generate/texsy.map: Remove `or' glyph.
3304         * font/devdvi/S: Regenerated.
3305         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
3306         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
3307         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
3308         `bracketleftbt', `bracketrighttp', `bracketrightex',
3309         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
3310         `braceex', `braceleftex', `bracerightex', `bracerighttp',
3311         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
3312         `rb', and `bv'.
3313         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
3314         * font/devutf8/NOTES: Updated.
3315         * font/devlj4/generate/special.map: Add glyph `braceex'.
3316         * font/devlj4/S: Regenerated.
3318         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
3320 2002-11-14  Werner LEMBERG  <wl@gnu.org>
3322         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
3323         and `vA'.
3324         Fix code for `an'.
3325         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3327         * doc/texinfo.tex: New version from texinfo 4.3.
3328         * doc/groff.texinfo: Updated for texinfo 4.3.
3329         Use @tie{} where appropriate.
3330         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
3331         * font/devdvi/generate/tc.map: Remove `rn'.
3332         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
3333         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
3334         Fix code for `an'.
3335         * font/devX100/*, font/devX100-12/*, font/devX75/*,
3336         font/devX75-12/*: Regenerated.
3338         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
3339         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
3340         Improve definition of `an'.
3341         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
3342         `ru'.
3343         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
3344         * tmac/X.tmac: Add definition for `or'.
3345         * tmac/Xps.tmac: Undo change 2002-11-05.
3346         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
3348 2002-11-11  Werner LEMBERG  <wl@gnu.org>
3350         * src/roff/troff/node.cc (troff_output_file::put_char): Always
3351         call flush_tbuf.
3353 2002-11-10  Werner LEMBERG  <wl@gnu.org>
3355         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
3356         defines a glyph which is searched after the check for fonts declared
3357         with `.special' (and before the check for all mounted special
3358         fonts).  `fschar' defines a glyph for a particular font which is
3359         searched after the check for fonts declared with `.fspecial' (and
3360         before the check for fonts declared with `.special').  `rfschar'
3361         removes glyphs defined with `fschar'.
3363         * src/roff/troff/token.h (char_mode): New enum.
3364         Declare do_define_character.
3365         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
3366         `mode'.
3367         (charinfo::is_fallback): Updated.
3368         (charinfo::is_special): New method.
3369         * src/roff/troff/input.cc (do_define_character): Add and use
3370         optional second parameter used as a prefix for font-specific glyph
3371         names.
3372         (define_character, define_fallback_character): Updated.
3373         (define_special_character): New function.
3374         (init_input_requests): Add `schar'.
3375         (charinfo::charinfo, charinfo::set_macro): Updated.
3376         * src/roff/troff/node.cc: Include `stringclass.h'.
3377         (make_glyph_node): Handle special glyphs defined with `.schar' and
3378         `.fschar'.
3379         (define_font_special_character, remove_font_special_character): New
3380         functions.
3381         (init_node_requests): Sorted.
3382         Add `fschar' and `rfschar'.
3383         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3384         Document new requests.
3386         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
3387         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
3389 2002-11-08  Werner LEMBERG  <wl@gnu.org>
3391         Added new font `SC' (cmtex10) to devdvi.
3393         * devdvi/generate/Makefile (FONTS): Add `SC'.
3394         (SC): New rule.
3395         * devdvi/generate/textex.map: New map file for cmtex.
3396         * devdvi/SC: New.
3397         * devdvi/Makefile.sub (DEVFILES): Updated.
3398         * tmac/dvi.tmac: Add fspecial entries for SC.
3399         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
3400         found before `S' since the font position of `SC' is lower due to the
3401         gaps in DESC's `font' line.
3402         * tmac/ec.tmac: Add a `special' call.
3403         * NEWS: Updated.
3405         * font/devhtml/R.proto: Remove double entry for `ti'.
3406         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
3407         * tmac/tty-char.tmac: Remove entry for `bq'.
3408         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
3409         * tmac/ec.tmac: Don't remove `aq' glyph.
3410         * tmac/X.tmac: Fix entry for `em'.
3411         Add entries for `fo' and `fc'.
3412         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
3414         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
3415         documentation of `special' and `fspecial' requests.
3417 2002-11-05  Werner LEMBERG  <wl@gnu.org>
3419         * font/devascii/R.proto, font/devcp1047/R.proto,
3420         font/devlatin1/R.proto: Remove entry for `.i'.
3421         * font/devdvi/generate/textt.map: Add entry for `ad'.
3422         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
3423         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
3424         We need this for getting kerning values to compose `/l' and `/L'.
3425         * font/devdvi: Regenerated font definition files for CM fonts.
3426         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
3427         * font/devutf8/R.proto: Ditto.
3428         Remove double entry for `ti'.
3430         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
3431         for (groff) ligatures, `la', and `ra'.
3432         Add "'C", "'c", `IJ', and `ij'.
3433         Remove double entry for `ti'.
3434         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
3435         double entries.
3436         Add "'C", "'c", `IJ', and `ij'.
3437         Fix entries for (groff) ligatures, `la', and `ra'.
3439         * tmac/ps.tmac (ps-achar): New macro.
3440         Define "'c" and "'C".
3441         * tmac/tty.tmac: Add entry for `.i'.
3442         * tmac/X.tmac (X-achar): New macro.
3443         Define "'c", "'C", and `:Y'.
3444         Add entries for `IJ' and `ij'.
3445         * tmac/Xps.tmac (Xps-achar): New macro.
3446         Define "'c" and "'C".
3447         Add entries for `IJ' and `ij'.
3448         * tmac/lbp.tmac (lbp-achar): New macro.
3449         Add fallback characters for all groff ligatures and many other
3450         glyphs.
3451         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
3452         Add entries for `/l' and `/L'.
3453         Define "'c" and "'C".
3454         Add entries for `IJ' and `ij'.
3456 2002-11-02  Larry Kollar  <kollar@alltel.net>
3458         * PROBLEMS: Document how to solve Mac OS X compilation problems.
3460 2002-11-02  Werner LEMBERG  <wl@gnu.org>
3462         Adding support for composite glyphs: \[xxx yyy ...] and the
3463         `composite' request.
3465         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
3466         to Unicode-based glyph names.
3467         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
3468         glyph names to groff glyph names.
3469         * src/roff/troff/uniuni.cc: New file for canonically decomposing
3470         Unicode-based glyph names.
3471         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
3472         for handling Unicode glyph names.
3473         * src/roff/troff/input.cc: Include unicode.h.
3474         (composite_glyph_name): New function.
3475         (token::next) <'['>: Handle Unicode glyph names and composite
3476         glyphs.
3477         (composite_dictionary): New dictionary for the `composite' request.
3478         (composite_request): Implement `composite' request.
3479         (init_input_requests): Add `composite'.
3480         Alphabetically sorted.
3481         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
3482         commented out).
3483         (init_env_requests): Alphabetically sorted.
3484         Removed `tas' and `tar' (already commented out).
3485         * src/roff/troff/Makefile.sub: Updated.
3487 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
3489         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
3490         of options.
3492 2002-10-29  Werner LEMBERG  <wl@gnu.org>
3494         Fix computation of .trunc register.  Additionally, its value (and
3495         the value of the .ne register) is now always set before entering the
3496         trap.
3498         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
3499         `needed_space' before calling `space'.
3500         (top_level_diversion::space): Remove special code for 'sp before the
3501         first page.
3502         Call `begin_page' with the discarded space as a parameter.
3503         (top_level_diversion::begin_page): Add optional parameter to set
3504         `truncated_space'.
3505         * src/roff/troff/div.h: Updated.
3507         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
3508         \n[.ne].
3510         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
3511         (LP): Remove superfluous call to `br'.
3512         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
3513         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3515 2002-10-26  Werner LEMBERG  <wl@gnu.org>
3517         * tmac/doc-ditroff: Remove useless switch/variable -rC.
3518         (doc-setup-header): Don't set page register `%'.
3519         * tmac/doc-nroff: Remove variable `C'.
3520         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
3521         (doc-setup-header): Don't set page register `%'.
3522         Don't call `bp'.
3523         * tmac/doc-common (doc-header): Call `ns'.
3524         (doc-paragraph): Protect .sp with .br so that it survives traps
3525         possibly set by the user.
3526         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3528         * tmac/doc*: Replace ' with . for consistency if no effect.
3530 2002-10-26  Werner LEMBERG  <wl@gnu.org>
3532         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
3533         so that it survives traps possibly set by the user.
3535         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
3536         (troff_output_file::set_font): Call flush_tbuf if necessary.
3537         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
3538         flush_tbuf and do_motion only if necessary.
3539         (troff_output_file::start_special,
3540         troff_output_file::put_char_width, troff_output_file::put_char,
3541         troff_output_file::draw): Updated.
3542         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3543         vmotion_node::tprint): Undo change 2002-10-23.
3545 2002-10-25  Werner LEMBERG  <wl@gnu.org>
3547         * tmac/www.tmac (DC): Fix case of overlapping images.
3549 2002-10-23  Werner LEMBERG  <wl@gnu.org>
3551         * src/roff/troff/node.cc (troff_output_file::fill_color,
3552         troff_output_file::glyph_color): Set current color before testing
3553         color_flag.
3554         (troff_output_file::put_char_width, troff_output_file::put_char,
3555         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
3556         before glyph_color.
3557         (troff_output_file::file_color, troff_output_file::glyph_color):
3558         Call do_motion.
3559         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3560         vmotion_node::tprint): Move first, then call fill_color.
3562 2002-10-20  Werner LEMBERG  <wl@gnu.org>
3564         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
3565         possible to use multiple main macro packages.
3567 2002-10-19  Werner LEMBERG  <wl@gnu.org>
3569         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
3570         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
3571         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
3572         is set.
3573         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
3574         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
3576 2002-10-16  Werner LEMBERG  <wl@gnu.org>
3578         * NEWS, doc/webpage.ms: Updated.
3580 2002-10-14  Werner LEMBERG  <wl@gnu.org>
3582         * src/roff/troff/node.cc (troff_output_file::put_char_width,
3583         troff_output_file::put_char, troff_output_file::fill_color,
3584         troff_output_file::glyph_color): Handle case where color pointer
3585         is null.
3587 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
3589         Add the new -r option to grotty.  It is similar to the -i option
3590         except it tells grotty(1) to use the "reverse video" attribute to
3591         render italic fonts.
3593         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
3594         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
3595         (tty_printer::make_underline, tty_printer::put_color,
3596         tty_printer::end_page): Use it.
3597         (main): Add -r switch.
3598         (usage): Updated.
3599         * src/devices/grotty/grotty.man: Document it.
3601 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
3603         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3604         cast to `unsigned char' to properly read patterns with 8bit
3605         characters.
3607 2002-10-08  Werner LEMBERG  <wl@gnu.org>
3609         * REVISION: Increased to 2.
3611 Version 1.18.1 released
3612 =======================
3614 2002-10-08  Werner LEMBERG  <wl@gnu.org>
3616         * doc/webpage.ms, NEWS: Updated.
3618 2002-10-07  Werner LEMBERG  <wl@gnu.org>
3620         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
3621         suppress additional whitespace after the header.
3623         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
3624         with NetBSD.
3626         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
3628 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
3630         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
3631         (Dt): Use it to improve language localization (especially Russian
3632         and French).
3634 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
3636         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
3637         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
3638         drawing commands.
3639         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
3640         curve type.
3641         Call `picurve' for BSPLINE.
3642         (HGPrintElt): Handle BSPLINE.
3643         * src/preproc/grn/README: Document it.
3645 2002-10-03  Werner LEMBERG  <wl@gnu.org>
3647         * src/roff/troff/node.cc (break_char_node::col): New variable.
3648         Updated constructor.
3649         (space_node::tprint, word_space_node::tprint): Call `fill_color'
3650         unconditionally.
3651         (space_node::space_node): Remove assertion.
3652         (break_char_node::add_self): Pass color argument to space node.
3653         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
3654         Ditto.
3655         * src/roff/troff/env.cc (environment::do_break,
3656         environment::add_padding): Ditto.
3658 2002-10-02  Werner LEMBERG  <wl@gnu.org>
3660         Redesigning color support in troff.  Colors are no longer
3661         represented as separate nodes but are now part of glyph nodes and
3662         friends.  This fixes the current formatting misbehaviour due to the
3663         changes introduced on 2002-09-20.  Some extra code is necessary for
3664         proper grotty support: Without adding color variables to
3665         space-related nodes, the background color would be changed too late.
3667         * src/roff/troff/node.h, src/roff/troff/node.cc:
3668         s/current_pagecolor/current_fill_color/.
3669         s/current_glyphcolor/current_glyph_color/.
3670         (glyph_color_node, fill_color_node): Removed.
3671         (node::get_glyph_color, node::get_fill_color): New virtual member
3672         functions.
3673         (space_node::col): New variable.
3674         Updated constructors of space_node and derived classes accordingly.
3675         (hmotion_node::col): New variable.
3676         Updated constructors of hmotion_node and space_char_hmotion_node
3677         accordingly.
3678         (vmotion_node::col): New variable.
3679         Updated constructor accordingly.
3680         (draw_node::gcol, draw_node::fcol): New variables.
3681         Updated constructor accordingly.
3682         (special_node::gcol, special_node::fcol): New variables.
3683         Updated constructors accordingly.
3684         (troff_output_file::put_char, troff_output_file::put_charwidth,
3685         troff_output_file::draw): Set glyph and fill color.
3686         (troff_output_file::start_special): Set glyph and fill color.
3687         Always set current font.
3688         (troff_output_file::fill_color, troff_output_file::glyph_color):
3689         Don't call `do_motion'.
3690         (glyph_node::gcol, glyph_node::fcol): New variables.
3691         Updated constructors of glyph_node and ligature_node accordingly.
3692         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
3693         member functions.
3694         (glyph_node::merge_glyph_node,
3695         kern_pair_node::add_discretionary_hyphen,
3696         node::add_discretionary_hyphen): Updated.
3697         (break_char_node::merge_self): Updated.
3698         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3699         vmotion_node::tprint): Handle color.
3700         (make_glyph_node, make_node, node::add_char): Updated.
3702         * src/roff/troff/env.cc (environment::space_newline,
3703         environment::space, environment::output_line, environment::do_break,
3704         environment::make_tab_node, environment::add_padding, title):
3705         Updated.
3706         (environment_switch, environment_copy): Don't add color nodes.
3708         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
3709         nothing.
3710         (token::next): Updated.
3711         \m and \M now are as transparent as \s.
3712         (process_input_stack, token::add_to_node_list, token::process,
3713         read_draw_node): Updated.
3714         (charinfo_to_node_list): Don't add color nodes.
3716         * doc/groff.texinfo: Updated.
3718 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
3720         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
3721         strings.
3723 2002-09-27  Colin Watson  <cjwatson@debian.org>
3725         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
3727 2002-09-23  Werner LEMBERG  <wl@gnu.org>
3729         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
3730         appropriate.
3731         (DEFAULT_LINEWIDTH_FACTOR): New macro.
3732         (linewidth_factor): New global variable.
3733         (lbp_printer::set_line_thickness): Fix case for size < 0, using
3734         linewidth_factor.
3735         (long_options): Add -w/--linewidth option.
3736         (usage): Updated.
3737         (main): Handle -w option to set linewidth_factor.
3738         (lbp_printer::lbp_printer): Initialize req_linethickness, not
3739         line_thickness.
3741         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
3743 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
3745         Fixed a bug in the line thickness setting code.
3747         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
3748         variable.
3749         (lbp_printer::set_line_thickness): Pass environment as second
3750         parameter.
3751         Implement it actually.
3752         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
3753         and `set_line_thickness, depending on the current font size.
3755 2002-09-21  Werner LEMBERG  <wl@gnu.org>
3757         Some Debian patches.
3759         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
3760         * src/roff/troff/node.cc (bracket_node::copy): Initialize
3761         `list->last'.
3763 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3765         * configure: Regenerated with autoconf 2.54.
3767 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3769         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
3770         glyph_color.
3771         Rename cur_fill_color to fill_color.
3772         * src/roff/troff/env.cc: Updated.
3774 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3776         * src/roff/troff/env.cc (title): Copy color status after processing
3777         title.
3778         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
3779         fill color nodes to reset colors properly.
3781         * tmac/www.tmac (DC): Fix color handling.
3783         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
3784         * doc/groff.texinfo: Fixing documentation of `tl' request.
3785         * doc/webpage.ms: Updated.
3787 2002-09-19  Werner LEMBERG  <wl@gnu.org>
3789         * src/roff/troff/env.cc (environent_switch, environment_copy):
3790         Emit glyph and fill color nodes to initialize colors properly.
3792 2002-09-17  Colin Watson  <cjwatson@debian.org>
3794         * src/roff/troff/env.cc (environment::set_glyph_color,
3795         environment::set_fill_color): Fix typo which prevented \m[] work
3796         correctly.
3798 2002-09-17  Werner LEMBERG  <wl@gnu.org>
3800         Add left and right italic correction to non-slanted PS fonts.  This
3801         is an experimental feature to improve image rendering of grohtml.
3803         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
3804         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
3805         * font/devps/*: All non-slanted fonts regenerated.
3806         * NEWS: Updated.
3808 2002-09-16  Werner LEMBERG  <wl@gnu.org>
3810         Add a site-specific font directory.
3812         * Makefile.in (localfontdir, legacyfontdir): New variables.
3813         (fontpath): Use them.
3814         (MDEFINES, uninstall_dirs): Updated.
3815         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
3816         Remove `FONTPATH' and `MACROPATH'.
3818         * src/roff/troff/troff.man, NEWS: Updated.
3819         * doc/groff.texinfo (Font Directories): New section.
3820         Other minor fixes.
3822         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
3823         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
3824         src/preproc/grn/grn.man: Minor fixes.
3826         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
3827         Remove unused variable.
3829 2002-09-11  Werner LEMBERG  <wl@gnu.org>
3831         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
3832         * man/groff_out.man: Fix documentation of 'N'.
3834 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
3836         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
3837         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
3838         set.
3839         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
3840         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
3841         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
3842         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
3843         PRE_TAG>: Call `begin' with `FALSE'.
3845 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3847         * src/libs/libgroff/string.cc (string::extract): Fix position of
3848         terminating null byte.
3850 2002-09-08  Werner LEMBERG  <wl@gnu.org>
3852         Add global option `nospaces' to tbl so that leading and trailing
3853         spaces in data items are ignored.
3855         * src/libs/libgroff/string.cc (string::remove_spaces): New member
3856         function to remove leading and trailing spaces.
3857         * src/include/stringclass.h: Updated.
3859         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
3861         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
3862         option.
3863         Fix typo in error messages.
3864         (process_data): Implement `nospaces' option.
3865         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
3867 2002-09-07  Werner LEMBERG  <wl@gnu.org>
3869         * src/include/config.hin: Add `HAVE_ISATTY'.
3870         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
3871         `fname' member.
3872         * src/libs/libgroff/tmpname.cc: Include `time.h'.
3873         * src/libs/libdriver/input.cc (Char): Add `operator==' and
3874         `operator!=' for `char'.
3875         * doc/groff.texinfo: Replace @ifnottex block for top node with
3876         @ifhtml block.
3878 2002-09-06  Werner LEMBERG  <wl@gnu.org>
3880         * doc/Makefile.in (.texinfo.html): Add -I switch.
3881         * doc/groff.texinfo: Add @ifnottex block for top node to make
3882         translation to HTML work.
3884 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
3886         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
3887         (get_papersize, determine_vertical_offset): Removed.
3888         (char_buffer::do_image): Always specify letter size.
3889         (main): Updated.
3890         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
3891         -sPAPERSIZE.
3893 2002-09-05  Werner LEMBERG  <wl@gnu.org>
3895         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
3896         default indentation.
3898 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
3900         * src/preproc/html/pre-html.cc (imageList::createPage): Use
3901         -sPAPERSIZE for gs.
3902         (generateImages): Clean up push-back buffer.
3904 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3906         * doc/groff.texinfo: Minor fixes.
3908 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3910         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
3911         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
3912         (gsPaper): Removed.
3913         (determine_vertical_offset): Use LETTER_LENGTH.
3914         (createPage): Moved to ...
3915         (imageList::createPage): This.
3916         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
3917         (imageList::getMaxX): New function.
3918         (createImage): Moved to ...
3919         (imageList::createImage): This.
3920         (imageList::createImages): New function.
3921         (generateImages): Read `maxx' directly.
3922         Updated.
3923         (scanArguments): Don't specify `gsPaper' for `-o'.
3924         (makeTempFiles): Call `xtmpfile' with the last argument set to
3925         `TRUE'.
3927 2002-08-24  Werner LEMBERG  <wl@gnu.org>
3929         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
3930         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
3931         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
3932         * src/preproc/html/pushback.cc: Include nonposix.h.
3933         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
3934         conditionally.
3936 2002-08-23  Werner LEMBERG  <wl@gnu.org>
3938         Use $(OBJEXT) for the object file extension.
3940         * Makefile.comm (.SUFFIXES): Add .obj.
3941         (.cc.obj, .c.obj): New implicit rules.
3942         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
3943         (MDEFINES): Add EXEEXT and OBJEXT.
3944         * */Makefile.sub: s/.o/.$(OBJEXT)/.
3946 2002-08-22  Werner LEMBERG  <wl@gnu.org>
3948         * INSTALL: Mention texinfo 4.2 as a prerequisite.
3950 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3952         * src/devices/grohtml/post-html.cc (colType): Make enum global to
3953         the file.
3954         (html_printer::update_min_max, html_printer::add_table_end): New
3955         methods.
3956         (html_printer::lookahead_for_tables): Use them.
3957         Reset page offset correctly.
3958         (html_printer::~html_printer): Add creation of creator comment up.
3960 2002-08-20  Werner LEMBERG  <wl@gnu.org>
3962         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
3963         * man/groff_tmac.man: Fix typos.
3964         * man/groff_font.man: Minor reordering.
3965         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
3967 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
3969         Avoid endless loops while scanning for tables.
3971         * src/devices/grohtml/post-html.cc (list::insert): Set
3972         ptr->right->left.
3973         (html_printer::next_horiz_pos): Add `text_glob' argument; update
3974         all callers.
3975         Return immediately if that argument is NULL.
3976         (html_printer::calc_nf): Don't test if `g' is NULL.
3977         (html_printer::lookahead_for_tables): Use
3978         `glyphs.move_right_get_data'.
3979         Don't test if `g' is NULL.
3981 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
3983         A better fix, replacing fix 2002-08-15, for increasing SIZE.
3985         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
3986         a pointer.
3987         (char_block::char_block): Allocate `buffer'.
3988         (char_buffer::add_string): Use it.
3990 2002-08-15  Werner LEMBERG  <wl@gnu.org>
3992         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
3993         src/devices/grodvi/grodvi.man: Document default line thickness.
3995 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
3997         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
3998         8192.
4000 2002-08-14  Werner LEMBERG  <wl@gnu.org>
4002         * doc/webpage.ms: Updated.
4004 2002-08-09  Werner LEMBERG  <wl@gnu.org>
4006         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4007         unbreakable space.
4009 2002-08-08  Aaron Campbell  <aaron@monkey.org>
4011         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4012         (&& -> &).
4014 2002-08-08  Werner LEMBERG  <wl@gnu.org>
4016         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4017         tok.next().
4018         (read_gray): Ditto.
4019         Don't push back a space but a newline onto the stack.
4021 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
4023         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4024         inadvertently.
4026         * src/devices/grohtml/post-html.cc (html_printer::end_font,
4027         html_printer::start_font): Handle them.
4028         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4029         reset bold and tt.
4030         (html_text::do_bold): Don't reset italic and tt.
4031         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4032         * font/devhtml/DESC.proto: Add those fonts.
4033         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4035 2002-08-07  Werner LEMBERG  <wl@gnu.org>
4037         * MORE.STUFF: Added gpresent.
4039         * tmac/trace.tmac: Show nesting level by a corresponding amount of
4040         whitespace before printing the logging message.
4042 2002-07-31  Colin Watson  <cjwatson@debian.org>
4044         * src/devices/grohtml/html-table.cc (html_table::finish_row):
4045         Initialize `n' to zero.  This fixes a segfault on ARM.
4047 2002-07-30  Werner LEMBERG  <wl@gnu.org>
4049         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4051 2002-07-29  Werner LEMBERG  <wl@gnu.org>
4053         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4054         final semicolon.
4056 2002-07-28  Colin Watson  <cjwatson@debian.org>
4058         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4059         `.ps'.
4060         (html_printer::html_printer): Initialize `pointsize'.
4062 2002-07-26  Werner LEMBERG  <wl@gnu.org>
4064         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4065         gnu.png.
4066         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4067         (gnu.eps): Add -rle switch to pnmtops.
4068         (distfiles): Add gnu.eps and gnu.png.
4070 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
4072         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4073         Add `operator!='.
4075 2002-07-24  Werner LEMBERG  <wl@gnu.org>
4077         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4078         ' \+' but '  *' for sed.
4079         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4081 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4083         * doc/groff.texinfo: Document `papersize' keyword.
4084         * NEWS, man/groff_font.man: Updated.
4086 2002-07-23  Colin Watson  <cjwatson@debian.org>
4088         Extend papersize keyword to accept more than a single entry.  The
4089         first valid will be used.
4091         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4092         (font::scan_papersize): Really skip final newline.
4093         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4095 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4097         * configure.ac: Test for isatty.
4098         * configure: Regenerated.
4099         * src/include/posix.h: Check HAVE_ISATTY.
4100         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4101         * src/utils/lookbib/lookbib.cc: Include posix.h.
4102         Don't declare isatty.
4104 2002-07-21  Werner LEMBERG  <wl@gnu.org>
4106         * NEWS: Add `output' request.
4108         * REVISION: Increased to 1.
4110 Version 1.18.0 released
4111 =======================
4113 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
4115         Allow internal glyph indices > 0xFF in grohtml for input characters.
4117         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4118         as parameter.
4119         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4120         Updated all callers.
4121         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4122         (html_printer): Updated.
4124 2002-07-19  Werner LEMBERG  <wl@gnu.org>
4126         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4127         * font/devutf8/R.proto: Adding some missing glyphs.
4128         * font/devutf8/NOTES: Updated.
4130         * tmac/dvi.tmac: Add more composite glyphs.
4131         * tmac/html.tmac: Updated.
4133         * man/groff_char.man: Add `sum' and `product' entities.
4135         * NEWS: Updated.
4137 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
4139         Improved table, tab, and indenting support.
4141         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4142         string_iterator::suppress_newline_flag): Removed.  Updated all
4143         function which have used it.
4145         * src/roff/troff/env.cc: Include `input.h'.
4146         (environment::add_node): Accept 0 as parameter.
4147         (environment::add_html_tag): Add `force' parameter.
4148         Updated all callers.
4149         (environment::add_html_tag_tabs): Ditto.
4150         For the moment, support left-aligned tabs only.
4151         (environment::make_html_tag): New function.
4152         (fill, no_fill): Set .br html tag additionally.
4153         (environment::newline): Emit `eol.ce' or `eol' tag for html.
4154         (environment::add_html_tag_eol): Removed.
4155         (tab_stops::distance_to_next_tab): Add variant for handling 
4156         nextpos'.
4157         (environment::distance_to_next_tab): Ditto.
4158         Updated all callers.
4159         (environment::handle_tab): Handle tabs for html.
4160         
4161         * src/roff/troff/env.h: Updated.
4163         * src/roff/troff/div.cc: Updated all callers of
4164         `environment::add_html_tag'.
4166         * src/devices/grohtml/html-table.cc,
4167         src/devices/grohtml/html-table.h: New files.
4169         * src/devices/grohtml/html-text.cc (html_text): New members
4170         `blank_para' and `start_space'.
4171         (html_text::issue_tag): Don't emit TABLE_TAG.
4172         Handle indentation for PRE_TAG and P_TAG.
4173         (html_text::end_tag): Updated.
4174         (html_text::table_is_void, html_text::issue_table_begin,
4175         html_text::issue_table_end): Removed.
4176         (html_text::do_push): Simplified.
4177         [DEBUGGING]: Small fix.
4178         (html_text::push_para): Add new parameter for indentation; updated
4179         all callers.
4180         Handle PRE_TAG.
4181         (html_text::do_indent, html_text::do_table, html_text::done_table,
4182         html_text::is_in_table): Removed.
4183         (html_text::do_pre): Handle P_TAG also.
4184         (html_text::shutdown): Handle p->indent.
4185         (html_text::check_emit_text): Simplified.
4186         (html_text::do_emittext): Reset `blank_para'.
4187         (html_text::do_para): Add new parameter for indentation; updated
4188         all callers.
4189         (html_text::remove_indent): New function.
4190         (html_text::do_space): Handle verbatim text properly.
4191         (html_text::ever_emitted_text, html_text::starts_with_space,
4192         html_text::remove_para_align): New functions.
4193         (html_text::dump_stack_element, html_text::dump_stack): Updated.
4195         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
4196         Updated.
4198         * src/devices/grohtml/post-html.cc: Include html-table.h.
4199         (INDENTATION): Removed.
4200         (text_glob): Added many `is_<foo>' functions.
4201         Added table description `tab'.
4202         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
4203         member functions.
4204         (list): Add `insert' and `move_to' member functions.
4205         (page): Add `insert_tag' member function.
4206         (page::dump_page) [DEBUG_TABLES]: Improved.
4207         (html_printer): Add `table' and `max_linelength' elements.
4208         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
4209         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
4210         `remove_tabs', `remove_courier_tabs'.
4211         (html_printer::emit_raw): Handle indentation.
4212         (html_printer::do_center, html_printer::write_header): Updated.
4213         (html_printer::is_courier_until_eol): Check for tag.
4214         (html_printer::do_linelength): Handle max_linelength.
4215         (html_printer::do_page_offset, html_printer::do_indentation): Handle
4216         fill_on.
4217         (html_printer::do_tempindent): Updated.
4218         (html_printer::do_indentedparagraph): Removed.
4219         (html_printer::do_indent): Simplified.
4220         (html_printer::do_eol): Use `ever_emitted_text'.
4221         (html_printer::do_flush, html_printer::do_links): Don't call
4222         done_table.
4223         (html_printer::do_break): Handle end_tempindent.
4224         (html_printer::troff_tag): Get argument.
4225         Don't handle `.ip'.
4226         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
4227         (html_printer::flush_page): Call `lookahead_for_tables'.
4228         Don't call `done_table'.
4229         (html_printer::add_to_sbuf): Always call do_indent.
4231         * src/devices/grohtml/Makefile.sub: Updated.
4233         * tmac/an-old.tmac (TP): Don't handle html device specially.
4234         (an-do-tag-html): New function which will be used instead of
4235         `an-do-tag' if html device is used.
4237         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
4239         * tmac/s.tmac (@IP): Don't handle html device specially.
4240         (@IP-html): New function which will be used instead of `@IP' if
4241         html device is used.
4243         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
4244         is a hack which will eventually vanish again.
4245         (PIMG): Handle `-C' option correctly if not html.
4246         (HR): Use HTML-NS.
4248 2002-07-17  Werner LEMBERG  <wl@gnu.org>
4250         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
4252 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
4254         * contrib/pic2graph/pic2graph.*: Use convert(1).
4255         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
4257 2002-07-14  Bernd Warken  <bwarken@mayn.de>
4259         * tmac/groff_trace.man: New file.
4260         * tmac/Makefile.sub: Updated.
4261         * NEWS: Updated.
4263 2002-07-13  Werner LEMBERG  <wl@gnu.org>
4265         * src/roff/groff/groff.man: Add some cross references.
4267 2002-07-12  Werner LEMBERG  <wl@gnu.org>
4269         * src/roff/troff/input.cc (substring_request): Add warnings for
4270         string indices out of range.
4272 2002-07-11  Werner LEMBERG  <wl@gnu.org>
4274         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
4275         * font/devdvi/*EC: Regenerated.
4277 2002-07-10  Bernd Warken  <bwarken@mayn.de>
4279         * man/groff_char.man: Updated and extended.
4281 2002-07-10  Werner LEMBERG  <wl@gnu.org>
4283         * src/roff/troff/input.cc (length_macro): Renamed to...
4284         (length_request): This.
4285         Move call of `tok.next()' to the very end, otherwise the register
4286         value hasn't been updated yet.
4287         (init_input_requests): Updated.
4289 2002-07-09  Werner LEMBERG  <wl@gnu.org>
4291         * src/roff/troff/input.cc (substring_macro): Renamed to...
4292         (substring_request): This.
4293         (init_input_requests): Updated.
4294         * src/roff/troff/request.h: Updated.
4296 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
4298         * src/roff/grog/grog.sh: Fix typo.
4300 2002-07-08  Werner LEMBERG  <wl@gnu.org>
4302         * win32-diffs: Updated.
4304         Handle `papersize' keyword properly in DESC.
4306         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
4307         type.
4308         Updated all callers.
4309         * src/libs/libgroff/paper.cc: Add four more paper formats used by
4310         grolj4.
4311         * src/include/paper.h: Updated.
4313         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
4314         Other minor C syntax fixes.
4315         (papersize, paperlength, paperwidth): Renamed to `user_*'.
4316         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
4317         members.
4318         (lbp_printer::lbp_printer): Pass three arguments.
4319         Set paper dimensions properly.
4320         (make_printer, main): Updated.
4321         (handle_unknown_desc_command): Fix error messages.
4322         (main): Handle papersize keyword in DESC properly.
4324         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
4325         `user_paper_size'.
4326         (lbp_printer::lbp_printer): Pass an argument.
4327         Set paper_size properly.
4328         (handle_unknown_desc_command): Removed.
4329         (make_printer, main): Updated.
4330         * src/devices/grolj4/grolj4.man: Minor documentation fix.
4332         * man/groff_font.man, NEWS: Updated.
4334 2002-07-07  Werner LEMBERG  <wl@gnu.org>
4336         Integrated eqn2graph, contributed by Eric S. Raymond.
4338         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
4339         files.
4340         * Makefile.in, NEWS: Updated.
4342 2002-06-04  Werner LEMBERG  <wl@gnu.org>
4344         Changing the substring request to make it fit better with other
4345         string manipulation functions in other programming languages:
4346         Index 0 is now the first character in the string, and index -1
4347         indicates the last character.  Since this request didn't work
4348         properly anyway in the last release, it doesn't harm too much to
4349         change the syntax.
4351         * src/roff/troff/input.cc (substring_macro): Use loops to get
4352         the real string length (ignoring COMPATIBLE_SAVE and
4353         COMPATIBLE_RESTORE) and offsets.
4354         Implement change described above.
4356         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
4357         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
4359         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
4361 2002-06-03  Werner LEMBERG  <wl@gnu.org>
4363         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
4364         COMPATIBLE_RESTORE are completely ignored.
4366         * src/roff/troff/input.cc (char_list::set, char_list::get): New
4367         functions.
4368         (macro): `length' field renamed to `len'.
4369         Added new field `empty_macro' (1 if macro is empty), to be used
4370         instead of checking `len'.
4371         Updated all callers.
4372         (macro::empty): Updated.
4373         (macro::length, macro::set, macro::get): New functions.
4374         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4375         Set `empty_macro'.
4376         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
4377         COMPATIBLE_RESTORE pairs.
4378         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4379         * src/roff/troff/request.h: Updated.
4381         * doc/groff.texinfo: Document .chop's behaviour better.
4383 2002-06-02  Werner LEMBERG  <wl@gnu.org>
4385         * doc/pic.ms: Fix documentation for the addition of positions.
4387         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
4389 2002-06-29  Werner LEMBERG  <wl@gnu.org>
4391         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
4393         * src/roff/troff/input.cc (have_string_arg): New global variable.
4394         (read_mode): New enumeration.
4395         (read_escape_name): Use it.  Update all calls.
4396         (read_long_escape_name): Use it.  Update all calls.
4397         Set have_string_arg if appropriate.
4398         (get_char_for_escape_name): Add parameter for handling space
4399         character.
4400         (interpolate_string_with_args, decode_string_args): New functions.
4401         (get_copy, token::next): Call it if necessary.
4402         (interpolate_string): Fix error message.
4404         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4405         Document it.
4407 2002-06-24  Bernd Warken  <bwarken@mayn.de>
4409         * man/groff_tmac.man: Updated and extended.
4411 2002-06-24  Werner LEMBERG  <wl@gnu.org>
4413         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
4415 2002-06-23  Werner LEMBERG  <wl@gnu.org>
4417         * doc/pic.ms: Improve documentation of composite block objects.
4419 2002-06-22  Werner LEMBERG  <wl@gnu.org>
4421         * src/roff/troff/input.cc (init_registers): Add three registers
4422         `seconds', `minutes', and `hours' to hold the current time.
4424         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4425         Updated.
4427 2002-06-20  Werner LEMBERG  <wl@gnu.org>
4429         Make \X accept both `\ ' and `\~', converting them to single space
4430         characters.
4432         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
4433         (token::unstretchable_space): New inline function.
4434         * src/roff/troff/input.cc (token::next, token::delimiter,
4435         token::description, token::add_to_node_list, token::process): Handle
4436         TOKEN_UNSTRETCHABLE_NODE.
4437         (encode_char): Handle tok.stretchable_space and
4438         tok.unstretchable_space.
4440         * NEWS, doc/groff.texinfo: Document it..
4442 2002-06-19  Werner LEMBERG  <wl@gnu.org>
4444         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
4446         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
4447         keyword to enable/disable SGR output.
4448         (tty_printer::change_fill_color): New function.
4449         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
4451         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
4452         call.
4454 2002-06-18  Werner LEMBERG  <wl@gnu.org>
4456         Add a `color' request and a `.color' register to control usage of
4457         colours.
4459         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
4460         (color_flag): This (which is the inverse).
4461         (activate_color): New function.
4462         (main, init_input_requests): Updated.
4463         * src/roff/troff/troff.h, src/roff/troff/node.cc
4464         (troff_output_file::fill_color, troff_output_file::glyph_color):
4465         Updated.
4467         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4468         Document the changes.
4470 2002-06-17  Colin Watson  <cjwatson@debian.org>
4472         Circumvent bug in autoconf 2.53 regarding top_builddir.
4474         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
4475         * Makefile.in, doc/Makefile.in:
4476         s/@top_builddir@/@groff_top_builddir@/.
4477         * configure: Regenerated (with autoconf 2.53).
4479 2002-06-17  Werner LEMBERG  <wl@gnu.org>
4481         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
4482         `paperwidth' and `paperlength' for the `papersize' keyword.
4484 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
4486         * src/devices/grops/grops.man: Add info about Type 42 fonts.
4488 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
4490         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
4491         html_printer::do_linelength, html_printer::do_pageoffset,
4492         html_printer::do_indentation, html_printer::do_tempindent,
4493         html_printer::do_break, html_printer::begin_page): Clear indented
4494         text.
4495         * tmac/html.tmac: Disable hyphenation.
4497 2002-06-15  Werner LEMBERG  <wl@gnu.org>
4499         Don't produce HTML files if utility programs are missing.
4501         * Makefile.in (make_html, make_install_html): New variables.
4502         (MDEFINES): Updated.
4504         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
4505         utility programs.
4506         * configure.ac: Use it.
4507         * configure: Regenerated.
4509         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
4510         (HTMLEXAMPLESFILES): This new variable.
4511         (EXAMPLESIMAGEFILES): Renamed to...
4512         (HTMLEXAMPLEIMAGEFILES): This.
4513         (CLEANADD): Add HTMLEXAMPLEFILES.
4514         (all): Use `make_html'.
4515         (html): New target.
4516         (install_data): Use `make_install_html'.
4517         Move html stuff to...
4518         (install_html): This new target.
4519         (uninstall_sub): Updated.
4521 2002-06-14  Bernd Warken  <bwarken@mayn.de>
4523         * src/roff/grog/Makefile.sub (grog): Renamed to...
4524         (grog.old): This.
4525         (grog): New rule to always install grog.sh as grog.
4527 2002-06-08  Bernd Warken  <bwarken@mayn.de>
4529         * src/roff/grog/grog.pl: Fix typo.
4531 2002-06-07  Werner LEMBERG  <wl@gnu.org>
4533         * doc/groff.texinfo: Add more info on .tr arguments.
4535 2002-06-05  Werner LEMBERG  <wl@gnu.org>
4537         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4539         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
4540         * configure: Regenerated.
4542 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4544         * src/roff/troff/symbol.cc (table_sizes): Add more values.
4546         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
4548 2002-06-04  Werner LEMBERG  <wl@gnu.org>
4550         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
4551         is not initialized at the time we need it in case `--prefix' hasn't
4552         been set.  Check for `ac_default_prefix' also.
4553         Test for `papersize' keyword also and generalize allowed whitespace.
4554         * configure: Regenerated.
4556         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
4557         `paperlength'.
4559         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
4560         with...
4561         (src_version, src_revision): New variables to avoid overwriting
4562         from parent make process.
4563         (version.cc): Updated.
4565         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
4566         (linebuf, linebufsize): New global variables.
4567         (sys_fatal): Use `fatal' to abort properly.
4568         (get_line): New function.
4569         (get_resolution): Use it.
4570         Improve error messages.
4571         (get_papersize): Check `papersize' also.
4572         Use `get_line'.
4573         Improve error messages.
4575 2002-06-03  Werner LEMBERG  <wl@gnu.org>
4577         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
4578         should be removed only if builddir is not srcdir.
4579         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
4580         (clean): Depend on `mostlyclean'.
4581         (distclean): Depend on `clean'.
4582         (realclean, extraclean): Depend on `distclean'.
4583         (.y.cc, .y.o): Simplified.  The output files are no longer written
4584         to srcdir but to builddir.
4585         * Makefile.in (MDEFINES): Add `version' and `revision'.
4586         (uninstall_dirs): Fix order of directories.
4587         * doc/Makefile.sub (version, revision): Removed.
4588         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
4589         Added `HTMLDOCFILES'.
4590         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
4591         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
4592         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
4593         as prefix.
4595         * doc/texinfo.tex (\authortt): New macro.
4596         (\shortcontt): Define.
4597         (\titlepage): Set \tt to \authortt while defining \authorfont.
4598         (\appendixbox): New macro.
4599         (\chapmacro, \appendixentry): Use \appendixbox to get even
4600         indentation for letters.
4601         (\summarycontents): Set \tt.
4602         (\internalpagesize): Add two arguments for real paper width and
4603         height as needed by pdfTeX.
4604         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
4605         Updated.
4606         (\tempdima, \tempdimb): New temporary dimensions.
4607         (\pagesizesyyy): Updated.
4609 2002-06-02  Werner LEMBERG  <wl@gnu.org>
4611         Adding a new keyword `papersize' to the DESC file format (similar
4612         but not completely identical to grolbp's extension).  grops now has
4613         a -p command line option to override `papersize'.  Finally, grolbp
4614         has been adapted to the new syntax.
4616         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
4617         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
4618         elements.
4619         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
4620         (CCSRCS): Add `paper.cc'.
4622         * src/include/font.h (font): Add `papersize' element.
4623         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
4624         (font::scan_papersize): New function.
4625         (font::load_desc): Use it for handling `papersize' keyword.
4626         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
4628         * src/devices/grops/ps.cc: Include paper.h.
4629         (user_paper_length): New global variable.
4630         (ps_printer): Use paper length as initializer.
4631         (make_printer): Updated.
4632         (main): Handle new `-p' option.
4633         * src/devices/grops/grops.man: Updated.
4635         * src/devices/grolbp/lbp.cc: Include paper.h.
4636         s/papersizes/lbp_papersizes/.
4637         (set_papersize): Use new `papersizes' array.
4638         (handle_unknown_desc_command): Don't handle `papersize'.
4639         (main): Use `font::scan_papersize' for handling `-p' option.
4640         * src/devices/grolbp/grolbp.man: Updated.
4642         * man/groff_font.man: Document `papersize'.
4643         * NEWS: Updated.
4645 2002-05-30  Werner LEMBERG  <wl@gnu.org>
4647         * src/devices/grops/TODO: Updated.
4648         * src/devices/grops/grops.man: More info on paper formats.
4649         * man/groff_font.man: Document `paperheight' and `paperwidth'.
4651 2002-05-29  Werner LEMBERG  <wl@gnu.org>
4653         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
4654         to list only if srcdir != currdir.
4655         (distfiles): New target.
4657         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
4658         (NOMAKEDIRS): New variable.
4659         (DISTDIRS): Use it.
4661 2002-05-26  Werner LEMBERG  <wl@gnu.org>
4663         Add .output request, similar to \! at top-level.
4665         * src/roff/troff/input.cc (transparent): Remove unused declaration.
4666         (output_request): New function.
4667         (init_input_requests): Add it.
4668         Sorted.
4669         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4670         Document it.
4672         * Makefile.in (MDEFINES): Add INSTALL_INFO.
4673         (prepare_examples): Fix typo.
4674         * doc/groff.texinfo (@direntry): Fix it.
4676 2002-05-25  Werner LEMBERG  <wl@gnu.org>
4678         Including the doc subdir into groff's Makefile system.
4680         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
4681         * configure.ac: Use it.
4682         Generate `doc/Makefile'.
4683         * configure: Regenerated.
4685         * Makefile.in (infodir, INSTALL_INFO): New variables.
4686         (MDEFINES, uninstall_dirs): Updated.
4687         (OTHERDIRS): Add `doc'.
4688         * Makefile.comm (CLEANDIRADD): New variable.
4689         (mostlyclean): Use it.
4691         * doc/Makefile.sub, doc/Makefile.in: New files.
4692         * doc/Makefile: Removed.
4694         * NEWS, INSTALL: Updated.
4696 2002-05-24  Werner LEMBERG  <wl@gnu.org>
4698         * doc/homepage.ms: Renamed to ...
4699         * doc/webpage.ms: This.
4700         Use `.NHR'.
4702 2002-05-23  Werner LEMBERG  <wl@gnu.org>
4704         Integrating the `mom' macro package, contributed by Peter Schaffter
4705         <df191@ncf.ca>.
4707         * contrib/mom/*: New subdirectory tree.
4708         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
4709         be used for documentation files.
4710         (MDEFINES, uninstall_dirs): Use them.
4711         (OTHERDIRS): Add contrib/mom.
4712         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
4713         @HTMLDOCDIR@.
4714         * MANIFEST, NEWS: Updated.
4716 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
4718         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
4719         if at outer level; at start-up we are at outer level.
4721         * src/roff/troff/input.cc (do_suppress): Implement it.
4722         Simplify \O[3].
4724         Add option -p to show progress information.
4725         pre-grohtml will now render only one page at a time, reducing the
4726         size of needed disk resources enormously.
4728         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
4729         (imagePageName): New global variable.
4730         (psPageName, show_progress, currentPageNo): New global variables.
4731         (html_system): Close saved stderr and stdout handles.
4732         (write_end_image): Accept a parameter to control \O escape.
4733         (write_start_image): Adapted to new \O meaning.
4734         (char_buffer::write_upto_newline): Updated.
4735         (createAllPages): Replaced with...
4736         (createPage): This new function to create a single page for images.
4737         It uses `psselect' from the psutils package.
4738         (removeAllPages): Removed.
4739         (createImage): Updated.
4740         Handle progress display.
4741         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
4742         (scanArguments): Add option -p.
4743         (makeTempFiles): Updated to create temp files for psPageName and
4744         imagePageName.
4745         (removeTempFiles): Removed.
4746         (main): Updated.
4748         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
4749         html_printer::write_header): Append `\0' to `buffer'.
4750         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
4751         (main): Handle -p.
4752         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
4753         Handle `text_emitted'.
4754         (html_text::table_is_void): Slightly rewritten.
4755         (stop): New external symbol.
4756         (html_text::do_push) [DEBUGGING]: Use it and simplify.
4757         (html_text::shutdown): Call `dump_stack'.
4758         (html_text::do_space): Rewritten.
4759         * src/devices/grohtml/grohtml.man: Document -p and the need of
4760         `psselect'.
4762         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
4763         new \O syntax.
4764         Call \O[0] if `ps4html' is active.
4765         * tmac/s.tmac (@EQ, @EN): Handle html better.
4766         (@TS, TE): Ditto.
4767         * tmac/html.tmac: Don't use black for background colour.
4769         * src/roff/troff/node.cc: Include `div.h'.
4770         (troff_output_file::really_print_line): Don't use `is_on'. 
4771         (troff_output_file::word_marker, troff_output_file::flush_tbuf
4772         troff_output_file::check_charinfo,
4773         troff_output_file::put_char_width, troff_output_file::put_char,
4774         troff_output_file::determine_line_limits, troff_output_file::draw,
4775         real_output_file::begin_page, glyph_color_node::tprintf,
4776         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
4777         Use `is_on'.
4778         (troff_output_file::really_on): Call `do_motion'.
4779         (suppress_node::tprint): Use `get_page_number' instead of `%'
4780         register.
4781         Call `reset_output_registers' conditionally on `is_on'.
4783         * doc/groff.texinfo: Document new syntax of \O.
4784         * NEWS, man/groff_diff.man: Updated.
4786 2002-05-22  Werner LEMBERG  <wl@gnu.org>
4788         * MORE.STUFF: Add info about David Frey's deroff implementation.
4789         Mention troff.org.
4791 2002-05-16  Werner LEMBERG  <wl@gnu.org>
4793         Pic's `with' attribute now accepts positions.
4795         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
4796         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
4797         conflicts.
4798         (object_spec): Add rule for `WITH' and `position'.
4799         (relative_path): Give `corner' the precedence of `CHOP'.
4800         * src/preproc/pic/object.h (path): New members `pos' and
4801         `is_position'.
4802         * src/preproc/pic/object.cc: Updated initializers of `path'.
4803         (path::follow): Handle `is_position'.
4805         * doc/pic.ms: Completely updated grammar description.
4806         Many typographical improvements.
4808 2002-05-15  Werner LEMBERG  <wl@gnu.org>
4810         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
4811         code of x in range 0-127) also.
4812         * doc/groff.texinfo, man/groff_diff.man: Updated.
4814         Added keywords `north', `south', `east', and `west' for corners
4815         in pic.
4817         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
4818         and WEST.
4819         (yylex): Handle them.
4820         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
4821         (corner): Handle them.
4823 2002-05-14  Werner LEMBERG  <wl@gnu.org>
4825         * src/devices/grops/grops.man: Clarify handling of `download' file.
4827 2002-05-11  Werner LEMBERG  <wl@gnu.org>
4829         Adding `warnscale' and `spreadwarn' requests, based on a patch from
4830         Jeffrey Friedl <jfriedl@yahoo.com>.
4832         * src/roff/troff/input.cc (spread_limit, warn_scale,
4833         warn_scaling_indicator): New global variables.
4834         (warnscale_request, spreadwarn_requests): New functions.
4835         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
4836         (init_input_requests): Updated.
4837         (error_type): Add `OUTPUT_WARNING'.
4838         (do_error): Handle it.
4839         (output_warning): New warning function which shows output location.
4840         * src/roff/troff/env.h (spread_limit): New external variable.
4841         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
4842         `output_warning'.
4843         (distribute_space): Emit warning if added space is larger than
4844         `spread_limit'.
4845         (environment::possibly_break_line): Emit warning if a line can't
4846         be adjusted on both sides.
4848         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
4850 2002-05-08  Werner LEMBERG  <wl@gnu.org>
4852         * src/roff/troff/node.cc (special_node::special_node): Use
4853         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
4854         \X''\% crashes, for example.
4856         * doc/groff.texinfo: Document \! and \? used at top-level.
4858 2002-05-06  Werner LEMBERG  <wl@gnu.org>
4860         * src/preproc/pic/pic.man: Fix some keyword syntax.
4861         Other minor typographical fixes.
4863         * src/roff/groff/groff.man: Fix typos.
4865 2002-05-04  Werner LEMBERG  <wl@gnu.org>
4867         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
4868         (ShortOpt[]): This to avoid problems with refer.
4870         * doc/pic.ms: Fix typo.
4871         Fix pic grammar description.
4873         * tmac/an-old.tmac (ne): Use de1, not de.
4875 2002-05-03  Werner LEMBERG  <wl@gnu.org>
4877         * doc/groff.texinfo: Finished separation of glyphs and characters.
4878         Don't use the string `Appendix' for appendix headers (both in
4879         the text and the table of contents).
4880         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
4881         directories.
4883         Use registers LL and LT (similar to -ms) for controlling the
4884         length of title and line, respectively, in the -man and -mdoc
4885         macro packages.
4887         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
4888         (doc-setup-page-layout): Use \n[LL] and \n[LT].
4889         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
4890         (TH): Use \n[LL].
4891         (an-header, an-p-footer): Use \n[LT].
4892         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
4893         doc/groff.texinfo: Document it.
4895 2002-05-02  Werner LEMBERG  <wl@gnu.org>
4897         * doc/fdl.texi: New file.
4898         * doc/groff.texinfo: Include it.
4899         Define and use @copying.
4900         Starting with separating glyph, symbol, and character.
4902 2002-04-27  Werner LEMBERG  <wl@gnu.org>
4904         * Makefile.in (EXEEXT): Set it.
4905         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
4906         programs.
4908         * src/include/nonposix.h: Define GS_NAME.
4909         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
4911         Some preliminary changes for EMX support under OS/2.
4913         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
4914         __EMX__ similar to __MSDOS__.
4915         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
4917 2002-04-25  Werner LEMBERG  <wl@gnu.org>
4919         * doc/groff.texinfo: Integrated groff_out.man.
4920         Some macro fixes.
4922 2002-04-23  Werner LEMBERG  <wl@gnu.org>
4924         * man/groff_out.man: Minor fixes.
4926 2002-04-23  Werner LEMBERG  <wl@gnu.org>
4928         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
4929         correct page references.
4930         Fixed many index entries.
4932 2002-04-23  Bernd Warken  <bwarken@mayn.de>
4934         * man/roff.man: Enlarged.
4936 2002-04-22  Werner LEMBERG  <wl@gnu.org>
4938         * doc/groff.texinfo: More examples, other fixes.
4940 2002-04-20  Werner LEMBERG  <wl@gnu.org>
4942         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
4943         will now form a chain, e.g.
4945           .pi foo
4946           .pi bar
4948         is now the same as
4950           .pi foo | bar
4952         This is for compatibility with plan 9's troff.
4954         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
4955         with UNIX troff.
4956         * NEWS: Updated.
4958         * doc/groff.texinfo: Add documentation of remaining requests and
4959         registers.
4961 2002-04-19  Werner LEMBERG  <wl@gnu.org>
4963         * doc/groff.texinfo: Add documentation of remaining escapes.
4965         * font/devdvi/generate/tc.map: Remove entry for `sr'.
4966         * font/devdvi/*TC: Regenerated.
4968 2002-04-18  Werner LEMBERG  <wl@gnu.org>
4970         * src/roff/troff/input.cc (token::next): Make \H behave consistently
4971         if not in compatibility mode, i.e., increment relative to the
4972         previous height.
4973         * doc/groff.texinfo: Updated accordingly.
4975 2002-04-17  Werner LEMBERG  <wl@gnu.org>
4977         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
4979 2002-04-16  Bernd Warken  <bwarken@mayn.de>
4981         * src/roff/groff/groff.man: Improve documentation of -P option.
4982         Other minor fixes.
4984 2002-04-15  Werner LEMBERG  <wl@gnu.org>
4986         Add new escape \F to switch font family.
4988         * src/roff/troff/input.cc (token::next): Handle \F.
4989         * src/roff/troff/env.cc (environment::set_family): Handle
4990         `interrupted' flag.
4991         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4992         Document it.
4994 2002-04-14  Werner LEMBERG  <wl@gnu.org>
4996         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
4997         spaces in tags.
4999 2002-04-13  Werner LEMBERG  <wl@gnu.org>
5001         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
5002         \m[] and \M[], respectively.
5004         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5005         (symbol::symbol): Handle NULL string and empty string differently.
5006         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5007         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5008         Add optional parameter.
5009         Updated calling functions.
5010         (get_copy, do_glyph_color, do_fill_color, token::next): Use
5011         `symbol::is_empty'.
5012         * src/roff/troff/env.cc (environment::set_font): Ditto.
5014         * src/preproc/pic/troff.cc (troff_output::set_fill,
5015         troff_output::reset_color: Updated.
5017         * tmac/www.tmac: Updated.
5019         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5020         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5021         Updated.
5023         * tmac/Xps.tmac: Remove some redundant code.
5025         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5026         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5027         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5028         \f[].
5030 2002-04-13  Bernd Warken  <bwarken@mayn.de>
5032         * src/include/printer.h, src/libs/libdriver/printer.cc
5033         (printer::change_fill_color): New member function.
5034         * src/libs/libdriver/input.cc (parse_D_command): Use it.
5036 2002-04-12  Werner LEMBERG  <wl@gnu.org>
5038         * doc/groff.texinfo: Completed pass on gtroff reference.
5040 2002-04-11  Werner LEMBERG  <wl@gnu.org>
5042         * doc/groff.texinfo: More fixes.
5044 2002-04-11  Bernd Warken  <bwarken@mayn.de>
5046         * src/include/color.h: Decorate with `const'.
5047         Use `size_t'.
5048         Include `stddef.h'.
5049         * src/libs/libgroff.color.cc: Decorate with `const'.
5050         Use `size_t'.
5051         (color::color): Initialize members.
5052         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5053         command according to the documentation.
5055         * man/groff_out.man: Updated.
5056         Minor fixes.
5058 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
5060         * src/preproc/html/pre-html.cc (write_start_image): Remove
5061         redundant output.
5062         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5064         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5065         \C'hy' caused an assertion failure.
5067         * src/roff/troff/env.cc (environment::environment): Initialize
5068         `emitted_node'.
5069         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5071 2002-04-10  Werner LEMBERG  <wl@gnu.org>
5073         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5074         Document pvs request and .pvs register.
5076 2002-04-09  Werner LEMBERG  <wl@gnu.org>
5078         * doc/groff.texinfo: Improve and fix documentation of diversions
5079         and environments.
5081 2002-04-08  Werner LEMBERG  <wl@gnu.org>
5083         * doc/groff.texinfo: Fix documentation of drawing functions.
5084         Other minor fixes.
5086 2002-04-07  Werner LEMBERG  <wl@gnu.org>
5088         * doc/groff.texinfo: Better documentation of double quotes as
5089         arguments.
5090         Other minor fixes.
5092 2002-04-06  Werner LEMBERG  <wl@gnu.org>
5094         * man/groff_font.man: Document names of special characters better.
5095         * doc/groff.texinfo: Minor improvements.
5097         * tmac/lbp.tmac: Load latin1.tmac.
5098         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5100         * font/devX*/*: Regenerated (all chars > 0x80 removed).
5102 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5104         * tmac/tty.tmac: Don't use shc request.
5105         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5106         * NEWS: Updated.
5108         * man/groff_diff.man: Minor fixes.
5110         * font/devlbp/*: Remove all `charXXX' entities.
5112         * src/libs/libgroff/font.cc (font::~font): Deallocate
5113         `special_device_coding'.
5114         (font::load): Use `new' for allocating `special_device_coding'.
5115         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5116         Removed unused member.
5118 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5120         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5121         (resource_manager::do_begin_binary,
5122         resource_manager::do_begin_data): Use it.
5124         * doc/texinfo.tex: Updated to version 4.2.
5126         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5127         (token::zero_width_break): New inline function.
5128         * src/roff/troff/input.cc (token::next): Use it.
5129         (token::description): Updated.
5130         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5131         (token::add_to_node_list, token::process): Use it.
5132         * NEWS, doc/groff.texinfo: Updated.
5134         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5135         * tmac/tty.tmac: Add missing backslash.
5137 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
5139         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5140         `.ps' register instead of `.s' to handle fractional point sizes.
5141         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5142         limit_box::output): Ditto.
5143         * src/preproc/eqn/other.cc (size_box::compute_metrics,
5144         size_box::output): Ditto.
5145         * src/preproc/eqn/over.cc (over_box::compute_metrics,
5146         over_box::output): Ditto.
5147         * src/preproc/eqn/script.cc (script_box::compute_metrics,
5148         script_box::output): Ditto.
5149         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5150         sqrt_box::output): Ditto.
5152 2002-04-03  Michael Selway  <mas@ssl.co.uk>
5154         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5155         Fix typo.
5157 2002-04-03  Werner LEMBERG  <wl@gnu.org>
5159         * doc/homepage.ms: Reduce title size.
5160         * doc/groff.texinfo: Fix documentation of .t register.
5161         Fix handling of colon.
5162         Fix `\' vs. `\\'.
5164         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
5165         only if page length is positive to avoid a loop.
5167         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
5168         tbl.
5170 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
5172         * src/include/nonposix.h, src/roff/groff/pipeline.c:
5173         s/__CYGWIN32__/__CYGWIN__/.
5175 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
5177         * doc/gnu.xpm: New image contributed by Emily Mulley.
5178         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
5179         (homepage.html): Be dependent on gnu.eps.
5180         * doc/homepage.ms: Updated to new image.
5182         * src/devices/grohtml/post-html.cc (html_printer): New member
5183         `sbuf_prev_hpos'.
5184         (html_printer::flush_sbuf, html_printer::set_char): Set it.
5185         (html_printer::sbuf_continuation): Use it.
5187 2002-03-28  Werner LEMBERG  <wl@gnu.org>
5189         * src/libs/libgroff/getopt.c: Updated to latest version.
5191         * tmac/README: More on hyphen.tex license.
5193 2002-03-26  Larry Kollar  <kollar@alltel.net>
5195         * doc/groff.texinfo: Add documentation of most missing requests.
5197 2002-03-25  Werner LEMBERG  <wl@gnu.org>
5199         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
5200         of `+-', `mu', and `di', respectively.
5202         * font/devascii/R.proto, font/devutf8/R.proto,
5203         font/devlatin1/R.proto, font/devhtml/R.proto,
5204         font/devcp1047/R.proto, font/devlpb/*: Add them.
5205         * font/devps/generate/textmap: Ditto.
5206         * font/devps/*: Regenerated.
5207         * font/devlj4/generate/text.map: Add them.
5208         * font/devlj4/*: Regenerated.
5209         * font/devdvi/generate/tc.map: Use them.
5210         * font/devdvi/generate/texsy.map: Add them.
5211         * font/devdvi/*: Regenerated.
5212         * font/devX*/*: Regenerated.
5214         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
5215         tmac/tty-char.tmac: Updated.
5217         * NEWS, man/groff_char.man: Updated.
5219 2002-03-24  Werner LEMBERG  <wl@gnu.org>
5221         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
5222         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
5223         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
5224         we use `.fchar' in dvi.tmac.
5225         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
5226         * tmac/Xps.tmac: Simplify some char definitions.
5227         Add definition for \[f/].
5228         * man/groff_char.man: Updated for new X.tmac.
5230         * tmac/README: New file.
5232 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
5234         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
5235         internal .y.o rule took precendence over the .y.cc rule, compiling
5236         the yacc files with gcc instead of g++.
5238 2002-03-23  Werner LEMBERG  <wl@gnu.org>
5240         * tmac/dvi.tmac: Add replacement font for `CB'.
5242         * tmac/doc.tmac: s/request/macro/ in messages.
5243         (doc-generic-macro): Improve error message.
5244         * tmac/groff_mdoc.man: Minor improvements.
5246 2002-03-22  Werner LEMBERG  <wl@gnu.org>
5248         * doc/groff.texinfo: Document possible conflict between `tr' and
5249         `char' requests.
5251 2002-03-21  Werner LEMBERG  <wl@gnu.org>
5253         Improve handling of hyphenation patterns.  It is now possible to
5254         use most of TeX's pattern files unmodified.  To make the process
5255         more flexible, a new request `hpfcode' has been added which
5256         provides a character code mapping for the `hpf' request.  See
5257         comment before hpf_getc() for more details.
5259         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
5260         functions.
5261         (read_patterns_file): Additional parameter for exception dictionary.
5262         Extended to recognize \pattern, \hyphenation, and \endinput.
5263         (do_hyphenation_patterns_file): Updated.
5264         * src/roff/troff/env.h (hpf_code_table): New extern.
5266         * src/roff/troff/input.cc (hpf_code_table): New array.
5267         (init_hpf_code_table, hyphenation_patterns_file_code): New
5268         functions.
5269         (hyphenation_code): Handle translation from `trin' correctly.
5270         (main, init_input_requests): Updated.
5271         (charinfo::set_translation): Handle hyphenation code also.
5273         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
5274         inline function.
5276         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
5277         char' is used for offsets in hyphenation exceptions.
5279         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
5281         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5283 2002-03-20  Larry Kollar  <kollar@alltel.net>
5285         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
5286         requests.
5288 2002-03-18  Werner LEMBERG  <wl@gnu.org>
5290         * tmac/html.tmac: Fix serious typo.
5292 2002-03-17  Larry Kollar  <kollar@alltel.net>
5294         * doc/groff.texinfo: Add documentation for `writec' request.
5296 2002-03-17  Werner LEMBERG  <wl@gnu.org>
5298         Added request `hpfa' to append hyphenation patterns.
5300         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5301         parameter `append'.
5302         (hyphenation_patterns_file): Renamed to...
5303         (do_hyphenation_patterns_file): This.
5304         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
5305         functions.
5306         (init_hyphen_requests): Updated.
5307         * NEWS, man/groff.man, man/groff_diff.man: Document it.
5309 2002-03-16  Werner LEMBERG  <wl@gnu.org>
5311         Added request `writec' in analogy to `tmc'.
5313         * src/roff/troff/input.cc (write_request): Renamed to...
5314         (do_write_request): This.
5315         Added one parameter.
5316         (write_request, write_request_continue): New functions.
5317         (init_input_requests): Updated.
5318         * NEWS, man/groff.man, man/groff_diff.man: Document it.
5320         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
5321         5-10000pt.
5322         * NEWS: Document it.
5324 2002-03-15  Werner LEMBERG  <wl@gnu.org>
5326         * man/groff.man: Add writem request.
5328         Add request `trin' (translate input) to make `.asciify' work
5329         correctly.  This is necessary since `charXXX' entity names are no
5330         longer hardcoded in font definition files.
5332         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
5333         `translate_input' members.
5334         (charinfo::set_asciify_code, charinfo::get_asciify_code,
5335         charinfo::set_translation_input): New methods.
5336         (charinfo::set_translation): Add third argument.
5337         * src/roff/troff/input.cc (charinfo:set_translation): Set
5338         `asciify_code'.
5339         (do_translate): Add second argument.
5340         (translate_input): New function.
5341         (init_input_requests): Updated.
5342         * src/roff/troff/node.cc (glyph_node::asciify,
5343         composite_node::asciify): Use `get_asciify_code'.
5345         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
5347         * NEWS, man/groff.man, man/groff_diff.man: Updated.
5349 2002-03-14  Larry Kollar  <kollar@alltel.net>
5351         * doc/groff.texinfo: Improve documentation of .RS and .RE.
5353 2002-03-14  Werner LEMBERG  <wl@gnu.org>
5355         Add a new request `sizes' similar to the `sizes' command in DESC
5356         files.
5358         * src/roff/troff/env.cc (override_sizes): New function.
5359         (init_env_requests): Use it.
5360         * src/roff/troff/token.h: Export `read_string'.
5361         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5363 2002-03-12  Werner LEMBERG  <wl@gnu.org>
5365         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
5367 2002-03-10  Werner LEMBERG  <wl@gnu.org>
5369         * tmac/pspic.tmac: Add support for -Tdvi.
5370         * tmac/dvi.tmac: Include pspic.tmac.
5371         * src/devices/grodvi/grodvi.man: Document it.
5372         * NEWS: Updated.
5374         * font/devlj4/generate/Makefile: Fix URL of metric files.
5376 2002-03-09  Werner LEMBERG  <wl@gnu.org>
5378         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
5380 2002-03-09  Larry Kollar  <kollar@alltel.net>
5382         * tmac/groff_ms.man: Add documentation for RS and RE macros.
5384 2002-03-08  Werner LEMBERG  <wl@gnu.org>
5386         * doc/groff.texinfo: Fixes for texinfo 4.1.
5388 2002-03-07  Werner LEMBERG  <wl@gnu.org>
5390         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
5391         included.
5392         Handle CYGWIN properly.
5394 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
5396         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
5397         * tmac/lbp.tmac: Add some font translations.
5399 2002-03-02  Werner LEMBERG  <wl@gnu.org>
5401         * font/devcp1047/R.proto, font/devlatin1/R.proto,
5402         font/devhtml/R.proto: Remove `charXXX'  entries.
5403         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
5404         where appropriate.
5406         * font/devlj4/generate/text.map: Remove `charXXX' entries.
5407         * font/devlj4/*: Regenerated all font definition files.
5408         * tmac/lj4.tmac: Load latin1.tmac.
5410         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
5411         from 2000-06-17: LJ4 metric files are *not* text files.
5413         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
5414         register to test for EBCDIC.
5416 2002-03-01  Werner LEMBERG  <wl@gnu.org>
5418         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
5419         files (as grops already does).
5420         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
5421         files.
5422         * src/devices/grops/grops.man: Document comment lines in encoding
5423         files.
5425         * tmac/cp1047.tmac: New file.
5426         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
5427         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
5428         * tmac/Makefile.sub (NORMALFILES): Updated.
5430         * tmac/ec.tmac: Don't load latin1.tmac again.
5432         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
5433         font/devps/generate/dingbats.map,
5434         font/devps/generate/dingbats.rmap, font/devps/text.enc,
5435         font/devps/generate/Makefile (symbolmap): Add header comment.
5436         * font/devps/generate/textmap: Ditto.
5437         Remove `charXXX' entries.
5438         * font/devps/symbolmap: Regenerated.
5439         * font/devps/*: Regenerated all font definition files.
5441 2002-02-28  Werner LEMBERG  <wl@gnu.org>
5443         Add color support to grodvi (for drawing colors are currently
5444         translated to gray values).
5446         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
5447         (dvi_printer): Add `cur_color' member.
5448         (dvi_printer::set_color): New function.
5449         (draw_dvi_printer): Remove `fill'.
5450         (draw_dvi_printer::fill_next): Pass environment as parameter.
5451         Update code for new color support translated to gray.
5452         (dvi_printer::set_char): Updated.
5453         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
5454         changes crossing the page border.
5455         (dvi_printer::draw): Updated.
5456         Remove cases `f' and `F'.
5457         * tmac/dvi.tmac: Add color definitions.
5458         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5460         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
5461         used incorrectly.
5463         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
5464         versions of autoconf.
5465         * configure: Updated.
5467         * doc/homepage.ms: Use `.blm'.
5468         * tmac/www.tmac (www-depth): New auxiliary variable.
5469         (www-pop-level): Don't issue HTML tag.
5470         (ULS, ULE, LI): Use absolute indentation.
5472         * src/devices/grops/ps.cc (ps_printer::begin_page,
5473         ps_printer::end_page): Switch forth and back to default color while
5474         starting a new page.
5476 2002-02-27  Werner LEMBERG  <wl@gnu.org>
5478         Add EC and TC fonts to devdvi.
5480         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
5481         * font/devdvi/generate/cork.map: Renamed to...
5482         * font/devdvi/generate/ec.map: This.
5483         Remove entry for `aq'.
5484         * font/devdvi/generate/tc.map: New file.
5485         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
5486         EC and TC fonts.
5487         (FONTS): Updated.
5488         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
5489         * font/devdvi/Makefile.sub (DEVFILES): Updated.
5490         * tmac/ec.tmac: New file.
5491         * tmac/Makefile.sub (NORMALFILES): Updated.
5492         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5493         * man/groff_char.man: Check `ECFONTS' register.
5495         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
5497 2002-02-26  Werner LEMBERG  <wl@gnu.org>
5499         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
5500         * font/devdvi/generate/cork.map: Add 'y and 'Y.
5501         * font/devdvi/*: Updated.
5502         * tmac/dvi.tmac: Formatting.
5504         Add font `HBI' for the dvi output.
5505         Add support for font families `T' and `H'.
5507         * font/devdvi/HBI: New file.
5508         * font/devdvi/B: Renamed to ...
5509         * font/devdvi/TB: This.
5510         * font/devdvi/BI: Renamed to ...
5511         * font/devdvi/TBI: This.
5512         * font/devdvi/I: Renamed to ...
5513         * font/devdvi/TI: This.
5514         * font/devdvi/R: Renamed to ...
5515         * font/devdvi/TR: This.
5516         * font/devdvi/H: Renamed to ...
5517         * font/devdvi/HR: This.
5518         * font/devdvi/Makefile.sub (DEVFILES): Updated.
5519         * font/devdvi/generate/Makefile (HBI): New rule.
5520         (FONTS): Updated.
5521         (R, I, B, BI, H): Renamed to ...
5522         (TR, TI, TB, TBI, HR): This, respectively.
5523         (srcdir): Fixed.
5524         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5525         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
5526         Add `styles' and `family' keywords.
5527         * tmac/dvi.tmac: Alias `H' to `HR'.
5528         Add some fspecial requests for italic fonts.
5529         Add TR and TI as special.
5530         Add support for `_' with font CWI.
5532         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
5533         operator `:'.  Until now, the expression `0:1' would return 2
5534         instead of 1.
5536 2002-02-25  Werner LEMBERG  <wl@gnu.org>
5538         * man/groff_char.man: Added some missing PS glyph names (from the
5539         Adobe Glyph List).
5540         * font/devps/generate/textmap, font/devps/symbolmap: Add
5541         `arrowupdn'.
5543         * doc/groff.texinfo: Minor additions and fixes.
5544         * man/groff_diff.man: Remove documentation of fp request.  This
5545         is already covered in the original troff manual.
5546         Updated to be consistent with other doc files.
5547         * NEWS: Updated.
5549 2002-02-24  Werner LEMBERG  <wl@gnu.org>
5551         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
5552         TTYDEVDIRS.
5553         Define new variable OTHERDEVDIRS (containing `font/devlj4
5554         font/devlbp' if not EBCDIC).
5555         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
5556         (OTHERDEVDIRS): New variable.
5557         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
5558         * configure: Regenerated.
5560         * NEWS, src/devices/grotty/grotty.man: Updated.
5562 2002-02-23  Werner LEMBERG  <wl@gnu.org>
5564         * src/roff/troff/input.cc (do_overstrike, do_bracket,
5565         get_line_arg): Honour input level.
5567         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
5569         * font/*/*: Implement it in all font files.
5570         * font/devps/generate/textmap, font/devps/generate/symbolchars,
5571         * font/devps/symbolmap: Updated.
5572         * font/devlj4/generate/text.map: Updated.
5573         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
5574         * font/devdvi/generate/texmi.map: Updated.
5576         * font/devutf8/R.proto: Remove all `charXXX' entries.
5577         * font/devutf8/NOTES: Updated.
5579         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
5580         version 4.1.0.
5582         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
5584         * NEWS, man/groff_char.man: Updated.
5586 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
5588         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
5590 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5592         * src/roff/grog/grog.pl: Fix computation of $refer.
5594 2002-02-19  Werner LEMBERG  <wl@gnu.org>
5596         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
5597         `snprintf' and `vsnprintf'.
5599         * src/include/htmlindicate.h: Renamed to...
5600         * src/include/htmlhint.h: This.
5601         * src/include/Makefile.sub: Updated.
5602         * src/preproc/eqn/main.cc: Updated.
5604 2002-02-18  Werner LEMBERG  <wl@gnu.org>
5606         * man/roff.man, man/groff_out.man, man/groff.man,
5607         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
5608         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
5610         * win32-diffs: Updated.
5612 2002-02-17  Werner LEMBERG  <wl@gnu.org>
5614         * doc/Makefile (clean): Add *.eps.
5615         (MEMACROS): Removed.
5616         (TFLAG): New variable.
5617         (TROFF): Use it.
5618         Add -ww.
5619         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
5620         (.me.dit): Fixed.
5621         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
5623         * tmac/www.tmac: Use dummy diversion while resetting and disabling
5624         `.tl'.
5625         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
5626         unstripped.
5627         * src/roff/troff/troff.man: Fix order of parameter description.
5629         * NEWS: Updated.
5631 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
5633         Simplify image handling for grohtml.
5634         Fix <p> bug.
5636         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
5637         comment out.
5638         (html_text::dump_stack): Don't emit newline while debugging.
5639         (html_text::do_push) [DEBUGGING]: Print more info.
5640         (html_text::check_emit_text): Fix handling of <p>.
5641         * src/devices/grohtml/html.h: Updated.
5642         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
5643         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
5644         send its data to stderr also.
5645         Update all callers.
5646         (simple_output::space_or_newline) [DEBUGGING]: Removed.
5647         * src/devices/grohtml/post-html.cc (html_printer::do_links,
5648         html_printer::html_printer): Remove `DEBUGGING' conditionals.
5650         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
5651         Removed.
5652         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
5653         is_inline_image): Removed.
5654         (html_begin_suppress, html_end_suppress): Don't take a parameter.
5655         (graphic_start, graphic_end): Removed.
5656         * src/include/htmlindicate.h: Updated.
5657         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
5658         (macroset_template): New global variable.
5659         (makeFileName): Use `macroset_template'.
5660         (write_end_image): Don't take a parameter.
5661         Don't emit newline.
5662         (write_start_image: Don't emit newline.
5663         (char_buffer::write_upto_newline): Updated.
5664         (char_buffer::skip_to_newline): Renamed to ...
5665         (char_buffer::skip_until_newline): This.
5666         Fix code.
5667         (char_buffer::write_file_troff, char_buffer::write_file_html):
5668         Simplified.
5669         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
5670         (removeAllPages): Remove `DEBUGGING' conditionals.
5671         (addRegDef, dump_args): New functions.
5672         (char_buffer::do_html, char_buffer::do_image): Handle
5673         `www-image-template' command line variable.
5674         Add more debugging code.
5675         (addps4html): Removed.
5676         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
5678         * src/preproc/eqn/main.cc: Include `ctype.h'.
5679         (suppress_html): Removed.
5680         (do_file): Updated.
5681         (inline_equation): Use `html_begin_suppress' and
5682         `html_end_suppress'.
5683         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
5684         (troff_output::start_picture, troff_output::finish_picture):
5685         Updated.
5686         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
5687         (process_input_file): Updated.
5689         * src/roff/troff/div.cc (page_number): Set page number only if the
5690         `ps4html' register isn't defined.
5691         * src/roff/troff/input.cc (image_no): New external variable.
5692         (do_suppress): Use it.
5693         * src/roff/troff/node.h (suppress_node::image_id): New member.
5694         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
5695         (suppress_node::suppress_node): Initialize `image_id' member.
5696         (suppress_node::same): Handle `image_id' also.
5697         (suppress_node::copy): Updated.
5698         (last_image_id): New global variable.
5699         (suppress_node::tprint): Use it.
5701         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
5702         HTML-IMAGE-END.
5703         * tmac/pspic.mac (PSPIC): Fix html support.
5704         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
5705         * tmac/www.tmac (www-image-template): Set up.
5706         (HTMLINDEX): Renamed to...
5707         (HX): This.
5708         (BODYCOLOR): Renamed to...
5709         (BCL): This.
5710         (BACKGROUND): Renamed to...
5711         (BGIMG): This.
5712         (URL): Change order of parameters for consistency.
5713         (MAILTO): Renamed to...
5714         (MTO): This.
5715         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
5716         (IMG, PIMG, MPIMG): This.
5717         (HTML-H-BEGIN, HTML-H-END): Renamed to...
5718         (HnS, HnE): This.
5719         (LINKS): Renamed to...
5720         (LK): This.
5721         (LINE): Renamed to...
5722         (HR): This.
5723         (NO-AUTO-RULE): Renamed to...
5724         (NHR): This.
5725         (HTML-TL): Renamed to...
5726         (HTL): This.
5727         (UL-BEGIN, UL-END): Renamed to...
5728         (ULS, ULE): This.
5729         (DROPCAP): Renamed to...
5730         (DC): This.
5731         (TS, TE, EQ, EN): Provide default definitions.
5732         (www-make-unique-name): Updated.
5733         (HTML-IMAGE-INLINE): Fix typo.
5734         * tmac/groff_www.man: Updated.
5736         * doc/Makefile (homepage.html): Add option -r to grohtml.
5737         Use shortened image name.
5738         * doc/groff.texinfo: Updated info on grohtml strings and macros.
5739         * doc/homepage.ms: Updated and extended.
5741 2002-02-14  Werner LEMBERG  <wl@gnu.org>
5743         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
5745         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
5746         SGR_BACK_DEFAULT_COLOR): Replaced with ...
5747         (tty_printer::put_color): Use it.
5748         (ttr_printer::end_page): Simplify.
5750 2002-02-13  Werner LEMBERG  <wl@gnu.org>
5752         * tmac/groff_tmac.man: Moved to...
5753         * man/groff_tmac.man: This place.
5754         * tmac/Makefile.sub, man/Makefile.sub: Updated.
5756 2002-02-12  Werner LEMBERG  <wl@gnu.org>
5758         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
5759         $(COMPILE.c) to not include groff's assert.h.
5761         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
5762         variable.
5763         * NEWS, src/drivers/grotty/grotty.man: Document it.
5765 2002-02-11  Werner LEMBERG  <wl@gnu.org>
5767         * src/libs/snprintf/snprintf.c: Updated to latest version
5768         (2002-02-11).
5770         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
5771         test whether there is `.]' also.
5772         Don't check for spaces after `.['.
5773         * src/roff/grog/grog.sh: Do the same.
5775 2002-02-10  Werner LEMBERG  <wl@gnu.org>
5777         Illegal -> Invalid.
5779         * src/libs/libgroff/illegal.cc: Renamed to ...
5780         * src/libs/libgroff/invalid.cc: This.
5781         (illegal_char_table): Renamed to ...
5782         (invalid_char_table): This.
5783         * src/libs/libgroff/Makefile.sub: Updated.
5784         * win32-diffs: Updated.
5786         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
5787         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
5788         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
5789         font::load), src/preproc/eqn/main.cc (read_line, main),
5790         src/preproc/eqn/lex.cc (file_input::read_line),
5791         src/preproc/pic/lex.cc (file_input::read_line,
5792         simple_file_input::get, simple_file_input::peek),
5793         src/preproc/pic/main.cc (top_input::get, top_input::peek),
5794         src/preproc/pic/pic.man, src/preproc/refer/main.cc
5795         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
5796         do_bib), src/preproc/tbl/main.cc (table_input::get),
5797         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
5798         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
5799         do_zero_width, read_request, encode_char, ps_get_line,
5800         transparent_file, get_char_for_escape_name, transparent_translate,
5801         asciify, input_char_description, read_string, set_string),
5802         src/roff/troff/env.cc (environment::add_html_tag),
5803         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
5805         * src/include/lib.h: Updated.
5807         * src/preproc/eqn/eqn.cc: Removed.
5809         * NEWS: Updated.
5811         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
5813 2002-02-09  Werner LEMBERG  <wl@gnu.org>
5815         * doc/gnu.xpm: New image.
5816         * doc/Makefile (DOCS): Add homepage.ps.
5817         Add rules for converting xpm->png and xpm->eps.
5818         Use `gnu.{xpm,eps}' as image names.
5819         * doc/homepage.ms: Updated.
5821 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
5823         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
5824         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
5825         Remove calls to `B1' and `B2'
5826         (PNG-IMAGE): New macro for inclusion of images in PNG format.
5827         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
5828         auxiliary variables for MARGIN-PNG-IMAGE.
5829         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
5830         auxiliary macros for MARGIN-PNG-IMAGE.
5831         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
5832         the margin.
5833         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
5834         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
5835         (DROPCAP): New macro to produce dropcap characters.
5836         (www-do-image): Renamed back to...
5837         (HTML-DO-IMAGE): This.
5838         Updated all callers.
5840         * doc/Makefile (gnubw.eps): Updated.
5841         * doc/homepage.ms: Updated.
5843 2002-02-08  Werner LEMBERG  <wl@gnu.org>
5845         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
5846         Added `linethick' to table in section `Style Variables'.
5848 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
5850         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
5852 2002-02-07  Werner LEMBERG  <wl@gnu.org>
5854         Adding options -C (compatibility mode) and -c (grotty's old output
5855         scheme) to nroff.
5857         * src/roff/nroff/nroff.sh: Implement it.
5858         Remove `-Wall'.
5859         * NEWS, src/roff/nroff/nroff.man: Updated.
5861         * PROBLEMS: Document bison 1.32 bug.
5863         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
5865         * src/roff/troff/node.cc (make_tfont): Define it earlier.
5866         * src/roff/troff/div.h: Add prototype for `end_diversions'.
5867         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
5868         * src/roff/troff/env.h: Add prototype for `title'.
5870         Adding EBCDIC support to grotty.
5872         * src/devices/grotty/tty.cc (CSI): New macro.
5873         (SGR_*, tty_printer::put_color): Use it.
5875 2002-02-06  Werner LEMBERG  <wl@gnu.org>
5877         Implementing color support in grotty.  The new switch -c activates
5878         the old drawing scheme, disabling color at the same time.  The new
5879         switch `-i' selects italic instead of underlining (SGR only).
5881         * src/devices/grotty/tty.cc (putstring): New define instead of
5882         `fputs'.  Updated all callers.
5883         (old_drawing_scheme): New global variable.
5884         (COLOR_CHANGE): New enum value.
5885         (SGR_*): New defines containing color handling escape sequences.
5886         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
5887         (glyph): New members `back_color_idx' and `fore_color_idx'.
5888         (glyph::order): Add COLOR_CHANGE.
5889         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
5890         `is_underline', `is_bold', `cu_flag', `tty_colors'.
5891         New methods `make_underline', `make_bold', `color_to_idx',
5892         `change_color', `put_color'.
5893         (cu_flag): Moved into `tty_printer' class.
5894         (tty_printer::tty_printer): Initialize colors.
5895         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
5896         tty_printer::draw, tty_printer::end_page): Handle colors also.
5897         (main): Add options `-c' and `-i'.
5898         (usage): Updated.
5899         * NEWS, src/devices/grotty/grotty.man: Updated.
5901         * src/include/errarg.h (errarg): Add support for `unsigned int'.
5902         * src/libs/libgroff/errarg.c: Implement it.
5904         * src/include/printer.h (printer): Add `change_color' method
5905         (currently used by grotty only).
5906         * src/libs/libdriver/printer.cc: Implement it.
5907         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
5908         call to `pr->change_color'.
5910         * src/roff/troff/node.cc (troff_output_file::fill_color,
5911         troff_output_file::glyph_color): Call `do_motion'.
5913         * tmac/tty.tmac: Add color definitions.
5915         * src/roff/groff/groff.man: Minor fixes.
5917 2002-02-05  Bernd Warken  <bwarken@mayn.de>
5919         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
5920         it.  This is a preparation for future changes.
5922 2002-02-05  Werner LEMBERG  <wl@gnu.org>
5924         * src/roff/troff/input.cc (process_input_stack): Fix the case
5925         where leading spaces are followed by \f or \s; previously, an
5926         incorrect space width has been used.
5928         * doc/roff.man (quoted_char): Fix argument.
5929         (comment): Define string.
5931 2002-02-04  Larry Kollar  <kollar@alltel.net>
5933         * doc/groff.texinfo: More fixes.
5935 2002-02-04  Werner LEMBERG  <wl@gnu.org>
5937         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
5938         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
5939         `restore_compatibility' before `output_string' -- the LINE_STRING
5940         register now already contains proper switches from and to
5941         compatibility mode.
5943         * man/groff_char.man: Add Euro symbol.
5944         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
5945         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
5946         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
5947         Other minor fixes.
5949         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
5950         texinfo->pdf.
5951         (.texinfo.html): Add support for texinfo->html.
5953 2002-02-03  Werner LEMBERG  <wl@gnu.org>
5955         Added three new requests `ds1', `as1', and `ami'.  The former two
5956         are equivalent to `ds' and `as' with the difference that
5957         compatibility mode is saved on entry, switched off during string
5958         expansion, and restored on exit.  The latter is the pendant to `dei'
5959         for `am'.
5961         (do_define_string): Use `define_mode' and `calling mode'.
5962         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
5963         end of string, respectively.
5964         (define_string, append_string): Use `calling_mode'.
5965         (define_nocomp_string, append_nocomp_string,
5966         define_string_indirect): New functions.
5967         (init_input_requests): Updated.
5968         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5970         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
5971         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
5972         mm macro package accesses this string register directly.
5973         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
5975         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
5976         compatibility mode.
5978 2002-02-02  Larry Kollar  <kollar@alltel.net>
5980         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
5982 2002-01-31  Werner LEMBERG  <wl@gnu.org>
5984         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
5986 2002-01-31  Bernd Warken  <bwarken@mayn.de>
5988         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
5989         * man/groff_out.man: Revised and updated.
5991 2002-01-30  Bernd Warken  <bwarken@mayn.de>
5993         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
5994         out the unused `{' and `}' commands.  Undefined by default.
5995         (IntArray): Make `data' private.
5996         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
5997         new methods instead.
5998         (skip_line_D, skip_to_end_of_line): New functions.
5999         (get_D_fixed_args): Use `skip_line_D'.
6000         Changed to handle dummy odd arguments by ...
6001         (get_D_fixed_args_odd_dummy): This new function.
6002         (get_D_variable_args): Split some code into ...
6003         (get_possibly_integer_args): This new function.
6004         (send_draw): Use more `const'.
6005         (delete_current_env): New function.
6006         (position_to_end_of_args): Use `size_t'.
6007         Updated.
6008         (send_draw): Updated.
6009         (parse_D_command): Handle `c', `C', and `t' better.
6010         Updated.
6011         (do_file): Updated.
6013 2002-01-29  Werner LEMBERG  <wl@gnu.org>
6015         * NEWS: Revised.
6016         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6017         @Def...ListEnd which replaces @Def...x.  This is necessary to get
6018         proper HTML output -- see the comment in the file for more
6019         information.
6020         Updated all calls.
6022 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
6024         Fixes to make color changes of 2002-01-21 work with grohtml.
6026         * src/devices/grohtml/post-html.cc (style): Updated.
6027         (html_printer): Remove unused methods.
6028         (html_printer::do_font, html_printer::draw, html_printer::set_char,
6029         html_printer::special): Updated.
6030         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6031         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6032         Added some debugging code.
6033         (html_text::start_tag): Updated.
6034         (html_text::do_push): New method.
6035         (html_text::push_para): Call it.
6036         Add method for handling color.
6037         (html_text::do_color): Updated.
6038         (html_text::shutdown): Handle color.
6039         * src/devices/grohtml/html-text.h (tag_definition): New member
6040         `col'.
6041         Updated.
6043 2002-01-28  Werner LEMBERG  <wl@gnu.org>
6045         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6047 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
6049         Add two switches -a and -g to control the antialiasing bits for
6050         text and graphics, respectively.
6052         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6053         `-g'.
6054         * src/devices/grohtml/grohtml.man: Document them.
6055         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6056         New macros.
6057         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6058         (setupAntiAlias): New function.
6059         (createAllPages): Updated.
6060         (scanArguments): Handle `-a' and `-g'.
6061         (main): Call `setupAntiAlias'.
6062         * NEWS: Updated.
6064 2002-01-27  Werner LEMBERG  <wl@gnu.org>
6066         * doc/groff.texinfo (Def*): Call index function after deffn.
6068         * tmac/html.tmac: Call `nroff' request.
6070 2002-01-26  Larry Kollar  <kollar@alltel.net>
6072         * tmac/groff_ms.man: Add some omissions.
6074 2002-01-25  Larry Kollar  <kollar@alltel.net>
6076         * tmac/groff_ms.man: Typographical improvements.
6078 2002-01-25  Werner LEMBERG  <wl@gnu.org>
6080         * doc/groff.texinfo: Updated version and copyright.
6081         * src/devices/grops/grops.man: Updated.
6083         * tmac/groff_tmac.man: Fix `ig' macro.
6085         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6086         nroff mode.
6087         Use `.ne' unconditionally everywhere.
6088         (TS): Only insert some vertical space.  Doing a page break is no
6089         longer necessary due to the redefinition of the `ne' request.
6091         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6092         warning for unknown subcommands but parse and pass them to the
6093         device driver.
6095 2002-01-24  Werner LEMBERG  <wl@gnu.org>
6097         * tmac/groff_www.man, NEWS: Fix typos.
6099 2002-01-21  Werner LEMBERG  <wl@gnu.org>
6101         Complete revision of color support:
6103           Adapt programs to the new libdriver/input.cc.
6105           Color spaces are no longer converted to RGB but transferred as-is
6106           in the troff intermediate output format.
6108           Handle default color gracefully.  troff now supports a `default'
6109           color (which can't be changed).
6111           grops will now use the proper color space functions if available.
6113           Update pic.
6115         Note that currently grohtml doesn't handle colors properly.  This
6116         has to be fixed.
6118         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6119         (ui_to_a): New function.
6120         * src/include/lib.h: Updated.
6122         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6123         (color): Simplified; removed all `double' members and methods.
6124         A new array `components' now holds the color parameters.
6125         (color::is_default, color::get_components): New methods.
6126         (color::operator==, color:operator!=): New.
6127         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6128         to make access to the `components' array more comprehensible.
6129         * src/libs/libgroff/color.cc: Implement new color support.
6130         (atoh): Small fixes.
6131         (color::read_encoding): Simplified for new troff intermediate color
6132         output format.
6133         (default_color): New global variable.
6135         * src/roff/troff/input.cc (default_symbol): New global variable.
6136         (lookup_color): Use it.
6137         (default_black): Removed.
6138         (do_glyph_color, do_fill_color): Simplified.
6139         (define_color): Handle default color.
6140         Improve warnings.
6141         (do_if_request): Handle default color.
6142         * src/roff/troff/env.cc (environment::environment): Initialize
6143         colors with `default_color'.
6144         * src/roff/troff/node.cc (troff_output_file::put): Add method
6145         for `unsigned int'.
6146         (troff_output_file::hex): Removed.
6147         (troff_output_file::fill_color, troff_output_file::glyph_color):
6148         Updated to include/color.h and libdriver/input.cc.
6150         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6151         fill color properly (identically to the outline color).  \D'f...'
6152         doesn't work any more.
6153         All function calls to it updated.
6155         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6156         Updated.
6157         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6158         Updated.
6160         * src/devices/grops/ps.cc (ps_output::put_color): New method.
6161         (ps_printer::sbuf_color): Make a real member instead of pointer.
6162         (ps_printer::fill_color, ps_printer::output_color): Removed.
6163         (ps_printer::ps_printer): Updated.
6164         (ps_printer::set_char): Ditto.
6165         (ps_printer::set_color): Use various color schemes.
6166         Use `put_color' method.
6167         (ps_printer::flush_sbuf): Don't set color.
6168         (ps_printer::fill_path): Take `environment' as parameter.
6169         Simplify color handling.
6170         (ps_printer::set_line_thickness): Renamed to ...
6171         (ps_printer::set_line_thickness_and_color): This (and updated).
6172         (ps_printer::set_color): Change second parameter from `complete'
6173         to `fill' which better describes what it does.
6174         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
6175         and text in the right order.
6176         Updated.
6177         Remove branches for `f' and `F'; this is handled by
6178         libdriver/input.cc.
6179         * src/devices/grops/ps.h: Updated.
6180         * font/devps/prologue (FL): Redefined.
6181         ({F,C}r,k,g: New color functions (with and without filling).
6183         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
6184         * man/groff_diff.man, man/groff.man, man/groff_out.man,
6185         doc/groff.texinfo, NEWS: Updated.
6187 2002-01-20  Bernd Warken  <bwarken@mayn.de>
6189         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
6190         in this file for what has been changed.
6192 2002-01-19  Werner LEMBERG  <wl@gnu.org>
6194         * test-groff: Fix GROFF_FONT_PATH.
6195         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
6196         is read before .TH or .Dd is parsed.
6198 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
6200         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
6201         quadrant boundaries.
6203 2002-01-18  Werner LEMBERG  <wl@gnu.org>
6205         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
6206         applied last patch.
6208 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
6210         * tmac/doc.common: Initialize %I register for the %I macro to
6211         avoid (harmless) warning.
6212         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
6213         when in the SYNOPSIS section.
6215 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
6217         * src/preproc/pic/lex.cc (get_token): Fix typo.
6219 2002-01-17  Werner LEMBERG  <wl@gnu.org>
6221         * devices/grops/ps.cc: Fix incorrectly applied last patch.
6223 2002-01-17  Larry Kollar  <kollar@alltel.net>
6225         * tmac/groff_ms.man: Completely rewritten.
6227 2002-01-16  Werner LEMBERG  <wl@gnu.org>
6229         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
6231 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
6233         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
6234         fill colors.
6235         (ps_printer::draw): Ditto.
6237 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
6239         * tmac/groff_mdoc.man: Minor fixes.
6241 2002-01-13  Werner LEMBERG  <wl@gnu.org>
6243         * man/groff_out.man: Some fixes.
6245 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
6247         * doc/pic.ms: Fix typos.
6249 2002-01-12  Werner LEMBERG  <wl@gnu.org>
6251         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
6253 2002-01-10  Werner LEMBERG  <wl@gnu.org>
6255         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
6256         symbols.
6257         * NEWS: Updated.
6259 2002-01-09  Bernd Warken  <bwarken@mayn.de>
6261         * man/groff_out.man: Revised.
6262         * man/roff.man: Minor fixes.
6263         * src/roff/troff/troff.man: Some reordering.
6265 2002-01-09  Werner LEMBERG  <wl@gnu.org>
6267         * tmac/an-old.tmac: Add dummy macros for equation support.
6269 2002-01-07  Werner LEMBERG  <wl@gnu.org>
6271         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
6273         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
6274         man pages.
6275         * tmac/groff_man.man: Small improvements.
6277 2002-01-07  Bernd Warken  <bwarken@mayn.de>
6279         * man/groff_diff.man: Revised.
6281 2002-01-06  Werner LEMBERG  <wl@gnu.org>
6283         * tmac/www.tmac: Remove extraneous backslash.
6285 2002-01-06  Bernd Warken  <bwarken@mayn.de>
6287         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
6289 2002-01-05  Werner LEMBERG  <wl@gnu.org>
6291         Integrated groffer, contributed by Bernd Warken.
6293         * contrib/groffer/*: New.       
6294         * Makefile.in, NEWS: Updated.
6296 2002-01-04  Werner LEMBERG  <wl@gnu.org>
6298         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
6299         registers defined in macro packages.
6300         Revising the ms part.
6302 2002-01-04  Larry Kollar  <kollar@alltel.net>
6304         * doc/groff.texinfo: Add documentation for ms macros.
6306 2002-01-02  Werner LEMBERG  <wl@gnu.org>
6308         First step in adding PS support for the Euro symbol.  `eu' is the
6309         official Euro logo, `Eu' is a font-specific glyph variant.
6311         * font/devps/text.enc: Add `Euro' at position 9.
6312         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
6313         * font/devps/symbolmap: Regenerated.
6315         * NEWS: Updated.
6317 2002-01-02  Bernd Warken  <bwarken@mayn.de>
6319         * man/roff.man: Revised.
6321 2002-01-01  Bernd Warken  <bwarken@mayn.de>
6323         * src/roff/groff/groff.man: Completely rewritten.
6325 2001-12-31  Werner LEMBERG  <wl@gnu.org>
6327         * doc/Makefile: Updated.
6329 2001-12-30  Werner LEMBERG  <wl@gnu.org>
6331         * tmac/www.tmac: Make all names of internal macros/registers/strings
6332         lowercase, and prepend `www-'.
6333         Other minor changes.
6334         * src/roff/troff/troff.man: Add preprocessor string at BOF.
6336 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
6338         Implement option `-b' in grohtml to set the HTML background colour.
6340         * src/devices/grohtml/post-html.cc (default_background): New global
6341         variable.
6342         (html_printer::html_printer): Initialize `background' to
6343         `default_background'.
6344         (main): Implement option `-b'.
6345         (usage): Updated.
6346         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
6347         of `-b' option.
6348         * src/devices/grohtml/grohtml.man: Updated.
6349         * doc/Makefile (.ms.html): Use `-b'.
6350         * tmac/html.tmac: Don't set background color.
6352         Add new grohtml tag `.html-tl'.
6354         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
6355         member variable.
6356         (title_desc::title_desc): Updated.
6357         (html_printer::troff_tag): Handle `.html-tl'.
6358         (html_printer::write_title): Use `with_h1'.
6359         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
6360         (HTML-TL): New macro.
6362         Add support for unordered lists in HTML.
6364         * tmac/www.tmac (www-level): New auxiliary register.
6365         (www-level1, www-level2, www-level3): New auxiliary strings.
6366         (www-push-level, www-pop-level): New auxiliary macros
6367         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
6369         Miscellaneous.
6371         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
6372         (DEFAULT_VERTICAL_OFFSET): Removed.
6373         (IMAGE_BOARDER_PIXELS): Set to 0.
6374         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
6375         (vertical_offset): Initialize with 0.
6376         (gsPaper): New global variable.
6377         (get_resolution): Scan for and return unsigned int.
6378         (get_papersize): New function to get paper length from devps/DESC.
6379         (determine_vertical_offset): New function.
6380         (createAllPages): Produce gray-level images and use proper page
6381         length.
6382         (createImage): Use `-quiet' option of pnmcrop.
6383         (addZ): Fix passing of `-Z'.
6384         (scanArguments): Fix handling of `-o'.
6385         (main): Call `determine_vertical_offset'.
6386         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
6387         code for `l'.
6389         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
6390         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
6391         glyph descenders properly.
6393         * doc/homepage.ms: Include `gnubw.eps'.
6394         * doc/Makefile (gnubw.eps): New rule.
6395         (homepage.html): Depend on `gnubw.eps'.
6397 2001-12-25  Werner LEMBERG  <wl@gnu.org>
6399         * src/roff/troff/input.cc (default_black): Fix return value.
6401 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
6403         * tmac/doc-common (Dt): Change output of architecture strings.
6404         Do some syntax cleanup.
6405         * tmac/groff_mdoc.man: Updated.
6407 2001-12-23  Werner LEMBERG  <wl@gnu.org>
6409         Adding an `itc' request (input line trap accepting \c).
6411         * src/roff/troff/env.h (environment): New member
6412         `continued_input_trap'.
6413         Make `do_input_trap' a friend function instead of `input_trap'.
6414         * src/roff/troff/env.cc (environment::environment,
6415         environment::copy): Updated.
6416         (environment::newline): Implement it.
6417         (do_input_trap): New function.
6418         (input_trap): Call `do_input_trap'.
6419         (input_trap_continued): New function.
6420         (init_env_requests): Updated.
6421         * src/roff/troff/TODO: Updated.
6423         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
6424         `.it'.
6426         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
6428 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
6430         * tmac/doc-common, tmac/doc-syms: Small updates.
6432 2001-12-22  Colin Watson  <cjwatson@debian.org>
6434         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
6436 2001-12-22  Bernd Warken  <bwarken@mayn.de>
6438         * MANIFEST: New file.
6440 2001-12-22  Werner LEMBERG  <wl@gnu.org>
6442         * src/preproc/grn/grn.man: Updated.
6444 2001-12-22  Solar Designer  <solar@openwall.com>
6446         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
6447         (DBRead): Use it.
6449 2001-12-19  Werner LEMBERG  <wl@gnu.org>
6451         Implement a fallback character request `.fchar'.
6453         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
6454         (is_fallback): New inline function.
6455         * src/roff/troff/input.cc (do_define_character): New function.
6456         (define_character): Call `do_define_character'.
6457         (define_fallback_character): New function.
6458         (init_input_requests): Add `fchar'.
6459         (charinfo::charinfo): Updated.
6460         (charinfo::set_macro): New argument to set `fallback' flag.
6461         * src/roff/troff/node.cc (make_glyph_node, make_node,
6462         node::add_char): Check `fallback' flag.
6463         * NEWS, man/groff_diff.man, man/groff_man: Updated.
6465 2001-12-16  Werner LEMBERG  <wl@gnu.org>
6467         * groff.texinfo: Document exact search algorithm for glyphs.
6469 2001-12-15  Werner LEMBERG  <wl@gnu.org>
6471         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
6472         the left side of $(MANPAGES) rule to make it always non-empty.
6474 2001-12-14  Werner LEMBERG  <wl@gnu.org>
6476         * src/roff/troff/input.cc (default_black): Define default color
6477         `black' if not yet defined.
6479 2001-12-13  Werner LEMBERG  <wl@gnu.org>
6481         Implement new string-valued register `.fn' to return the current
6482         real (internal) font name.
6484         * env.cc (environment::get_font_name_string): New function.
6485         (init_env_requests): Add `.fn' register.
6486         * env.h (environment): Updated.
6487         * node.cc (font_info): Make `get_font_name' a friend.
6488         (get_font_name): New function.
6489         * node.h: Updated.
6491         * man/groff_diff.man, man/groff.man, NEWS: Updated.
6493 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6495         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
6497 2001-12-12  Werner LEMBERG  <wl@gnu.org>
6499         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
6501 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
6503         * man/groff_diff.man: Adding documentation for \O.
6505 2001-12-10  Werner LEMBERG  <wl@gnu.org>
6507         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
6508         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
6510 2001-12-09  Werner LEMBERG  <wl@gnu.org>
6512         * man/roff.man: Revised.
6513         * src/roff/groff/groff.man: Replace man page references with a
6514         pointer to roff.man.
6516 2001-12-09  Bernd Warken  <bwarken@mayn.de>
6518         * man/roff.man: Completely rewritten.
6520 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6522         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
6524 2001-12-05  Werner LEMBERG  <wl@gnu.org>
6526         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
6527         longer used.
6528         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
6529         order of initializers.
6530         * NEWS: Updated.
6532 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
6534         * doc/groff.texinfo: Fix documentation of \O.
6536         * src/devices/grohtml/html-text.cc (html_text::do_indent,
6537         html_text::do_table, html_text::do_emittext, html_text::do_para):
6538         Use `const' for first argument.
6539         (html_text::do_table): Use cast.
6540         * src/devices/grohtml/html-text.h: Updated.
6541         * src/devices/grohtml/output.cc (simple_output::put_string): Add
6542         method for `const string &s'.
6543         * src/devices/grohtml/html.h: Updated.
6544         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
6545         (ANCHOR_TEMPLATE): Modified.
6546         (manufacture_headings): New global variable to handle `-h' option.
6547         (is_subsection): Removed.
6548         (char_buffer::add_string): Add `const' to first argument.
6549         Protect against invalid string argument.
6550         Add method for `const string &s'.
6551         (text_glob): Completely redesigned.
6552         (page): Use `const' for strings and remove string length variable.
6553         (page::add_html): Removed.
6554         (page::add_end_encode): New member function.
6555         (to_unicode): Moved upwards.
6556         (title_desc, header_desc): Updated.
6557         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
6558         definition.
6559         (html_printer::is_bold, html_printer::make_bold): New member
6560         functions.
6561         (html_printer::end_of_line): Updated.
6562         (generate_img_src, html_printer::do_auto_image,
6563         html_printer::do_title, html_printer::write_header,
6564         html_printer::determine_header_level, html_printer::do_heading,
6565         html_printer::do_linelength, html_printer::do_pageoffset,
6566         html_printer::do_indentation, html_printer::do_tempindent,
6567         html_printer::do_indentedparagraph, html_printer::do_break,
6568         html_printer::flush_sbuf, get_html_translation,
6569         html_printer::begin_page, html_printer::special): Rewritten to get
6570         rid of static string length limit.
6571         (html_printer::troff_tag): Added `.no-auto-rule'.
6572         (html_printer::flush_globs): Small fix.
6573         (html_printer::determine_space): Don't compute `space_width'.
6574         (html_printer::translate_to_html): Renamed to ...
6575         (html_printer::emit_html): This (with updates).
6576         (html_printer::write_header): Implement `-h' option.
6577         (html_printer::draw): Remove commented-out code.  Handle `F'
6578         command.
6579         (html_printer::add_char_to_sbuf): Removed.
6580         (html_printer::add_to_sbuf): Rewritten.
6581         (html_printer::sbuf_continuation): Fixed.
6582         (html_printer::seen_backwards_escape, reverse,
6583         html_printer::remove_last_char_from_sbuf): Removed.
6584         (char_translate_to_html, str_translate_to_html): Removed.
6585         (html_printer::overstrike): New function member.
6586         (html_printer::set_char): Use it.
6587         (html_printer::do_body): New function member.
6588         (html_printer::~html_printer): Use it.
6589         (main): Handle `-h' option.
6590         (usage): Updated.
6591         * src/devices/grohtml/grohtml.man: Document -h switch.
6593         * src/preproc/html/pre-html.cc: Include searchpath.h
6594         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
6595         (get_resolution): New function.
6596         (checkImageDir): Use `0777' permissions in mkdir()
6597         (write_start_image): Rewritten to use `\O[5...]'.
6598         (createImage, generateImages): Updated.
6599         (main): Handle `F' and `h' options.
6600         Use `get_resolution'.
6602         * src/roff/troff/input.cc (begin, end, image): Removed.
6603         (do_suppress): Take parameter.
6604         Handle modified syntax of `\O'.
6605         (token::next): Updated.
6606         (init_markup_requests): Removed.
6607         (main): Updated.
6609         * src/roff/troff/div.h: Add declaration for begin_page().
6611         * tmac/color-html.tmac: Removed.  Contents moved to...
6612         * tmac/html.tmac: Here.  Set background color.
6613         * tmac/color.tmac: Removed.  Contents moved to...
6614         * tmac/ps.tmac: Here.
6615         * tmac/www.tmac: Remove the title command when generating images
6616         for html.
6617         (NO_AUTO_RULE): New macro.
6618         (HTML_DO_IMAGE): Use revised `\O' escapes.
6619         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
6621 2001-12-02  Werner LEMBERG  <wl@gnu.org>
6623         * tmac/groff_mdoc.man: Fix typo.
6625 2001-12-01  Colin Watson  <cjwatson@debian.org>
6627         * man/roff.man: Fix typo.
6629 2001-11-29  Werner LEMBERG  <wl@gnu.org>
6631         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
6632         stdlib.h.
6634         * src/roff/troff/input.cc (read_draw_node): Emit error message if
6635         more than one argument to \D'f ...'.
6637         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
6639 2001-11-28  Werner LEMBERG  <wl@gnu.org>
6641         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
6642         loaded only once.
6644         * tmac/groff_man.man: Minor cosmetic fix.
6646 2001-11-27  Werner LEMBERG  <wl@gnu.org>
6648         * src/roff/groff/groff.man, tmac/groff_tmac.man,
6649         tmac/groff_www.man: s/mwww/www/.
6651 2001-11-26  Werner LEMBERG  <wl@gnu.org>
6653         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
6654         * configure: Regenerated.
6655         * win32-diffs: Updated.
6657         * tmac/groff_mwww.tmac: Renamed to ...
6658         * tmac/groff_www.tmac: This.
6659         * tmac/mwww.tmac: Removed.
6660         * NEWS, tmac/Makefile.sub: Updated.
6662 2001-11-21  Werner LEMBERG  <wl@gnu.org>
6664         * doc/groff.texinfo: Improve documentation of the `\v' escape.
6665         Fix explanation of `\D' and `rt'.
6667 2001-11-20  Werner LEMBERG  <wl@gnu.org>
6669         * tmac/an-old.tmac (an-header): Set header length equal to page
6670         width.
6671         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
6672         minor fixes.
6673         * NEWS: Small fix.
6675 2001-11-19  Werner LEMBERG  <wl@gnu.org>
6677         * NEWS, man/Makefile.sub: Updated.
6679 2001-11-19  Bernd Warken  <bwarken@mayn.de>
6681         * man/ditroff.man: New file.
6683 2001-11-17  Werner LEMBERG  <wl@gnu.org>
6685         * man/groff_differences.man: Renamed to ...
6686         * man/groff_diff.man: This.  Updated.
6687         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
6689         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
6690         * src/preproc/html/pushback.cc: This.  Updated.
6691         * src/preproc/html/pushbackbuffer.h: Renamed to ...
6692         * src/preproc/html/pushback.h: This.
6693         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
6694         Updated.
6696         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
6697         * src/libs/libgroff/htmlhint.cc: This.
6698         * src/libs/libgroff/Makefile.sub: Updated.
6700         * tmac/an-old.tmac (an-end): Fix page length.
6702 2001-11-16  Werner LEMBERG  <wl@gnu.org>
6704         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
6705         * man/Makefile.sub: Include groff_differences.man.
6706         * VERSION: Set to 1.18.
6707         * REVISION: Set to 0.
6709 2001-11-16  Bernd Warken  <bwarken@mayn.de>
6711         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
6712         the second dot (or ending macro name) to end a macro.
6713         * doc/groff.texinfo: Doc fix.
6715 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
6717         * tmac/doc-common (doc-header): Handle very long document titles
6718         better.
6720 2001-11-16  Werner LEMBERG  <wl@gnu.org>
6722         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
6724 2001-11-15  Werner LEMBERG  <wl@gnu.org>
6726         * src/roff/troff/troff.man: Revised and split into troff.man and...
6727         * man/groff_differences.man: New file.
6728         * NEWS: Updated.
6730 2001-11-13  Werner LEMBERG  <wl@gnu.org>
6732         * tmac/an-old.tmac (TS, TE): New macros for table support.
6734 2001-11-12  Werner LEMBERG  <wl@gnu.org>
6736         * src/include/lib.h: Provide a fix for emx to not include
6737         groff-getopt.h.
6739 2001-10-27  Werner LEMBERG  <wl@gnu.org>
6741         * src/roff/troff/input.cc (substring_macro): Fix computation of
6742         boundary values.
6744 2001-10-20  Werner LEMBERG  <wl@gnu.org>
6746         Undo change from 2001-08-28.
6748         * src/roff/troff/input.cc (have_input): New global variable.
6749         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
6750         in compatibility mode.
6751         (process_input_stack): Use it.
6753 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
6755         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
6756         being handled as end-of-sentence characters,
6758 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
6760         * src/roff/troff/input.cc (file_iterator): New members
6761         `suppress_newline_flag' and `seen_escape'.
6762         (file_iterator::next_file): Updated.
6763         (file_iterator::fill): Use it.
6764         (string_iterator): New member `suppress_newline_flag'.
6765         (string_iterator::fill): Set it.
6766         (get_color_element): Use MAX_COLOR_VAL.
6767         * src/roff/troff/env.cc (environment): Remove `need_eol'.
6768         (no_fill): Don't set `env->ignore_next_eol'.
6769         (environment::newline): Handle `eol' tag properly.
6770         Emit `eol.ce'.
6771         (environment::add_html_tag): Set `env->ignore_next_eol'.
6772         Don't handle `.ce'.
6773         * src/roff/troff/env.h (environment): Updated.
6775         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
6776         member function.
6777         (html_printer::outstanding_eol): New member function.
6778         (html_printer::do_title): Use new functions.
6779         (html_printer::troff_tag): Test `id_eol_ce'.
6781 2001-10-10  Werner LEMBERG  <wl@gnu.org>
6783         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
6784         files work with -C also.
6786 2001-10-05  Werner LEMBERG  <wl@gnu.org>
6788         * doc/pic.ms: Minor fix.
6789         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
6790         as a valid command line switch.
6791         * src/devices/grohtml/post-html.cc (main): Ditto.
6792         (usage): Updated.
6793         * src/devices/grohtml/grohtml.man: Updated.
6794         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
6796 2001-10-04  Werner LEMBERG  <wl@gnu.org>
6798         Implementing color support in troff, pic, grops, and grohtml.  These
6799         changes are based on a major patch provided by Gaius Mulley
6800         <gaius@glam.ac.uk>.
6802         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
6803         definitions with both hex values and fractions.
6805         New escapes: \m and \M for drawing and background color,
6806         respectively.  This corresponds to the troff output commands `m'
6807         and `DF'.
6809         groff and troff accept command line switch `-c' to disable color
6810         output (which is automatically disabled in compatibility mode).
6812         New scaling indicator `f' for fractions (1f = 65536u).
6814         New conditional operator `m' to test for defined colors with `if'
6815         and `ie'.
6817         New keywords `color' (or `colour', `colored', `coloured'), `outline'
6818         (or `outlined'), and `shaded' added to pic.
6820         * src/include/color.h: New file.
6821         * src/include/driver.h: Include it.
6822         * src/include/printer.h: Include color.h.
6823         (environment): New members `col' and `fill'.
6824         (printer): Remove `adjust_arc_center' member function.
6825         * src/include/Makefile.sub: Updated.
6827         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
6828         `env.fill'.
6829         Handle `m' and `DF' troff commands.
6830         * src/libs/libgroff/color.cc: New file.
6831         * src/libs/libgroff/Makefile.sub: Updated.
6833         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
6834         (stop): Removed.
6835         (createImage): Fix computation of `y2'.
6836         Use `pnmcrop' also.
6837         (buffer::write_file_html): Remove calls to `stop'.
6839         * src/preproc/pic/common.h (common_output): New abstract function
6840         members `set_color', `reset_color', `get_last_filled', and
6841         `get_outline_color'.
6842         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
6843         (object_spec): Add members `shaded' and `outlined'.
6844         * src/preproc/pic/output.h (output): `command' is now abstract.
6845         New function members `set_color', `reset_color', `get_last_filled',
6846         and `get_outline_color'.
6847         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
6848         `outline[d]', and `shaded'.
6849         * src/preproc/pic/object.cc (output::command): Removed.
6850         (output::set_location): Moved to output.h.
6851         (graphic_object): Add protected members `outline_color' and
6852         `color_fill'.
6853         Add member functions `set_outline_color', `get_outline_color', and
6854         `set_fill_color'.
6855         (closed_object): Add member function `set_fill_color'.
6856         Add member `color_fill'.
6857         (graphic_object::print_text): Use `out->set_color' and
6858         `out->reset_color'.
6859         (box_object::print, ellipse_object::print, circle_object::print,
6860         line_object::print, spline_object::print, arc_object::print): Ditto.
6861         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
6862         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
6863         `SHADED', making them `%left'.
6864         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
6865         * src/preproc/pic/tex.cc (tex_output): New dummy function members
6866         `set_color', `reset_color', `get_last_filled', and
6867         `get_outline_color'.
6868         * src/preproc/pic/troff.cc (simple_output): New abstract function
6869         members `set_color', `reset_color', and `get_last_filled'.
6870         (simple_output::polygon, simple_output::circle,
6871         simple_output::ellipse): Use `get_last_filled'.
6872         (troff_output): New members `last_filled' and `last_outlined'.
6873         New function members `set_color', `reset_color', `get_last_filled',
6874         and `get_outline_color'.
6875         (troff_output::finish_picture): Use `reset_color'.
6876         (troff_output::set_fill): Test `last_filled'.
6877         * src/preproc/pic/pic.man: Updated.
6879         * src/roff/groff/groff.cc (main): Implement `-c' option.
6880         (synopsis, help): Updated.
6881         src/roff/groff/groff.man: Updated.
6883         * src/roff/troff/troff.h: Include color.h.
6884         (warning_type): Add WARN_COLOR.
6885         * src/roff/troff/env.h (environment): New members
6886         `{cur,prev}_{glyph,fill}_color'.
6887         New member functions `get_{prev_,}{glyph,fill}_color'.
6888         * src/roff/troff/env.cc: Initialize and implement them.
6889         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
6890         Replace `NULL' with `0' everywhere for consistency.
6891         (lookup_color, default_black, do_glyph_color, do_fill_color,
6892         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
6893         define_color): New functions.
6894         (token::next): Implement \M and \m escapes.
6895         (do_if_request): Implement `m' operator.
6896         (usage): Updated.
6897         (main): Implement `-c' option.
6898         (init_markup_requests): Add `defcolor' request.
6899         (warning_table): Add `color' warning.
6900         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
6901         classes.
6902         * src/roff/troff/node.cc (troff_output_file): New members
6903         `current_{page,glyph}color'.  New member functions `put_hex',
6904         `glyph_color', and `fill_color'.
6905         (glyph_color_node::*, fill_color_node::*): Implement it.
6906         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
6907         (parse_term): Add support for `f'.
6908         * src/roff/troff/troff.man: Updated.
6910         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
6911         entry for `F'.
6912         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
6913         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
6915         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
6916         (tag_definition): Use `void *' for arg1.
6917         (html_text): New member functions `do_color' and `done_color'.
6918         Use `void *' for second parameter of `push_para' member function.
6919         New `push_para' member function with a single parameter.
6920         Use `char *' for parameter of `issue_table_begin' member funtion.
6921         New `issue_color_begin' member function.
6922         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
6923         COLOR_TAG.
6924         (html_text::issue_color_begin): New function.
6925         (html_text::issue_table_begin): Use `char *' for parameter.
6926         (html_text::start_tag, html_text::shutdown,
6927         html_text::check_emit_text): Updated.
6928         (html_text::push_para): Use `void *' for second parameter.
6929         Add same function with only one parameter.
6930         (html_text::do_*): Updated.
6931         (html_text::do_color, html_text::done_color): New functions.
6932         * src/devices/grohtml/post-html.cc (style): New member `col'.
6933         Mew member `style' with 6 parameters.
6934         (style::style, style::operator==): Updated.
6935         (html_printer::do_font): Use it.
6936         (html_printer::draw): Add dummy entry for `F'.
6937         (html_printer::set_char): Updated.
6938         * src/devices/grohtml/grohtml.man: Updated.
6940         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
6941         trailing zeroes removed.
6942         (ps_printer): New members `sbuf_color', `fill_color', and
6943         `output_color'.
6944         Removed member `fill'.
6945         New member function `set_color'.
6946         (ps_printer::ps_printer, ps_printer::set_char): Updated.
6947         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
6948         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
6950         * tmac/color-html.tmac, tmac/color.tmac: New files.
6951         * tmac/troffrc: Include them.
6952         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
6953         * tmac/Makefile.sub: Updated.
6955         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
6956         man/groff.man: Updated.
6957         * font/devps/prologue.ps: Define FC and CO functions.
6959 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
6961         Fix incorrect cropping of images and incorrect handling of special
6962         characters.  Fix handling of file names in \O.
6964         * src/include/geometry.h: New file.
6965         * src/libs/libgroff/geometry.cc: New file.
6966         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
6967         to `geometry.cc'.
6968         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
6969         initial spaces.
6970         (do_suppress): Updated.
6971         * src/roff/troff/node.cc: Include geometry.h.
6972         (troff_output_file::flush_tbuf): Fixed parameters to
6973         `check_output_limits'.
6974         (troff_output_file::check_charinfo): Ditto.
6975         (troff_output_file::determine_line_limits): Add support for `Da'
6976         and `Dl' commands.
6978         * src/devices/grohtml/post-html.cc (str_translate_to_html):
6979         Add new parameter `is_special' to decode special characters from
6980         escape sequences.
6981         (html_printer::do_title, html_printer::do_heading,
6982         html_printer::do_indentedparagraph,
6983         html_printer::translate_to_html, html_printer::special): Updated.
6985 2001-10-03  Werner LEMBERG  <wl@gnu.org>
6987         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
6988         Fix entry for config.h.
6989         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
6990         * tmac/troffrc: Translate nonbreakable space character to `\~'.
6991         * src/preproc/eqn/eqn.man: Document -d command line option.
6993 2001-09-27  Werner LEMBERG  <wl@gnu.org>
6995         * man/groff.man: Use
6997           .ev xxx
6998           .na
6999           .nh
7000           <table>
7001           .ev
7003         instead of the old code (`.ad .hy' after the table) to suppress
7004         incorrect hyphenation for grohtml output.
7006 2001-09-22  Werner LEMBERG  <wl@gnu.org>
7008         * man/groff_font.man, man/groff_out.man: Minor fixes.
7010 2001-09-20  Werner LEMBERG  <wl@gnu.org>
7012         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
7013         Arnold Robbins <arnold@skeeve.com>).
7015 2001-09-09  Werner LEMBERG  <wl@gnu.org>
7017         * configure: Regenerated with autoconf 2.52.
7019         * doc/groff.texinfo: Complete revision of indices.
7021 2001-09-07  Werner LEMBERG  <wl@gnu.org>
7023         * doc/Makefile (clean): Updated to delete all indices.
7025 2001-09-05  Werner LEMBERG  <wl@gnu.org>
7027         * src/roff/troff/troff.man: Remove superfluous line.
7029         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7030         given on the command line (or rather, if only the default warnings
7031         are set).
7033 2001-09-03  Werner LEMBERG  <wl@gnu.org>
7035         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7036         use .ne for TTY devices.
7038 2001-08-31  Werner LEMBERG  <wl@gnu.org>
7040         * src/roff/troff/token.h, src/roff/troff/input.cc:
7041         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7043 2001-08-28  Werner LEMBERG  <wl@gnu.org>
7045         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7046         * src/roff/troff/input.cc (token::next): Return
7047         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7048         compatibility mode.
7049         (token::description): Updated.
7050         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7051         (token::add_to_node_list, token::process): Ignore
7052         TOKEN_TRANSPARENT_ESCAPE.
7054 2001-08-27  Werner LEMBERG  <wl@gnu.org>
7056         * tmac/an-old.tmac: Fix `S' string.
7058 2001-08-26  Werner LEMBERG  <wl@gnu.org>
7060         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7062 2001-08-25  Werner LEMBERG  <wl@gnu.org>
7064         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7065         backslashes).
7066         Many other minor fixes.
7068         * configure.ac: Add message at end to inform how to compile
7069         xditview.
7070         * configure: Regenerated.
7072 2001-08-24  Werner LEMBERG  <wl@gnu.org>
7074         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7075         Updated to latest version of libc.
7077 2001-08-23  Werner LEMBERG  <wl@gnu.org>
7079         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7080         Autoconf 2.50 and newer can handle this.
7081         * configure: Regenerated.
7083 2001-08-21  Werner LEMBERG  <wl@gnu.org>
7085         * doc/pic.ms: Fix typo.
7086         * src/preproc/tbl/tbl.man: Document case of global options.
7088 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
7090         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7091         handling of `CR' font.
7093 2001-08-20  Werner LEMBERG  <wl@gnu.org>
7095         Use a config.h file.
7097         * src/include/lib.h: Include config.h.
7098         * All C files: Ditto (if necessary).
7099         * All C++ source and header files: Include lib.h first (if
7100         necessary).
7102         * src/include/config.hin: New file (autogenerated by autoheader).
7103         * stamp-h.in: New file.
7104         * configure.ac: Updated.
7105         * aclocal.m4: Add third parameters to AC_DEFINE macros.
7106         (GROFF_ARRAY_DELETE): Simplified.
7107         * Makefile.sub (DISTCLEANFILES): Updated.
7108         Added targets for remaking config.status, config.hin, config.h,
7109         stamp-h.in, and stamp-h.
7110         * configure: Regenerated.
7112 2001-08-19  Werner LEMBERG  <wl@gnu.org>
7114         * NEWS: Updated.
7116 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
7118         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7119         (do_sprintf): Use snprintf().
7121 2001-08-18  Werner LEMBERG  <wl@gnu.org>
7123         * src/libs/snprintf/*: Added an snprintf module written by Mark
7124         Martinec.
7125         * src/libs/libgroff/Makefile.sub: Updated.
7126         * configure.ac: Add test for snprintf().
7127         * Makefile.in: Updated.
7128         * configure: Regenerated.
7130         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7131         uses snprintf().
7133 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
7135         * tmac/doc.tmac (Ex): New implementation.
7136         * tmac/doc-common, tmac/groff_tmac.man: Updated.
7138 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
7140         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7141         argument.
7142         * tmac/groff_tmac.man: Updated.
7144 2001-08-13  Werner LEMBERG  <wl@gnu.org>
7146         * src/preproc/tbl/tbl.man: Minor documentation update.
7148 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7150         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7151         * configure.ac: Add declaration test for gettimeofday().
7152         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7153         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7154         * configure: Regenerated.
7156 2001-08-11  Werner LEMBERG  <wl@gnu.org>
7158         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7159         * configure.ac: Add declaration test for strcasecmp().
7160         * Makefile.in: Updated.
7161         * configure: Regenerated.
7162         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7163         this is necessary because groff's mkstemp.cc is C++.
7164         Add declaration conditionally for strcasecmp().
7166 2001-08-10  Werner LEMBERG  <wl@gnu.org>
7168         Integrated pic2graph, contributed by Eric S. Raymond.
7170         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
7171         files.
7172         * Makefile.in, NEWS: Updated.
7174         * src/preproc/tbl/tbl.man: Revised.
7176 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
7178         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
7180 2001-08-09  Werner LEMBERG  <wl@gnu.org>
7182         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
7183         requests.
7185 2001-08-08  Paul Eggert  <eggert@twinsun.com>
7187         * Makefile.sub (configure): Depend on configure.ac, not
7188         configure.in.
7189         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
7191 2001-08-07  Werner LEMBERG  <wl@gnu.org>
7193         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
7194         fixes.
7196 2001-08-06  Werner LEMBERG  <wl@gnu.org>
7198         * src/roff/troff/troff.man: Improve documentation of -E option.
7200 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7202         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
7203         Simplified.
7205 2001-07-27  Werner LEMBERG  <wl@gnu.org>
7207         * src/preproc/refer/refer.cc: Undo last change.
7208         * src/devices/grohtml/post-html.cc: Ditto.
7210 2001-07-26  Werner LEMBERG  <wl@gnu.org>
7212         * src/preproc/refer/refer.cc: Include `lib.h'.
7213         * src/devices/grohtml/post-html.cc: Ditto.
7215 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
7217         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
7218         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
7219         * Makefile.in: Comment updated.
7220         * configure: Regenerated.
7222 2001-07-25  Werner LEMBERG  <wl@gnu.org>
7224         * src/preproc/pic/pic.cc: Removed.
7225         * src/preproc/pic/pic_tab.h: Removed.
7226         * src/preproc/refer/label.cc: Removed.
7228         * doc/Makefile (.ms.html): Don't use a file name extension in
7229         argument to grohtml's -I option.
7230         * Makefile.in (dist): Remove CVS directories.
7231         Call `distfiles' target.
7233         * src/devices/grohtml/grohtml.man: Add information about valid
7234         versions of pnmtopng.
7235         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
7236         name instead of number.
7238 2001-07-24  Werner LEMBERG  <wl@gnu.org>
7240         * doc/groff.texinfo: Minor fixes.
7242 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
7244         * doc/Makefile (.ms.html): Put image files into a subdirectory.
7245         (clean): Updated.
7247 2001-07-20  Werner LEMBERG  <wl@gnu.org>
7249         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
7250         * src/libs/libgroff/mkstemp.cc: New file.
7251         * src/libs/libgroff/mksdir.cc: New file.
7252         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
7253         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
7254         * src/libs/libgroff/Makefile.sub: Updated.
7255         * src/include/lib.h: Add mksdir() prototype.
7256         * src/include/posix.h: Define S_IXUSR if not yet defined.
7258         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
7259         (createAllPages): Use mksdir() instead of current code.
7260         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
7261         (main): [!HAVE_MKSTEMP]: Removed.
7263         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
7264         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
7265         macros.
7266         * configure.ac: Add tests for stdint.h, sys/time.h, and
7267         gettimeofday().
7268         Call new GROFF_xxx macros.
7269         * configure: Regenerated.
7270         * Makefile.in: Comments updated.
7272 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
7274         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
7275         instead of current code.
7276         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
7277         * src/roff/groff/groff.cc (possible_command::insert_args): New
7278         function.
7279         (main): Use it for predriver handling instead of insert_arg().
7281 2001-07-19  Werner LEMBERG  <wl@gnu.org>
7283         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
7284         groff also.
7286         * src/include/posix.h: Define S_IWUSR if not yet defined.
7288 2001-07-18  Werner LEMBERG  <wl@gnu.org>
7290         * NEWS: Updated.
7292 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
7294         * tmac/groff_mdoc.man: Document new -width and -column syntax.
7295         Some other minor fixes.
7296         * tmac/an-old.tmac: Add `AT' and `UC' macros.
7298 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
7300         Replace call to `troff' with `groff -Z' to make it aware of
7301         GROFF_BIN_PATH.
7303         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
7304         (troff_command, command_prefix): Removed.
7305         (alterDeviceTo): Use groff.
7306         (addZ): New function.
7307         (char_buffer::do_html): Use it.
7308         (scanArguments): Use TROFF_COMMAND.
7309         (findPrefix): Removed.
7310         (main): Updated.
7311         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
7313 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
7315         * doc/pic.ms: Documentation fixes.
7317 2001-07-17  Werner LEMBERG  <wl@gnu.org>
7319         Replace atexit() with global destructor.
7321         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
7322         (xtmpfile_list_init): New global structure to deallocate
7323         xtmpfile_list on exit.  Its destructor inherits most code from
7324         remove_tmp_files().
7325         (remove_tmp_files): Deleted.
7326         (add_tmp_file): Simplified.
7328 2001-07-16  Werner LEMBERG  <wl@gnu.org>
7330         Replace strdup() with strsave().
7332         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
7333         (set_papersize): Use strsave() and a_delete.
7334         (main): Use strsave().
7335         * src/preproc/html/pre-html.cc (make_message, createAllPages,
7336         removeAllPages): Use strsave() and a_delete.
7338         * configure.ac: Remove test for strdup.
7339         * Makefile.in: Comment updated.
7340         * configure: Regenerated.
7342 2001-07-15  Werner LEMBERG  <wl@gnu.org>
7344         * win32-diffs: Updated.
7346 2001-07-14  Werner LEMBERG  <wl@gnu.org>
7348         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
7349         removing the old one.
7350         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
7352 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7354         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
7356 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
7358         Merge -xwidth into -width.  Add -xwidth functionality to -column
7359         also.
7361         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
7362         avoid warning.
7363         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
7364         string immediately following a leading dot starts with a valid mdoc
7365         argument.
7366         Add similar code to the -column branch.
7367         (doc-Bl-usage): Updated.
7368         * groff_mdoc.man: s/-xwidth/-width/.
7370 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
7372         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
7373         running into centered or non-formatted text.
7375 2001-07-11  Werner LEMBERG  <wl@gnu.org>
7377         Introduce short and long prefixes to have the selection at run-time
7378         whether there is a 8+3 limit for names of temporary files.
7380         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
7381         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
7382         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
7383         variables.
7384         (temp_init): New global structure to initialize above three
7385         variables.
7386         (xtmptemplate): Use two parameters for long and short prefix.
7387         Simplify code use above three variables.
7388         (xtmpfile): Use long and short prefixes as parameters.
7389         * src/include/lib.h: Updated.
7391         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
7392         with ...
7393         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
7394         (createAllPages, makeTempFiles): Updated.
7396 2001-07-09  Werner LEMBERG  <wl@gnu.org>
7398         * REVISION: Increased to 3.
7400 Version 1.17.2 released
7401 =======================
7403 2001-07-07  Werner LEMBERG  <wl@gnu.org>
7405         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
7406         to size_t.
7408 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
7410         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
7411         Fix synopsis.
7412         * tmac/groff_mdoc.man: Fix synopsis.
7414 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
7416         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
7417         Restore `doc-Pa-font'.
7419 2001-07-04  Werner LEMBERG  <wl@gnu.org>
7421         * src/utils/indxbib/dirnamemax.c: Moved to ...
7422         * src/libs/libgroff/maxfilename.cc: Here.
7423         s/dir_name_max/file_name_max/.
7424         Add copyright.
7425         * src/include/lib.h: Add file_name_max.
7426         * src/utils/indxbib/indxbib.cc: Updated.
7427         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
7428         Updated.
7430         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
7431         as empty.
7432         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
7434         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
7435         REGION_TEMPLATE): New macros.
7436         (createAllPages, makeTempFiles): Use them.
7437         Include `nonposix.h'.
7438         (html_system): New function.
7439         (createAllPages, createImage): Use it.
7440         Use EXE_EXT.
7442         * tmac/www.tmac: Fix typos.
7444 2001-07-03  Werner LEMBERG  <wl@gnu.org>
7446         * tmac/www.tmac: Disable hyphenation in normal text only if output
7447         device is html.
7448         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
7449         * tmac/groff_mwww.man, NEWS: Updated.
7451 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
7453         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
7454         image location.
7456 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
7458         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
7459         doc-display-ps-stack): Implement font and font size stack for
7460         displays.
7462 2001-07-02  Werner LEMBERG  <wl@gnu.org>
7464         * REVISION: Increased to 2.
7465         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
7467         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
7468         beginning of a line.
7469         * src/groff/grog/grog.sh: Ditto.
7471 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
7473         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
7474         make it portable.
7476 2001-06-27  Werner LEMBERG  <wl@gnu.org>
7478         Fix problems with preprocessor string for `man' program.
7480         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
7481         Updated/added copyright.
7482         Moved Emacs's local variable to identify nroff mode to the end of
7483         the file; add local variable if missing.
7485 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
7487         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
7488         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
7489         * configure: Regenerated.
7491 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
7493         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
7494         * configure: Regenerated.
7496 2001-06-24  Werner LEMBERG  <wl@gnu.org>
7498         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
7499         but www.tmac.
7500         * doc/pic.ms: Fix typos.
7502 Version 1.17.1 released
7503 =======================
7505 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
7507         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
7508         * configure: Updated.
7510 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
7512         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
7513         image names.
7514         * src/roff/troff/dic.cc (blank_line): Add html tag.
7516 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
7518         * src/roff/troff/input.cc (do_suppress): Fix typo.
7520 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
7522         Added two new options (-D and -I) to specify image names and a
7523         subdirectory to place the images in.
7525         Change syntax from \\Ox to \\O[x].
7527         * src/devices/grohtml/post-html.cc (main): Add options.
7528         (usage): Updated.
7529         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
7530         Use `NULL' instead of `0' for null string pointers.
7531         (MAX_RETRIES): New macro.
7532         (lengthOfintToStr, intToStr, make_message): New functions.
7533         (makeFileName): Make function static.
7534         Implement -D and -I options.
7535         (checkImageDir): New function.
7536         (write_end_image, write_start_image): Use new syntax of \O.
7537         (createAllPages, removeAllPages): Implement -D and -I options.  Use
7538         make_message().
7539         (createImage): Use make_message().
7540         (addps4html): Add guard for malloc().
7541         (usage, scanArguments): Updated.
7542         (makeTempFiles): Use mkstemp().
7543         (removeTempFiles): Use unlink().
7544         (findPrefix): Add guard for malloc().
7545         (main): Updated.
7546         * src/roff/troff/input.cc (get_delim_file_name): New function to
7547         parse \O.
7548         (do_suppress): Updated to parse new syntax.
7549         * src/devices/grohtml/grohtml.man: Updated.
7550         * tmac/www.tmac: Updated to new syntax.
7552         * NEWS: Updated.
7554 2001-06-15  Werner LEMBERG  <wl@gnu.org>
7556         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
7558         * src/devices/grohtml/grohtml.man: Minor improvements.
7560 2001-06-14  Werner LEMBERG  <wl@gnu.org>
7562         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
7564 2001-06-11  Werner LEMBERG  <wl@gnu.org>
7566         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
7567         line to specify preprocessor options -- mandb 2.3.1 only recognizes
7568         the former.
7569         * src/preproc/grn/grn.man: Add proper '\" string.
7571 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
7573         * test-groff: Don't use PATH but GROFF_BIN_PATH.
7575 2001-06-08  Werner LEMBERG  <wl@gnu.org>
7577         Updated to autoconf 2.50.
7579         * configure.in: Renamed to...
7580         * configure.ac: This.
7581         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
7582         (GROFF_OS390): Updated.
7583         * configure: Regenerated.
7585 2001-05-18  Werner LEMBERG  <wl@gnu.org>
7587         * src/roff/troff/env.c, src/roff/troff/env.h,
7588         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
7589         from 2000-12-21.
7591 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
7593         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
7595 2001-05-16  Werner LEMBERG  <wl@gnu.org>
7597         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
7598         less than or equal zero; set it to 1 then.
7599         * src/roff/troff/node.h (node::node): Initialize `last'.
7601 2001-05-08  Werner LEMBERG  <wl@gnu.org>
7603         * tmac/an-old.tmac: Make predefined strings work in compatibility
7604         mode.
7605         Add troff version guard.
7606         * tmac/doc.tmac: Simplify version guard.
7608 2001-05-07  Werner LEMBERG  <wl@gnu.org>
7610         The .ns and .rs requests are now honoured not only in the top-level
7611         but in all diversions (similar to UNIX troff).
7613         This change is based on a patch from Tadziu Hoffmann
7614         <hoffmann@usm.uni-muenchen.de>.
7616         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
7617         (top_level_diversion): Remove `no_space_mode' member.
7618         * src/roff/troff/div.cc (diversion::diversion,
7619         top_level_diversion::top_level_diversion): Updated.
7620         (macro_diversion::output): Reset `no_space_mode'.
7621         (no_space, restore_spacing): Use `curdiv' unconditionally.
7622         (space_request, blank_line): Check `curdiv->no_space_mode'.
7623         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
7624         `curdiv' unconditionally.
7625         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7626         Updated.
7628 2001-05-06  Werner LEMBERG  <wl@gnu.org>
7630         Added two new requests `de1' and `am1' which are similar to `de' and
7631         `am' with the difference that compatibility mode is saved on entry,
7632         switched off during macro execution, and restored on exit.
7634         * src/roff/troff/input.h: Added two new special characters
7635         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
7636         * src/roff/troff/input.cc (input_iterator): Added two member
7637         functions `save_compatible_flag' and `get_compatible_flag'.
7638         (input_stack): Ditto.
7639         (string_iterator): Ditto.  Also add private member
7640         `saved_compatible_flag'.
7641         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
7642         (calling_mode): New enumeration.
7643         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
7644         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
7645         (define_macro, define_indirect_macro, append_macro, ignore): Use
7646         `calling_mode'.
7647         (define_nocomp_macro, append_nocomp_macro): New functions.
7648         (init_input_requests): Updated.
7649         (do_request): Rename local variable `saved_compatible_flag' to
7650         `old_compatible_flag'.
7651         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7653         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
7654         public and trap-invoked macros.  As a consequence, the man macros
7655         work in compatibility mode also.
7657 2001-05-06  Solar Designer  <solar@openwall.com>
7659         * Makefile.in: Use $(mandir).
7661 2001-05-06  Alexios Zavras  <zvr@pobox.com>
7663         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
7665 2001-05-05  Werner LEMBERG  <wl@gnu.org>
7667         Added `.ns' number register: Returns 1 in no-space mode (if in
7668         top-level diversion), 0 otherwise.
7670         * src/roff/troff/div.cc (no_space_mode_reg): New class.
7671         (init_div_requests): Updated.
7672         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7673         Document it.
7675 2001-05-04  Werner LEMBERG  <wl@gnu.org>
7677         * src/roff/nroff/nroff.man: Improved documentation (especially
7678         locales).
7680 2001-05-02  Werner LEMBERG  <wl@gnu.org>
7682         Added `brp' request: This is \p as a request.
7684         * src/roff/troff/env.cc (environment::do_break): Add parameter
7685         `spread'.
7686         (do_break_request): New function (was `break_request').
7687         (break_request): Calls `do_break_request'.
7688         (break_spread_request): New; calls `do_break_request'.
7689         (init_env_requests): Updated.
7690         * src/roff/troff/env.h: Updated.
7691         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7693         * REVISION: Increased to 1.
7694         * win32-diffs: Updated.
7696 2001-05-01  Werner LEMBERG  <wl@gnu.org>
7698         * tmac/an-old.tmac: Fix minor compatibility mode issue.
7699         * tmac/troffrc-end: Make it really work in compatibility mode.
7701 2001-04-27  Werner LEMBERG  <wl@gnu.org>
7703         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
7704         stdlib.h.
7706 2001-04-22  Werner LEMBERG  <wl@gnu.org>
7708         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
7709         latest versions from glibc CVS archive.
7711         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
7712         <c.zeelenberg@hccnet.nl>.
7714 2001-04-21  Werner LEMBERG  <wl@gnu.org>
7716         * configure.in: Move check for mkstemp() to...
7717         * aclocal.m4 (GROFF_MKSTEMP): This new function.
7718         * configure: Regenerated.
7720         * src/include/groff-getopt.h: Don't use variable names in
7721         declarations.
7723         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
7724         * src/devices/grohtml/Makefile.sub,
7725         src/devices/grohtml/post-html.cc: Updated.
7727 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
7729         * configure.in: Add special check for mkstemp().
7730         * src/libs/libgroff/tmpfile.cc: Use it.
7731         * src/utils/indxbib/indxbib.cc: Ditto.
7732         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
7733         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
7734         `const'.
7736 2001-04-20  Bruce Lilly  <blilly@erols.com>
7738         `Version_string' as C++ object was not visible to linker from C
7739         object files.
7740         Add `const' to `Version_string'.
7742         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
7743         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
7744         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
7745         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
7746         (scanArguments), src/preproc/refer/refer.cc (main),
7747         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
7748         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
7749         (main), src/devices/grohtml/post-html.cc (main),
7750         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
7751         (main), src/utils/hpftodit/hpftodit.cc (main),
7752         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
7753         (main), src/utils/lkbib/lkbib.cc (main),
7754         src/utils/addftinfo/addftinfo.cc (main): Implement it.
7756         * src/roff/groff/pipeline.c: Add _UWIN.
7757         * src/include/nonposix.h: Ditto.
7759 2001-04-20  Werner LEMBERG  <wl@gnu.org>
7761         * src/include/lib.h: Use HAVE_STRERROR.
7762         * src/roff/groff/pipeline.c: Ditto.
7763         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
7764         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
7765         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
7766         * win32-diffs: Updated.
7767         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
7769 2001-04-19  Werner LEMBERG  <wl@gnu.org>
7771         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
7772         instead of hardwired `"troff"'.
7773         (char_buffer::read_file): Remove unused variables.
7774         (char_buffer::write_file_troff): Ditto.
7775         (char_buffer::write_file_html): Ditto.
7776         (generateImages): Ditto.
7777         (abs): Removed.
7778         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
7780         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
7782         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
7783         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
7784         index_search_item::search1): Ditto.
7785         * src/roff/troff/node.h (width_list): Reorder members.
7786         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
7787         (lookup_warning): Ditto.
7788         (prepend_string): Commented out.
7789         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
7790         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
7791         * src/preproc/tbl/main.cc (process_format): Ditto.
7792         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
7793         compiler warnings.
7794         * src/preproc/pic/pic.cc: Updated.
7795         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
7796         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
7797         * src/preproc/refer/command.cc (execute_command): Ditto.
7798         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
7799         * src/preproc/refer/token.cc (lookup_token): Ditto.
7800         * src/preproc/soelim/soelim.cc: Ditto.
7801         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
7802         (isHexDigit): Commented out.
7803         (pushBackBuffer::isString): Remove unused variable.
7804         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
7805         warning.
7806         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
7807         resource_manager::read_resource_arg, read_one_of, parse_extensions):
7808         Ditto.
7809         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
7810         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
7811         lookup_paper_size): Ditto.
7812         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
7813         (text_glob, element_list): Reorder members.
7814         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
7815         compiler warning.
7816         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
7817         return value to `void'.
7818         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
7819         of initializers.
7820         * src/devices/grohtml/html.h (simple_output::check_newline,
7821         simple_output::space_or_newline, simple_output::enable_newlines):
7822         Add return value.
7823         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
7824         compiler warnings.
7825         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
7826         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
7827         output_ligatures, output_charset, read_map): Ditto.
7828         * src/utils/lookbib/lookbib.cc (main): Ditto.
7829         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
7830         (do_file): Fix typo (`=' -> `==').
7831         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
7832         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
7834 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
7836         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
7837         Fix usage of GROFF_BIN_PATH.
7838         * src/roff/nroff/nroff.man: Updated.
7840 2001-04-18  Werner LEMBERG  <wl@gnu.org>
7842         * NEWS: Fixing typos.
7843         Updated.
7845 Version 1.17 released
7846 =====================
7848 2001-04-17  Werner LEMBERG  <wl@gnu.org>
7850         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
7851         directory, not in $(srcdir).
7853 2001-04-16  Werner LEMBERG  <wl@gnu.org>
7855         * doc/groff.texinfo: More info on conditionals.
7857 2001-04-15  Werner LEMBERG  <wl@gnu.org>
7859         * doc/groff.texinfo: Added some info about groff internals.
7861         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
7862         about missing special character only if the name is non-null.
7864 2001-04-14  Werner LEMBERG  <wl@gnu.org>
7866         Removing the grohtml-old device driver which is now obsolete.
7868         * src/devices/grohtml-old/*: Removed.
7869         * font/devhtml-old/*: Removed.
7870         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
7871         Remove comments.
7872         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
7873         * test-groff (PATH): Updated.
7874         * tmac/Makefile.sub (NORMALFILES): Updated.
7875         * tmac/an-old.tmac: Remove special code for html-old device.
7876         Replace `html-or-html-old' register with `an-html'.
7877         * tmac/eqnrc: Updated.
7878         * tmac/html-old.tmac: Removed.
7879         * tmac/troffrc, tmac/troffrc-end: Updated.
7880         * tmac/www.tmac: Remove special code for html-old device.
7881         Replace `html-or-html-old' register with `www-html'.
7883         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
7884         src/libs/libgroff/htmlindicate.cc (graphic_end),
7885         include/htmlindicate.h, src/preproc/grn/*.cc,
7886         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
7887         single argument for consistency with rest of source code.
7889         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
7891 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
7893         * src/roff/troff/troff.man: Fixing typos.
7895 2001-04-13  Werner LEMBERG  <wl@gnu.org>
7897         * doc/pic.ms: Fixing many font switches.
7898         * doc/groff.texinfo: Fixes, additions.
7899         * MORE.STUFF: Updated.
7901 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
7903         * src/devices/grohtml/grohtml.man: Updated manual page regarding
7904         simple anchor.
7905         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
7906         cropping of images.
7907         (removeTempFiles): New function to tidy up temporary files.
7908         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
7909         Many fixes to do with the new inline suppress node and image regions
7910         are much tighter.
7911         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
7912         (generate_img_src): New function.
7913         (html_printer::do_auto_image): Utilizes it.
7914         (do_heading, do_title): Include inline images within their contents.
7915         (html_printer::begin_page): Tidied up comments that are issued to
7916         the html output file.
7917         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
7918         than courier.
7919         (text_glob::is_br): New method used by do_heading.
7920         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
7921         equivalent diversion.
7922         * src/include/html-strings.h: Altered image tags to reflect the
7923         inline image node.
7924         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
7925         parameter.
7926         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
7927         it is already inside a pic image.  Only emit tags if the argument
7928         `-Tps:html' is present.
7929         * src/preproc/tbl/main.cc: Changes to reflect additional
7930         `html_end_suppress' parameter.
7931         * src/roff/troff/env.cc: Only emit eol tag if a node has been
7932         emitted since the last eol tag was written.
7933         * src/roff/troff/env.h: New boolean `emitted_node'.
7934         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
7935         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
7936         * src/roff/troff/node.cc (check_charinfo): New method. 
7937         (troff_output_file::determine_line_limits): Alterations to limit
7938         checking.
7939         * tmac/www.tmac: Changes to reflect new suppress nodes.
7940           
7941 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
7943         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
7944         Escape the html_glyph in the buffer.
7945         (str_translate_to_html): Output the unescaped escaped_char.
7946         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
7947         `frame=void', not `frame=none'.  Add `border=0'.
7949 2001-04-12  Werner LEMBERG  <wl@gnu.org>
7951         * PROBLEMS: Add some words on how to avoid wrapper macros.
7953 2001-04-11  Blake McBride  <blake@florida-software.com>
7955         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
7957 2001-04-11  Werner LEMBERG  <wl@gnu.org>
7959         * font/devlbp/Makefile.sub (CLEANADD): Set it.
7960         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
7961         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
7962         * Makefile.sub (DISTCLEANFILES): Here.
7964         * libs/libgroff/new.cc: Include `nonposix.h'.
7965         * win32-diffs: Updated.
7967 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
7969         Added skeleton macro for defunct macros.
7971         Updated documentation.
7973         When inside displays, an empty input line warning should be
7974         suppressed.  If another macro call is put inside a display,
7975         all subsequent empty lines found in that display caused a
7976         warning to be emitted.
7978         * tmac/doc.tmac (doc-defunct-macro): New macro.
7979         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
7980         (doc-restore-global-vars): Fixed typo.
7981         (doc-empty-line): Check the `doc-display-depth' register to
7982         determine whether we are inside display or not.
7984         * tmac/doc-common: Removed `Or' and `Sf' registers.
7985         Moved obsolete `Ds' macro to doc.tmac.
7987         * tmac/groff_mdoc.man: Bump document date.
7988         Document `.Vt' under ``Variable Types''.
7989         Removed documentation for obsolete `.Or' macro.
7991 2001-04-10  Werner LEMBERG  <wl@gnu.org>
7993         * NEWS: Updated.
7994         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
7996 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
7998         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
7999         (usage): Add stream argument. Don't exit.
8000         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8001         Write --version output to stdout, not stderr.
8002         (usage): Add stream argument. Don't exit.
8003         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8004         (usage): Add stream argument. Don't exit.
8005         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8006         constants.
8007         (usage): Add stream argument. Don't exit.
8008         (main): Write --help output to stdout, not stderr.
8009         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8010         (usage): Add stream argument. Don't exit.
8011         * src/devices/grops/ps.cc (main): Accept --help and --version.
8012         (usage): Add stream argument. Don't exit.
8013         * src/devices/grotty/tty.cc (main): Accept --help and --version.
8014         (usage): Add stream argument. Don't exit.
8015         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8016         (main): Accept --help and --version.
8017         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8018         (main): Accept --help and --version.
8019         * src/preproc/html/pre-html.cc (usage): Add stream argument.
8020         (scanArguments): Accept --help and --version.
8021         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8022         (main): Accept --help and --version.
8023         * src/preproc/refer/refer.cc (main): Accept --help and --version.
8024         (usage): Add stream argument. Don't exit.
8025         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8026         exit.
8027         (main): Accept --help and --version.
8028         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8029         (main): Accept --help and --version.
8030         * src/roff/groff/groff.cc (main): Accept --help and --version.
8031         (synopsis): Add stream argument.
8032         (help): Write --help output to stdout, not stderr.
8033         (usage): Add stream argument. Don't exit.
8034         * src/roff/grog/grog.pl: Accept --help and --version.
8035         (help): New sub.
8036         * src/roff/grog/grog.sh: Accept --help and --version.
8037         * src/roff/nroff/nroff.sh: Accept --help and --version.
8038         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8039         (usage): Add stream argument. Don't exit.
8040         (main): Accept --help and --version.
8041         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8042         (usage): New function with stream argument, doesn't exit.
8043         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8044         (usage): New function with stream argument, doesn't exit.
8045         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8046         (usage): Add stream argument. Don't exit.
8047         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8048         (main): Accept --help and --version.
8049         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8050         exit.
8051         (main): Accept --help and --version.
8052         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8053         (main): Accept --help and --version.
8054         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8055         (usage): Add stream argument. Don't exit.
8057 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
8059         Fix indentation in SYNOPSIS.
8061         Updated to include changes of latest BSD mdoc version (basically,
8062         the only change is that `.Fn' and `.Fc' put a final semicolon after
8063         a function declaration in the SYNOPSIS section).
8065         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8066         (doc-in-synopsis-section): New variable.  Updated all related
8067         functions.
8068         (doc-indent-synopsis-active): New register.
8069         (Nd, Fn, Fo): Use it.
8070         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8071         `.Cd' with long argument line produces indented wrapped lines. 
8072         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8073         undesirable line break to be output.
8074         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8075         `.rs'.
8076         (Fn, Fc): Add final `;' to output.
8077         (doc-save-global-vars, doc-restore-global-vars): Updated.
8078         * tmac/doc-common: Remove `Ex' register.
8079         Updated.
8080         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8081         copyright.
8083 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8085         * tmac/doc.tmac (Cd): Simplify code.
8086         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8088 2001-04-06  Werner LEMBERG  <wl@gnu.org>
8090         Implement continuous underlining for nroff mode.  To do that, a new
8091         request in the ditroff language has been added: `x u N' (N is 0
8092         or 1).
8094         \X and \Y are now transparent to end-of-sentence recognition.
8096         * src/include/printer.h (printer): Add `type' parameter to `special'
8097         method.
8098         * src/libs/libdriver/printer.cc (printer::special): Updated.
8099         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8101         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8102         specials of type `p'.
8103         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8104         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8105         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8106         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8107         (glyph::order): New method.
8108         (tty_printer::add_char): Use it.
8109         (tty_printer::special): New method.
8110         (tty_printer::end_page): Implement it.
8112         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8113         * src/roff/troff/node.cc (special_node::special_node): Add parameter
8114         to set `no_init_string'.
8115         (special_node::tprint_start): Use it.
8116         (special_node::same, special_node::copy): Updated.
8117         (special_node::ends_sentence): New method.
8118         (troff_output_file::start_special): Add parameter to include
8119         inititialization of special conditionally.
8121         * src/roff/troff/env.h (environment): New member `underline_spaces'.
8122         * src/roff/troff/env.cc (do_underline_special): New function.
8123         (environment::set_font): Use it.
8124         (do_underline): Use it.  This was `underline()'.
8125         (underline): Call `do_underline()'.
8126         (continuous_underline): New function which calls `do_underline()'.
8127         (environment::newline): Use `do_underline_special()'.
8128         (init_env_requests): Updated.
8130         * NEWS, man/troff_out.man: Updated.
8132 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
8134         * font/devutf8/R.proto: Fix code of 'shc'.
8136 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8138         Many fixes.  Diag lists can now be nested also; additionally,
8139         `-compact' and `-offset' are supported.
8141         * tmac/doc.tmac (doc-have-indent): Replaced with ...
8142         (doc-list-have-indent-stackXXX): A new register stack.
8143         (doc-have-diag-list): Removed.
8144         (Bl): Use `doc-list-have-indent-stackXXX'.
8145         (El): Updated.
8146         (doc-diag-list): Use `doc-compact-list-stackXXX'.
8147         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8148         (doc-set-vertical-and-indent): Ditto.
8149         (doc-next-list-depth): Removed.
8150         (doc-increment-list-stack): Updated.
8151         (doc-decrement-list-stack): Use `doc-list-depth' instead of
8152         `doc-next-list-depth'.
8153         (doc-end-list, doc-end-column-list): Don't use
8154         `doc-increment-list-stack'.
8155         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8156         (doc-save-global-vars, doc-restore-global-vars): Updated.
8157         * tmac/doc-common: Updated.
8158         * tmac/groff_mdoc.man: Updated.
8159         * NEWS: Fix typo.
8161 2001-04-02  Werner LEMBERG  <wl@gnu.org>
8163         * src/devices/grotty/grotty.man: Fix grammatical error.
8165 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
8167         Remove .Ld from mdoc package; replace it with special handling of
8168         `...'.
8170         * tmac/doc-common: Remove `Ld' register.
8171         Uncomment `doc-volume-ds-*' strings.
8172         Remove `doc-operating-system-default'.
8173         (Os): Updated.
8174         * tmac/doc-syms (Ld): Removed.
8175         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
8176         `...' specially.
8177         * NEWS: Updated.
8179         * tmac/groff_mdoc.man: Many fixes and updates.
8181 2001-03-29  Werner LEMBERG  <wl@gnu.org>
8183         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
8184         Bond <tkb@tkb.mpl.com>.
8185         * tmac/www.tmac: Save compatibility mode.
8187 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
8189         * tmac/groff_mdoc.man: Many fixes.
8191 2001-03-28  Werner LEMBERG  <wl@gnu.org>
8193         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
8194         isn't recognized.
8196 2001-03-27  Werner LEMBERG  <wl@gnu.org>
8198         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
8199         diversion.  This fixes overlong tags.
8201 2001-03-26  Werner LEMBERG  <wl@gnu.org>
8203         * doc/groff.texinfo: Fixed and improved documentation of fonts.
8204         * tmac/doc-syms: Fix error messages.
8205         * tmac/an-old.tmac: Remove incorrect double backslashes.
8207 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
8209         * tmac/Makefile.sub: Strip mdoc.local also
8210         * tmac/strip.sed: Fixed.
8212 2001-03-24  Werner LEMBERG  <wl@gnu.org>
8214         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
8215         selecting the font size.
8216         * tmac/groff_mdoc.man, NEWS: Document it.
8218 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8220         * src/roff/troff/div.cc (save_vertical_space): Add default argument
8221         to `sv' request.
8222         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
8223         argument to restore previous font family.
8224         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
8226         * doc/groff.texinfo: More fixes and additions (mainly for font
8227         manipulating commands).
8229         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
8230         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
8231         * tmac/Makefile.sub, NEWS: Updated.
8233 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8235         Replaced mdoc implementation.  The new version is `state of the
8236         art', using almost all new features of groff 1.17 -- it won't run
8237         with older versions.
8239         * tmac/doc.tmac: Completely rewritten.
8240         * tmac/doc-common: Ditto.
8241         * tmac/doc-nroff: Ditto.
8242         * tmac/doc-ditroff: Ditto.
8243         * tmac/doc-syms: Ditto.
8244         * tmac/mdoc.local: New file.
8245         * tmac/groff_mdoc.samples.man: Replaced with ...
8246         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
8247         * tmac/strip.sed: Updated.
8248         * tmac/Makefile.sub: Updated.
8249         * INSTALL: Updated.
8251         * tmac/groff_man.man: Add `man.local' to the FILES section.
8253 2001-03-22  Werner LEMBERG  <wl@gnu.org>
8255         * doc/groff.texinfo: Added many @noindent.
8256         Replaced @end_Example -> @endExample.
8257         Added info whether registers are r/o.
8258         Many other additions and fixes.
8260 2001-03-21  Werner LEMBERG  <wl@gnu.org>
8262         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
8263         in makeinfo of texinfo 4.0) to be used in @Def* macros.
8264         Improved @Def* macros: Now the exact syntax of request, register,
8265         and escapes is shown.
8266         Added macros for parentheses and brackets to be used in @Def*.
8267         Many fixes and improvements of the documentation.
8269 2001-03-20  Werner LEMBERG  <wl@gnu.org>
8271         * doc/groff.texinfo: Added new index: `st' (for strings).
8272         Added macros @Defstr(x).
8273         Added macro @Example (adding @group).
8274         Other minor improvements.
8276 2001-03-19  Werner LEMBERG  <wl@gnu.org>
8278         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
8279         `rq' for requests.  `fn' is no longer used.
8280         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
8281         Removed @Deffn(x).
8283         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
8284         number with name of man page.
8286 2001-03-19  Larry Kollar  <kollar@alltel.net>
8288         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
8289         consistency.
8291 2001-03-19  Werner LEMBERG  <wl@gnu.org>
8293         * man/groff_font.man: Document `prepro', `postpro', and `print'.
8294         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
8295         * src/devices/grohtml/grohtml.man: Fixing typos.
8297 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
8299         * tmac/s.tmac (@IP): Pass `.ip' html tag.
8300         * tmac/groff_mwww.man: Remove .LINE macro
8301         * tmac/www.tmac (LINE): Add `.ti'.
8303         * src/devices/grohtml/post-html.cc (html_printer): New member
8304         `indent'.
8305         (html_printer::emit_raw): Use it.
8306         (html_printer::do_linelength): Ditto.
8307         (html_printer::do_pageoffset): Ditto.
8308         (html_printer::do_indentation): Ditto.
8309         (html_printer::do_tempindent): Ditto.
8310         (html_printer::do_break): Ditto.
8311         (html_printer::begin_page): Ditto.
8312         (html_printer::do_indentedparagraph): New function.
8313         (html_printer::troff_tag): Handle `.ip'.
8314         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
8315         Add `<td width=...>' handling.
8316         (html_text::do_table): Add parameter.
8317         (html_text::do_indent): Updated.
8318         * src/devices/groohtml/html-text.h: Updated.
8320 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
8322         Introduced simple html tables to implement indentation.
8324         * src/devices/grohtml/html.h (word, word_list): New structures.
8325         (simple_output): Use it.
8326         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
8327         (html_printer): Improve indentation handling.
8328         (html_printer::emit_raw): Set `in_table' element.  Handle
8329         indentation if set.
8330         (html_printer::write_header): Move conditional downwards.
8331         Don't allow whitespace in tags.
8332         (html_printer::do_linelength): Handle line length and indentation
8333         conditionally.
8334         (html_printer::do_pageoffset): Handle indentation conditionally.
8335         (html_printer::do_indentation): Ditto.
8336         (html_printer::do_tempindent): New function member.
8337         (html_printer::do_fill): Take care of indentation.
8338         (html_printer::do_flush): Finish table.
8339         (html_printer::do_links): Ditto.
8340         (html_printer::do_break): New function for handling `.br' and `.ti'.
8341         (html_printer::troff_tag): Use it.
8342         Handle `.ti'.
8343         (html_printer::flush_globs): Fix.
8344         (html_printer::flush_page): Finish table.
8345         (html_printer::html_printer): Fix error message.  Set up
8346         `linelength'.
8347         (html_printer::add_to_sbuf): Remove special handling of character
8348         code 255.
8349         (to_unicode): Remove `stop()'.
8350         (html_printer::write_title): Cleanup.
8351         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
8352         (html_printer::~html_printer): Flush text and end the line.
8353         Use `put_string()'.
8354         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
8355         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
8356         emission of tags.
8357         (html_text::start_tag): Disable newlines.
8358         (html_text::table_is_void): New function.
8359         (html_text::issue_table_begin): Ditto.
8360         (html_text::issue_table_end): Ditto.
8361         (html_text::push_para): Better table handling.
8362         (html_text::do_indent): New function.
8363         (html_text::do_table): Ditto.
8364         (html_text::done_table): Ditto.
8365         (html_text::do_tt): Handle PRE_TAG.
8366         (html_text::is_in_table): New function.
8367         (html_text::check_emit_text): Handle tables.
8368         (html_text::do_emittext): Use `nl()'.
8369         (html_text::do_para): Handle table.
8370         (html_text::remove_def): New function.
8371         * src/devices/grohtml/output.cc (word, word_list): Implement
8372         methods.
8373         (simple_output::end_line): Flush last word.
8374         (simple_output::simple_comment): Ditto.
8375         (simple_output::begin_comment): Recoded.
8376         (simple_output::end_comment): Ditto.
8377         (simple_output::comment_arg): Removed.
8378         (simple_output::check_newline): Improve test and flush last word.
8379         (simple_output::space_or_newline): Improved.
8380         (simple_output::write_newline): Replaced with...
8381         (simple_output::nl): This.
8382         (simple_output::put_raw_char): Flush last word.
8383         (simple_output::check_space): Removed.
8384         (simple_output::put_translated_string): Ditto.
8385         (simple_output::put_string): Simplified.
8386         (simple_output::put_number): Updated.
8387         (simple_output::put_float): Ditto.
8388         (simple_output::put_symbol): Removed.
8389         (simple_output::enable_newlines): Add `check_newline()'.
8390         (simple_output::flush_last_word): New function.
8392         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
8393         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
8395         * tmac/s.tmac (@PP, @IP): Add html conditional code.
8396         * tmac/an-old.tmac (TP): Ditto.
8398 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
8400         * mdate.sh: Make it POSIX compliant.
8402 2001-03-09  Werner LEMBERG  <wl@gnu.org>
8404         Added the `return' request to end a macro immediately.  It simply
8405         pops iterators from the input stack until a macro iterator is found.
8407         * src/roff/troff/input.cc (input_iterator::is_macro,
8408         macro_iterator::is_macro): New member.
8409         (input_return_boundary): New class to signal an immediate return
8410         to while_request().
8411         (input_stack::add_return_boundary, input_stack::is_return_boundary):
8412         New functions.
8413         (input_stack::clear): Use it.
8414         (input_stack::pop_macro): New function.
8415         (while_request): Use `is_return_boundary()'.
8416         (return_macro_request): New function.
8417         (init_input_requests): Use it.
8419         * src/roff/troff/TODO: Updated.
8420         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8422 2001-03-08  Werner LEMBERG  <wl@gnu.org>
8424         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
8425         cleanup.
8427 2001-03-07  Werner LEMBERG  <wl@gnu.org>
8429         Make `\B' more rigid.
8431         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
8432         parameter.
8433         (get_number_rigidly): New function.
8434         * src/roff/troff/input.cc (do_expr_test): Use it.
8435         * src/roff/troff/token.h: Updated.
8437         * src/roff/troff/request.h: Fix typo (init_html_request ->
8438         init_markup_request).
8440 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
8442         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
8443         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
8444         are now `.begin', `.end', `.image'.
8446         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
8447         (html_printer::add_to_sbuf): Changing type of `code' parameter.
8448         Use add_char_to_sbuf().
8449         (to_unicode): New function.
8450         (char_translate_to_html): Changing type of `ch' parameter.
8451         Use `to_unicode()'.
8452         (html_printer::~html_printer): Comment out doctype string.
8453         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
8454         instead of `.html-end'.
8455         (write_start_image): Use `.begin' and `.image' instead of
8456         `.html-begin' and `.html-image'.
8457         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
8458         (html_begin): Renamed to ...
8459         (begin): This.
8460         (html_end): Renamed to ...
8461         (end): This.
8462         (html_image): Renamed to ...
8463         (image): This.
8464         (init_html_requests): Renamed to ...
8465         (init_markup_requests): This.
8466         * tmac/www.tmac: Updated.
8468 2001-02-28  Bram  <bram@avontuur.org>
8470         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
8471         constructor.
8473 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
8475         * doc/meref.me: Fixing some typos.
8477 2001-02-16  Werner LEMBERG  <wl@gnu.org>
8479         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
8480         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
8481         * src/roff/troff/node.h: Updated.
8483 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
8485         * tmac/groff_tmac.man: Fix typo.
8487 2001-02-16  Werner LEMBERG  <wl@gnu.org>
8489         Fixing a bug which prevented proper end-of-sentence recognition
8490         between an `unformatted' box and the following text.  As a
8491         consequence, vertical line distances are no longer preserved in
8492         boxes after a call to `.unformat' -- because boxes aren't
8493         line-oriented (contrary to diversions), this doesn't make sense
8494         anyway.
8496         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
8497         value.
8498         (vertical_size_node::set_unformat_flag): New method.
8499         * src/roff/troff/node.hh: Updated.
8500         * src/roff/troff/input.cc (word_space_node::reread,
8501         hmotion_node::reread): Reset `unformat' flag after usage.
8502         (unformat_macro): Append only if `set_unformat_flag()' returns
8503         non-zero.
8504         * src/roff/troff/troff.man: Updated.
8506 2001-02-15  Werner LEMBERG  <wl@gnu.org>
8508         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
8509         documentation of `asciify' and `unformat' requests.
8511 2001-02-13  Werner LEMBERG  <wl@gnu.org>
8513         Redesigned the `unformat' request.  It is no longer connected with
8514         `asciify' but rather uses new `reread()' methods if the `unformat'
8515         flag is set.  Additionally, the handling of space characters after
8516         unformatting has been fixed so that they retain their width.
8518         * src/roff/troff/node.h (width_list): New structure to store
8519         original widths of spaces.
8520         (node): Added `unformat' member.
8521         Replaced `num_spaces' variable with `orig_width' list.
8522         * src/roff/troff/node.cc (*node::asciify,
8523         asciify_reverse_node_list): Removed `unformat_only' flag and related
8524         code.
8525         (word_space_node::asciify, word_space_node::word_space_node): Use
8526         `orig_width'.
8527         (word_space_node::~word_space_node): New destructor.
8528         (word_space_node::copy): Updated to handle `orig_width'.
8529         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
8530         (*node::merge_space): Update `orig_width' list if necessary.
8531         (*node::set_unformat_flag): New methods to set the `unformat' flag.
8532         * src/roff/troff/enc.cc (environment::space_newline): Use
8533         `width_list'.
8534         (environment::space): Added method to handle space width and
8535         sentence space width as parameters.  Use `width_list'.
8536         (environment::make_tab_node): Updated.
8537         * src/roff/troff/env.h: Updated.
8538         * src/roff/troff/input.cc (word_space_node::reread,
8539         unbreakable_space_node::reread, hmotion_node::reread): New methods
8540         to handle nodes specially if `unformat' flag is set.
8541         (do_asciify_macro): Renamed back to ...
8542         (asciify_macro): This.
8543         (unformat_macro): New implementation to simply set the `unformat'
8544         flag.
8546         * MORE.STUFF: Added more info about deroff.
8548 2001-02-08  Werner LEMBERG  <wl@gnu.org>
8550         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8551         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
8552         and `add_self()' methods to avoid hyphenation.  For example, the
8553         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
8554         soft hyphen after `foo'.  Now the hyphen list is correctly
8555         `foo<ignore><ignore>bar'.
8557 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
8559         * tmac/groff_tmac.man: Fix `BIR' macro.
8561 2001-02-04  Werner LEMBERG  <wl@gnu.org>
8563         A new escape sequence `\:', inserting a zero-width break point.
8565         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
8566         * src/roff/troff/input.cc (get_copy, token::next, asciify):
8567         Implement it.
8568         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
8569         method.
8570         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
8571         and `asciify()' methods.
8572         * src/roff/troff/node.cc (space_node::space_node): Updated.
8573         (space_node::asciify): Handle `was_escape_colon'.
8574         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8576         Handle `\~' similar to other comparable requests.
8578         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
8579         label.
8580         (token::next): Move creation of an unbreakable_space_node to...
8581         (token::add_to_node_list): Here.
8583         Fix a bug which sometimes prevented hyphenation of words connected
8584         with `\~' or `\ ' (and other escape sequences handled as
8585         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
8586         (after a call to the `unformat' request).
8588         * src/roff/troff/env.h (environment::possibly_break_line,
8589         environment::hyphenate_line): Introducing `start_here' parameter.
8590         * src/roff/troff/env.cc (environment::space_newline,
8591         environment::space): Use it.
8592         (environment::possibly_break_line, environment::hyphenate_line):
8593         Implement it.
8594         * src/roff/troff/input.cc (process_input_stack): Use it.
8595         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8596         space_char_hmotion_node, overstrike_node): Add
8597         `get_hyphenation_type()' method.
8598         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
8599         if `unformat_only' is active.
8601 2001-01-30  Werner LEMBERG  <wl@gnu.org>
8603         Implemented new read-only number register `.linetabs' which
8604         returns 1 if in line-tabs mode, 0 otherwise.
8606         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
8607         * src/roff/troff/env.cc (get_line_tabs): New function.
8608         (init_env_requests): Use it.
8609         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8611         * VERSION, REVISION: Changing to 1.17.0.
8613 2001-01-28  Werner LEMBERG  <wl@gnu.org>
8615         Fixed a bug which prevented hyphenation of words which are finished
8616         with `\)'.
8618         * src/roff/troff/token.h (token): Add enum type
8619         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
8620         * src/roff/troff/input.cc (token::next, token::description,
8621         get_line_arg, token::add_to_node_list, token::process): Use it.
8623 2001-01-27  Werner LEMBERG  <wl@gnu.org>
8625         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
8626         * src/roff/troff/div.cc (do_divert): Use it.
8628         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
8630 2001-01-25  Werner LEMBERG  <wl@gnu.org>
8632         Adding the `linetabs' request.  If set, tab distances are not
8633         computed relative to the input line but relative to the output line.
8635         * src/roff/troff/env.h (environment): New member `line_tabs'.
8636         * src/roff/troff/env.cc (line_tabs_request): Implement request.
8637         (environment::environment, environment::copy): Updated.
8638         (environment::distance_to_next_tab): Use `line_tabs'.
8639         (init_env_requests): Register request.
8640         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
8641         fixes.
8643 2001-01-24  Werner LEMBERG  <wl@gnu.org>
8645         Introducing a new read-only register `.int' which is set to a
8646         positive value if the last output line is interrupted (i.e., if it
8647         contains `\c').
8649         * src/roff/troff/env.cc (init_env_requests): Add it.
8650         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8652 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
8654         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
8655         * src/preproc/html/pre-html.cc (findPrefix): New function which
8656         generates the troff executable name via the system prefix.
8657         * src/preproc/eqn/main.cc: Modified warning message.
8659 2001-01-23  Werner LEMBERG  <wl@gnu.org>
8661         troff's `box' and `boxa' requests didn't preserve temporary
8662         indentation.
8664         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
8665         `saved_target_text_length' members.
8666         * src/roff/troff/div.cc (do_divert): Use them.
8668         Tabs (but not yet leaders and fields) are now handled correctly by
8669         `asciify' request.
8671         * node.h (hmotion_node): Add field `was_tab'.
8672         * env.cc (environment::make_tab_node): Set it.
8673         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
8675         Added new request `unformat' which will, contrary to `asciify',
8676         preserve font information after unformatting (i.e., only nodes
8677         dealing with horizontal space are converted back to input
8678         characters).
8680         * input.cc (asciify_macro): Renamed to ...
8681         (do_asciify_macro): this, having a new parameter `unformat_only'.
8682         (asciify_macro, unformat_macro): New; using do_asciify_macro.
8683         (init_input_requests): Added `unformat'.
8684         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
8685         parameter to control asciification process.
8686         * node.h (*_node::asciify): Ditto.
8687         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8689 2001-01-20  Werner LEMBERG  <wl@gnu.org>
8691         * doc/groff.texinfo: Minor improvement of `.in' documentation.
8693 2001-01-18  Werner LEMBERG  <wl@gnu.org>
8695         * tmac/ps.tmac: Remove call of psold.tmac.
8696         * tmac/psold.tmac: Comment updated.
8697         * tmac/psnew.tmac: Removed since no longer needed.
8698         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
8700         * font/devutf8/R.proto: Adding `shc' glyph.
8701         * font/devutf8/NOTES: Updated.
8703         * test-groff: Updated.
8705 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
8707         First cut of the new html device driver.  Changes to pre-html and
8708         the new grohtml are too numerous to be documented here.
8710         Stuff related to `html' has been renamed to `html-old' and `html2'
8711         stuff has been renamed to `html' (including directories).  The new
8712         html device driver is therefore invoked as `-Thtml'.
8714         Added new `\O' escape to suppress output (needed by html driver).
8716         Added functions and code to pass info about input-level commands
8717         (`.in', `.fl', etc.) to html driver.
8719         Three new functions (.html-begin, .html-end, and .html-image) for
8720         better html handling: `html-begin' will execute the remaining line
8721         if at the outermost nesting level, increasing an internal counter.
8722         `html-end' does the same but decreases the internal counter.
8723         `html_image' puts its arguments into a special node (suppress_node)
8724         to define an image region.
8726         The `output' request has been removed.
8728         * tmac/html-tags.tmac: Removed.
8729         * tmac/arkup.tmac: Updated and renamed to ...
8730         * tmac/www.tmac: New file.
8731         * tmac/markup.tmac Updated and renamed to ...
8732         * tmac/mwww.tmac: New file.
8733         * tmac/Makefile.sub: Updated.
8734         * tmac/an-old.tmac: Updated.
8735         * tmac/eqnrc: Updated.
8736         * tmac/groff_man.man
8737         * tmac/groff_markup.man: Updated and renamed to ...
8738         * tmac/groff_mwww.man: New file.
8739         * tmac/groff_tmac.man: Updated.
8740         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
8741         * tmac/html.tmac: Updated and renamed from html2.tmac.
8742         * tmac/pspic.tmac: Updated html support.
8743         * tmac/s.tmac: Added html output support.
8744         * tmac/troffrc, tmac/troffrc-end: Updated.
8746         * Makefile.in, doc/Makefile: Updated.
8747         * doc/groff.texinfo: Added info about new `\O' escape.
8748         * doc/homepage.ms: Use `MAILTO' macro.
8750         * font/devhtml/DESC.proto: Add `C' font.
8751         * font/devhtml/Makefile.sub: Updated.
8752         * font/devhtml/R.proto: Minor fixes.
8753         * font/devhtml-old/Makefile.sub: Updated.
8755         * src/devices/grohtml-old/Makefile.sub: Updated.
8757         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
8758         method.
8759         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
8760         graphic_start): Add `inline' parameter.  Update.
8761         (html_end_suppress, graphic_end): Update.
8763         * src/include/html-strings.h: New file.
8764         * src/include/htmlindicate.h: Comments updated.
8765         * src/include/printer.h: Updated.
8767         * src/preproc/eqn/main.cc (do_file, main): Updated.
8768         * src/preproc/pic/troff.cc (troff_output::start_picture,
8769         troff_output::finish_picture): Updated.
8770         * src/preproc/tbl/main.cc (process_input_file): Updated.
8772         * src/roff/groff/groff.cc (main): Updated.
8773         Pass device arguments to predrivers also.
8774         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
8775         * src/roff/troff/env.h (environment): Updated.
8776         New elements `need_eol' and `ignore_next_eol' (for html output).
8777         * src/roff/troff/env.cc (environment::environment): Add initializers
8778         for `need_eol' and `ignore_next_eol'.
8779         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
8780         functions.
8781         (point_size, fill, no_fill, center, right_justify, line_length,
8782         indent, temporary_indent, break_request, handle_tab): Use
8783         `add_html_tag()'.
8784         (set_tabs): Use `add_html_tag_tabs()'.
8785         (environment::add_html_tag): Updated.
8786         (environment::do_break): Updated.
8787         * src/roff/troff/div.cc (space_request, flush_output): Use
8788         `environment::add_html_tag()'.
8789         * src/roff/troff/input.cc: Updated.
8790         New variable `html_level' to indicate nested `html-begin' requests.
8791         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
8792         (non_interpreted_char_node, token_node, non_interpreted_node): Add
8793         `force_tprint()' method.
8794         (token::next): Handle `\O'.
8795         (do_suppress): Implement it.
8796         (html_begin, html_end, html_image): New functions.
8797         (init_output_requests): Renamed to ...
8798         (init_html_requests): this.
8799         (main): Use it.
8800         (macro::append_str, macro::append_unsigned, macro::append_int): New
8801         methods.
8802         New variable `output_low_mark_miny' to limit minimal value of y.
8803         (reset_output_registers): Use it.
8804         (output_request): Removed.
8805         (get_output_registers): New function.
8806         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
8807         (*_node): Added `force_tprint()' if necessary.
8808         (special_node): New elements `tf' and `get_tfont()'.
8809         (suppress_node): New class.
8810         * src/roff/troff/node.cc:
8811         New global variables `image_no' and `suppress_start_page'.
8812         (real_output_file): New method `is_on()'.
8813         (troff_output_file): New method `start_special(tfont)'.
8814         (troff_output_file::really_print_line): Use `tprint' conditionally.
8815         (real_output_file::print_line): Updated.
8816         (real_output_file::on): Updated.
8817         (*_node): Added `force_tprint()'.
8818         (special_node::special_node): Initializer updated.
8819         (special_node::same, special_node::copy, special_node::tprint_start):
8820         Updated.
8821         (get_reg_int, get_reg_str): New functions.
8822         (suppress_node::*): New methods.
8823         New global variables last_position, last_image_filename;
8824         (min): New inline function.
8825         * src/roff/troff/reg.h, src/roff/troff/request.h,
8826         src/roff/troff/troff.h: Updated.
8828 2001-01-13  Werner LEMBERG  <wl@gnu.org>
8830         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
8831         documentation of `asciify' request.
8833 2001-01-12  Werner LEMBERG  <wl@gnu.org>
8835         * src/roff/troff/input.cc: Move definition of special characters
8836         like `ESCAPE_TILDE' to ...
8837         * src/roff/troff/input.h: New file.
8838         * src/roff/troff/Makefile.sub (HDRS): Add it.
8840         Extending the .asciify request to `unformat' space characters also.
8842         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
8843         to count input space characters.
8844         Update constructors to take care of it.
8845         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
8846         `ESCAPE_SPACE' instead of normal space.
8847         (word_space_node::asciify): New method.
8848         (unbreakable_space_node::asciify): New method.
8849         (word_space_node::merge_space): New method.
8850         * src/roff/troff/env.cc (environment::space_newline,
8851         environment::space): Add code to initialize `num_spaces' (using the
8852         constructor of `word_space_node').
8853         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8854         Document it.
8856 2001-01-09  Werner LEMBERG  <wl@gnu.org>
8858         * man/groff_char.man: Use table header traps only conditionally.
8860 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
8862         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
8864 2001-01-08  Werner LEMBERG  <wl@gnu.org>
8866         Introducing the `box' and `boxa' requests which are similar to
8867         `di' resp. `da' but omitting a partially filled line (which is
8868         restored after ending the diversion).
8870         * src/roff/troff/div.h (diversion): Add elements to save partially
8871         filled line.
8872         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
8873         partially filled line.
8874         (divert, divert_append): Updated.
8875         (box, box_append): New functions.
8876         (init_div_requests): Use them.
8877         * src/roff/troff/env.h (environment): do_divert() is now a friend.
8878         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8880         * doc/groff.texinfo: Fix documentation of `lf' request.
8882 2000-12-25  Werner LEMBERG  <wl@gnu.org>
8884         * src/roff/troff/troff.man, NEWS: Document `writem' request.
8886 2000-12-21  Werner LEMBERG  <wl@gnu.org>
8888         Ignore `ss' request if in compatibility mode.
8890         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
8891         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
8892         * src/roff/troff/env.cc (space_size): Use it.
8894         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
8895         `ss' request in nroff mode.
8897         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
8898         changes.
8900 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
8902         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
8904 2000-12-13  Werner LEMBERG  <wl@gnu.org>
8906         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
8907         * src/preproc/eqn/neqn.man: Small fixes and additions.
8909 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
8911         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
8912         Fixing typo.
8914         * src/preproc/eqn/neqn.man: New file.
8916         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
8917         negative' warning.
8919         * tmac/e.tmac: Add `T&' macro.
8920         Fix `indent cannot be negative' warning.
8921         * tmac/s.tmac: Fix `indent cannot be negative' warning.
8923 2000-12-07  Werner LEMBERG  <wl@gnu.org>
8925         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
8927 2000-12-06  Werner LEMBERG  <wl@gnu.org>
8929         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
8930         `alloca' symbol .
8932         * MORE.STUFF: Added info about deroff for djgpp.
8934         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
8935         documentation of -rcR switch.
8937 2000-12-03  Werner LEMBERG  <wl@gnu.org>
8939         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
8940         if -rcR=1 (which is now the default in nroff mode), a single, very
8941         long page is created instead of multiple pages: All `ne' and `wh'
8942         requests are put into conditionals; a new macro `an-end' is added to
8943         be called with `em'.
8945         Some other minor cleanups.
8947         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
8949 2000-12-02  Werner LEMBERG  <wl@gnu.org>
8951         Fixing a bug which prevented hyphenation in words followed
8952         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
8954         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
8955         Adding possibly_break_line().
8956         * src/roff/troff/env.h (environment): Make possibly_break_line()
8957         public.
8959         Make `\~' usable in .tr request.
8961         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
8962         (token): Add stretchable_space().
8963         * src/roff/troff/input.cc (token::next, token::delimiter,
8964         token::description, process_input_stack, do_translate,
8965         add_to_node_list, token::process): Use it.
8966         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
8967         for adjusting the space.
8968         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
8969         for stretchable space.
8970         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
8971         (make_node): Add code for stretchable space.
8972         * src/roff/troff/env.cc (environment::add_char): Use it.
8973         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
8974         (get_copy, token::next, transparent_translate, asciify): Use it.
8976         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
8977         doc/groff.texinfo: Updated.
8978         * man/groff.man: Small reorderings.
8980 2000-11-23  Werner LEMBERG  <wl@gnu.org>
8982         * NEWS: Fixes.
8983         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
8984         option.
8985         * src/roff/troff/input.cc (main): Add `config_macro_path' and
8986         `safer_macro_path' to -M option.
8987         * src/roff/troff/troff.man: Fixes.
8989 2000-11-22  Werner LEMBERG  <wl@gnu.org>
8991         Use safer path (except for config files) if -U isn't specified.  Add
8992         a special macro path (without home and current directory) for config
8993         files.  Add home directory to unsafe path for consistency.  Don't
8994         include the home directory in the font path.
8996         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
8997         `macro_path'.
8998         * src/include/macropath.h: Add `config_macrp_path'.
8999         * src/libs/libgroff/fontfile.cc: Fix font path.
9000         * src/roff/troff/input.cc (process_startup_file): Use
9001         `config_macro_path'.
9002         (main): Select unsafe path if -U is given.
9004         * src/preproc/eqn/main.cc (main): Fixing search path for
9005         configuration file.
9006         * src/preproc/eqn/eqn.man: Updated.
9008         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9009         Updated.
9011         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9012         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9013         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9014         src/devices/grotty/grotty.man: Updated.
9016         * Makefile.in: Fix comments.
9018 2000-11-17  Werner LEMBERG  <wl@gnu.org>
9020         * tmac/safer.tmac: Empty file added (again) for compatibility
9021         reasons.
9022         * tmac/Makefile.sub: Updated.
9024 2000-11-16  Werner LEMBERG  <wl@gnu.org>
9026         * src/devices/grodvi/dvi.cc (main),
9027         src/devices/grohtml2/post-html.cc (main),
9028         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9029         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9030         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9031         (main), src/preproc/html2/pre-html.cc (main),
9032         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9033         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9034         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9035         (main), src/utils/hpftodit/hpftodit.cc (main),
9036         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9037         (main), src/utils/lookbib/lookbib.cc (main),
9038         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9039         (main): Use stdout for -v.
9040         * src/roff/groff/groff.cc (run_commands),
9041         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9042         to make direct printing to stdout possible.
9043         * src/roff/groff/pipeline.h: Updated.
9045         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9046         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9047         * src/utils/afmtodit/afmtodit.man: Updated.
9049         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9050         (version): New function.
9051         (usage): Updated.
9052         * src/utils/addftinfo/addftinfo.man: Updated.
9054         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9055         Fixing copyright dates.
9057         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9058         replacing it.
9060         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9061         version_string.
9063         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9065 2000-11-15  Werner LEMBERG  <wl@gnu.org>
9067         In all programs, make -v return immediately with exit status 0 to
9068         be compliant with the GNU standard.
9070         * src/devices/grodvi/dvi.cc (main),
9071         src/devices/grohtml2/post-html.cc (main),
9072         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9073         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9074         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9075         (main), src/preproc/html2/pre-html.cc (main),
9076         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9077         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9078         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9079         (main): Implement it.
9080         * NEWS: Updated.
9082         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
9083         and postprocessors to the -v option.
9085         * src/roff/grog/grog.pl: Implement -v.
9086         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9087         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9089         * src/roff/nroff/nroff.sh: Implement -v.
9090         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9091         * src/roff/nroff/nroff.man: Updated.
9092         
9093         * src/preproc/eqn/main.cc (main): Fix comment typo.
9095         * MORE.STUFF: Added info about djgpp port of grap.
9097 2000-11-14  Werner LEMBERG  <wl@gnu.org>
9099         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9100         mode (or rather, implemented non-compatibility mode).
9101         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9103         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9104         replacing it -- we don't find gxditview otherwise.
9105         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9107         * src/preproc/pic/depend: Removed.  Unnecessary.
9109         Implemented dummy keyword `solid' in pic for compatibility with
9110         AT&T pic.
9112         * lex.cc (lookup_keyword): Added `solid'.
9113         * pic.y: Added SOLID with dummy rule.
9114         * pic.cc, pic_tab.h: Regenerated.
9115         * doc/pic.ms: Updated.
9117 2000-11-13  Werner LEMBERG  <wl@gnu.org>
9119         For security reasons, don't use the current directory but the home
9120         directory while searching and scanning troffrc and troffrc-end.
9121         Similarly, replace the current directory with the home directory
9122         in the font path.
9124         * Makefile.in (fontpath, tmacpath): Remove current directory.
9126         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9127         two parameters `add_home' and `add_current'.
9128         (search_path::~search_path, search_path::command_line_dir,
9129         search_path::open_file): Remove tests for `dirs' being zero.
9130         * src/include/searchpath.h: Adjust.
9131         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9132         `safer_macro_path'.
9133         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9135         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9136         * src/roff/troff/input.cc: Use `mac_path', initialized with
9137         `macro_path'.
9138         (process_startup_file): Set `mac_path' to `safer_macro_path'.
9139         * src/roff/troff/env.cc: Use `mac_path'.
9141         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9143         * NEWS, man/roff.man, src/roff/troff/troff.man,
9144         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9145         Updated.
9147 2000-11-12  Werner LEMBERG  <wl@gnu.org>
9149         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9151         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9152         * configure.in: Fix typo in comment.
9153         * configure: Regenerated.
9155         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9156         copyright dates.
9158 2000-11-08  Werner LEMBERG  <wl@gnu.org>
9160         Add system tmac directory (/usr/local/lib/groff/site-tmac).
9162         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9163         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9164         $(systemtmacdir).
9165         Use @libdir@.
9166         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
9167         * tmac/Makefile.sub (install_data): Create
9168         $(systemtmacdir) and $(localtmacdir).
9169         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
9170         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
9171         NEWS, doc/groff.texinfo: Updated and minor fixes.
9173         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
9174         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
9175         $(systemtmacdir) since the wrapper files are platform-dependent.
9177 2000-11-01  Werner LEMBERG  <wl@gnu.org>
9179         * doc/groff.texinfo: Fix typo.
9181 2000-10-26  Werner LEMBERG  <wl@gnu.org>
9183         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
9184           tmac.doc.old -> doc-old.tmac
9185           tmac.an.old  -> an-old.tmac
9187         * tmac/tmac.*: Moved to ...
9188         * tmac/*.tmac: this.
9189         * tmac/man.local: Fix comment.
9190         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
9191         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
9192         Added some `FILES' sections.  More use of @...@ directives.  Other
9193         minor updates.
9194         * arch/djgpp/README, font/devutf8/NOTES: Updated.
9195         * doc/homepage.ms, doc/groff.texinfo: Updated.
9196         * man/groff.man, man/roff.man: Updated.
9197         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
9198         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9199         src/devices/grotty/grotty.man: Updated.
9200         * src/preproc/pic/pic.man: Updated.
9201         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
9202         instead of -mdoc.old.
9203         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
9204         * src/roff/nroff/nroff.man: Updated.
9205         * NEWS: Updated.
9207         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
9209         * tmac/mm.diff: Removed -- it has no use now since the mm package
9210         is part of groff.
9212         * tmac/*: Removed trailing spaces.
9214         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
9215         the tmac subdirectory also).
9217         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
9218         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
9219         stuff since it is no longer needed.
9221         * README, PROBLEMS: Updated.
9223 2000-10-25  Werner LEMBERG  <wl@gnu.org>
9225         Invert current behaviour: Search first FOOBAR.tmac, then
9226         tmac.FOOBAR.
9228         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
9229         (open_mac_file, macro_source): Implement it.
9230         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
9231         doc/groff.texinfo, NEWS: Document it.
9233         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
9234         Small documentation improvements.
9236         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
9237         subdirectory also).
9239         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
9241 2000-10-24  Werner LEMBERG  <wl@gnu.org>
9243         Add local tmac directory (groff/site-tmac).
9245         * Makefile.in: Add $(localtmacdir).
9246         (uninstall_dirs): Add $(localtmacdir).
9247         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
9248         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
9249         in $(localtmacdir).  Create $(localtmacdir).
9250         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
9251         Updated and minor fixes.
9253         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
9255         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
9257 2000-10-23  Werner LEMBERG  <wl@gnu.org>
9259         Move hyphen.us to tmac directory.
9261         * src/roff/troff/hyphen.us: Removed.
9262         * src/tmac/hyphen.us: Added.
9263         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
9265         Change installation structure for data files from .../groff/... to
9266         .../groff/<version><revision>/... to be conform with other GNU
9267         programs.
9269         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
9270         doc/Makefile: Implement it.
9271         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
9272         * configure: Updated.
9273         * arch/djgpp/README, font/devutf8/NOTES: Use it.
9274         * NEWS: Document it.
9275         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
9276         @MACRODIR@ instead of hard-coded directories.
9278 2000-10-22  Werner LEMBERG  <wl@gnu.org>
9280         Implement $GROFF_BIN_PATH environment variable (which defaults to
9281         $bindir) used for child programs of groff and similar wrappers.
9283         * gendefs.sh: Improve documentation.
9284         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
9285         src/preproc/eqn/Makefile.sub (neqn),
9286         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
9287         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
9288         $GROFF_BIN_PATH.
9289         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
9290         $GROFF_PATH__ (the latter for communication with troff).
9291         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
9292         set.
9293         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
9294         doc/groff.texinfo: Document it.
9296         * doc/groff.texinfo: Improve documentation of troff's -a option.
9298 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
9300         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
9301         non-intrusive eol marker.
9302         (troff_output_file::determine_line_limits): New function.
9303         (troff_output_file::draw): Use it.
9304         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
9305         output_pending_lines() instead of output_line().
9306         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
9307         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
9308         createImage): Small fixes.
9309         
9310 2000-10-14  Werner LEMBERG  <wl@gnu.org>
9312         Replace tmac.safer with a real secure solution.
9314         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
9315         system_request, pipe_output): Disable requests if in safer mode.
9316         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
9317         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
9318         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
9319         doc/groff.texinfo, src/roff/groff/groff.man,
9320         src/roff/troff/troff.man, arch/djgpp/README: Updated.
9322         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
9323         (resource_manager::output_prolog): Replace setenv() with putenv().
9325 2000-10-09  Werner LEMBERG  <wl@gnu.org>
9327         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
9328         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
9329         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
9330         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
9331         compilation errors with some compilers.  It seems that this code
9332         is no longer necessary -- if yes, it is easy to add some #ifdef's
9333         for that particular old-fashioned compiler.
9335         * MORE.STUFF: Added info about Meta-tbl.
9337         * doc/groff.texinfo: Added more info about `.if "..."..."'.
9339 2000-10-07  Werner LEMBERG  <wl@gnu.org>
9341         Adding a new escape sequence \B'...': If the string between
9342         the delimiters is a valid numeric expression, return the character
9343         `1', and `0' otherwise.  This is an analogon to \A.
9345         * src/roff/troff/input.cc (do_expr_test): Implement it.
9346         (token::next): Use it.
9347         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
9349         * tmac/tmac.trace: Made independent from escape character.
9351 2000-10-06  Werner LEMBERG  <wl@gnu.org>
9353         Adding a new request .dei: define indirect.  The first and second
9354         parameter of .dei are taken from string registers instead directly;
9355         this very special request is needed to make tmac.trace independent
9356         from the escape character (which might even be disabled).
9358         * src/roff/troff/input.cc (do_define_macro): Implement it.
9359         (define_macro_indirect): New function.
9360         (init_input_requests): Use it.
9362         Adding two requests .ecs and .ecr: Save and restore the escape
9363         character.  These two requests are needed to make tmac.trace
9364         independent from the escape character (which might even be
9365         disabled).
9367         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
9368         Implement it.
9369         (init_input_requests): Use it.
9371         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9373 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
9375         Adding a new option -P and new environment variable GROPS_PROLOGUE
9376         to grops, selecting a different prologue file (minor modifications
9377         by WL).
9379         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
9380         src/devices/grops/ps.cc (main): Implement it.
9381         * src/devices/grops/grops.man, NEWS: Document it.
9383 2000-09-22  Werner LEMBERG  <wl@gnu.org>
9385         * INSTALL: Add info about selecting paper format.
9387 2000-09-21  Werner LEMBERG  <wl@gnu.org>
9389         * src/roff/troff/input.cc (main): Fixing compiler warning.
9390         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
9391         strings.h from the former to the latter.
9392         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
9393         stuff from the former to the latter.
9395 2000-09-11  Werner LEMBERG  <wl@gnu.org>
9397         Implementing two new requests .tm1 and .tmc: The former is similar
9398         to .tm but can output leading spaces; its syntax is similar to
9399         defining a string, i.e., a `"' can be used to mark the beginning of
9400         the string to be written to stderr: `.tm1 " test'.  The latter is
9401         similar to .tm1 but doesn't write out a final newline character.
9403         * src/roff/troff/input.cc (terminal1, terminal_continue,
9404         do_terminal): New functions.
9405         (init_input_requests): Use them.
9406         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9408 2000-09-09  Werner LEMBERG  <wl@gnu.org>
9410         * tmac/groff_mdoc.samples.man: Small fixes.
9412 2000-09-08  Werner LEMBERG  <wl@gnu.org>
9414         * tmac/groff_mdoc.man: Fixing typo.
9416 2000-09-02  Werner LEMBERG  <wl@gnu.org>
9418         Implementing a .nop request which does nothing.
9420         * src/roff/troff/input.cc (nop_request): New function.
9421         (init_input_requests): Use it.
9422         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9424 2000-09-01  Werner LEMBERG  <wl@gnu.org>
9426         * doc/groff.texinfo: Added some comments.
9428 2000-08-30  Werner LEMBERG  <wl@gnu.org>
9430         * src/roff/troff/TODO: Updated.
9432 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9434         * doc/groff.texinfo: Fix comment how to compile the DVI file.
9436 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
9438         * font/devps/generate/Makefile (SHELL): Define explicitly to
9439         "/bin/sh", for non-Unix platforms.
9440         (extraclean): Use a more portable "" quoting instead of a
9441         backslash (which doesn't work on DOS/Windows).
9442         
9443         * font/devlj4/generate/Makefile (extraclean): Ditto.
9445         * font/devdvi/generate/Makefile (extraclean): Ditto.
9447 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9449         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
9450         src/roff/troff/troff.man: Document Eli's latest changes.
9452 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
9454         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
9455         macro file names of the form NAME.tmac as well as tmac.NAME.
9457 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9459         * src/include/posix.h: Remove definition of FILENAME_MAX.
9461         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
9462         `sys_fatal' and `stop' function().
9464         * test-groff: Updated.
9466 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
9468         Added the new troff command .output <arg> to suppress output (while
9469         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
9470         registers (for passing the output dimensions to the output device).
9472         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
9473         parameter.
9474         * src/roff/troff/node.h, src/roff/troff/node.cc
9475         (troff_output_file::really_print_line,
9476         ascii_output_file::really_print_line,
9477         supress_output_file::really_print_line): Use `width' parameter.
9478         (troff_output_file::really_on, troff_output_file::really_off,
9479         output_file::on, output_file::off, real_output_file::on,
9480         real_output_file::off, real_output_file::really_on,
9481         real_output_file::really_off): New functions.
9482         (real_output_file:public output_file): New variable `output_on'.
9483         (real_output_file::begin_page, real_output_file::copy_file,
9484         real_output_file::transparent_char, real_output_file::print_line):
9485         Use it.
9486         (real_output_file::print_line): Use check_output_limits.
9487         * src/roff/troff/reg.h, src/roff/troff/request.h,
9488         src/roff/troff/input.cc (assign_registers): New function to remove
9489         two `goto's.
9490         (do_ps_file): Use it.
9491         (check_output_limits, reset_output_registers, output_request,
9492         init_output_requests): New functions.
9493         (init_input_requests): Updated.
9495         Added new grohtml2 device and html2 preprocessor (coding
9496         not yet finished) which will eventually replace grohtml.
9498         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
9499         Updated.
9500         * src/include/htmlindicate.h, src/include/htmlindicate
9501         (html_begin_suppress, html_end_suppress): New functions.
9502         * src/preproc/tbl/main.cc: Use it.
9503         * src/roff/groff/groff.cc: Add support for html2 device (which will
9504         automatically invoke the html2 preprocessor).
9505         * src/roff/troff/input.cc (is_html2): New variable.
9506         * src/roff/troff/troff.h, src/roff/troff/env.h,
9507         src/roff/troff/env.cc (environment::add_html_tag): New function
9508         (uses `is_html2').
9509         (environment::do_break): Use it.
9510         * font/devhtml2/*: New files.
9511         * src/devices/grohtml2: New device.
9512         * src/preproc/html2: New preprocessor.
9513         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
9515 2000-08-23  Werner LEMBERG  <wl@gnu.org>
9517         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
9519 2000-08-22  Werner LEMBERG  <wl@gnu.org>
9521         * src/include/lib.h: Provide a fix for IRIX to not include
9522         groff-getopt.h.
9524 2000-08-18  Werner LEMBERG  <wl@gnu.org>
9526         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
9527         since some non-GNU sed programs can't handle null regexps.
9528         * configure, src/preproc/eqn/Makefile.sub,
9529         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
9531         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
9532         bug (string.h and strings.h are both needed according to latest
9533         POSIX standard).
9535         * MORE.STUFF: Added info about unroff and troffcvt.
9537 2000-08-08  Werner LEMBERG  <wl@gnu.org>
9539         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
9540         used before -ms.
9542         * tmac/tmac.man.old: Remove unused number register.
9544         * tmac.doc: Minor documentation fix.
9546 2000-08-07  Paul Eggert  <eggert@twinsun.com>
9548         * src/roff/groff/pipeline.c (is_system_shell):
9549         Fix typo: "monocased_shell" no longer exists.
9551 2000-08-07  Paul Eggert  <eggert@twinsun.com>
9553         Remove FILENAME_MAX limits.
9555         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
9556         that the argument length is less than FILENAME_MAX.
9557         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
9558         Use struct hack to allocate and free file name.
9559         (struct xtmpfile_list): fname is now part of the structure,
9560         not a pointer to another string.
9562 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
9564         * src/include/posix.h: Add a default value for FILENAME_MAX.
9566 2000-08-06  Paul Eggert  <eggert@twinsun.com>
9568         Add support for new BSD-style man pages (with ".Dd" instead of
9569         ".TH"), so that "groff -man" understands both styles, even
9570         when running "groff -man" on a host whose system man page
9571         macros don't support ".Dd".
9573         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
9574         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
9575         in case the system man macros don't define Dd or TH.
9577         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
9578         * tmac/tmac.an: New one-line file.
9579         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
9581 2000-08-06  Werner LEMBERG  <wl@gnu.org>
9583         * src/roff/troff/troff.man: Fixing typos.
9585 Version 1.16.1 released
9586 =======================
9588 2000-07-31  Werner LEMBERG  <wl@gnu.org>
9590         Preparing release 1.16.1.
9592         * REVISION: Revision number set to 1.
9593         * MORE.STUFF: Added info about port to DOS.
9594         * NEWS, win32-diffs: Updated.
9596         * src/include/nonposix.h: Remove first line -- this file is used
9597         in C also.
9599         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
9600         link to it.
9602 2000-07-30  Werner LEMBERG  <wl@gnu.org>
9604         * doc/texinfo.tex: Update to latest version.
9606 2000-06-28  Paul Eggert  <eggert@twinsun.com>
9608         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
9609         commands that fail.  Don't assume that "export a=b" is valid shell
9610         syntax.  This is needed for Solaris 2.5.1.
9612         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
9613         comment about missing Solaris headers.
9615         * PROBLEMS: Add section about problems with Sun Make and VPATH.
9617 2000-06-25  Werner LEMBERG  <wl@gnu.org>
9619         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
9620         SET_BINARY().
9622         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
9624         * win32-diffs: Updated.
9625         * README.WIN32: Added CRs to make all Windows editors happy.
9627         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
9628         src/roff/groff/pipeline.c).
9630 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
9632         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
9633         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
9635 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
9637         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
9638         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
9639         are binary files.
9640         (main): Support non-Posix systems with several different styles of
9641         slash characters in file names.
9643         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
9644         (main) [SET_BINARY]: Switch stdin into binary mode.
9646         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
9647         (main): Support file names with several possible slash-type
9648         characters, as given by DIR_SEPS[] in nonposix.h.
9649         (main) [__MSDOS__]: If renaming the temporary index file fails
9650         because it has more than one dot in its trunk, replace the dot
9651         with an underscore and try again.
9652         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
9653         Newline.
9654         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
9656         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
9657         (File::File): Open the input file in binary mode.  Strip CR
9658         characters from each CR-LF pair.
9659         (xbasename): Support file names with several possible slash-type
9660         characters, as given by DIR_SEPS[] in nonposix.h.
9662         * src/include/Makefile.sub (HDRS): Add nonposix.h.
9664         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
9665         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
9666         [!_POSIX_VERSION]: Define for traditional Unix systems.
9667         (real_output_file::real_output_file): Remove the MSVC-specific
9668         call to popen, use instead POPEN_WT, appropriately defined on
9669         nonposix.h.  #include nonposix.h.
9670         (real_output_file::~real_output_file): Remove the MSVC-specific
9671         call to pclose, a suitable macro is now defined on nonposix.h.
9672         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
9673         and WEXITSTATUS instead of assuming traditional Unix
9674         interpretation of the status returned by pclose.
9676         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
9677         call to popen, use POPEN_RT instead (appropriately defined on
9678         nonposix.h).  #include nonposix.h.
9679         (ps_bbox_request): Open the PostScript file in binary mode.
9680         Close the file after processing it.
9681         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
9682         nonposix.h.
9684         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
9685         A version of run_pipeline that doesn't use `fork'.
9686         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
9687         (system_shell_name, system_shell_dash_c)
9688         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
9689         the ugliness of testing DOS/Windows file names for equality, and
9690         support both stock shells and ports of Unix shells.
9692         * src/roff/groff/groff.cc: #include nonposix.h.
9693         (BSHELL): Definition moved to nonposix.h.
9694         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
9695         instead of a literal "-c".
9696         (xbasename): Support file names with several possible slash-type
9697         characters, as given by DIR_SEPS[] in nonposix.h.
9698         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
9699         of literal strings.
9701         * src/preproc/soelim/soelim.cc: #include nonposix.h.
9702         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
9704         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
9705         pic_tab.h.
9707         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
9709         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
9710         eqn_tab.h.
9712         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
9714         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
9715         P_tmpdir is defined, use it instead of the literal "/tmp".
9716         (remove_tmp_files, add_tmp_file): New functions.
9717         (xtmpfile): Record temporary files and register an atexit function
9718         to delete them explicitly, instead of relying on the OS to do
9719         that, which doesn't work on non-Unix systems.
9721         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
9722         (search_path::search_path): Use PATH_SEP instead of a literal
9723         colon.
9724         (search_path::command_line_dir): Ditto.
9725         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
9726         to support non-Posix systems.
9728         * src/libs/libbib/search.cc: #include nonposix.h.
9729         (search_list::add_file): Open the file in binary mode.
9731         * src/libs/libbib/linear.cc: #include nonposix.h.
9732         (file_buffer::load): Remove \r characters preceding \n from the
9733         loaded buffer.
9735         * src/libs/libbib/index.cc: #include nonposix.h.
9736         (make_index_search_item): Open index_filename in O_BINARY mode.
9737         (index_search_item_iterator::get_tag): Ditto.  Remove \r
9738         characters before \n characters.
9739         (index_search_item::check_files): Open files in binary mode.
9740         (index_search_item::munge_filename): Support DOS-style file names
9741         with backslashes and drive letters, use IS_ABSOLUTE.
9743         * src/devices/grops/ps.cc: #include nonposix.h.
9744         (main) [SET_BINARY]: Switch stdout to binary mode.
9746         * src/devices/grolj4/lj4.cc: #include nonposix.h.
9747         (main) [SET_BINARY]: Switch stdout to binary mode.
9749         * src/devices/grolbp/lbp.cc: #include nonposix.h
9750         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
9752         * src/devices/grodvi/dvi.cc: #include nonposix.h.
9753         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
9754         nonposix.h).
9755         (main) [SET_BINARY]: Switch stdout to binary mode.
9756         [_MSC_VER]: Remove an explicit call to _setmode.
9758         * src/include/nonposix.h: New file.
9760         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
9761         operation when building with DJGPP.
9762         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
9763         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
9764         ENVSETUP.
9766         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
9767         MS-DOS.
9768         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
9769         etc. can include a semi-colon on DOS/Windows.
9770         (depend.temp): Use depend1.temp instead of depend.temp1, to
9771         prevent files from overerwiting each other on 8+3 filesystems.
9773         * gendef.sh (t): Change definition to work with DOS/Windows.
9775         doc/groff.texinfo: Apart of some typo corrections, I also changed
9776         some index entris, to make them more non-ambiguous, and also put
9777         @ignore around some parts that are not yet written, to allow the
9778         Info output be readable.
9780 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
9782         Replaced specific checks for function declarations with a generic
9783         routine taken from GNU bfd.
9785         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
9786         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
9787         * configure.in: Use it.
9788         * src/devices/grolbp/lbp.cc, src/include/lib.h,
9789         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
9790         src/roff/groff/groff.cc: Use it.
9791         * Makefile.in, configure: Updated.
9793 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
9795         * src/devides/grolbp/lbp.h: Removed unused variables.
9797 2000-05-31  Keith Thompson  <kst@sdsc.edu>
9799         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
9800         strncasecmp().
9802 2000-05-31  Werner LEMBERG  <wl@gnu.org>
9804         * aclocal.m4 (GROFF_SRAND): New function to test the return value
9805         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
9806         * configure.in: Use it.
9807         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
9808         * configure, Makefile.in: Updated.
9810         * configure.in: Add test for strncasecmp().
9811         * src/include/lib.h: Use it.
9813 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
9815         * src/preproc/grn/Makefile.sub: Add MLIB.
9817 2000-05-29  Nix  <nix@esperi.demon.co.uk>
9819         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
9821 2000-05-29  Werner LEMBERG  <wl@gnu.org>
9823         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
9825         * PROBLEMS: Small update.
9827         * src/devices/grolbp/lbp.cc: Various small fixes.
9829 2000-05-28  Keith Thompson  <kst@sdsc.edu>
9831         * src/roff/nroff/nroff.sh: Fix main loop syntax.
9833         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
9835 2000-05-25  Werner LEMBERG  <wl@gnu.org>
9837         * man/roff.man: Removed unused macro.
9839 2000-05-24  Werner LEMBERG  <wl@gnu.org>
9841         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
9842         This is needed e.g. if you do
9843         `make distclean; ./configure; make dist'.
9845 Version 1.16 released
9846 =====================
9848 2000-05-23  Werner LEMBERG  <wl@gnu.org>
9850         Adding font CWI (constant width italic) to devdvi.
9852         * font/devdvi/CWI: New file.
9853         * font/devdvi/generate/Makefile: Add generating rule.
9854         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
9855         tmac/tmac.dvi: Use it.
9856         * NEWS: Announce it.
9858         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
9859         * font/devlj4/generate/Makefile: Cosmetic changes only.
9861         * man/groff.man: Removed most of the redundant description of
9862         special characters (which is in groff_char.man).  Added font
9863         translation CB->CR for devdvi.  Other minor fixes.
9865         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
9866         (registered) symbols.
9868 2000-05-22  Werner LEMBERG  <wl@gnu.org>
9870         * doc/Makefile: Added rule for creating info files.
9872         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
9873         AMS font metrics.
9874         * font/devdvi/generate/Makefile: Fixed dependencies.
9876         * font/devps/*: Regenerated.  Heavy changes for Bookman and
9877         NewCentury Schoolbook!
9878         * font/devps/generate/afmname: Will now run with GNU awk.
9879         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
9880         * font/devps/generate/Makefile: Cosmetic changes only.
9882 2000-05-21  Werner LEMBERG  <wl@gnu.org>
9884         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
9885         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
9886         `.SS' now produces a heading with a smaller size than `.SH'. 
9887         Completely formatted.
9888         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
9890         * man/groff.man: Improved table appearance.  Use of `eo' request
9891         to reduce number of doubled backslashes in macro definitions.
9892         Replacing `\e' with `\(rs'.  Other minor fixes.
9894         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
9895         to have correct line number.
9897         * INSTALL: Small improvement.
9899 2000-05-20  Bernd Warken  <bwarken@mayn.de>
9901         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
9902         WL).
9904 2000-05-19  Bernd Warken  <bwarken@mayn.de>
9906         * man/groff.man: Complete update (with a lot of corrections by WL).
9908 2000-05-18  Werner LEMBERG  <wl@gnu.org>
9910         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
9912         * font/*/*: Implement it.
9913         * man/groff_char.man, NEWS: Document it.
9915         * src/include/unix.h: Removed.  It isn't used.
9917         * doc/groff.texinfo: Slight improvements.
9919 2000-05-17  Werner LEMBERG  <wl@gnu.org>
9921         * README, win32-diffs: Small fixes and improvements.
9923 2000-05-16  Werner LEMBERG  <wl@gnu.org>
9925         * FDL: New file (the Free Documentation License version 1.1).
9927         * doc/groff.texinfo: Added many start-up values for gtroff.
9928         Some structural improvements of the source code.
9930 2000-05-15  Werner LEMBERG  <wl@gnu.org>
9932         * src/roff/troff/input.cc: Added small comment about troffrc-end.
9933         * src/roff/troff/troff.man: Added info about troffrc-end.
9935 2000-05-14  Werner LEMBERG  <wl@gnu.org>
9937         * Makefile.in (EXTRADIRS): Fix typos.
9938         (dist): Handle deletion of old .tar.gz file correctly.
9939         (DISTDIRS): Include all tty output devices.
9941         * doc/groff.texinfo: Adding more cross references; countless other
9942         fixes.
9944 2000-05-13  Werner LEMBERG  <wl@gnu.org>
9946         * MORE.STUFF: Added Robert Marks's utilities.
9948 2000-05-12  Werner LEMBERG  <wl@gnu.org>
9950         Added win32 port contributed by Blake McBride
9951         <blake@florida-software.com>.
9953         * README.WIN32, win32-diffs: New files.
9954         * NEWS: Updated.
9956         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
9957         (tmove, tmove2): Added parentheses to avoid compiler warnings.
9958         (change): Removed unused variables.
9960         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
9961         (savebounds): Changed return value from `int' to `void'.
9962         * src/preproc/grn/hdb.cc: Ditto.
9964         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
9965         final backslash in comment to avoid compiler warning.
9967         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
9969         * doc/groff.texinfo: More fixes.
9971 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
9973         * tmac/tmac.doc: Documentation fix.
9975 2000-05-11  Werner LEMBERG  <wl@gnu.org>
9977         * doc/groff.texinfo: Reading the source code shows up a lot of
9978         omissions and incorrect data...  More conversion to @Deffn macros.
9980 2000-05-10  Werner LEMBERG  <wl@gnu.org>
9982         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
9983         dependency.
9985         * src/roff/troff/request.h: Removing unused `no_break_flag'.
9987 2000-05-09  Werner LEMBERG  <wl@gnu.org>
9989         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
9990         improvements.
9992         * doc/groff.texinfo: Extended history section.  More conversion to
9993         @Deffn macros.  More .tr documentation.
9995 2000-05-07  Werner LEMBERG  <wl@gnu.org>
9997         * doc/groff.texinfo: Completed tab section.  Added info about
9998         fields.
10000 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
10002         * PROBLEMS: Describe configure script fix for OS/390 Unix.
10004 2000-05-05  Werner LEMBERG  <wl@gnu.org>
10006         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10007         LaTeX 2e).
10008         * NEWS: Document it.
10010         * man/troff.man: Minor optical improvements.
10012 2000-05-03  Werner LEMBERG  <wl@gnu.org>
10014         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10016         * font/*/*: Implement it.
10017         * man/groff_char.man, NEWS: Document it.
10019 2000-05-02  Werner LEMBERG  <wl@gnu.org>
10021         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10022         expansion.
10023         * NEWS: Document the three new man pages.
10025         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10026         * configure: Updated.
10028         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10030 2000-05-01  Werner LEMBERG  <wl@gnu.org>
10032         Added grap support to grog.
10034         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10035         * src/roff/grog/grog.man: Document it.
10037         * doc/groff.texinfo, NEWS: Add info about grap support.
10039         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10040         (with slight fixes by me).
10042         * tmac/groff_tmac.man: New file documenting tmac mechanism.
10043         * tmac/Makefile.sub: Add groff_tmac.man.
10044         * man/roff.man: New file giving overview of roff system.
10045         * man/troff.man: A short reference of troff.
10046         * man/Makefile.sub: Add roff.man and troff.man.
10048 2000-04-30  Werner LEMBERG  <wl@gnu.org>
10050         Added grap support to groff.
10052         * src/roff/groff/groff.cc: Implement it.
10053         * src/roff/groff/groff.man: Document it.
10055         * src/devices/grotty/grotty.man: Add cp1047 device.
10056         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10057         Ditto.
10058         * src/roff/groff/groff.man: Ditto.
10059         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10060         * doc/groff.texinfo: Ditto.
10062         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10063         for cp1047.
10065 2000-04-29  Werner LEMBERG  <wl@gnu.org>
10067         * man/groff_char.man: Add `pc' glyph.
10068         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10069         * tmac/tmac.tty: Add `pc' glyph.
10070         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
10071         we use cp1047 output device.
10073         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10074         there are still hardcoded latin1->unicode values in utf8's font
10075         definition files.
10076         * configure: Updated.
10077         * NEWS: Minor clarification.  Updated.
10079         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
10080         Unix.
10082 2000-04-28  Werner LEMBERG  <wl@gnu.org>
10084         Adding EBCDIC code page 1047.
10086         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10087         font/devcp1047/DESC.proto: New files.
10089         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10090         either ascii/latin1 or cp1047.
10091         * Makefile.in: Use it.
10092         * configure: Updated.
10094         Replacing and/or adding `md' (mathdot) glyph with `pc'
10095         (periodcentered) in all text fonts.
10097         * font/*/*: Change it.
10099 2000-04-27  Werner LEMBERG  <wl@gnu.org>
10101         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10103         * configure.in: Add check for strings.h.
10104         * src/include/driver.h: Use HAVE_STRINGS_H.
10105         * src/devices/grolbp/lpb.cc: Remove string.h.
10107         * src/include/groff-getopt.h: New file.  It will be used instead of
10108         getopt.h (to be included in lib.h) to avoid endless problems with
10109         picky C++ compilers.
10110         * src/include/lib.h: Use groff-getopt.h.
10111         * src/include/Makefile.sub: Updated.
10113         * configure: Updated.
10114         * Makefile.in: Updated.
10116         * NEWS: Mention EBCDIC support.
10118 2000-04-26  Werner LEMBERG  <wl@gnu.org>
10120         * TODO: Some additions.
10122 2000-04-25  Werner LEMBERG  <wl@gnu.org>
10124         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10125         of mso request.
10127 2000-04-23  Werner LEMBERG  <wl@gnu.org>
10129         * src/roff/troff/troff.man: Minor fixes.
10131 2000-04-22  Werner LEMBERG  <wl@gnu.org>
10133         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10134         `.T' string register and the incompatible definition of the `.T'
10135         number register (compared to Unix troff).
10137         * man/groff_char.man: Add some missing characters.
10138         * font/devutf8/NOTES: Update.
10140 2000-04-21  Werner LEMBERG  <wl@gnu.org>
10142         * src/include/htmlindicate.h, src/include/lib.h,
10143         src/include/posix.h: Fix copyright.
10145         * src/include/Makefile.sub: Update.
10147 2000-04-20  Werner LEMBERG  <wl@gnu.org>
10149         * src/roff/troff/input.cc (input_char_description): Removing
10150         superfluous space char.
10152         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10154         * doc/groff.texinfo: Document EBCDIC.
10156 2000-04-19  Werner LEMBERG  <wl@gnu.org>
10158         Introducing `shc' as the glyph name for the soft hyphen character.
10160         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10161         font/devlatin1/R.proto: Use it.
10163         * NEWS: Updated.
10165 2000-04-18  Werner LEMBERG  <wl@gnu.org>
10167         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
10168         dependency on ASCII order.
10170 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
10172         * src/libs/libgroff/illegal.c: Added EBCDIC table.
10173         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
10175         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
10176         to increase portability.
10178 2000-04-15  Werner LEMBERG  <wl@gnu.org>
10180         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
10181         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
10182         the generic `\n' if under OS/390 Unix.
10184         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
10186         * configure: Regenerated.
10188 2000-04-14  Werner LEMBERG  <wl@gnu.org>
10190         * doc/groff.texinfo: More conversions to @Deffn.
10192 2000-04-12  Werner LEMBERG  <wl@gnu.org>
10194         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
10195         with `:'.
10197         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
10199 2000-04-10  Werner LEMBERG  <wl@gnu.org>
10201         * doc/groff.texinfo: More conversions to @Deffn.
10203 2000-04-08  Werner LEMBERG  <wl@gnu.org>
10205         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
10206         Updated to latest version (glibc 2.1.3).
10208 2000-04-07  Werner LEMBERG  <wl@gnu.org>
10210         * doc/Makefile (clean): Include more index files.
10211         Add rule texinfo->dvi.
10213 2000-04-05  Werner LEMBERG  <wl@gnu.org>
10215         * doc/groff.texinfo: Added new index `op' for operators.  More
10216         info on end of sentence characters.  More use of @Deffn.
10218 2000-03-30  Werner LEMBERG  <wl@gnu.org>
10220         * */*.man: Adding a note that a whitespace can be inserted between
10221         a command line option and its parameter -- we are using GNU getopt.
10223         * src/roff/groff/groff.man: Add example of `-m mandoc'.
10225 2000-03-28  Werner LEMBERG  <wl@gnu.org>
10227         Correct anachronism of calling the man macro file with `-man'
10228         instead of `-m man' etc.
10230         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
10231         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
10232         load tmac.<package>.
10234         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
10236         * NEWS: Updated.
10238         * doc/groff.texinfo: Updated.
10240         * tmac/groff_man.man: Copyright added.
10242 2000-03-27  Werner LEMBERG  <wl@gnu.org>
10244         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
10245         typeset the request resp. escape name with a tt font -- due to a
10246         bug in texinfo.tex it is necessary to use the `-e' switch with
10247         texi2dvi.
10249         Improving info about usage of groff units.
10251         Other minor fixes.
10253 2000-03-20  Werner LEMBERG  <wl@gnu.org>
10255         * doc/groff.texinfo: Added section about man macro package
10256         (I've basically taken groff_man.man).  Introducing new indices `ma'
10257         for macros/strings and `gl' for glyph names.  Other minor fixes.
10259         * tmac/groff_man.man: Fixed some typos.
10261 2000-03-19  Werner LEMBERG  <wl@gnu.org>
10263         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
10264         Other minor fixes.
10266         * doc/texinfo.tex: New file.
10268 2000-03-18  Werner LEMBERG  <wl@gnu.org>
10270         * doc/groff.texinfo: Improved section on number registers.  Other
10271         minor updates.
10273 2000-03-16  Werner LEMBERG  <wl@gnu.org>
10275         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
10276         synopsis.
10278         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
10279         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
10280         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
10281         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
10283         * src/preproc/grn/grn.man: Better synopsis; added copyright.
10285         * src/roff/grog/grog.man: Updated copyright date.
10287 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
10289         * configure.in: Added test for strdup.
10291         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
10292         is available.
10294         Replaced dynamic allocation of arrays `[...]' with `new' operator.
10296         Other minor fixes.
10298 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
10300         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
10302 2000-03-11  Werner LEMBERG  <wl@gnu.org>
10304         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
10305         compilers silent.
10306         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
10307         * src/include/lib.h: Remove some spaces.
10309 2000-03-10  Werner LEMBERG  <wl@gnu.org>
10311         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
10312         initializers from arguments (some compilers don't like this).
10314 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
10316         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
10317         used by pic and eqn to tell grohtml where the graphic regions start
10318         and end.
10319         * src/libs/libgroff/Makefile.sub: Use it.
10320         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
10321         graphic_start() and graphic_end() from htmlindicate.cc.
10323 2000-03-09  Werner LEMBERG  <wl@gnu.org>
10325         * tmac/tmac.safer: Will now work correctly in compatibility mode.
10326         * tmac/groff_man.man: More fixes.
10328 2000-03-08  Werner LEMBERG  <wl@gnu.org>
10330         * doc/Makefile: Added texput.log to the `clean' target.
10331         * doc/groff.texinfo: Added info about delimiters for escapes.
10333 2000-03-08  Bernd Warken  <bwarken@mayn.de>
10335         * src/preproc/pic/pic.man: Add info on conversion of pic images to
10336         other graphic formats.
10338 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
10340         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
10341         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
10342         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
10343         files.
10345 2000-03-07  Werner LEMBERG  <wl@gnu.org>
10347         * doc/groff.texinfo: Spelling fixes.
10349 2000-03-06  Werner LEMBERG  <wl@gnu.org>
10351         * tmac/groff_man.man: Completely revised to cover everything in
10352         tmac.an.
10354         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
10355         Other minor fixings.
10356         * src/roff/troff/env.cc (environment_copy): Improve error message and
10357         fix itoa->i_to_a.
10358         * src/roff/troff/TODO: Updated.
10360         * doc/Makefile: Bug fixes -- this is still provisional, though...
10362         * tmac/eqnrc: Small fixes.
10364 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
10366         Adding a request `evc' to copy environments.
10368         * src/roff/troff/env.cc (environment::copy, environment_copy):
10369         Implement it.
10370         * src/roff/troff/env.h: Add prototype.
10372 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
10374         Adding strsep() -- Solaris 8 doesn't have it.
10376         * configure.in: Test it.
10377         * src/devices/grolbp/lbp.cc: Add code.
10379 2000-03-05  Werner LEMBERG  <wl@gnu.org>
10381         * src/roff/troff/div.cc (macro_diversion::output,
10382         top_level_diversion::output): Fixing an incompatibility with
10383         original troff: \x'0' updates the .a register also.  Thanks to
10384         <Andries.Brouwer@cwi.nl> for pointing this out.
10385         * doc/groff.texinfo: Document it.
10387         * Makefile.in: Create Makefile.dep if necessary before calling the
10388         submake process to avoid warning about nonexistent file.
10390         * NEWS, PROJECTS: Updated.
10392 2000-03-04  Werner LEMBERG  <wl@gnu.org>
10394         * tmac/troffrc: Add tmac.lbp.
10396 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
10398         * tmac/tmac.lbp: New file.
10399         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
10400         command.
10402 2000-03-03  Werner LEMBERG  <wl@gnu.org>
10404         * Makefile.in: Fixing $(subdir).
10406         * README, NEWS: Small fixes.
10408         * test-groff: Adding path to grolbp.
10410         * configure.in: The (new) file src/xditview/Imakefile.in will be
10411         also configured -- it is now possible to build gxditview in a
10412         directory different from $srcdir.
10414 2000-03-02  Blake McBride  <blake@florida-software.com>
10416         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
10418         * MORE.STUFF: Added website of bell labs and info about plot2dev.
10420 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
10422         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
10423         files.
10425 2000-02-29  Werner LEMBERG  <wl@gnu.org>
10427         Adding GNU getopt to the groff distribution.
10429         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
10430         New files.
10431         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
10432         * aclocal.a4: Remove GROFF_GETOPT function.
10433         * configure.in, Makefile.in, PROBLEMS: Update.
10434         * src/include/lib.h: Replace getopt tests with getopt.h.
10435         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
10437         * doc/groff.texinfo: Further checking/updating.  Adding more index
10438         entries.
10440         * man/groff_out.man: Fix nroff mode activation (for emacs).
10441         * man/groff_font.man: Add missing ligature.
10443 2000-02-28  Werner LEMBERG  <wl@gnu.org>
10445         * doc/groff.texinfo: Further checking/updating.  Adding more index
10446         entries.
10448         * src/devices/grolbp/grolbp.man: Added a comment line at the
10449         beginning of the file (similar to shell scripts) which indicates
10450         that `tbl' should be used as a preprocessor.
10452 2000-02-27  Blake McBride  <blake@florida-software.com>
10454         Adapting groff to MS Visual C++ 6.0 compiler (tested with
10455         Windows NT 4.0).  Uses _MSC_VER define where necessary.
10457         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
10458         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
10459         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
10460         src/include/lib.h, src/libs/libgroff/errarg.cc,
10461         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
10462         src/preproc/refer/label.y, src/preproc/refer/label.cc,
10463         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
10464         src/roff/troff/div.cc, src/roff/troff/env.cc,
10465         src/roff/troff/input.cc, src/roff/troff/node.cc,
10466         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
10467         if_to_a() to avoid name clashes.
10468         * src/include/posix.h: Don't use unistd.h.
10469         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
10470         clause for integrating non-Unix xtmpfile() code.
10471         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
10472         structure; use "rt" for popen() in pipe_source(); add getpid()
10473         dummy function.
10474         * src/roff/troff/node.cc: Use special versions of popen() in
10475         real_output_file() and pclose() in ~real_output_file().
10477 2000-02-27  Werner LEMBERG  <wl@gnu.org>
10479         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
10480         LBP-8 series laser printers).  This code has been contributed by
10481         Francisco Andrés Verdú <pandres@dragonet.es>.
10483         * src/devices/grolbp/*: The grolbp output device.
10484         * font/devlpb/*: The font description files.
10485         * Makefile.in: Add grolpb and devlbp subdirectories.
10487         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
10488         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
10489         typographic fixes.
10491         * doc/groff.texinfo: Further checking/updating.  Adding more index
10492         entries.
10494         * NEWS: Updated.
10496         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
10498         * man/groff_font.man: Adding info about obsolete DESC keywords.
10499         * src/devices/grolj4/grolj4.man: Documenting additional DESC
10500         keywords.
10502 2000-02-26  Werner LEMBERG  <wl@gnu.org>
10504         * src/preproc/grn/grn.man: Added info about the gremlin file format
10505         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
10507 2000-02-25  Werner LEMBERG  <wl@gnu.org>
10509         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
10510         friends to be non-integer.
10512         * src/preproc/grn/grn.man: Document it.
10514         * doc/groff.texinfo: Further checking/updating.  Adding more index
10515         entries.
10517 2000-02-24  Werner LEMBERG  <wl@gnu.org>
10519         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
10520         line thicknesses to be integer multiples of this value.
10522         * src/preproc/grn/grn.man: Commenting out the -s option -- the
10523         corresponding code doesn't work (yet).
10525         * doc/groff.texinfo: Further checking/updating.  Adding more index
10526         entries.
10528 2000-02-23  Werner LEMBERG  <wl@gnu.org>
10530         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
10531         specify line thickness instead of base units.  The new default
10532         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
10533         thick lines respectively.
10535         Removed unused variable `prevval'.
10537         * src/preproc/grn/grn.man: Updated.
10539 2000-02-22  Werner LEMBERG  <wl@gnu.org>
10541         * src/preproc/grn/main.cc: Slight formatting.
10543         * src/roff/groff/groff.man: Formatting fix.
10544         * src/preproc/grn/grn.man: Ditto.
10546         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
10548         * doc/groff.texinfo: Further checking/updating.
10550 2000-02-21  Werner LEMBERG  <wl@gnu.org>
10552         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
10554         * test-groff: Added grn subdir to path.
10556         * doc/groff.texinfo: Some restructing and other small improvements.
10558         * src/roff/groff/groff.cc (help): Fixed info string.
10560 2000-02-20  Werner LEMBERG  <wl@gnu.org>
10562         * doc/meref.me: Fix description of .GS request.
10564         * src/roff/troff/troff.man: Fixing typo.
10566         Adding the `grn' preprocessor for gremlin graphic files.
10568         * src/preproc/grn/*: This is the Berkeley distribution written by
10569         David Slattengren and Barry Roitblat, adapted to groff by Daniel
10570         Senderowicz and Werner Lemberg.
10572         * doc/grnexampl.{me,g}: A sample for grn.
10574         * Makefile.in: Added subdirectory entry for grn.
10576         * src/roff/groff/groff.cc: Added support for grn.  It can be now
10577         called with the switch `-g'.
10579         * src/roff/groff/groff.man: Updated.
10581         * src/roff/grog/grog.{man,pl,sh}: Updated.
10583         * NEWS: Updated.
10585 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
10587         * src/include/lib.h: Added xtmptemplate and made xtmpfile
10588         parametrically polymorphic.
10590         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
10591         and the alterations to xtmpfile.
10592         xtmpfile can be requested to return the filename created
10593         and asked not to unlink the temp file.  The default behaviour
10594         if parameters are absent is exactly the same as before.
10596 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
10598         A new request `length' is available which returns the length of a
10599         string in a number register:
10601         * src/roff/troff/input.cc (length_macro): Implement it.
10602         * src/roff/troff/input.cc (init_input_requests): Register it.
10604 2000-02-11  Werner LEMBERG  <wl@gnu.org>
10606         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
10607         of the `substring' request.
10609         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
10610         request.
10612         * src/roff/troff/TODO, NEWS: Updated.
10614 2000-02-09  Werner LEMBERG  <wl@gnu.org>
10616         * src/roff/groff/groff.man: Added an example.
10618 2000-02-06  Werner LEMBERG  <wl@gnu.org>
10620         I've considerably modified the directory structure of the
10621         distribution to get a more vertical layout.  For example, the number
10622         of top level directories has been reduced from 42 to 6.
10624         As a consequence, many changes, especially to the makefiles, were
10625         necessary:
10627         * The makefile variables `top_builddir' and `top_srcdir' have been
10628         introduced.  Virtually all relative paths have been replaced with
10629         absolute ones using these two variables.
10631         * Dependencies (in the files `Makefile.dep') are no longer part of
10632         the distribution.  Instead, they are created during a `make install'
10633         in the build directory.
10635         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
10636         make `top_srcdir' and `top_builddir' absolute.
10638         Some other changes:
10640         * Man pages now depend on the files `VERSION' and `REVISION'.
10642         * The added shell script `mkinstalldirs' will replace `mkdir' in
10643         almost all cases.
10645         * VERSION: Version number increased to 1.16.
10647 2000-02-04  Werner LEMBERG  <wl@gnu.org>
10649         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
10651         * Makefile.in: Removed $(tmac_m) since it is no longer needed
10652         (after an update of the mm stuff).
10654         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
10656 2000-02-03  Werner LEMBERG  <wl@gnu.org>
10658         The .psbb request will now also accept Mac PS images (i.e. using LF
10659         as the EOL character).
10661         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
10662         (with slight modifications).
10663         * troff/input.cc (do_ps_file): Use it.
10665         * test-groff: Add grohtml and grolj4 output devices to PATH.
10667 2000-01-30  Werner LEMBERG  <wl@gnu.org>
10669         * NEWS, MORE.STUFF: Updated.
10671 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
10673         Add the `srand' command to pic.
10675         * pic/lex.cc, pic/pic.y: Implement it.
10676         * pic/pic.man: Document it.
10677         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
10679 2000-01-30  Werner LEMBERG  <wl@gnu.org>
10681         Add a new request `.psbb'.  This does exactly what the external
10682         program psbb did.  It scans a PostScript image file for a
10683         %%BoundingBox comment and extracts the bounding box values (in
10684         PostScript units) which are then stored in the four new (read-only)
10685         number registers `llx', `lly', `urx', and `ury'.
10687         This will allow the usage of the .PSPIC macro without worrying
10688         about unsafe behaviour of groff, i.e., it will work without the
10689         `-U' switch of groff.
10691         * troff/input.cc: Implement it.
10692         * tmac/tmac.pspic: Use it.
10693         * troff/troff.man, grops/grops.man, NEWS: Document it.
10694         * psbb/*, Makefile.in: Remove it since it is no longer needed.
10696         This is bloody C code simply adapted from psbb.c!  Any improvements
10697         welcome.
10699 2000-01-29  Werner LEMBERG  <wl@gnu.org>
10701         * man/groff_font.man: Minor clarifications.
10703         * NEWS: Updated.
10705 2000-01-28  Werner LEMBERG  <wl@gnu.org>
10707         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
10709 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
10711         * man/groff_font.man: Brought up to date regarding tcommand
10712         extensions.
10713         * libgroff/font.cc: Handle everything after `--' as a comment
10714         in the font files.
10715         * devps/*: Added comment delimiter inside devps font files.
10717 2000-01-28  Werner LEMBERG  <wl@gnu.org>
10719         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
10720         \fC...\fP (which now works as expected).
10722         * troff/troff.man: Fix typo.
10724 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
10726         Completed the pass_filenames implementation in troff.
10728         * libdriver/input.cc: Will read the new `F' tcommand.
10729         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
10730         * troff/input.cc: Use it.
10732 2000-01-26  Werner LEMBERG  <wl@gnu.org>
10734         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
10735         font will now be updated even if an invalid font is selected.
10737 2000-01-24  Werner LEMBERG  <wl@gnu.org>
10739         * doc/homepage.ms: Updated for new tmac.arkup.
10741         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
10743         * tmac/tmac.arkup: Cleanup.
10745         Added `\&' to .HTML macro to `leave vertical mode', so to say.
10747         Removed obsolete .LINK macro completely.
10749         The macros .URL, .FTP, and .MAILTO now accept a third argument which
10750         will be immediately appended to the second argument (to be used with
10751         punctuation, for example).
10753         Disabled .CDFTP macro temporarily for security reasons.
10755         * tmac/groff_markup.man: Complete revision for latest changes in
10756         tmac.arkup -- note that it does not yet format correctly with
10757         grohtml :-(
10759 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
10761         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
10762         * devutf8/R.proto: Add mappings for wp, lh, rh.
10763         * devutf8/NOTES: Updated.
10765 2000-01-23  Werner LEMBERG  <wl@gnu.org>
10767         * doc/groff.texinfo: Updated version/copyright info.
10769 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
10771         Added support for two new directives in device descriptions:
10772         `pass_filenames' (to pass the input file name to the output device)
10773         and `use_charnames_in_special' (to support e.g. accented characters
10774         in the `X' request).
10776         * include/font.h, troff/charinfo.h: Declare it.
10778         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
10780         * devhtml/DESC: Use it.
10782         * troff/input.cc: New function encoded_char.
10784         * troff/token.h: Add test for `specialness'.
10786 2000-01-21  Werner LEMBERG  <wl@gnu.org>
10788         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
10789         mistake from the list of files to be installed.
10791 2000-01-18  Werner LEMBERG  <wl@gnu.org>
10793         * README: Added info how to apply patches.
10795 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
10797         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
10799 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
10801         * troff/input.cc: Add support for troffrc-end.
10803         * tbl/main.cc: Altered to issue table-start and table-end special
10804         characters if using the html device.
10806         * devhtml/*: Modified font files to incorporate html encoding of
10807         characters.
10809         * tmac/groff_markup.man: New file documenting tmac.arkup.
10811         * tmac/troffrc-end: New file.  This is invoked after all user
10812         specified macros.  Currently used by the html device to include
10813         tmac.html.  Thus no need for users to specify -mhtml anymore.
10815         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
10816         (MAN7): Add groff_markup.man.
10818         * tmac/tmac.an, tmac/tmac.html: Small html updates.
10820         * tmac/troffrc: tmac.arkup will now be called for the html device.
10822         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
10823         extra device specific information about fonts.
10825         * doc/homepage.ms: New file.  It is an example how an HTML home page
10826         could look like with grohtml.
10828         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
10830 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
10832         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
10833         of Im, Re.
10835         * devutf8/NOTES: Updated.
10837 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
10839         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
10840         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
10841         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10842         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
10843         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
10844         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
10845         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
10846         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
10847         warnings.
10849         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
10851 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
10853         grolj4: Paper size will be searched case-insensitively.
10855         * include/lib.h: Add check for strcasecmp().
10856         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
10857         * configure.in: Check for strcasecmp().
10859 2000-01-11  Werner LEMBERG  <wl@gnu.org>
10861         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
10862         `REVISION'.
10864 2000-01-10  Werner LEMBERG  <wl@gnu.org>
10866         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
10867         revision scheme.
10869         Add a new read-only register, `.Y', which contains the groff
10870         revision.
10872         * troff/input.cc (init_input_requests): Define it.
10873         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
10874         * doc/groff.texinfo, troff/troff.man: Document it.
10876         * libgroff/Makefile.sub (version.cc): Add definition of
10877         `Version_string[]', consisting of `<major>.<minor>.<revision>'
10878         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
10879         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
10880         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
10881         troff/input.cc, pfbtops/pfbtops.c: Use it.
10883 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
10885         Add a revision scheme to the groff package.
10887         * REVISION: New file.
10888         * libgroff/Makefile.sub (version.cc): Use it to define
10889         `revision_string[]'.
10890         * grops/psrm.cc: Use revision_string (converted to an unsigned
10891         integer) in constructor of resource_manager.
10893 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
10895         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
10896         files.
10897         * Makefile.in (DEVDIRS): Add devutf8.
10898         * grotty/tty.cc: Include device.h.
10899         (glyph): Change type of `code' to `unsigned int'.
10900         (tty_printer): New field is_utf8.  Constructor takes device argument.
10901         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
10902         (tty_printer::add_char): Change type of first arg to `unsigned int'.
10903         (tty_printer::put_char): New function.
10904         (tty_printer::end_page): Use put_char() instead of ::putchar().
10905         (make_printer): Pass device to tty_printer constructor.
10906         * nroff.sh: Determine default device by calling 'locale'.  As a
10907         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
10908         Recognize UTF-8 locales.
10909         * tmac/eqnrc: Recognize utf8 like latin1.
10910         * tmac/troffrc: Device utf8 needs tmac.tty.
10912 2000-01-07  Werner LEMBERG  <wl@gnu.org>
10914         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
10916 2000-01-07  Paul Eggert  <eggert@twinsun.com>
10918         Add a new predefined writeable number register, `year',
10919         which contains the current year.
10921         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
10922         * tmac/tmac.s: Use it.
10923         * troff/input.cc (init_registers): Initialize it.
10925 2000-01-06  Werner LEMBERG  <wl@gnu.org>
10927         * PROBLEMS: Fixed typo.
10929 2000-01-04  Paul Eggert  <eggert@twinsun.com>
10931         * PROBLEMS: Add Y2k advice for the yr number register.
10933 2000-01-03  Paul Eggert  <eggert@twinsun.com>
10935         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
10937 2000-01-02  Werner LEMBERG  <wl@gnu.org>
10939         * tmac/tmac.arkup: Slight modification of macros to provide better
10940         appearance for non-HTML formats.
10942 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
10944         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
10945         does not automatically translate to malloc(n) on all OSes
10946         (e.g., SunOS) so do it explicitly.  Also, check the returned
10947         value.
10949 2000-01-01  Werner LEMBERG  <wl@gnu.org>
10951         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
10953         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
10954         expects this variable
10956 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
10958         * doc/Makefile: Added instructions to create HTML and text
10959         versions of some files.
10961 1999-12-31  Werner LEMBERG  <wl@gnu.org>
10963         * Updated INSTALL.gen.
10965         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
10966         better resp. correctly with non-HTML devices.
10968 Version 1.15 released
10969 =====================
10971 1999-12-28  Werner LEMBERG  <wl@gnu.org>
10973         * NEWS, VERSION: Changed to 1.15
10975 1999-12-27  Paul Eggert  <eggert@twinsun.com>
10977         * nroff/nroff.man: -S is safer, not safe.
10979         * groff/groff.cc (main): Use `safer', not `safe', in variable
10980         names.  This does not change the behavior.
10982         * troff/input.cc (main): Likewise.
10984         * nroff/nroff.sh: Likewise.
10986         * troff/input.cc (prepend_string): New function.
10987         (main): Prepend -msafer, so that we check macro libraries for
10988         safety.
10990         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
10992 Version 1.14 released
10993 =====================
10995 1999-12-26  Werner LEMBERG  <wl@gnu.org>
10997         * NEWS, VERSION: Changed to 1.14.
10999 1999-12-24  Werner LEMBERG  <wl@gnu.org>
11001         * refer/refer.cc: Fixing the last fix.
11003 Version 1.13 released
11004 =====================
11006 1999-12-23  Werner LEMBERG  <wl@gnu.org>
11008         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11009         number disappear.
11011         * NEWS: Updated.
11013         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11015         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11016         document conventions, the version number must be a real.
11018 Version 1.12.1 released
11019 =======================
11021 1999-12-22  Werner LEMBERG  <wl@gnu.org>
11023         * VERSION: Changed to 1.12.1.
11025 1999-12-22  Alan Rooks  <arooks@istar.ca>
11027         * refer/refer.cc (do_file): Slight modification to satisfy the
11028         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11029         UnixWare 7.1.
11031 1999-12-20  Werner LEMBERG  <wl@gnu.org>
11033         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11034         notices.
11036         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11037         list of unsafe requests.
11039         * pic/pic.man: Fixed a typo.
11041         * man/groff_out.man: Fixed a typo.
11043 1999-12-18  Werner LEMBERG  <wl@gnu.org>
11045         * Makefile.in: Doc fixes.
11047 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
11049         * groff/groff.cc: Missing `U' option added to getopt().
11051         * troff/troff.man: Missing `U' option added to synopsis.
11053 Version 1.12 released
11054 =====================
11056 1999-12-14  Werner LEMBERG  <wl@gnu.org>
11058         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11059         to the synopsis.
11061         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11062         with the more appropriate terms `safer' and `unsafe'.
11064         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11065         sys_nerr and sys_errlist[].
11067         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11069         * pic/pic.y, pic/pic.cc: Added check for fmod().
11071 1999-12-13  Werner LEMBERG  <wl@gnu.org>
11073         * VERSION: Changed to 1.12.
11075         Here some patches from various sources; most of them taken from
11076         the Debian distribution.
11078         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11079         tmac/Makefile.sub: New files copied directly from the NetBSD
11080         distribution.  Probably, some additional adaptation later on is
11081         necessary...
11083         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11084         of unsafe requests.
11086         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11087         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11088         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
11089         (`-S') is now the default.
11091         * README, NEWS: Updated.
11093 1999-12-09  Werner LEMBERG  <wl@gnu.org>
11095         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11097         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11099 1999-12-06  Werner LEMBERG  <wl@gnu.org>
11101         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11102         grief than relief today.  Additionally, it is against the GNU
11103         coding standards.
11105         * configure: Recreated.
11107 1999-12-05  Werner LEMBERG  <wl@gnu.org>
11109         * configure.in: Added GROFF_LIBM.
11111         * configure: Recreated.
11113         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11114         necessary.
11116         * Makefile.in: Added definition of $(LIBM).
11118         * Makefile.comm (LIBM): Removed.
11120         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11122 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
11124         * doc/Makefile: Added rule for generation pic.html.
11126         (clean): Files produced by grohtml will be removed also.
11128         * doc/pic.ms: Small fix.
11130         * tmac/tmac.html: Fixed suppression of headers.
11132 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
11134         * tmac/tmac.html: Fixing horizontal arrows.
11136         Turning off hyphenation.
11138         * tmac/tmac.an: Improved support for grohtml; better indentation,
11139         no footers/headers.
11141 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
11143         * tmac/tmac.arkup: Added CDFTP macro
11145         * tmac/tmac.html: All headers are turned off for ms, me, and mm
11146         macros.
11148         * tmac/troffrc: Some additions for HTML stuff.
11150 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
11152         * tmac/tmac.html: Small changes.
11154 1999-09-26  Werner LEMBERG  <wl@gnu.org>
11156         * doc/groff.texinfo: Minor fixes.
11158 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
11160         * devhtml/TR: Changed spacewidth to 3.
11162         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
11164         * tmac/tmac.html: Moved markup macros to tmap.arkup.
11166         * tmac/tmac.arkup: New file.
11168         * grohtml/ChangeLog: New file.
11170 1999-09-16  Werner LEMBERG  <wl@gnu.org>
11172         * doc/groff.texinfo (Common Features): Added Copying chapter.
11173         Changed format to @smallbook.
11175 1999-09-15  Werner LEMBERG  <wl@gnu.org>
11177         * NEWS: Added info about groff.texinfo.
11179         * doc/groff.texinfo: Will now compile (using texi2dvi) without
11180         warning messages.
11182 1999-09-14  Werner LEMBERG  <wl@gnu.org>
11184         * groff/groff.man: More updates.
11186 1999-09-13  Werner LEMBERG  <wl@gnu.org>
11188         * doc/groff.texinfo: New file.  This manual is still very
11189         rudimentary.  It has been originally contributed by Trent
11190         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
11191         additions by me.
11193         * INSTALL: Added information about the `doc' subdir
11195         * troff/troff.man: Minor fixes.
11197         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
11198         reordered options.
11200         * troff/input.cc (usage): Added missing `-ffam' to usage message.
11202         * Makefile.in (dist): groff-$(version).tar.gz must be removed
11203         also, otherwise it is included itself in another call of `make
11204         dist'.
11206         * groff/groff.cc (synopsis): Removed superfluous space.
11208         * PROJECTS, PROBLEMS, NEWS: Updated.
11210         * VERSION: Updated to 1.12beta.
11212         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
11214         * README: Updated: Included documentation about CVS repository,
11215         mailing lists, and daily snapshots.
11217         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
11219 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
11221         * tmac/tmac.an: If the tag didn't fit into the space that the
11222         macro `TP' specifies, the rest of the tag went into the space for
11223         the next line.
11225 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
11227         * grolj4/lj4.cc: Added duplex printing (option `-d').
11229         * grolj4/grolj4.man: Document duplex printing.
11231 1999-09-12  Werner LEMBERG  <wl@gnu.org>
11233         * doc/Makefile (pic.ps): Fixed rule which caused problems with
11234         non-GNUish sed programs.
11236         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
11237         definition.
11239         * configure.in (LIBS): Added `-lc'
11241         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
11243         * pic/tex.cc (solid_arc): Casting M_PI to double.
11245         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
11247         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
11248         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
11249         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
11251         * groff/groff_man.man: New file.  This manual page was originally
11252         written for the Debian GNU/Linux system by Susan G. Kleinmann
11253         <sgk@debian.org>.
11255         * eqn/list.cc (list_box::compute_metrics,
11256         list_box::compute_sublist_width): Removed variable declaration to
11257         avoid shadowing warnings.
11259         * grops/psrm.cc (resource_manager::process_file): Ditto.
11261         * tfmtodit/tfmtodit.cc (main): Ditto.
11263         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
11264         to avoid shadowing warnings.
11266         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
11267         shadowing loop variable.
11269         * groff/groff.man, troff/troff.man: Added doc about grohtml.
11271 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
11273         New grohtml frontend to convert groff input to html.
11275         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
11277         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
11279         * tmac/eqnrc: Added html device.
11281         * tmac/tmac.html: New file.
11283         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
11284         (troff_output::start_picture, troff_output::finish_picture),
11285         tbl/main.cc (process_input_file):
11286         Surrounded output with `graphics_start' and `graphics_end' so that
11287         the html driver can identify non-text portions.
11289         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
11290         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
11291         grotty/tty.ps (tty_printer::set_char): Additional parameter
11292         `name'.
11294         * include/printer.h: Class printer: New function
11295         set_char_and_width; new variables (is_char_named, is_named_set,
11296         named_command, named_char_s, named_char_n) to hold information
11297         about named characters -- needed by the html driver.
11299         * libdriver/printer.cc (printer::set_ascii_char,
11300         printer::set_special_char): Use set_char_and_width.
11302         * devhtml/*: New device files for html driver.
11304         * grohtml/*: New driver grohtml.
11306 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
11308         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
11309         default strings.
11311 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
11313         * libgroff/string.cc (search): Small fix to test against NULL
11314         pointer.
11316 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
11318         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
11319         \b'abc') were stacked in reverse order when processed in a
11320         diversion.
11322         * troff/node.h: Added `*last' to struct `node' to make the above
11323         fix work.
11325         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
11326         The default scale for the 'f' and 't' graphics functions were 'm'
11327         rather than 'u' (i.e., no scaling).
11329 1999-09-11  Peter Miller  <peterm@jna.com.au>
11331         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
11332         do_file), soelim/soelim.man: Added `-I file' option to soelim,
11333         defining include paths.
11335         * soelim/soelim.cc (include_path_append): New function.
11337 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
11339         * tbl/main.cc (process_options): Unix (at least Documenter's
11340         Workbench) tbl allows arbitrary non-alpha characters between
11341         options.
11343 1999-09-11  Paul Eggert  <eggert@twinsun.com>
11345         Y2k fixes.  Don't assume that the current year precedes 2000.
11347         * doc/meref.me: Add \n(y2, \n(y4.
11349         * tmac/doc-common (Yr): New number register.
11350         (Dd): Don't assume current year precedes 2000.
11352         * tmac/tmac.e (td): Likewise.
11353         (y2, y4): New number registers.
11355         * pic/pic.man: Update reference for pic paper to May, 1991
11356         version.
11358 1999-09-11  Werner LEMBERG  <wl@gnu.org>
11360         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11361         Removed quotation marks which prevented correct expansion of
11362         $(tmac_wrap).
11364         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
11366 1999-09-10  Werner LEMBERG  <wl@gnu.org>
11368         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
11369         `config.cache'.
11371         * Removed configure.old.
11373 1999-08-31  Werner LEMBERG  <wl@gnu.org>
11375         * VERSION: Updated to 1.11.1
11377 1999-05-27  Werner LEMBERG  <wl@gnu.org>
11379         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
11381         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11382         added quotations around $(tmac_wrap) to avoid syntax error if
11383         variable is empty.
11385         * configure: Newly generated using autoconf 2.13.
11387         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
11389 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
11391         * README, PROJECTS, NEWS, INSTALL, VERSION, 
11392         doc/Makefile. doc/pic.ms, groff/groff.man:
11393         Prepare for 1.11 release.  No code changes.
11394         Documentation for pic added (doc/pic.ms).
11396 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
11398         * Version 1.10 released.
11400 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
11402         * afmtodit/afmtodit.pl: Avoid comment on first line.
11404 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
11406         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
11407         * configure.in: Call it.
11409         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
11410         (distfiles): Doesn't depend on config.log or config.cache.
11412 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
11414         * grog/grog.sh: Use print "" rather than print in END rule.
11416 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
11418         * tbl/main.cc (process_data): Don't give error for excess data
11419         entries that are comments.
11421 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
11423         * tbl/main.cc (process_data): Fix case where new for-scope rules
11424         silently change meaning of code.
11426 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
11428         * troff/env.cc (hyphenate): Loop over all consecutive sequences
11429         of non-zero hyphenation codes.
11431 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
11433         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
11435 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
11437         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
11439 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
11441         * tmac/tmac.andoc: Make it work in compatibility mode.
11443         * refer/token.h (token_info::is_range_sep): New function.
11444         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
11445         * refer/ref.cc (reference::output): More sophisticated check for
11446         multiple pages.
11448         * devps/prologue.ps (MANUAL): New procedure.
11449         * grops/ps.cc (main): New -m option.
11450         (usage): Include -m.
11451         (ps_printer::~ps_printer): Implement -m.
11453         * aclocal.m4 (GROFF_G): New macro.
11454         * configure.in: Call it.
11455         * Makefile.in (g): Provided by configure.
11457         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
11459         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
11460         translations.
11462         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
11463         (tmac_m, tmac_s): Deleted.
11464         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
11465         tmac_s_prefix): New variables.
11466         (MDEFINES): Change accordingly.
11467         * Makefile.comm (.man.n): Use new TMAC_* variables.
11468         * configure.in (GROFF_TMAC): Call.
11469         * aclocal.m4 (GROFF_TMAC): Define.
11470         * tmac/Makefile.sub (stamp_wrap): New target.
11471         (install_data, uninstall_sub): Handle macro wrapping.
11473 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
11475         * tbl/main.cc (main): Ignore -T option.
11477 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
11479         * devlj4/generate/special.map: Add definition of \(nb.
11481         * tmac/tmac.dvi: Add definition of \(nb.
11483         * troff/dictionary.c (dictionary::dictionary): association::v gets
11484         initialized by association::association.
11486         * tmac/Makefile.sub: Avoid using temporary files when installing.
11488         * troff/env.cc (environment::set_font): Make bad font number a
11489         warning.
11491         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
11493         * Makefile.in (datadir): Use share rather than lib.
11495         * groff/groff.cc (basename): Rename to xbasename.
11497 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
11499         * Makefile (CCLIBS): Don't use.
11500         * Makefile.ccpg: Likewise.
11502         * acgroff.m4: Rename to...
11503         * aclocal.m4: Modify extensively for autoconf 2.
11504         * configure.in: Likewise.
11505         * Makefile.in: Likewise.
11507         * groff/pipeline.c (const): Declare as empty if __STDC__ not
11508         defined.
11509         (xstrsignal): Check for definition of NSIG. Conditionalize
11510         on SYS_SIGLIST_DECLARED.  Make return type const.
11512 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
11514         * troff/input.cc (interpolate_macro): Rephrase missing space
11515         warning.
11517 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
11519         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
11520         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
11521         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
11522         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11523         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
11524         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
11525         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
11526         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
11527         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
11528         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
11529         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
11530         Fix 'for' scoping.
11532 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
11534         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
11535         string_iterator.
11536         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
11537         file.
11538         (macro_iterator::macro_iterator): Add additional argument.
11540 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
11542         * troff/div.cc (vertical_size::vertical_size): In place of integer
11543         specifying line spacing use cunits specifying post vertical
11544         space.
11545         (macro_diversion::output, top_level_diversion::output): Likewise.
11546         * troff/div.h: Change declarations accordingly.
11547         * troff/env.cc (pending_output_line): Replace ls field by post_vs
11548         field.
11549         (pending_output_line::pending_output_line,
11550         pending_output_line::output, environment::output,
11551         environment::output_line, environment::output_title,
11552         environment::hyphenate_line):  In place of
11553         integer specifying line spacing use cunits specifying post vertical
11554         space.
11555         (environment::environment): Add post_vertical_spacing and
11556         prev_post_vertical_spacing arguments.
11557         (environment::get_post_vertical_spacing): New function.
11558         (environment::total_post_vertical_spacing): New function.
11559         (environment::post_vertical_spacing): New function.
11560         (init_env_requests): Initialize pvs request and .pvs register.
11561         * troff/env.h: Change declarations.
11563 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
11565         * tmac/tmac.pspic: Immediately remove the temporary file.
11567 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
11569         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
11570         height is specified.
11572 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
11574         * tbl/table.c (struct vertical rule, class table_entry): Use int
11575         not short for start_row and end_row.
11577 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
11579         * troff/input.cc (trapping_blank_line, blank_line_macro): New
11580         functions.
11581         (diverted_space_node::reread, process_input_stack): Call
11582         trapping_blank_line() rather than blank_line().
11583         (init_input_requests): Bind "blm" to blank_line_macro().
11585         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
11587 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
11589         * troff/env.cc (environment::possibly_break_line): Require that
11590         width total excluding width of final space node be greater than
11591         the target text length.
11593 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
11595         * troff/node.cc (kern_pair_node::vertical_extent): New function.
11597 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
11599         * troff/node.cc (charinfo_node): New class.
11600         (glyph_node, composite_node): Derive from charinfo_node.  Change
11601         member functions accordingly.
11603 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
11605         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
11607 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
11609         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
11611         * devps/generate/textmap (notsubset): Add.
11613         * tmac/tmac.a4: New file.
11615 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
11617         * pic/main.cc (had_parse_error): New variable.
11618         (do_picture, do_whole_file): Set had_parse_error if yyparse()
11619         returns non-zero.
11620         (main): Return 1 if had_parse_error is true.
11622 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
11624         * grolj4/lj4.cc (main): Avoid use of strtoul.
11626 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
11628         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
11629         iso_8859_1 or $LESSCHARSET is latin1.
11631 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
11633         * hpftodit: New directory.
11634         * Makefile.in (CCPROGDIRS): Add hpftodit.
11635         * devlj4/generate: New directory.
11637 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
11639         * configure.in: Don't use AC_VFORK.
11640         * groff/pipeline.c (run_pipeline): Use fork() always.
11642 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
11644         * grops/ps.cc (main): Use %1 not %s in error message for -w.
11646         * Makefile.in (CCPROGDIRS): Add grolj4.
11647         (DEVDIRS): Add devlj4.
11648         * grolj4, devlj4: New directories.
11649         * tmac/troffrc: Handle lj4.
11650         * tmac/tmac.lj4: New file.
11652 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
11654         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
11656 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
11658         * troff/input.cc (do_if_request): At end of second string, switch
11659         environments before getting next token.
11661 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
11663         * devps/psstrip.sed: Split rule that strips whitespace on either
11664         side of delimiters.
11666 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
11668         * troff/node.h (font_family::make_definition): Add return value to
11669         declaration.  * troff/symbol.h (symbol::operator==,
11670         symbol::operator!=): Likewise.
11672 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
11674         * groff/groff.cc (main, help, synopsis): Handle -S.
11675         (possible_command::insert_arg): New function.
11677         * tmac/tmac.safer: New file.
11678         * tmac/msafer.man: New file.
11679         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
11681 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
11683         * pic/pic.h, pic/main.cc (safer_flag): New variable.
11684         * pic/pic.y (placeless_element): Avoid unsafe operations if
11685         `safer_flag' is set.
11686         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
11688 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
11690         * eqn/lex.cc (get_token): Put call to add_context() in block to
11691         work around Sun C++ 4.0 bug.
11693         * include/stringclass.h (operator +): Use ?: instead of `if' to
11694         work around Sun C++ 4.0 bug.
11696 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
11698         * tbl/main.cc (process_format): Accept - as a synonym for the _
11699         key letter.
11701         * libbib/index.cc (minus_one): Don't declare as const.
11703 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
11705         * troff/input.cc (get_char_for_escape_name): Push back a newline.
11707 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
11709         * troff/input.cc (write_macro_request): New function.
11710         (init_input_requests): Bind write_macro_request to writem.
11712 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
11714         * tmac/tmac.s (@EN): Turn filling back on even if there was no
11715         equation.
11717         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
11719         * tmac/tmac.s (@TS): Renamed from TS.
11720         (TS): Call LP then TS again.
11721         (cov*ab-init): Alias @TS to TS.
11723         * tmac/tmac.s: Allow QP or RS to initialize.
11725         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
11726         Move initializations of PS and LL here.
11727         (par@init): Don't initialize HY.  Avoid changing environment 0.
11728         (par*env-init): Don't all par@reset.
11730 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
11732         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
11734 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
11736         * Makefile.in (MDEFINES): Add LDFLAGS.
11737         (LDFLAGS): Add definition line.
11739 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
11741         * troff/input.cc (get_optional_char): Split off error check into...
11742         (check_missing_character): New function.
11743         * troff/token.h: Declare it.
11744         * troff/env.cc (margin_character): Don't call get_optional_char.
11745         Only call tok.next() after making the node.
11747         * include/lib.h (getopt): Make 2nd argument char *const *.
11749 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
11751         * nroff/conftest.sh: Deleted.
11753 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
11755         * pic/make-dos-dist: Deleted.
11757 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
11759         * devps/psstrip.sed: Strip comments before stripping trailing
11760         white space.
11762 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
11764         * Version 1.09 released.
11766 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
11768         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
11770 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
11772         * libgroff/font.cc (font::load_desc): Fix typo in error message.
11774 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
11776         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
11777         about returning without a value.
11779         * troff/charinfo.h (charinfo::get_special_translation): Cast
11780         TRANSLATE_NONE to int.
11782         * refer/token.cc (lookup_token, store_token): Remove bogus loop
11783         test.  Fix test so that it works with n unsigned.
11785         * pic/pic.y (defaults_table): Fully bracket initializer.
11786         * pic/lex.cc (lookup_keyword): Likewise.
11787         * eqn/lex.cc (token_table, def_table): Likewise.
11788         * eqn/box.cc (param_table): Likewise.
11789         * troff/input.cc (warning_table): Likewise.
11790         * libgroff/font.cc (table): Likewise.
11791         * grops/ps.cc (ps_printer::special): Likewise.
11792         * grops/psrm.cc (resource_manager::process_file): Likewise.
11793         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
11794         * refer/command.cc (command_table): Likewise.
11795         * addftinfo/addftinfo.cc (param_table): Likewise.
11797         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
11798         about temp's being unused.
11799         (unused): New function.
11801         * groff/pipeline.cc: Declare c_fatal.
11803         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
11804         uchar.
11806         * libbib/index.cc (index_search_item::load): Prevent compiler
11807         warnings about fd_closer's being unused.
11808         (unused): New function.
11810 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
11812         * troff/input.cc (copy_mode_error): Make `prefix' static.
11813         Fix typo.
11815         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
11816         defined.
11817         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
11818         HAVE_CC_OSFCN_H and modify accordingly.
11820         * troff/input.cc (init_charset_table): radicalex overlaps
11821         horizontally.
11823         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
11824         udodo!hans@relay.NL.net).
11825         * groff/configure.in: Call it.
11827         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
11828         * groff/configure.in: Call it.
11829         * include/lib.h: Conditionalize declaration of pclose.
11831         * troff/div.cc (last_page_number): New global variable.
11832         (top_level_diversion::begin_page): Exit if we just printed the
11833         last page.
11834         * troff/div.h (last_page_number): Declare it.
11835         * troff/input.cc (parse_output_page_list): Set last_page_number.
11837         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
11838         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
11839         tmac/tmac.X: Likewise.
11840         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
11841         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
11843 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
11845         * tmac/doc-ditroff (hK): Remove groff specific code which
11846         prevented page-breaks between separate manual entries.  If this is
11847         the first page, don't set the page number to 1.
11849         * acgroff.m4 (GROFF_POSIX): New macro.
11850         * configure.in: Use it.
11852         * troff/node.cc (class real_output_file,
11853         real_output_file::real_output_file,
11854         real_output_file::~real_output_file): Conditionalize use of
11855         popen/pclose on POPEN_MISSING.
11856         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
11857         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
11858         (pipe_source): Similarily.
11860         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
11862         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
11863         presence of declarations by trying to compile example with
11864         conflicting declarations.  (gcc only gives a warning for missing
11865         declarations.)
11867 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
11869         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
11870         (from Ulrich Lauther).
11872 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
11874         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
11876 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
11878         * indxbib/indxbib.cc (write_hash_table): Add code for case where
11879         pointers and ints have different sizes.
11881 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
11883         * tmac/tmac.s (par*env-init): Call par@reset.
11885 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
11887         * tmac/tmac.s (@IP): Switch to a new environment when diverting
11888         tag.
11889         (par*push-tag-env, par*pop-tag-env): New macros.
11891 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
11893         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
11894         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
11896         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
11897         comment.  Include <time.h>.
11899 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
11901         * grops/ps.cc (is_small_h, is_small_v): Deleted.
11902         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
11903         lines.
11905 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
11907         * troff/input.cc (read_request): Only print a prompt if reading
11908         from the terminal.  Also clearerr on EOF if reading from the
11909         terminal.  Declare isatty.
11911 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
11913         * refer/label.y: Rename map_t to map_func and extractor_t to
11914         extractor_func.
11916 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
11918         * include/assert.h: Don't use volatile.
11919         * libgroff/assert.cc: Likewise.
11921 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
11923         * troff/input.cc (abort_request): Look at character in tok before
11924         calling get_copy().
11926 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
11928         * troff/troff.h (NO_RETURN): Deleted.
11929         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
11930         * troff/input.cc (exit_troff): Likewise
11932         * Makefile.in: Remove `Making ...' messages since GNU make now
11933         gives these. 
11935         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
11937 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
11939         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
11940         to constant 1 inch.
11942 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
11944         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
11946 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
11948         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
11949         MARK_REG if there was no left delimiter.
11951 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
11953         * pic/troff.cc (troff_output::text): Set line thickness to
11954         relative before outputting text.
11956         * tmac/tmac.e (@k): Don't zero ?T.
11957         ((z): Likewise.
11959 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
11961         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
11963 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
11965         * troff/input.cc (decode_args): Warn about unquoted tabs (from
11966         Paul Eggert).
11968 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
11970         * troff/input.cc (ignoring): New variable.
11971         (ignore): Set ignoring during call to do_define_macro.
11972         (do_define_macro): Clear ignoring before interpolating terminating
11973         macro.
11974         (copy_mode_error): New function.
11975         (get_char_for_escape_name, read_long_escape_name,
11976         interpolate_arg): Use copy_mode_error.
11977         (warning_table): Add WARN_IG.
11978         * troff/troff.h (WARN_IG): Declare.
11979         (WARN_TOTAL): Change accordingly.
11981         * groff/pipeline.c (strsignal): Rename to xstrsignal.
11982         * groff/groff.cc (strsignal): Delete declaration.
11984 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
11986         * troff/div.cc (page_offset): Use 'm' as default scaling.
11988 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
11990         * nroff/nroff.sh: Ignore -u.
11992 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
11994         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
11996 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
11998         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
11999         drawing box.
12000         (B2): With -Tascii, leave additional vertical space before
12001         and after. Ensure that the left and right indent is restored to
12002         what it was even if the point size changes.  Don't call
12003         par@finish. Change the indent, line length and title length
12004         directly.  With -Tascii, make the width of the box 1n less.
12005         (B1): Remember 1n at the current point size.  Don't call
12006         par@reset.  Change the indent, line length and title length
12007         directly.  Ensure that the temporary indent is preserved.
12008         (par*box-mark-top): Turn off no spacing mode.
12010 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
12012         * Makefile.in (dist): Use .gz suffix.
12014 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
12016         * troff/input.cc (main): Add return 0.
12017         * pic/main.cc (main): Use return instead of exit.
12018         * tbl/main.cc (main): Likewise.
12019         * eqn/main.cc (main): Likewise.
12020         * grops/ps.cc (main): Likewise.
12021         * grotty/tty.cc (main): Likewise.
12022         * groff/groff.cc (main): Likewise.
12023         * grodvi/dvi.cc (main): Likewise.
12024         * refer/refer.cc (main): Likewise.
12025         * indxbib/indxbib.cc (main): Likewise.
12026         * lkbib/lkbib.cc (main): Likewise.
12027         * soelim/soelim.cc (main): Likewise.
12028         * addftinfo/addftinfo.cc (main): Likewise.
12029         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12030         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12032         * troff/token.h (process_input_stack): Don't declare as static.
12033         * troff/input.cc: Likewise.
12035         * troff/node.c (invalidate_fontno): Make it a static member of
12036         class font_family.  Change callers.
12037         * troff/node.c: Change declaration.
12039         * tbl/main.cc (struct input_entry_format): Add explicit public
12040         specifier.
12041         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12042         struct double_hline_stuff): Likewise.
12043         * tbl/table.h (struct entry_format): Likewise.
12044         * pic/object.h (struct saved_state): Likewise.
12046         * include/stringclass.h: Add forward declarations of friend
12047         functions that are later declared as inline.  Don't include inline
12048         specifier in friend declaration.
12050         * libgroff/lib.h: Declare popen and pclose.
12051         * acgroff.m4 (GROFF_POPEN): New macro.
12052         * configure.in: Call it.
12054         * include/lib.h (PI): New constant. Undef first if necessary.
12055         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12056         * grops/ps.cc (degrees, radians): Likewise.
12057         * libgroff/font.cc (font::get_skew): Likewise.
12059         * grops/ps.cc (is_ascii): New function.
12060         (ps_output::put_string): Use is_ascii.  Use csprint rather than
12061         isprint.
12062         (ps_printer::define_encoding): Use csspace.
12063         * libgroff/strtol.c (ISASCII): New macro.
12064         (strtol): Cast arguments to is*() and tolower() to unsigned char.
12065         Use ISASCII rather than isascii.
12066         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12067         * libgroff/cset.cc: Likewise.
12068         * libdriver/input.cc: Include cset.h.
12069         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12070         than isdigit().
12072         * refer/refer.cc (main): Use %ld rather than %d for longs.
12074         * libbib/index.cc (index_search_item_iterator::get_tag): Use
12075         S_ISREG macro.
12077         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12079 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
12081         * troff/input.cc (hyphenation_code): Skip white space between
12082         char/code pairs.
12084 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
12086         * tbl/table.h (table::entry_list_tailp): New member.
12087         (table::table): Initialize it.
12088         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12089         behaviour.
12091 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
12093         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12094         with negative horizontal positions. Remove casts of glyph::hpos to
12095         int.
12096         (USHRT_MAX): Delete definition.
12097         (SHRT_MAX, SHRT_MIN): New definitions.
12098         (glyph::hpos): Change type to short.
12099         (tty_printer::end_page): Output multiple backspaces if necessary.
12100          Remove casts of glyph::hpos to int.
12101         
12102 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
12104         * tmac/tmac.s (@RT): New definition.
12106 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
12108         * refer/refer.cc (do_file): Make sure current_filename is set when
12109         filename is "-".
12111         * pic/common.cc (common_output::dot_line): Handle zero length
12112         lines.
12114 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
12116         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12117         (par@init): Initialize \n[HY].
12119 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
12121         * troff/dictionary.cc (dictionary::remove): Continue when
12122         r < j < i.
12124 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
12126         * Makefile.com (.y.cc): Avoid ending up with two versions of
12127         $(YTABH).
12129 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
12131         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12132         (\(,C): Likewise.  Also fix typo.
12134 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
12136         * lib.h: Delete extraneous semi-colon.
12138         * Add pso request: `so' from a pipe.
12139         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12140         (file_iterator::close): New function.
12141         (file_iterator::~file_iterator, file_iterator::next_file): Use
12142         file_iterator::close.
12143         (file_iterator::backtrace): Say `process' rather than `file' when
12144         the stream is popened.
12145         (pipe_source): New function.
12146         (init_input_requests): Bind ".pso" to pipe_source.
12148 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
12150         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12152         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
12153         digits in lower case.
12155 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
12157         * Version 1.08 released.
12159         * Makefile.in (dist): Insert || true after ln -s commands that
12160         might fail.
12162         * mm: Update to mm 1.16.
12164         * acgroff.m4 (GROFF_CSH_HACK): New macro.
12165         * configure.in: Call GROFF_CSH_HACK.  Substitute for
12166         SH_SCRIPT_SED_CMD.
12167         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
12168         MDEFINES.
12169         * nroff/Makefile.sub (nroff): New target.
12170         (install_data): Install nroff.
12171         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
12172         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
12174 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
12176         * eqn/Makefile.sub (neqn): Add chmod +x.
12178         * grog/Makefile.sub (grog): Remove spurious semi-colon.
12180 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
12182         * troff/input.cc (string_iterator::string_iterator()): Initialize
12183         lineno and count.
12185 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
12187         * troff/div.cc (macro_diversion::space,
12188         top_level_diversion::space): Don't set high_water_mark.
12189         (macro_diversion::output, top_level_diversion::output): Don't
12190         include post line space in high water mark.
12192 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
12194         * eqn/eqn.y: Don't define YYDEBUG.
12195         * pic/pic.y: Likewise.
12197 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
12199         * tmac/tmac.e ([3): Add space after comma following editors.
12200         Change double spaces to single spaces.
12201         ([4): Change double spaces to single spaces.
12203         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
12204         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
12205         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
12206         after %!PS-Adobe- (for Newsprint).
12208         * troff/div.cc (top_level_diversion::begin_page): When
12209         before_first_page is 1, set page_number to 1.
12211 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
12213         * eqn/box.cc (box::top_level): Protect equation with \&.
12215 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
12217         * groff/groff.cc (possible_command::set_name): Delete old name.
12219         * groff/groff.cc (possible_command::~possible_command): Use
12220         a_delete.
12222         * troff/node.cc (troff_output_file::begun_page): New member.
12223         (troff_output_file::troff_output_file): Initialize it.
12224         (troff_output_file::really_begin_page): Only output V command if a
12225         page has been begun.
12227         * pic/pic.y (placeless_element): Delete argument to PRINT after
12228         use.
12230 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
12232         * Make wrapman work.
12233         * troff/div.h (class top_level_diversion): Replace
12234         first_page_begun by before_first_page (with opposite sense).
12235         * Change first_page_begun to before_first_page inverting sense.
12236         * troff/div.cc (class nl_reg): New class.
12237         (init_div_requests): Use class nl_reg for \n(nl.
12238         (top_level_diversion::begin_page): Don't call
12239         output_file::begin_page if before_first_page is 2;
12240         reset before_first_page afterwards.  If have_next_page_number is
12241         false, then always increment page_number.
12242         * tmac/tmac.an: Set traps within TH rather than at the top-level.
12243         Restore compatibility mode after loading, and then disable
12244         compatibility mode in TH.
12246 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
12248         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
12249         past last line.
12250         * troff/node.h (output_file::trailer): Declare.
12251         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
12252         * troff/node.cc (output_file::trailer): New function.
12253         (troff_output_file::~troff_output_file): Move most code into...
12254         (troff_output_file::trailer): New function.
12255         (class troff_output_file): Delete page_length member. Declare
12256         trailer().
12257         (troff_output_file::really_begin_page): Use current page length
12258         for final V command.
12260         * tbl/main.cc (struct options): New decimal_point_char member.
12261         (options::options): Initialize this.
12262         (process_options): Implement decimalpoint option.
12263         (process_data): Pass decimal_point_char option to table::table.
12264         * tbl/table.h (class table): New decimal_point_char member.
12265         (table::table): Add additional argument.
12266         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
12267         second argument specifying decimal point character.  Use this
12268         instead of '.'.
12269         (table::table): Initialize decimal_point_char.
12270         (table::add_entry): Change call to find_dot.
12272         * troff/input.cc (get_copy, token::next): Implement \V.
12273         (interpolate_environment_variable): New function.
12275 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
12277         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
12278         * pic/pic.y: Likewise.
12280         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
12281         Add casts to int.
12282         * refer/ref.cc (reference::insert_field, reference::delete_field):
12283         Likewise.
12284         * troff/number.cc (parse_term): Likewise.
12286         * acgroff.m4 (GROFF_PROG_YACC): New macro.
12287         * configure.in: Use GROFF_PROG_YACC.
12289         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
12290         and g++.
12291         * Makefile.in (OPTIMIZE): New define.
12292         (DEBUG): Empty by default.
12293         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
12295         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
12296         (GROFF_ARRAY_DELETE): Likewise.
12297         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
12299         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
12301         * devps/psstrip.sed: Use different delimiter on last line (so that
12302         it works with BSD 4.4 sed.)
12304 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
12306         * devps/psstrip.sed: Delete comments.
12308         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
12309         optind, opterr, optarg.
12310         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
12311         opterr, optarg.
12313 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
12315         * Makefile.in (check): Dummy target.
12317 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
12319         * Version 1.07 released.
12321         * Integrate mm 1.11.
12323         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
12324         where start_col was meant.
12326 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
12328         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
12330 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
12332         * troff/input.cc (token::next): Make \z\o'...' and similar things
12333         work.
12335         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
12336         constants.
12337         (environment): Add margin_character_flags member.
12338         * env.cc (environment::environment(symbol),
12339         environment::environment(const environment *): Initialize
12340         margin_character_flags.
12341         (margin_character): Rewrite.
12342         (environment::output_line): Add a margin character if
12343         margin_character_flags is non-zero.  Turn off the
12344         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
12345         zero, use margin_character_node without copying and then set
12346         margin_character_node to 0.
12348         * devps/DESC.in: Change minimum size to 1000.
12350 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
12352         * troff/symbol.h (symbol::hash): Change return type to unsigned
12353         long.
12354         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
12355         Add casts to int.
12357         * test-groff: Use -r rather than -x.
12359         * grops/psfig.diff: Include in distribution again.
12361 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
12363         * Makefile.in (dist): Use gzip.
12365 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
12367         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
12368         unistd.h as well as in stdlib.h.
12369         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
12370         defined; otherwise include <sys/types.h> and <unistd.h> if
12371         UNISTD_H_DECLARES_GETOPT is defined.
12373         * configure.in: use builtin(include, ... rather than include(...
12374         * configure: Regenerate with autoconf 1.3.
12376         * libdriver/print.cc (printer::adjust_arc_center): Use new
12377         algorithm suggested by Andy Fyfe.
12379         * libdriver/printer.cc (printer::adjust_arc_center): New function.
12380         * include/printer.h: Declare this.
12381         * grops/ps.cc (ps_printer::draw): Use it.
12382         * grodvi/dvi.cc (dvi_printer::draw): Use it.
12384 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
12386         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
12388 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
12390         * eqn/main.cc (main): Handle "eqn -".
12392 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
12394         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
12396         * mm: Integrate version 1.08.
12398         * pic/troff.cc (troff_output::finish_picture): Set
12399         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
12400         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
12401         if it's not defined. Check whether the register is non-zero rather
12402         than whether it's not defined.
12403         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
12405         * indxbib/indxbib.cc: Move all signal handling into...
12406         * indxbib/signal.c: New file.
12407         * configure.in: Call AC_RETSIGTYPE.
12409         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
12410         * configure.in: Call GROFF_STRUCT_EXCEPTION.
12411         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
12413         * troff/input.cc (token::token, token::operator=): Work round SGI
12414         C++ bug.
12415         * pic/object.cc (position::position): Likewise.
12417 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
12419         * pic/pic.h: Move declaration of hypot().
12421 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
12423         * pic/pic.h: Declare hypot().
12425         * pic/pic.h: Define M_PI if necessary.
12427 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
12429         * tmac/tmac.e (re): Add alternative version that doesn't use groff
12430         `.ta T' feature.
12432         * devps/prologue.ps (RE): Handle the possibility that the old font
12433         doesn't have a FontName entry.
12435 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
12437         * tmac/tmac.e (fam): Redefine to set family in environment 2.
12438         (@C): Use @fam not fam.
12440 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
12442         * lookbib/lookbib.cc (main): Change type of start to const char *.
12443         * lkbib/lkbib.cc (main): Likewise.
12445         * eqn/lex.cc (definition::definition): Don't use member
12446         initializer syntax for members of anonymous unions.
12448         * troff/input.cc (input_stack::backtrace): Change type of to const
12449         char *.
12451 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
12453         * include/stringclass.h (class string): Declare inline friend
12454         functions as inline in class declaration.
12455         * troff/hvunits.h (class hunits, class vunits): Likewise.
12456         * include/refid.h (class reference_id): Likewise
12457         * troff/troff.h (points_to_units(units), scale(units, double)):
12458         Delete declarations.
12459         * libdriver/input.cc (get_char): Delete declaration.
12460         * include/lib.h: Change 2nd argument of getopt from const char **
12461         to char **.
12462         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
12463         char **' before assigning to a `const char **'.
12464         * tbl/table.cc: Delete extra declarations of prints().
12466 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
12468         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
12469         char **' before assigning to a `const char **'.
12471         * libgroff/errarg.cc (errarg::errarg): Don't use member
12472         initializer syntax for members of anonymous unions.
12474 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
12476         * mm: Integrate version 1.07.
12478 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
12480         * troff/input.c (translate2): Rename to
12481         (translate_no_transparent).
12482         (init_input_requests): Rename tr2 to trnt.
12484 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
12486         * troff/charinfo.h (class charinfo): Add transparent_translate field.
12487         (charinfo::set_translation, charinfo::set_special_translation):
12488         Add second argument that specifies value for
12489         transparent_translate.
12490         (charinfo::get_translation, charinfo::get_special_translation):
12491         Add optional second argument that specifies whether translation is
12492         being used for transparent throughput.
12493         * troff/input.cc (charinfo::set_translation,
12494         charinfo::set_special_translation): Handle second argument.
12495         (charinfo::charinfo): Initialize transparent_translate.
12496         (translate): Split main part off into
12497         (do_translate): New function.  Pass argument saying whether
12498         translation applies to transparent throughput.
12499         (translate2): New request.
12500         (init_input_requests): Bind translate2 to `tr2'.
12502 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
12504         * tbl/table.h (class table): Add `nokeep' flag.
12505         * tbl/main.cc (process_options): Handle `nokeep' option.
12506         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
12507         table::do_bottom): Don't output keep/release macro definitions or
12508         calls when `nokeep' option has been specified.
12510 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
12512         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
12514 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
12516         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
12517         block_entry::divert, alphabetic_block_entry::divert): Add extra
12518         argument giving column separation.
12519         (table::compute_widths): Pass column separation to
12520         table_entry::divert().
12521         (block_entry::do_divert): If an entry spans multiple columns and a
12522         minimumum width has been specified for each column, then set the
12523         line length to the sum of the widths (plus possibly the column
12524         separations).
12526         * troff/input.cc (set_escape_char): Don't set the escape_char
12527         until after calling has_arg().
12529 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
12531         * tbl/table.cc (table::do_top): Add missing \s0 for double box
12532         case.
12534         * tbl/table.cc (table::print_double_hline): Avoid extra new line
12535         in case where r > nrows - 1.
12537         * tbl/table.cc (BODY_HEIGHT): Deleted.
12538         (LINE_SEP): New definition.
12539         (table::print_single_hline, table::print_double_hline,
12540         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
12541         table::do_row, table::do_top): Use LINE_SEP space before a line
12542         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
12544         * tbl/table.cc (text_entry::print_contents): New function.
12545         (text_string_name, right_text_string_name): Deleted.
12546         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
12547         (simple_text_entry::do_width, numeric_text_entry::do_width,
12548         alphabetic_text_entry::do_width): Don't store the contents of the
12549         entry in a string.
12550         (left_text_entry::simple_print, right_text_entry::simple_print,
12551         center_text_entry::simple_print,
12552         alphabetic_text_entry::simple_print,
12553         numeric_text_entry::simple_print): Print the entry directly
12554         instead of using the stored string.
12556 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
12558         * devps/Makefile: Strip PostScript files.
12559         * devps/prologue: Rename to...
12560         * devps/prologue.ps.
12561         * devps/psstrip.sed: New file.
12562         * devps/download: Use .pfa rather than .ps for installed versions
12563         of fonts.
12565 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
12567         * troff/env.cc (input_trap): Give a warning if the argument is out
12568         of range.
12570         * troff/env.cc (adjust): Treat negative argument as missing. Round
12571         argument > 5 down to 5.
12573         * troff/env.cc (center, right_justify): Make negative argument zero.
12575         * troff/div.cc (page_offset, vertical_position_traps): Treat
12576         invalid argument as missing.
12577         * troff/env.cc (line_spacing, line_length, title_length, indent,
12578         underline, hyphen_line_max_request, control_char,
12579         no_break_control_char, widow_control_request, adjust, input_trap,
12580         point_size): Likewise.
12581         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
12582         constant_space): Likewise.
12583         * troff/input.cc (compatible, shift, warn_request,
12584         set_escape_char): Likewise.
12586         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
12587         * tbl/table.cc (table::table): Likewise.
12589         * Makefile.dev (install_dev): depends on $(DEVFILES).
12591 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
12593         * devX75, devX75-12, devX100, devX100-12: New directories.
12594         * Makefile.in: Add these to DEVDIRS.
12596         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
12597         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
12598         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
12599         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
12600         targets.
12601         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
12602         (uninstall): New target.
12603         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
12604         uninstall_prog, uninstall_dev): New targets.
12606         * troff/div.cc (return_request): Treat an invalid argument as
12607         missing.
12609 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
12611         * tmac/tmac.e ((f): Set up the environment even when there's a
12612         current diversion.  Transperently throughput a call to @N.
12613         (@N): New macro.
12615 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
12617         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
12618         up to vertical resolution.
12620         * tbl/table.cc (table::do_row): Change row number after printing
12621         stuff list.
12623         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
12625 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
12627         * Rename CHANGES to NEWS.
12629 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
12631         * libgroff/new.cc (operator new): Avoid calling malloc(0).
12633 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
12635         * man.ultrix: Removed.
12637 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
12639         * Makefile.comm (extraclean): Delete files whose names begin with
12640         `='.
12642         * pic/troff.cc (troff_output::text): Fix typo in implementation of
12643         aligned text.
12645 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
12647         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
12648         * troff/div.cc (page_length, need_space, space_request): Treat
12649         invalid optional argument as missing.
12650         * troff/env.cc (number_lines): If the first argument is present
12651         but not a number, turn on line numbering, don't change the next
12652         line number and parse the remaining arguments.
12654         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
12656 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
12658         * eqn/box.h: Change declaration accordingly.
12659         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
12660         the specified size was bad but don't give an error.  Check for
12661         overflow.
12662         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
12663         * eqn/lex (do_size): Likewise.
12665 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
12667         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
12668         compatible headers.
12670 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
12672         * tbl/table.cc (table::init_output): Improve error message when
12673         table won't fit on one page.
12675 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
12677         * pic/troff.cc (troff_output::start_picture): Generate line
12678         containing a horizontal motion equal to the width of the picture.
12680         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
12681         using GROFF_COMMAND_PREFIX environment variable.
12683 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
12685         * mdate.sh: Use $NF rather than $(NF).
12687 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
12689         * pic/main.cc (main):  Use %1 not %c in argument to warning.
12691         * eqn/main.cc (main): Output code to check that geqn was given the
12692         correct -T option.
12694 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
12696         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
12697         `ln -s ../Makefile .; make; rm -f Makefile'.
12699         * troff/hyphen: Rename to...
12700         * troff/hyphen.us:
12701         * troff/input.cc (main): Delete -H option. Don't call
12702         read_hyphen_file().
12703         * troff/env.cc: Include searchpath.h and macropath.h.
12704         (exception_dictionary): Deleted.
12705         (ht): Deleted.
12706         (read_hyphen_file): Deleted.
12707         (hyphenation_language): New struct.
12708         (class trie, class hyphen_trie): Move declarations up.
12709         (trie_node::~trie_node): Deleted.
12710         (trie::delete_trie_node): New function.
12711         (trie::do_delete): New pure virtual function.
12712         (hyphen_trie::do_delete): New function.
12713         (trie::~trie): New function.
12714         (hyphen_trie::~hyphen_trie): New function.
12715         (trie::clear): No need to chcek that tp is not 0.
12716         (current_language, language_dictionary): New variables.
12717         (hyphen_word): Give an error if no current language.  Use
12718         exceptions dictionary in current language.
12719         (hyphen_trie::read_patterns_file): Find file using macro_path.
12720         Allow comments (starting with %) in patterns file.  Don't make it
12721         a fatal error if the file can't be found.
12722         (hyphenate): Return if no current language.  Get the exceptions
12723         dictionary and the hyphenation patterns from the current language.
12724         (set_hyphenation_language): New variable.
12725         (hyphenation_patterns_file): New function.
12726         (hyphenation_language_reg): New class.
12727         (hyphenation_language_reg::get_string): New function.
12728         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
12729         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
12730         register.
12731         * groff/groff.cc (main, help, synopsis): Delete -H option.
12732         * include/Makefile.sub: Don't define HYPHENFILE.
12733         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
12734         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
12735         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
12736         hyphenation patterns.
12738 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
12740         * eqn/neqn.sh: New file.
12741         * eqn/Makefile.sub: Handle neqn.sh.
12743         * eqn/eqn.h: Declare `nroff' variable.
12744         * eqn/box.cc (param_table): Add `nroff' param.
12745         (nroff): Define it.
12746         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
12747         variable.
12748         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
12750         * troff/troff.h (WARN_FONT): New warning.
12751         (WARN_TOTAL): Change accordingly.
12752         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
12753         (warning_table): Add WARN_FONT.
12754         * troff/node.cc (mount_font_no_translate): Pass argument to
12755         font::load_font.  If this is non-zero, give a warning.
12756         Don't give an error message when accessing a font that has already
12757         been found to be invalid.
12758         * include/font.h (font::load, font::load_font): Add additional
12759         optional argument which suppresses error message if the font is
12760         not found.
12761         * libgroff/font.cc (font::load_font): Handle additional argument.
12762         (font::load): Add additional argument. If this is non-null, set it
12763         to 1 and don't give error message.
12765         * include/printer.h (printer::end_page): Add argument giving
12766         length of page.
12767         * libdriver/input.cc (do_file): Pass this.
12768         * grops/ps.cc (ps_printer::end_page): Add argument.
12769         * grodvi/dvi.cc (dvi_printer::end_page,
12770         draw_dvi_printer::end_page): Add argument.
12771         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
12772         columns_per_page members. New member nlines.
12773         (DEFAULT_LINES_PER_PAGE): Deleted.
12774         (tty_printer::tty_printer): Don't compute lines_per_page from
12775         font::paperlength. Don't compute columns_per_page from
12776         font::paperwidth.
12777         (tty_printer::add_char): Don't check horizontal position against
12778         columns_per_page. Grow glyphs vector if neccessary.
12779         (tty_printer::end_page): Add argument giving page_length in units.
12780         Discard lines past end of page.
12782 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
12784         * tmac/tmac.tty-char: Fix definition of \(/l.
12786         * tmac/tmac.X: Define \(en.
12788 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
12790         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
12791         lpq, then use lp rather than lpr.
12793         * tmac/tmac.s (par@reset): Don't call `ad'.
12794         (par*env-init): Call `ad'.
12796 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
12798         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
12799         date.
12801         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
12802         * indxbib/indxbib.cc: Likewise.
12804 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
12806         * libgroff/putenv.c: New file.
12807         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
12808         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
12809         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
12810         stdlib.h with AC_HAVE_HEADERS.
12812 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
12814         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
12815         does not exist.
12817 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
12819         * eqn/box.cc (gsize): Make it an int.
12820         (set_gsize): Parse argument handling increment or decrement.
12821         (box::top_level): Convert gsize to a string.
12823         * troff/input.cc (exit_troff): Make buf unsigned char [].
12824         Call to make_temp_iterator casts buf to char*.
12826         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
12828         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
12829         * Makefile.cpg (depend.temp): Likewise.
12831         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
12833         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
12835 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
12837         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
12839 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
12841         * Version 1.06 released.
12843         * Integrate mm 1.04.
12845 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
12847         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
12849 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
12851         * afmtodit/afmtodit.pl: Add -n option that disables generation of
12852         ligatures command.
12853         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
12854         afmtodit. Regenerate.
12856         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
12857         @f back past the current position.
12859         * tmac/tmac.e: Change calls to @R so that comments are not part of
12860         arguments.
12862 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
12864         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
12866         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
12867         check that we can link a call to a function declared in <stdio.h>.
12868         (GROFF_UNISTD_H): New macro.
12869         * configure.in: Call it.
12870         * Makefile.in: Document it.
12871         * include/posix.h: New file.
12872         * troff/troff.h: Don't include <osfcn.h>
12873         * troff/input.cc: Include posix.h.
12874         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
12875         osfcn.h.
12876         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
12877         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
12878         <fcntl.h>.
12879         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
12880         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
12881         * libbib/search.cc (O_RDONLY): Delete definition.
12882         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
12883         Don't include <osfcn.h>.
12885         * acgroff.m4 (GROFF_TIME_T): New macro.
12886         * configure.in: Call it.
12887         * Makefile.in: Document it.
12889         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
12890         * configure.in: Call it.
12891         * Makefile.in: Document -DTRADITIONAL_CPP.
12892         * include/ptable.h: Don't include generic.h.
12893         (name2): Define it.
12895         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
12896         Afterwards remove [T1 and [T2.
12897         (ref*spec!0, ref*spec!2): Use T1 rather than T.
12898         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
12899         (ref*add-T2): Renamed from ref*add-T.
12900         (ref*add-T1): New macro.
12902 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
12904         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
12906         * libbib/index.cc: Include <fcntl.h>.
12907         (O_RDONLY): Define if necessary.
12908         (make_index_search_item, index_search_item_iterator::get_tag,
12909         index_search_item::check_files): Use O_RDONLY.
12910         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
12911         (O_RDONLY): Define if necessary.
12912         (search_list::add_file): Use O_RDONLY.
12913         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
12914         <sys/stat.h>.
12915         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
12916         (main): Use these.
12918         * libbib/index.cc (S_ISREG): Define it if necessary.
12919         (index_search_item::load): Use S_ISREG.
12921         * include/driver.h: Include <errno.h>.
12923 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
12925         * eqn/box.cc (body_height): Increase default value to 85.
12926         (body_depth): Increase default value to 35.
12928 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
12930         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
12931         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
12932         protected from expansion with \E.
12934         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
12936         * Makefile (Makefile): New target.
12938         * Makefile.sub (configure, distfiles): New targets.
12940         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
12941         construct.
12943 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
12945         * eqn/box.cc (param_table): Add body_height and body_depth.
12947         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
12949 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
12951         * psbb/Makefile.sub: Don't link with libgroff.a.
12953         * acgroff.m4 (GROFF_PUTENV): New macro.
12954         * configure.in: Call GROFF_PUTENV.
12955         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
12956         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
12957         is defined.
12959         * troff/env.cc (distribute_space): Rename force_forward argument
12960         to force_reverse.  Reverse the list if force_reverse is true.
12962 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
12964         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
12966         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
12967         height or depth to be negative.  Guard against SUP_RAISE quantity
12968         being negative.
12970 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
12972         * devps/generate/textmap: Add `an' (arrowhorizex).
12973         * tmac/tmac.ps: \(an overlaps horizontally.
12974         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
12976         * devps/symbolchars: Add arrowverttp, arrowvertbt.
12977         * devps/textmap: Add arrowvertex.
12978         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
12979         updownarrow delimiters.
12980         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
12982         * tbl/table.cc (simple_entry::position_vertically,
12983         block_entry::position_vertically):  For a centered entry, perform
12984         the motion in two stages.
12986         * refer/refer.cc (split_punct): Don't call lookup_token if there
12987         is no token.
12989 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
12991         * troff/input.cc (token::next): Delete token_node after copying
12992         token.
12994         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
12995         cur_point_size.
12997         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
12999         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13001 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
13003         * grops/ps.cc (usage): -b option takes an argument.
13005         * devps/prologue (PLG): New procedure.
13006         * grops/ps.cc (main, usage): New -g option.
13007         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
13008         length using PLG.
13010 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
13012         * include/cset.h: Include <limits.h> if we have it.
13014         * libgroff/illegal.cc: New file.
13015         * include/lib.h (illegal_input_char): Use table.
13016         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13017         * pic/lex.cc (ARG1): Renumber to 14.
13018         * eqn/lex.cc (ARG1): Likewise.
13020         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13021         (eg 1.05.90) correctly.
13023 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
13025         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13026         Rename $r and $R registers to $v and $V.
13027         ($r, $R): Initialize to 0.
13028         (@v, @V): New macros.
13029         (sz): Call @v.
13030         (@M): Call @V.
13032         * troff/input.cc (main, usage): Add -R option that says not to
13033         load troffrc.
13034         * eqn/main.cc (main, usage): Rename -n to -R.
13036 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
13038         * devps/DESC.in: Leave font positions 5-9 blank.
13039         * devdvi/DESC.in: Likewise.
13041         * grog/grog.pl: Handle `.PS <file' correctly.
13043         * troff/input.cc (input_stack::push): Improve error message when
13044         input stack limit exceeded.
13046 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
13048         * refer/refer.cc (main): Fix typo in handling of `a' option.
13050         * refer/refer.cc (do_bib): In state START after a newline remain
13051         in state START.
13053         * groff/groff.sh: Deleted.
13054         * groff/Makefile.sub: Delete handling of groff.sh.
13056         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13057         to determine whether to use \X'ps:...'.
13058         * tmac/troffrc: Set 0p register to 0.
13059         * tmac/tmac.ps: Set 0p register to 1.
13061         * groff/groff.cc: Support -X option. Give warning for -TXps and
13062         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13063         * tmac/troffrc: Support -r.X=1.
13065         * pic/troff.cc (troff_output::dot): Don't test
13066         zero_length_line_flag.
13068 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
13070         * include/lib.h: Declare getopt() and friends unless
13071         STDLIB_H_DECLARES_GETOPT is defined.
13073         * doc/chars.tr: Delete.
13074         * man/groff_char.man: New file.
13076 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
13078         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13079         user has changed register format.
13081 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
13083         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
13084         `postpro' command in DESC file.  Get spooler command from `print'
13085         command in DESC file.  Execute spooler command with /bin/sh.
13087         * groff/groff.cc: Split Unix-specific parts into...
13088         * groff/pipeline.c: New file.
13090         * LICENSE: Delete.
13091         * COPYING: New file.
13092         * all files: Update copyright notices.
13094         * Rearrange files.  Redo Makefiles.  Use autoconf.
13096 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
13098         * troff/input.c (charinfo_to_node_list): Interpret character
13099         definition with escape_char of `\'.
13101 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
13103         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13104         Define INT_DIGITS as big enough for 64-bit integer.
13105         * lib/strtol.c: Don't include lib.h.
13106         * lib/lib.h: Delete ifdef __cplusplus stuff.
13108 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
13110         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
13111         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
13112         get DESC from current directory.
13114 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
13116         * tbl/main.c (main): Always reset the line number when reading
13117         from stdin.
13119         * tbl/table.c (table::print_single_hline, table::print_double_hline,
13120         table::define_bottom_macro, table::do_row, table::do_top): Round
13121         vertical spacing up to vertical resolution.
13123 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
13125         * ps/ps.h (enum resource_type): Avoid comma at end of
13126         enumerator-list.
13127         * dvi/dvi.c (class dvi_printer): Likewise.
13128         * dvi/tfmtodit.c (gf::load): Likewise.
13129         * refer/label.y (struct expression): Likewise.
13130         * refer/refer.c (class label_processing_state): Likewise.
13131         * refer/indxbib.c (do_file): Likewise.
13132         * troff/troff.c (enum warning_type): Likewise.
13133         * tbl/main.c (process_data): Likewise.
13134         * troff/charinfo.h (class charinfo):
13136 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
13138         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
13140 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
13142         * groff.c: Move to new groff subdirectory.
13143         * groff/Makefile: New file.
13144         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13146         * man/mdate.sh: Use ls -L if supported.
13148         * Consolidate all header files produced by gendef into lib/defs.h.
13149         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13150         Don't include path.h.
13151         * lib/Makefile (path.h): Don't generate.
13152         * troff/input.c: Include defs.h. Don't include config.h.
13153         * troff/Makefile (config.h): Don't generate.
13154         * refer/index.h: Don't include suffix.h.
13155         * refer/index.c: Include defs.h.
13156         * refer/indxbib.c: Include defs.h.
13157         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13158         defs.h.
13159         * refer/Makefile (suffix.h, path.h): Don't generate.
13160         * groff.c: Don't include config.h. Include defs.h.
13161         * Makefile (config.h): Don't generate.
13162         (lib/defs.h): Generate.
13163         (topclean): Remove lib/defs.h.
13165 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
13167         * lib/malloc.c, lib/getpagesize.h: Deleted.
13168         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
13169         related stuff.
13170         * lib/Makefile: Delete malloc-related stuff.
13171         * lib/new.c: Workaround COOKIE_BUG if necessary.
13173         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
13174         needed header files directly.
13175         * refer/refer.h: Omit definition of DEFAULT_INDEX.
13176         * Makefile: Include definition of DEFAULT_INDEX in path.h.
13178 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
13180         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
13181         argument.
13182         * lib/font (font::load_desc, font::load): Don't split argument of
13183         unknown command.
13184         (font::handle_unknown_font_command): Change type.
13185         * ps/ps.c (ps_font::handle_unknown_font_command,
13186         handle_unknown_desc_command): Change type.
13187         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
13189 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
13191         * lib/font.h (font::handle_unknown_font_command): Add file and
13192         line arguments.
13193         * lib/font.c (font::handle_unknown_font_command):
13194         * ps/ps.c (ps_font::handle_unknown_font_command):
13195         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
13196         lineno arguments.  Use _with_file_and_line functions for error
13197         reporting.
13199         * lib/fontfile.c (font::unknown_desc_command_handler): New static
13200         data member.
13201         * lib/font.c (font::set_unknown_desc_command_handler): New
13202         function.
13203         (font::load_desc): For unknown commands, call
13204         unknown_desc_command_handler if not null.
13205         * lib/font.h (class font): Declare them.
13206         (FONT_COMMAND_HANDLER): New typedef.
13207         * ps/ps.c (handle_unknown_desc_command): New function.
13208         (main): Set bflag if we had a -b option. Call
13209         font::set_unknown_desc_command_handler.
13210         (broken.h): Don't include.
13211         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
13212         submake 
13213         * ps/devps/Makefile: Add `broken' command to DESC file using
13214         BROKEN_SPOOLER_FLAGS.
13216         * macros/tmac.e ([, ]): Add as synonyms for { and }.
13218         * macros/tmac.e ($p): Only exdent if \$3 > 0.
13220         * macros/tmac.e (@R, @S): New macros.
13221         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
13222         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
13223         Declare $H, $[0-9], .. macros with @S.
13224         Declare |0, |1, |2, |3 strings with @S.
13226         * macros/tmac.e (@S): Rename to @U.
13228         * macros/tmac.e (@z): Define @b and bp as empty instead of
13229         deleting them,
13231         * macros/tmac.e (@m): Deleted.
13232         (@h): Don't call @m.
13233         (@z): Don't set @m trap.
13235         * macros/tmac.e ($h, $f): Define |z as empty string.
13237         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
13238         (@q): Likewise.
13240         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
13241         removing them.
13242         ()f): Likewise for * register.
13244         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
13245         argument is missing, don't change $R.  Call sr with three
13246         arguments when initializing.
13248 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
13250         * macros/tmac.e (sr): New macro.
13251         Initialize $r and $R using sr.
13253         * macros/tmac.e (,): Delete \*(#[.
13255         * troff/env.c (set_tabs): Read the tab type even if the position
13256         is bad.  Allow the position of the first tab stop to be negative.
13258 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
13260         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
13261         _POSIX_VERSION.
13262         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
13263         rather than -DPATHCONF_MISSING.
13264         * Makefile: Get rid of PATHCONF_MISSING.
13266         * refer/map.c: New file.
13267         * refer/index.c: Interface to mmap through map.c.  Rename map_size
13268         to map_len.
13269         * refer/Makefile: Handle map.c.
13270         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
13272 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
13274         * Makefile: RANLIB should be `true' if there is no ranlib.
13275         * lib/Makefile (libgroff.a): Simplify.
13276         * driver/Makefile (libdriver.a): Simplify.
13278         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
13279         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
13280         defined.
13282 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
13284         * troff/env.c (compare_ranges): Declare as extern "C".
13286         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
13288         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
13290 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
13292         * pic/troff.c (troff_output::text): Merge in grops_output::text,
13293         but conditionalize use of \X based on \*(.T.
13294         (grops_output::*): Deleted.
13295         * pic/output.h: Delete declaration of make_grops_output.
13296         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
13297         by default. -n sets it to 0.
13298         (usage): Corresponding changes.
13299         * groff.c (main): Don't pass -x or -p to pic.
13300         * groff.sh: Likewise.
13302         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
13303         to be non-zero.
13305         * ps/devps/afmtodit: Change calculation of asc_boundary and
13306         desc_boundary.  Make these bounds inclusive.
13307         * ps/devps: Regenerate font files.
13309 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
13311         * macros/tmac.latin1: New file.
13312         * macros/tmac.tty-char: Use tmac.latin1.
13313         (tmac.tty-tr): Deleted.
13314         * macros/Makefile: Install tmac.latin1.
13315         * macros/tmac.dvi: Use tmac.latin1.
13316         * macros/troffrc: Translate \[char160] onto no-break space here.
13317         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
13319 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
13321         * macros/tmac.Xps: Use `do' request.
13323         * macros/tmac.ps: Use `do' request.
13325         * macros/tmac.e (@C): Use `do' request.
13327         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
13328         * macros/Makefile: Install tmac.X*.
13330         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
13331         * tty/Makefile: Don't install tmac.tty*.
13332         * macros/Makefile: Install tmac.tty*.
13334         * dvi/tmac.dvi: Move to macros.
13335         * dvi/Makefile: Don't install tmac.dvi.
13336         * macros/Makefile: Install tmac.dvi.
13338         * ps/tmac.ps*: Move to macros.
13339         * ps/Makefile: Don't install tmac.ps*.
13340         * macros/Makefile: Install tmac.ps*.
13342         * eqn/box.c: Provide draw_lines parameter corresponding to -D
13343         option.
13344         * macros/eqnrc: Set draw_lines parameter based on device.
13345         * groff.c: Don't pass -D flag to eqn.
13346         * groff.sh: Likewise.
13347         * eqn/main.c: Warn about use of -D.
13349         * troff/input.c (process_startup_file): New function.
13350         (main): Call process_startup_file().
13351         * macros/troffrc: New file.
13352         * macros/Makefile: Install troffrc.
13353         * groff.c (main): Don't pass extra -m option to troff. For a 
13354         pseudo device pass the name of the pseudo device to troff using
13355         -d.
13356         * groff.sh: Likewise.
13357         * groff.c (possible_command::prepend_arg): Deleted.
13359         * troff/input.c (do_request): New function.
13360         (init_input_requests): Bind "do" to do_request.
13362         * eqn/main.c (main): Instead of loading eqnchar from device directory,
13363         load eqnrc from macro directory.
13364         * macros/eqnrc: New file.
13365         * macros/Makefile: Install eqnrc.
13366         * ps/devps/eqnchar: Deleted.
13367         * ps/devps/Makefile: Don't install eqnchar.
13368         * dvi/devdvi/eqnchar: Deleted.
13369         * dvi/devdvi/Makefile: Don't install eqnchar.
13370         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
13371         variable optM.
13373         * lib/device.[ch]: New files.
13374         * lib/font.h (font::set_device_name, font::get_device_name):
13375         Deleted.
13376         * lib/fontfile.c: Use device.h.
13377         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
13378         * troff/input.c: Delete definition of `device'.
13379         (main): Don't initialize device.
13380         * troff/troff.h: Include device.h rather than declaring device.
13381         * troff/Makefile: No need to handle DEVICE.
13382         * driver/input.c: Include device.h. Don't use
13383         font::{set,get}_device_name.
13384         * groff.c, Makefile: Rename device.h to config.h.
13385         * groff.c: Use library device variable.
13386         * eqn/main.c: Use library device variable.
13387         * eqn/Makefile: No need to handle DEVICE.
13389         * lib/searchpath.[ch]: New files.
13390         * lib/Makefile: Handle searchpath.[ch].
13391         * troff/input.c (open_file, init_dirs): Deleted.
13392         (macro_dirs): Deleted.
13393         (open_mac_file, macro_source): Use class search_path.
13394         (add_string, struct string_list): Move definition.
13395         (main): Change -M option to use macro_path. Delete call to
13396         init_dirs().
13397         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
13398         Rewrite to use class search_path.
13399         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
13400         * lib/Makefile: fontfile.c depends on searchpath.h.
13401         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
13402         MACROPATH.
13403         * lib/macropath.[ch]: New files.
13404         * troff/Makefile: No need to handle MACROPATH.
13406         * troff/input.c: Delete DUMP code.
13407         * lib/fontfile.c, lib/font.h: Delete
13408         font::forget_command_line_font_dirs.
13410         * troff/input.c (push_token): New function.
13411         (handle_first_page_transition): Use push_token().
13412         (process_input_stack): Change handling of a space at the beginning
13413         of the line.
13415 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
13417         * troff/input.c (font_dirs): Delete unused variable.
13419         * eqn/lex.c (do_set): Correct error messages.
13421 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
13423         * troff/input.c (do_define_string): Allow the string name to be
13424         followed immediately by a tab.
13425         (define_character): Likewise.
13427 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
13429         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
13430         be negative.
13432         * troff/input.c (input_iterator::is_file): New virtual function.
13433         (file_iterator::is_file): New function.
13434         (input_stack::end_file): New function.
13435         (input_stack::next_file): Handle the situation where there is no
13436         file on the input stack correctly.  Avoid making two passes over
13437         the input stack.
13438         (next_file): Make the filename optional; in this case call
13439         input_stack::end_file().
13441 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
13443         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
13444         produce a real _ charater when the current font is CW and _
13445         otherwise.
13447         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
13448         expression to work around gcc 2.2 bug.
13450 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
13452         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
13454         * troff/env.c (environment::add_padding): New function.
13455         (environment::add_char): Use add_padding().
13456         (environment::space): Likewise.
13457         (environment::wrap_up_field): Add some padding if there is none
13458         and there's no current tab.
13459         * troff/env.h: Declare environment::add_padding.
13461 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
13463         * pic/pic.y: undef fmod and rand before declaring them.
13465 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
13467         * troff/input.c (main): If the DESC file specifies a font name of
13468         0, then leave the corresponding font position empty.
13470         * nroff.sh: New file.
13471         * Makefile (install.nobin): Install nroff.sh.
13473         * tty/devlatin1/R.proto: Add ao as synonym for de.
13474         * tty/tmac.tty-char: Define ao as o.
13476         * tty/dev{ascii,latin1}/R.proto: Add aq.
13477         * tty/tmac.tty-char: Delete definition of aq.
13479 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
13481         * troff/input.c (init_charset_table): Don't translate 0240.
13482         * ps/tmac.ps: Translate char160 to space.
13483         * dvi/tmac.dvi: Likewise.
13484         * tty/tmac.tty: Likewise.
13486 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
13488         * dvi/tmac.dvi: Add support for all Latin-1 characters.
13490         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
13491         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
13492         \(oe, \(r?, \(r!.
13494         * tty/tmac.tty-char: Add \(ah.
13496         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
13497         No need to define \(FM and \(!/. Conditionalize all character
13498         definitions.
13500         * ps/devps/lgreekmap: Add +h, +f, +p.
13502         * ps/tmac.psnew: New file.
13503         * ps/Makefile: Install tmac.psnew.
13505         * troff/input.c (charinfo_to_node_list): Don't ever interpret
13506         character definitions in compatible mode.
13508         * troff/input.c (remove_character): New function.
13509         (init_input_requests): Bind remove_character to "rchar".
13511         * ps/tmac.psold: New file.
13512         * ps/Makefile: Install tmac.psold.
13513         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
13514         characters into tmac.psold.  Make these definitions unconditional.
13516         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
13518         * ps/tmac.ps: Don't define \('c and \('C.
13520         * ps/devps/textmap: Move Greek characters to...
13521         * ps/devps/symbolchars:
13523 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
13525         * ps/devps/text.enc: Add quotesingle.
13526         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
13527         * tty/tmac.tty-char: Likewise.
13528         * dvi/devdvi/texmi.map: Add +h, +f, +p.
13529         * dvi/devdvi/texi.map: Add Fn.
13530         * dvi/devdvi/msam.map: Add lz.
13531         * dvi/tmac.dvi: Handle Bq, bq, aq.
13533         * pic/lex.c (get_token): Recognize 'th.
13534         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
13536 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
13538         * ps/devps/textmap: Move di, mu, +- to...
13539         * ps/devps/symbolchars:
13541         * macros/tmac.s (@XS): Don't call par@reset or fi.
13542         (XA): Call LP. Turn off adjustment. Reduce line length.
13544         * macros/tmac.s: Initially alias XS to LP.
13545         (XS): Rename to @XS.
13546         (cov*ab-init): Alias XS to @XS.
13548 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
13550         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
13551         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
13552         (token::is_size, token::changes_env): Deleted.
13553         * troff/number.c (parse_term): No need to process \s explicitly.
13554         Call tok.next() only after scale indicator has been processed.
13555         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
13556         \f etc explicitly.
13557         (token::next): Handle \s, \f, \S, \H immediately rather than
13558         returning them as tokens.
13559         (token::operator==, token::description, token::add_to_node_list,
13560         token::process): Remove handling of deleted tokens.
13562         * troff/env.c (environment::add_char): When adding padding
13563         indicator character, call start_line() if necessary.
13565 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
13567         * ps/devps/afmtodit: Don't output 0 kerns.
13569         * ps/devps/afmtodit: Remove directory from name of encoding in
13570         font description file.
13572         * ps/devps/afmtodit: Improve error messages.
13574         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
13576         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
13577         * ps/devps/FontMakefile: Deleted.
13578         * ps/devps/afmname: New file.
13580         * ps/devps/symbol.sed: New file.
13581         * ps/devps/symbol.diff: Deleted.
13582         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
13583         Generate zapfdr.afm from zapfd.afm.
13585         * tty/tmac.tty (tty-char): Prefix definition with ".
13587         * macros/tmac.an (TP): Don't start a diversion if one has already
13588         been started.
13590         * tty/tmac.tty-char: Add Latin-1 characters.
13592         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
13594 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
13596         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
13597         Move declaration of struct horizontal_span.
13599         * tbl/table.c (table::table): Initialize span_list.
13600         (table::~table): Delete span_list.
13602         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
13604         * ps/devps/Makefile: Avoid dependency on GNU make.
13606         * ps/tmac.ps: Check that character does not already exist before
13607         defining it.
13609         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
13610         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
13611         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
13612         files.
13614         * tty/tmac.tty-char: New file.
13615         * tty/Makefile: Install tmac.tty-char.
13616         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
13617         tmac.tty-char.
13619         * tty/tmac.tty: Fix definition of \(34.
13621         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
13622         bracket-drawing characters onto |. Add *o.
13624         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
13625         only if current_field.
13627         * troff/dictionary.c (dictionary::lookup): Free old_table after
13628         rehashing. 
13630 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
13632         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
13633         whose glyphs are identical to glyphs of some Roman character.
13635         * tty/devlatin1/R.proto (bu): Deleted.
13636         * tty/devascii/R.proto (bu): Deleted.
13637         * tty/tmac.tty: Add definition of \(bu.
13639         * eqn/main.c (do_file): Pass FILE as argument.
13640         (main): Automatically load eqnchar.  New options -F and -n.
13641         Pass do_file an opened FILE.
13642         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
13643         No need to include font.h.
13644         * groff.sh: Likewise.  Don't need to use - for standard input.
13645         Prefix files with -- if first file starts with -.
13647         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
13649         * troff/env.c (environment::possibly_break_line): Don't set line
13650         to 0 across call to output_line().  Don't call output_line() until
13651         after discarding nodes after break.
13653 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
13655         * request.h (macro::empty): Declare it.
13656         * input.c (macro::empty): New method.
13657         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
13658         macro is empty.
13660 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
13662         * troff/env.c (environment::start_field): Decrement space_total
13663         when a space is frozen.
13665 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
13667         * macros/tmac.an (R): Delete macro.
13669         * troff/input.c (get_copy, token::next): Support \# (like \" but
13670         newline is ignored).
13672         * troff/input.c (token::next): Fix error message in 'Y' case.
13674 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
13676         * eqn/delim.c (define_extensible_string): Recognize any prefix of
13677         a delimiter name.
13679 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
13681         * c++test.c: Include <osfcn.h>.
13683         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
13684         <errno.h> doesn't.
13686 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
13688         * tbl/table.c (table::divide_span): Don't count column separation
13689         if expand was specified.
13691         * tbl/main.c (process_format): Don't ignore width specs in
13692         continued format.  Give warning for changing equal widths or
13693         column separation in continued format.
13694         (process_data): Set column separation, minimum width, equal
13695         columns at end of table.
13697 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
13699         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
13700         node::add_discretionary_hyphen): Use soft_hyphen_char.
13701         (set_soft_hyphen_char): New function.
13702         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
13704         * Makefile (c++tested): Give more helpful message if test fails.
13706 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
13708         * troff/input.c (init_charset_table): Translate 0240 to
13709         an unbreakable space.
13711         * troff/token.h (token::hyphen_indicator): New function.
13712         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
13713         translation.
13714         * troff/input.c (translate): Allow translation to \%.
13715         * troff/node.c (node::add_char): Handle
13716         TRANSLATE_HYPHEN_INDICATOR.     
13717         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
13719         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
13720         for \(hy.
13722         * tty/devlatin1/R.proto: \(hy and - should print as 055.
13724 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
13726         * groff.c (run_commands): If the last command gets a SIGPIPE send
13727         a SIGPIPE to all children than haven't yet terminated.  When
13728         command terminates, set pid field to -1.
13730 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
13732         * groff.c (main): Pass an appropriate -filename option to gxditview.
13734 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
13736         * Makefile.bd (install): Remove existing program before copying.
13738         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
13739         programs which have Unix counterparts to be installed with
13740         user-specified prefix.
13742         * troff/input.c (exit_troff): Don't check if exit_started.
13743         (exit_request): Don't call exit_troff if exit_started.
13745         * Makefile.bd (install.mm): Rename to install.dwbmm.
13747 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
13749         * driver/input.c (do_file): Add missing break for '#' case.
13751 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
13753         * troff/input.c (input_stack::clear):  Clear past any boundaries and
13754         then add the boundaries back.
13756         * troff/input.c (exit_troff): Return immediately if already
13757         exiting.
13759         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
13760         end macro.
13761         (pg*end-page): If the text has ended and there are no more
13762         footnotes or keeps, exit.
13764         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
13766         * troff/input.c (init_charset_table): Make \(rq transparent by
13767         default.
13769         * macros/tmac.an: Define lq and rq strings.
13771         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
13773 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
13775         * troff/env.c (environment::final_break): New function.
13776         (environment::newline): Set prev_line_interrupted to 2 if
13777         exit_started.
13778         * troff/env.h: Declare environment::final_break.
13779         * troff/input.c (exit_troff): Call environment::final_break()
13780         instead of environment::do_break().
13782         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
13783         doesn't already exist.
13784         * macros/man.local: New file.
13785         * macros/tmac.an: Load man.local.
13786         * macros/man.ultrix: New file.
13788 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
13790         * troff/input.c (exit_groff): Rename to...
13791         (exit_troff): New function.
13793         * troff/div.c (exit_started, done_end_macro,
13794         seen_last_page_ejector): New global variables.
13795         (began_page_in_end_macro): New static variable.
13796         (exit_flag): Deleted.
13797         (top_level_diversion::top_level_diversion): Initialize
13798         last_page_count.
13799         (top_level_diversion): More elaborate test for whether
13800         cleanup_and_exit() should be called.
13801         Set began_page_in_end_macro if the end macro isn't yet finished.
13802         * troff/div.h (top_level_diversion::last_page_count): New data
13803         member.
13804         (top_level_diversion::set_last_page): New function.
13805         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
13806         * troff/env.c (do_break): Zero prev_line_interrupted.
13807         * troff/input.c (exit_flag): Delete declaration.
13808         (LAST_PAGE_EJECTOR): New magic cookie.
13809         (token::next): Handle LAST_PAGE_EJECTOR.
13810         (exit_groff): Set exit_started and done_end_macro instead of
13811         exit_flag.  Call top_level_diversion::set_last_page.  Push a
13812         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
13813         another ejection after setting seen_last_page_ejector.
13815 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
13817         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
13819         * macros/tmac.e (TH): Make sure there's room for the initial
13820         header.
13822         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
13823         Set FVS in points rather than units.
13825 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
13827         * troff/div.c (top_level_diversion::add_trap): Don't consider the
13828         position of empty slots.
13830 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
13832         * ps/devps/S: Fix height and depth of parenrightex.
13833         * ps/devps/symbol.diff: Regenerate.
13835 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
13837         * tmac.e (u): Do underlining as in -mgs.
13839 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
13841         * tty/tty.c (tty_printer::end_page): If overstriking is
13842         suppressed, still turn overstruck horizontal and vertical lines
13843         into +.
13845         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
13846         2.1.
13848         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
13850 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
13852         * Version 1.05 released.
13854 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
13856         * tty/tty.c: Instead of keeping an array of glyphs and then
13857         sorting it, keep a ordered linked list of glyphs for each line.
13859         * driver/driver.h: Include stddef.h.
13861         * tty/tty.c (compare_glyph):
13862         * refer/refer.c (rcompare):
13863         * troff/env.c (compare_ranges): Arguments of qsort comparison
13864         function should be const void *.
13866         * troff/number.c (parse_term):
13867         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
13868         switch statement.
13870         * refer/label.y (consider_authors): Don't access variables
13871         constructed under a condition outside that condition: put braces
13872         round for statement containing declaration; redeclare use of same
13873         variable later.
13875         * pic/pic.y (text_expr): Delete production that allows
13876         parenthesised text_expr.
13877         (expr): Allow a conditional_expr to appear in parentheses.
13878         (conditional_expr): Rename to any_expr.
13880         * mm: Install new version 1.01 from jh.
13882         * lib/font.c (font::get_width): Cache scaled widths.
13883         (font::font): Initialize widths_cache.
13884         (font::~font): Destroy widths_cache.
13885         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
13887 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
13889         * c++test.c, c++test.ref: New files.
13890         * Makefile: Check that the C++ compiler works.
13892         * ps/tmac.pspic (PSPIC): Do a break.
13894         * ps/tmac.ps: Move definition of PSPIC into...
13895         * ps/tmac.pspic: New file.
13896         (PSPIC): Draw box around picture, but make it invisible to grops.
13897         * ps/tmac.ps: Load tmac.pspic.
13898         * ps/Makefile: Install tmac.pspic.
13900 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
13902         * lib/font.c (scale_round): If n is negative,
13903         subtract .5 before truncating floating point result.
13905         * lib/fontfile.c: Include <errno.h>.
13907 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
13909         * driver/input.c (get_char): Inline. Don't update current_lineno.
13910         Change callers to up date current_lineno if necessary.
13911         Use get_char() instead of getc(current_file).
13913 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
13915         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
13917 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
13919         * tty/tty.c (tmac.tty): Define \(rg as (R).
13921 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
13923         * lib/lib.h: New define a_delete.
13924         * Use a_delete instead of delete when deleting an array of objects
13925         without destructors.
13927         * lib/lib.h: Rename adelete to ad_delete.
13928         * Change uses of adelete.
13930 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
13932         * eqn/eqn.y: Include lib.h.
13934         * troff/node.c (grow_font_table): Delete old_font_table.
13936         * mm: Install new version from jh.
13938 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
13940         * tbl/table.h (format_type): Make global instead of local to class
13941         entry_format.  Prefix enumerators with FORMAT_.
13942         * tbl/table.c, tbl/main.c: Corresponding changes.
13943         * refer/token.h (token_type): Make global.  Prefix enumerators
13944         with TOKEN_.
13945         * refer/token.[ch]: Corresponding changes.
13946         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
13948         * troff/div.c (node::set_vertical_size): Don't name argument.
13950 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
13952         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
13953         * lib/lib.h: Define adelete accordingly.
13954         * pic/object.c (graphic_object::graphic_object):
13955         * tbl/main.c (format::~format):
13956         * tbl/table.c (table::~table):
13957         * refer/ref.c (reference::~reference, reference::merge,
13958         reference::insert_field, reference::delete_field): Use adelete.
13960         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
13961         * refer/token.h:
13962         * tbl/table.h: Corresponding changes.
13964         * common.c (common_output::dashed_arc, common_output::dotted_arc):
13965         Ensure total_angle is positive.
13967 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
13969         * refer/ref.c (reference::merge, reference::insert_field,
13970         reference::delete_field): Avoid delete[0].
13972         * refer/token.c (init_special_chars): Move calls to cmupper
13973         outside calls to init_two_char_letter to work around bug in gcc
13974         2.0.
13976 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
13978         * lib/new.c (operator new): Use __builtin_new for g++.
13980         * pic/object.c (graphic_object::~graphic_object):  Don't use
13981         delete [] on 0.
13983         * pic/object.c (output::compute_scale): Initialize max_width and
13984         max_height.
13986 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
13988         * troff/input.c (write_request): Call fflush.
13990         * troff/node.h (class composite_node): Move declaration to node.c
13991         * troff/input.c (charinfo_to_node): Rename to ...
13992         (charinfo_to_node_list): Return node list rather than composite
13993         node.
13994         * troff/node.c (make_composite_node): New function.
13995         (make_node, add_char): Call make_composite_node instead of
13996         charinfo_to_node.
13997         (class composite_node): Add a tfont * member.  Delete font_size
13998         member.
13999         (composite_node::composite_node, composite_node::copy,
14000         composite_node::size): Corresponding changes.
14001         (composite_node::tprint): Provide constant spacing, emboldening
14002         and track kerning as specified in tfont.
14003         (composite_node::width): Change width calculation accordingly.
14004         * troff/env.h (environment::composite): New member.
14005         (environment::is_composite, environment::set_composite): New
14006         functions.
14007         * troff/env.c (environment::environment): Initialize composite.
14008         * troff/input.c (charinfo_to_node): Call
14009         environment::set_composite.
14010         * troff/node.c (make_composite_node, make_glyph_node): Use the
14011         plain version of the tfont if the environment is composite.
14013         * troff/node.c (font_info::get_space_width): Additional argument
14014         giving space_size.  Handle constant space correctly. Scale by
14015         space_size unless constant spaced.
14016         (env_sentence_space_width): New function.
14017         * troff/node.h: Declare it.
14018         * troff/env.h (environment::get_space_size,
14019         environment::get_sentence_space_size,
14020         environment::get_narrow_space_width,
14021         environment::get_half_narrow_space_width): Make inline.
14022         (environment::get_space_width): Make inline.  Just call
14023         env_space_width.
14024         * troff/env.c: Delete definitions for funtions made inline.
14025         (environment::space_newline, environment::space): Use
14026         env_sentence_space_width(). Don't scale by space_size.
14027         * troff/node.h: Move declarations of env*space_width() functions
14028         into env.h.
14030 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
14032         * macros/tmac.s (PS): Don't try to set negative indent.
14034 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
14036         * pic/pic.y: Fix min function.
14038 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
14040         * man/mdate.sh: Clear LANGUAGE.
14042 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
14044         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14045         * pic/lex.c: New COMMAND keyword.
14046         * pic/pic.y (print_args, print_arg): New rules.
14047         (placeless_element): Use print_args for PRINT.
14048         New COMMAND element.
14050 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
14052         * troff/input.c (terminal): Handle missing argument correctly.
14054         * pic/pic.y (text_expr): New rule.
14056         * pic/pic.y: Implement := operator.
14058 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
14060         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14061         mdoc.
14063 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
14065         * ps/devps/dingbatsrmap: Include this in the distribution.
14067         * macros/tmac.doc: Replace with new version from 2nd Networking
14068         Release. Fix loading of doc-* files.
14069         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14070         * macros/tmac.doc.old: New file.  Apply fixes that had been
14071         applied to old tmac.doc.
14072         * macros/tmac.andoc: Check that we're running under groff.
14073         * macros/Makefile: Rework.
14075 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
14077         * tbl/table.h (format_type): 
14078         * refer/token.h (token_type): If NESTED_TYPES is defined, use
14079         typedef to make these types visible at file scope.
14080         * Makefile: Add NESTED_TYPES configuration option.
14082         * troff/div.c (mark): At the top level use the value of
14083         nl_reg_contents rather than the current vertical position.
14085 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
14087         * tty/tty.c: Implement \D for horizontal or vertical lines.
14088         (tty_printer::set_char): Use vec_used+2 as serial number.
14089         Don't allow size of vector to exceed USHRT_MAX-2.
14090         Split off part into...
14091         (tty_printer::add_char): New function.
14092         (tty_printer::draw): New function.
14093         (compare_glyph): Handle equal serial numbers.
14094         (tty_printer::end_page): Handle overstruck characters from \D.
14095         (main, usage): Implement -d option.
14097 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
14099         * tbl/main.c (process_format):
14100         * eqn/text.c (split_text):
14101         * troff/input.c (token::next): Use inner block for declarations
14102         with initializers in switch statement.
14104 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
14106         * pic/common.c (common_output::dash_line): Cope with zero-length
14107         lines.
14109 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
14111         * Version 1.04 released.
14113 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
14115         * macros/tmac.an (TH): Define a macro an-init to define variables
14116         based on command line arguments.
14117         (an-header): Call it.
14119 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
14121         * Makefile (install.mm): Rename to install.dwbmm.
14123         * Makefile: Integrate mm.
14124         * mm: New directory.
14126 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
14128         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14129         <sys/types.h>.
14131         * pic/troff.c (troff_output::simple_spline,
14132         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14133         shadowing parameter.
14135         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14137         * lib/ptable.h: Add explicit casts when converting from unsigned
14138         long to unsigned.
14140         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14141         * dvi/devdvi/Makefile: Install SA, SB.
14143         * refer/indxbib.c: Add declaration of mktemp.
14145         * refer/lookbib.c: Add declaration of isatty.
14147 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
14149         * pic/lex.c (interpolate_macro_with_args):  While collecting
14150         arguments, keep track of whether we're in a string.
14152 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
14154         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14155         down with \v, so as to avoid problems with top of page trap
14156         setting no space mode.
14158 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
14160         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14162 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
14164         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
14165         Improve error message.
14167 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
14169         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
14170         printf("%03o");
14172 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
14174         * groff.c (possible_command::execp): Always use _exit() after a
14175         failed exec.
14177         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
14178         NO_SYS_WAIT_H   configuration options.
14179         * groff.c: Use these options.  Use POSIX-style macros to extract
14180         fields from the status returned by wait().
14182 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
14184         * tbl/table.c (table::compute_separation_factor): Allow the
14185         separation factor to drop to 0.
14187 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
14189         * refer/search.c: Include <errno.h>.
14191 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
14193         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
14195         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
14196         C++. 
14198         * pic/lex.c (input_stack::bol): Move definition out of class body.
14200         * pic/main.c: On MSDOS munge argv[0].
14202         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
14204         * lib/ptable.c (hash_string): Use unsigned long rather than
14205         unsigned.
14206         (next_ptable_size): Use unsigned rather than int.  Give an error
14207         message if we've hit the largest table size.
14208         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
14209         table size.
14211         * pic/object.h (object_spec): Make flags unsigned long.  Declare
14212         flags as const unisgned long rather than as enums.
14214         * pic/output.c: Deleted.
14216         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
14218         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
14219         Add additional argument.
14220         (line_entry::note_double_vrule_on_{left,right}): Set value of
14221         douvle_vrule_on_{right,left} flag according to argument.
14222         (simple_line_entry::simple_print,
14223         simple_line_entry::double_line_print): If adjacent to double vrule
14224         on a corner extend rather than shorten the rule by half the double
14225         vrule sep.
14227         * troff/number.c (parse_term): In checking for overflow, handle the
14228         case where the current horizontal position is negative.
14230 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
14232         * pic/object.c (draw_arrow): Check for object having zero length.
14234 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
14236         * eqn/main.c (do_file): Split off inline equation handling into...
14237         (inline_equation): New function.  Search for starting delimiter
14238         using...
14239         (delim_search): New function. Don't recognize a delimiter that
14240         occurs in the name of an escape sequence, number register, string
14241         etc.
14243 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
14245         * eqn/delim.c (delim_box::compute_metrics): Don't call
14246         define_extensible_string if left is 0.
14247         (delim_box::output):  Don't print the left delimiter if left is 0.
14248         (delim_box::debug_print): Check for left == 0 before calling printf.
14250 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
14252         * troff/Makefile (majorminor.c): Include only digits in
14253         minor_version.
14255 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
14257         * refer/dirnamemax.c: new file.
14258         * refer/genlimits.c: Deleted.
14259         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
14260         Don't check path length.
14261         * refer/Makefile: Add dir_name_max.o; delete genlimits.
14262         * Makefile: Add PATHCONF_MISSING option.
14264         * refer/indxbib.c (get_cwd): New function.
14265         (main): Use get_cwd().
14266         * lib/getcwd.c: New file.
14267         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
14268         GETCWD in SUBFLAGS.
14269         * lib/Makefile: Compile getcwd.o.
14271         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
14272         userdict.
14274         * refer/indxbib.c (main): Check success of mktemp.
14276         * lib/tmpfile.c: New file.
14277         * lib/Makefile: Add tmpfile.c.
14278         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
14279         * ps/ps.h: Delete declaration of mktemp().
14280         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
14281         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
14282         * driver/driver.h: No need now to include errno.h.
14284         * everywhere: Set errno to 0 before calling fopen().
14286         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
14287         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
14288         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
14290 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
14292         * troff/env.h (translate_space_to_dummy): Declare it.
14293         * troff/env.c (environment::space_newline, environment::space):
14294         If translate_space_to_dummy is set then make the width of spaces 0.
14295         * troff/input.c (translate): If the second character of a
14296         translation is a space, translate to unbreakable space.  If the
14297         first character is a space, set or clear translate_space_to_dummy
14298         according to whether the second character is \&.  Weird!
14300 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
14302         * groff.c (run_commands): Don't use non-zero exit code because a
14303         command gets SIGPIPE.
14305         * groff.c, groff.sh: Use -mXps with -TXps.
14307         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
14308         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
14309         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
14310         (ps_printer::special): New specials invis and endinvis.
14311         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
14312         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
14313         (ps_printer::end_page): Check that invis_count == 0.
14314         (ps_printer::invis_count): New member.
14315         (ps_printer::ps_printer): Initialize invis_count to 0.
14317         * troff/env.c (environment::hyphenate_line): Hyphenation
14318         indicator at beginning of word inhibits splitting after -, \(em
14319         etc.
14321         * pic/pic.y (element): Allow another element to follow } without
14322         any intervening separator.
14324 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
14326         * pic/lex.c (get_delimited): Allow tabs before delimiter.
14328 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
14330         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
14331         declaration of wait() in header files.
14332         * Makefile: Get rid of -DHAVE_UNION_WAIT.
14334         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
14336         * lib/lib.h: Declare return type of strerror as char *.
14338         * man/Makefile: Add g flag to sed substitutions.
14339         * Makefile (shgroff, bindist): Likewise.
14341 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
14343         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
14344         * ps/devps/prologue (PBEGIN): Define showpage after pushing
14345         userdict.
14347 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
14349         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
14350         userdict.
14352 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
14354         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
14355         group.
14357 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
14359         * troff/input.c (define_number_reg):  If currently undefined,
14360         don't define it if the argument is an invalid expression.
14362         * Makefile: Ignore return value of `if' commands without `else'
14363         parts.
14365         * Makefile: Split up CPPDEFINES into a series of separate
14366         configuration options.
14368         * troff/input.c (init_registers): Use time_t instead of long
14369         unless LONG_FOR_TIME_T is defined.  Use returned result rather
14370         than passing pointer.
14371         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
14373         * lib/Makefile (fontpath.h): Use gendef.
14375 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
14377         * troff/input.c (input_iterator::shift): Delete argument name.
14378         * troff/node.c (suppress_output_file::really_begin_page,
14379         suppress_output_file::really_transparent_char, node::ascii_print,
14380         node::tprint): Delete names of unused arguments.
14382 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
14384         * refer/label.y (string):  Pass $4 to command_error.
14386 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
14388         * Version 1.03 released.
14390 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
14392         * Makefile: Pass definition of SHELL in SUBFLAGS.
14394         * gendef: New file.
14395         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
14396         ps/Makefile: Use gendef to construct header files that are
14397         constructed from the Makefile.
14399         * macros/Makefile: make all should build stripped version of tmac.e.
14401         * refer/Makefile (clean): Remove y.output.
14403 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
14405         * ps/pfbtops.c (main): Add -v option which prints out a version
14406         number.
14407         * ps/Makefile (pfbtops): Link with libgroff.a.
14409 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
14411         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
14412         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
14414         * refer/lkbib.c (main): Always terminate reference with blank
14415         line.
14416         * refer/lookbib.c (main): Likewise.
14418         * refer/linear.c (file_buffer::load): Check that the file is not a
14419         binary file.
14421         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
14422         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
14423         Delete second inclusion of <sys/param.h>.
14425 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
14427         * troff/token.h (token::special): Deleted.
14429         * tbl/main.c (process_format): Rework so that opt->tab_char is
14430         recognized only when appropriate.
14432         * ps/Makefile (clean): Remove pfbtops.
14434 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
14436         * lib/font.c (text_file::next): Don't return if we have got a
14437         blank line.
14439 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
14441         * refer/refer.c (store_reference): Get hash code from old_table[i]
14442         when rehashing the table.
14444 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
14446         * eqn/box.c (box::top_level): Save size and prev size using \R and
14447         restore it afterwards. Set the size to the size at the beginning
14448         of the line.
14449         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
14450         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
14452         * refer/Makefile (limits.h): Use ./genlimits.
14454 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
14456         * refer/index.c: Delete declarations of stat() and fstat().
14458 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
14460         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
14462 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
14464         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
14466 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
14468         * troff/input.c (token::get_char): Handle \e.
14470         * refer/linear.c: Delete declarations of fstat() and stat().
14472 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
14474         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
14475         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
14477 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
14479         * troff/input.c (do_define_macro): Improve error handling for end
14480         of file while defining macro.
14482 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
14484         * eqn/box.h: Fix declaration of set_gsize.
14485         * eqn/box.c (set_gsize): Make argument const char *.
14486         (gsize): Declare as char *.
14487         * eqn/main.c (main): Don't convert gsize to int.
14488         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
14490         * Version 1.02 released.
14492 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
14494         * macros/tmac.andoc: New file.
14495         * macros/Makefile: Install tmac.andoc.
14497         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
14498         operator new and delete on OP_DELETE_BROKEN not being defined.
14499         * Makefile: Mention OP_DELETE_BROKEN.
14501 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
14503         * Makefile (bindist): Pass SUBFLAGS.
14505 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
14507         * Makefile, groff.c: Pass definitions to groff.c via device.h.
14509         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
14510         parameter.
14512         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
14514         * ps/ps.h, ps/psrm.c: Make comment_table and
14515         header_comment_table local to resource_manager::process_file.
14517         * groff.sh: With -TXps pass -printCommand option to gxditview.
14519         * groff.c (possible_command::print): Implement using
14520         append_arg_to_string.
14522         * xditview: Merge in new implementation with own ChangeLog.
14524 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
14526         * groff.c (main): Implement PRINT_OPTION.
14527         (append_arg_to_string): New command.
14528         (device_table): Set PRINT_OPTION flag for Xps.
14530 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
14532         * troff/groff.h: Rename to troff.h.
14534         * pic/lex.c (lookup_keyword, docmp): New functions.
14535         (get_token): Use new lookup_keyword.
14536         Don't include key.h.
14537         * pic/key.[ch], pic/pic.gperf: Deleted.
14538         * pic/Makefile: Remove gperf stuff.
14540         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
14541         into output.h.
14542         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
14544         * troff/Makefile, troff/node.c: Move definition of
14545         STORE_WIDTH into node.c.
14547         * etc/grog.pl, etc/grog.sh: Support -mdoc.
14549 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
14551         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
14552         dvi/devdvi/texb.map: Add lq and rq.
14553         dvi/devdvi: Regenerate fonts.
14554         * ps/devps/textmap: Add lq and rq.
14555         * ps/devps: Regenerate fonts.
14556         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
14557         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
14559         * pic/object.c (position_rectangle): When checking radius
14560         cope with possiblity that width or height is negative.
14561         (box_object::box_object): Have separate xrad and yrad with
14562         signs matching signs of dim components.
14563         (box_object::{north,south}_{east,west}): Use xrad and yrad.
14564         (box_object::print): With rounded boxes use absolute values
14565         for dim and rad arguments.
14567         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
14568         in fontpath.h.
14570         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
14572         * various files: Add explicit destructors to keep Saber CC +d
14573         happy.
14575 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
14577         * eqn/box.c (box::top_level): Restore fonts correctly after
14578         font changes in line containing inline equation.  Also
14579         restore previous font as well as current font.
14580         * eqn/pbox.h: Define necessary string and register names.
14582         * troff/input.c (token::next): Case 'R' calls do_register.
14583         (do_register): New function.
14585 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
14587         * groff.c, groff.sh: Support Xps device.  Allow each device
14588         to have a pseudo_name and a real_name.
14590         * groff.c (run_commands): Don't print `Broken pipe' messages.
14592         * ps/pfbtops.c: New file.
14593         * ps/Makefile: Add pfbtops.
14595         * troff/number.c (parse_term): Improved error message.
14597 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
14599         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
14601         * Makefile: Integrate refer.
14602         * refer: New directory.
14603         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
14604         man/lkbib.man: New files.
14605         * man/Makefile: Support refer man pages.
14607         * lib/lib.h: Declare is_prime.
14608         * lib/prime.c: New file.
14610         * troff/input.c (macro_source): New function.
14611         (init_input_requests): Bind "mso" to macro_source.
14613         * troff/env.c (environment::possibly_break_line): Maintain
14614         pointer to pointer to node to be split in ndp so as to avoid
14615         using address of freed node.
14617         * troff/env.c (environment::hyphenate_line): Maintain pointer to
14618         pointer to first node to be hyphenated in startp so as to
14619         avoid using address of freed node.
14621         * troff/env.c (class trie, class hyphen_trie): Make the
14622         elements of the trie be of type char not unsigned char.
14623         Declare arguments to be const char* instead of unsigned char *.
14624         
14625         * troff/env.c (hyphenate): Initialize hbuf[0].
14627         * troff/input.c (set_string): Declare p to be char * and cast
14628         *p to unsigned char when necessary.
14630         * troff/input.c (do_define_macro): Declare s to be const
14631         char*. Cast element to unisgned char when necessary, Declare
14632         d to be an int.  Handle EOF better.
14634         * troff/Makefile, troff/input.c: Different scheme for passing
14635         definitions of MACROPATH, HYPHENFILE and DEVICE.
14637 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
14639         * tty/devascii/R.proto: Delete entry for em.
14640         * tty/devlatin1/R.proto: Likewise.
14642 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
14644         * troff/input.c (translate): Stop when we get a space. Treat eof
14645         like newline.
14647         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
14649 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
14651         * tbl/main.c (process_format): A font name following a `f'
14652         modifier that starts with a digit can be only one character long.
14653         Also deal with EOF on the second character of the font name.
14655 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
14657         * troff/input.c (token::next): Turn \~ into an
14658         unbreakable_space_node.
14659         * troff/node.c (unbreakable_space_node): New class.
14660         * troff/node.h: Declare it.
14662 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
14664         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
14665         it's >= 0, before outputting it as a single byte.
14667 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
14669         * lib/font.c: Make font_char_metric::code an int.
14670         (font::get_code): Change return type to int.
14671         (font::load): Allow code to be arbitrary integer.
14672         * lib/font.h (font::get_code): Change return type to int.
14673         (font::number_to_index): Change argument type to int.
14674         * troff/input.c (token::next):  In case 'N', allow any value.
14675         Store value in token::val.
14676         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
14677         (token::get_char, token::add_to_node_list, token::process): Get
14678         number from val.
14679         (charinfo::set_number): Change argument to int.
14680         (charinfo::get_number):  Require that NUMBERED flag be set.
14681         (get_charinfo_by_number): Store numbered characters not between 0
14682         and 255 in a dictionary.
14683         * troff/charinfo.h (get_charinfo_by_number): Change argument type
14684         to int.
14685         (charinfo::number): Change type to int.
14686         (charinfo::set_number): Change type of set_number to int.
14687         * troff/node.c (troff_output_file::put_char_width,
14688         troff_output_file::put_char): Test whether character is numbered
14689         using charinfo::numbered().
14690         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
14691         values of num.
14692         * lib/nametoindex.c: New implementation to cope with arbitrary
14693         number characters.
14695         * troff/input.c (token::operator==): Test val for
14696         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
14697         TOKEN_SIZE.
14699         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
14700         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
14702 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
14704         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
14705         variable.
14707         * all Makefiles: rm targets of cp and >.
14709         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
14710         it.
14712         * eqn/lex.c (def_table): Add dollar.
14714 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
14716         * troff/input.c (do_width): Push back newline before closing delim
14717         like do_bracket.
14719 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
14721         * groff.c (possible_command::prepend_arg): New function.
14722         (main): Prepend device -m option.
14723         * groff.sh: Put device -m options before command-line options.
14725 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
14727         * macros/tmac.an (IP): Quote argument to TP.
14729         * ps/ps.c (main): New option -b, which sets...
14730         (broken_flags): New variable.
14731         (ps_printer::~ps_printer): Incorporate the setup section in the
14732         prolog if (broken_flags & NO_SETUP_SECTION).
14733         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
14734         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
14735         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
14736         ps_printer::print_needed_font_comment,
14737         ps_printer::print_supplied_font_comment,
14738         ps_printer::print_include_font_comments,
14739         ps_printer::lookup_doc_font, ps_printer::download_fonts,
14740         ps_printer::read_download_file, read_document_fonts, add_font,
14741         skip_line, parse_fonts_arg, document_font::document_font,
14742         document_font::~document_font, document_font::download,
14743         ps_output::include_file):  Deleted.
14744         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
14745         rather than %!PS-Adobe-2.0.  Make calls to
14746         resource_manager::need_font for each font that we used. Replace
14747         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
14748         print_supplied_font_comment, print_needed_font_comment by call to
14749         resource_manager::print_header_comments. Output %%Orientation
14750         comment. Output %%Requirements: numcopies comment if ncopies > 1.
14751         Don't output the prolog directly.  Instead call
14752         resource_manager::output_prolog.  Only define #copies when ncopies
14753         > 1.  Delete calls to print_include_font_comments  and
14754         download_fonts.  Add call to resource_manager::document_setup.
14755         (ps_printer::do_file): Call resource_manager::import_file instead
14756         of including it ourselves.
14757         (ps_printer::do_import): Likewise.  Also don't call
14758         merge_import_fonts. Push userdict on the dictionary stack before
14759         and pop it afterwards.
14760         Move declaration of ps_output into ps.h.
14761         * ps/psrm.c: New file implementing resource_manager class.
14762         * ps/ps.h: New file declaring ps_output and resource_manager
14763         classes.
14764         * ps/devps/zapfdr.ps:
14765         * ps/devps/symbolsl.ps:
14766         * ps/devps/prologue:  Use 3.0 conventions.
14767         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
14768         Add default definition of BROKEN_SPOOLER_FLAGS.
14769         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
14770         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
14772 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
14774         * etc/grog.pl: New file.
14775         * Makefile (GROG): New variable.
14776         Add GROG to SUBFLAGS.
14777         * etc/Makefile (GROG): New variable.
14778         (install.nobin): Install $(GROG) rather than grog.sh.
14780 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
14782         * eqn/special.c (special_box::compute_metrics): Make the input and
14783         output strings the same.  Get the new height and depth from the
14784         predefined height and depth registers.  Also make subscript kern
14785         and skew available.
14786         (special_box::compute_subscript_kern, special_box::compute_skew):
14787         New functions.
14789         * eqn/box.c (pointer_box::compute_skew,
14790         simple_box::compute_metrics, box::top_level)
14791         * eqn/text.c (prime_box::compute_metrics,
14792         prime_box::comput_subscript_kern)
14793         * eqn/limit.c (limit_box::compute_metrics):
14794         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
14795         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
14796         negative numbers in `nr' requests with a leading 0.
14798 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
14800         * eqn/special.c: New file.
14801         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
14802         Add new rule for simple.
14803         * eqn/lex.c (token_table): Add SPECIAL.
14804         * eqn/box.h: Declare make_special_box.
14805         * eqn/Makefile: Add special.[co].
14807 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
14809         * ps/devps/prologue: Possibly set packing to true while defining.
14810         Create grops dictionary here.  Initialize local variables before
14811         defining procedures.
14812         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
14813         the dictionary stack. Set strokeadjust and overprint to false if
14814         the relevant operators are defined.
14815         (PEND): New procedure.
14816         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
14817         prologue.  Do everything else in the setup section.
14818         (ps_printer::do_import): Just call PBEGIN and PEND around the
14819         picture. Also push userdict before, and pop it afterwards.
14821 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
14823         * troff/node.c (bracket_node::tprint): Brackets were being printed
14824         1m too low.
14826         * macros/tmac.an (SH, SS): Set fill mode.
14828 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
14830         * troff/div.c (top_level_diversion::begin_page): Set
14831         high_water_mark to 0.
14833 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
14835         * man/mdate.sh: New file.
14836         * man/mdate.c: Deleted.
14837         * man/Makefile: Use mdate.sh instead of mdate.
14838         (mdate): Deleted.
14840         * eqn/lex.c (do_gsize): Supply missing argument to error message.
14842 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
14844         * man/mdate.c: New file.
14845         * man/*.man: Replace modification date by @MDATE@.
14846         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
14847         (mdate): New target.
14849         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
14850         Remove illegal input characters.
14852 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
14854         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
14856 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
14858         * troff/div.c (begin_page): Change behaviour when
14859         !first_page_begun and !break_flag.
14861         * troff/input.c (do_name_test): Return 0 if argument is empty.
14863         * troff/input.c (read_long_escape_name): Require closing ] to be
14864         at same input level as opening [.
14866         * troff/input.c (read_increment_and_escape_name): New function.
14867         (get_copy, process_input_stack): Use this for \n.
14869 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
14871         * troff/div.c (top_level_diversion::begin_page): Ignore the
14872         current value of page_number if !first_page_begun.
14874         * groff.c (main): Fix declaration of buf.
14876         * troff/input.c (do_name_test): New function.
14877         (token::next): Implement \A.
14878         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
14879         (token::description, token::add_to_node_list, token::process):
14880         Handle TOKEN_ESCAPE.
14881         * troff/token.h: New token TOKEN_ESCAPE.
14883 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
14885         * pic/main.c (do_picture): Allow space before and after filename
14886         following `<'.  Check that the filename is not empty.
14888 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
14890         * Version 1.01 released. 
14892         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
14894         * dvi/tmac.dvi: ftr HR to H.
14896         * macros/tmac.e: Round up computation of $r.
14898         * xditview/tmac.X:  Don't give up completely in compatibility mode.
14899         Use \n(.s instead of \n[.s].
14901         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
14902         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
14903         Add u to factors inside \s[...]. Rename frac to dvi-frac.
14904         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
14905         short names in the char definitions.
14907         * ps/tmac.ps: Don't give up completely in compatibility mode.
14908         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
14909         quote in front of \n(.s. Add u to factors inside \s[...].
14911 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
14913         * tty/tmac.tty: Call the nroff request.
14915         * macros/tmac.e ((x, )x):  Better definitions that work properly
14916         in a diversion.
14917         (@0, @1): Helper macros for (x.
14919         * macros/tmac.e ($s, hl): Use \l rather than \D.
14921         * tty/tmac.tty: Make it work better in compatibility mode.
14922         (pchar): Rename to tty-char.
14924         * macros/tmac.e (@E): New macro.
14925         (r, i, b, rb, bi): Use @E.
14927         * macros/tmac.e (@F): Don't use (;...) syntax.
14929         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
14930         it was modified for groff.
14932         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
14934         * macros/tmac.e (<., .>): Removed.
14935         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
14937         * macros/tmac.e: Remove check that groff is being used.
14939         * macros/tmac.e (@C): Change families only if using groff; turn
14940         compatibility mode off while changing familes. Save compatibility
14941         mode before changing families and restore it afterwards.
14943         * macros/tmac.e (@h): Remove test for offset + line length.
14945         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
14946         (lo, th, ac): Define to call @S instead of using als.
14948         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
14949         the ratio of the vertical spacing to the point size in units
14950         expressed as a percentage.  Use these instead of $10r and $10R,
14951         Delete $10r and $10R.
14953         * lib/font.c (font::load): In default computation of space_width,
14954         divide by sizescale.  Use scale_round.
14956         * macros/tmac.an (TP): Don't call `nf'.
14957         (an-do-tag): Don't call `fi'.
14959 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
14961         * troff/input.c (process_input_stack): Handle the case where
14962         spaces at the beginning of an input line are followed by a
14963         newline.
14965 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
14967         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
14968         * groff.sh: Use pic -x with the dvi device.
14970         * dvi/devdvi/FontMakefile (H): Don't use -s.
14972         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
14973         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
14974         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
14975         in FONTS.
14977 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
14979         * ps/psfig.diff: New file.
14980         * ps/tmac.psfig: New file.
14982 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
14984         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
14985         (]-): Don't call ref*do-tl.
14987         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
14989         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
14990         (fn@do-FS): Rename to fn*do-FS.
14992         * troff/input.c (transparent_translate): New function.
14993         (process_input_stack): Apply transparent_translate before calling
14994         diversion::transparent_output(unsigned char).
14996 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
14998         * troff/input.c (do_define_macro): Define the macro before calling
14999         skip_line.
15001         * xditview/Makefile: Add DEVICES variable.  Change install target
15002         to use this.
15004 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
15006         * groff.c (run_commands): Handle the possibility that there are
15007         child processes other than those forked by us.
15009 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
15011         * lib/string.c (string::append): New function.
15012         * lib/stringclass.h: Declare it.
15014 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
15016         * eqn/main.c (main): New option -N which sets
15017         no_newline_in_delim_flag. 
15018         (do_file): If no_newline_in_delim_flag is set don't allow newlines
15019         in delimiters.
15020         * groff.c (main): Pass -N on to eqn.
15021         (help, synopsis): Mention -N.
15022         * groff.sh: Implement -N.
15024 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
15026         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15027         (]-): Call ref*do-tl if ref*need-tl is non-zero.
15028         (XP): Allow as initializer.
15030 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
15032         * troff/env.c (environment::wrap_up_field): If field_spaces are
15033         non-zero and we have a current_tab, subtract padding from
15034         tab_distance.  If this makes tab_distance <= 0, use the next tab
15035         stop instead.  If there isn't any next tab or it's a left tab,
15036         wrap up the current tab.
15037         (environment::start_field): Initialize tab_precedes_field.
15038         (environment::wrap_up_tab): If there's a current field, update
15039         pre_field_width, field_distance and tab_precedes_field.
15040         * troff/env.h (environment::tab_precedes_field): New member.
15042 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
15044         * ps/ps.c (ps_printer::do_file): New function.
15045         (ps_printer::special): Bind to `file' special.
15046         (ps_printer::do_exec): Set ndefined_styles to 0.
15048 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
15050         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15051         Avoid stripping first character from the start of unrecognized
15052         escapes.  Use lex_error instead of error to report errors.
15053         * eqn/lex.c (get_token): Rework handling of escapes.
15054         (lex_error): Move declaration into...
15055         * eqn/eqn.h.
15057         * xditview/xditview.c (main): Make -page option work.
15059         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15061 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
15063         * macros/tmac.s (B2): Correct size of box.
15065 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
15067         * macros/tmac.s (B2): Postpone drawing the box until in the
15068         top-level diversion.
15070         * tty/tmac.tty: Add font translations for C, CR, CW.
15072         * groff.c (synopsis, help): Document -i.
15073         * groff.sh: Implement -i.
15075         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15076         Simplify the construction of SN.
15078         * troff/number.c (parse_term): Give `|' a higher precedence.
15079         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15080         accordingly.
15082         * macros/tmac.s (B2): Use par@finish instead of par@reset.
15084 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
15086         * lib/string.c (string::move): New function.
15087         * lib/stringclass.h: Declare it.
15089 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
15091         * troff/env.c (distribute_space): Add optional argument
15092         `force_forward'.
15093         (environment::wrap_up_field): Call distribute_space with
15094         `force_forward' argument of 1.
15096 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
15098         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15099         Inline it.  Move reallocation into...
15100         (string::grow1): New function.
15101         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15102         dependencies to include library header files.
15103         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15105 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
15107         * macros/tmac.s (@NH): Use the same number registers than -ms does
15108         for the heading level counters.  Use the same string that -ms does
15109         for the number for this heading.
15111 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
15113         * lib/new.c (operator new): Cast result of malloc to char *.
15115         * troff/input.c (spring_trap, lookup_request): Add assert that nm
15116         is not null.
15118 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
15120         * groff.c (main): Support -i.
15122 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
15124         * pic/pic.h: Include <osfcn.h>.
15126         * ps/ps.c: Add declaration of mktemp.
15128         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15129         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15130         argument as union wait *.
15131         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15132         argument to union wait *.
15134 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
15136         * tty/tmac.tty: Add definition of \(co.
15138         * pic/object.c (make_arc): Only increase radius when radius
15139         strictly less than d.
15140         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15141         more than once.
15143         * troff/env.c (environment::environment(symbol),
15144         environment::environment(const environment *)):  Initialize
15145         input_trap_count.
15147 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
15149         * tbl/main.c (main): Add exit(0).
15151         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15153         * pic/main.c (main):
15154         * eqn/main.c (main):
15155         * tbl/main.c (main):
15156         * etc/soelim.c (main):
15157         * driver/printer.c (printer::~printer):
15158         * troff/node.c (real_output_file::~real_output_file,
15159         real_output_file::flush):  Check for errors on stdout.
15161         * most files: Add 1991 to copyright notice.
15163         * macros/tmac.s: Don't test \n(.x and \n(.y.
15165         * troff/input.c (token::next): Rename `escape_char' label to
15166         `handle_escape_char' and `normal_char' label to
15167         `handle_normal_char'.
15169 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
15171         * groff.c (main, synopsis, help): Support -a option.
15172         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
15173         to trflags while parsing options.
15175 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
15177         * troff/number.c (parse_term): With `m', `M' and `n' scale
15178         indicators, convert scale factor to hunits before scaling.
15180 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
15182         * lib/font.c (scale_round): Better test for overflow when n is
15183         negative.
15185 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
15187         * tbl/main.c (process_format): Add second argument of type
15188         options*. Change callers.  Allow opt->tab_char as well as '\t'
15189         between format items.
15191 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
15193         * macros/tmac.an (PD): With no arguments, make sure register PD is
15194         at least \n[.V].
15195         (TH): Call PD with no argument, instead of setting register PD
15196         directly.
15198 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
15200         * Version 1.00 released.
15202 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
15204         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
15206         * dvi/devdvi/DESC: Mount CW instead of CR.
15208         * dvi/tmac.dvi: Add definition of \(tm.
15210         * dvi/devdvi/texsy.map: Add lh, and rh.
15211         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
15212         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
15214         * dvi/devdvi/FontMakefile: Generate H from cmss10.
15215         * dvi/devdvi/Makefile: Install H.
15216         * dvi/devdvi/H: New file.
15218 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
15220         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
15221         be 0.
15223 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
15225         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
15227         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
15229         * macros/tmac.s (@EN): Handle the case where the equation is empty
15230         but the label is not.
15232 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
15234         * troff/groff.h: New warning category WARN_SPACE.
15235         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
15236         WARN_SPACE to warning_table.
15237         (interpolate_macro): Give a warning of type WARN_SPACE if the name
15238         is longer than two characters and is not defined, but the first
15239         two characters do make a defined name.
15241         * PROBLEMS: New file.
15243         * CHANGES: New file.
15244         * README-0.6, README-1.00: Deleted.
15246         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
15247         * xditview/devX75/Makefile: Make devX75-12.
15248         * xditview/devX100/Makefile: Make devX100-12.
15250         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
15251         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
15253 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
15255         * README-0.7: Rename to README-1.00.
15257         * macros/tmac.pic: New file.
15258         * macros/Makefile (install.nobin): Install tmac.pic.
15260 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
15262         * troff/env.c (hyphen_word): Correct the test for whether the
15263         token is a hyphen.  Reset npos to 0.
15265         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
15267 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
15269         * macros/tmac.s (ds*common-end): Call par*reset.
15270         (PE): Likewise.
15271         (par@reset-indent): Deleted.
15273         * macros/tmac.s (@IP): Divert the label.
15275 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
15277         * xditview/draw.c (setGC): Use a line width of .1m rather than
15278         .04m by default; round rather than truncate value.
15280         * tbl/table.c (class empty_entry): New class.
15281         (empty_entry::empty_entry, empty_entry::line_type): New functions.
15282         (table::add_entry): Represent empty entries by objects of type
15283         empty_entry.
15284         (table_entry::line_type): Return -1.
15285         (table::determine_row_type): Ignore entries with line_type 0.
15286         Treat type -1 as non-lines.
15288 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
15290         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
15291         macros/tmac.s: Rename \(-d to \(Sd.
15293 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
15295         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
15296         * xditview/libXdvi/DviChar.c: Likewise.
15297         * dvi/devdvi/texsy.map: Add `<<', `>>'.
15299 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
15301         * troff/div.c (top_level_diversion::begin_page): Call
15302         init_output() if the_output is 0.
15304 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
15306         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
15307         ESCAPE_c.
15308         (get_copy): Turn \E into ESCAPE_E.
15309         (token::process, asciify): Handle ESCAPE_E.
15311         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
15312         (RD): New macro.
15313         (DS): Implement `.DS R'.
15315 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
15317         * macros/tmac.s (FS): New macro.
15319         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
15321         * macros/tmac.s (cov*tl-init): Remove after first execution
15322         instead of aliasing to @nop.  Call top of page macro explicitly
15323         instead of setting trap; call @init first.  Set pg@top as top of
15324         page macro.
15325         (cov*auto-init): Deleted.  Set cov*tl-init instead of
15326         cov*auto-init as top of page trap. 
15327         (TL, LP): Do a break instead of calling cov*tl-init.
15328         (cov*print): With RP format but no TL, alias FS and FE to @FS and
15329         @FE; in this case also give a warning and always start another
15330         page. No need to set pg@top here.
15331         (cov*tl-init): Rename to cov*first-page-init.
15333         * macros/tmac.s (RP): Do `.pn 0'.
15334         (cov*tl-init): With RP format don't do `.pn 0'.
15336         * macros/tmac.s (pg@cs-top): Set no space mode.
15338         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
15339         (cov*ab-init): Alias TL, AU and AI to these.
15341 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
15343         * macros/tmac.s (@EQ): Move the space before the equation into @EN
15344         (@EN): Do nothing unless \n[dl] is > 0.
15346 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
15348         * pic/object.c (ellipse_object::radius): New function.
15350         * VERSION: Change version to 0.7.
15352         * tbl/table.c (block_entry::do_divert): Declare return type as
15353         void.
15354         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
15356 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
15358         * troff/column.c: New file.
15359         * troff/Makefile: Corresponding changes.
15361         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
15362         Friend of vunits.
15364         * troff/div.c (top_level_diversion::space): If the space causes
15365         the first-page transition and springs a trap, truncate the space
15366         to 0.
15368 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
15370         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
15371         the document.
15373         * pic/troff.c (troff_output::line_thickness,
15374         troff_output::set_fill): Do a horizontal motion to compensate for
15375         the width of the \D escape sequence.
15377 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
15379         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
15380         (not X75).
15382         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
15383         to printf.
15385         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
15386         Supply empty definition.
15387         (text_entry::simple_print, simple_text_entry::simple_print):
15388         Delete declarations.
15389         (table::add_entry): Represent empty entries by objects of type
15390         `simple_entry'.
15392 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
15394         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
15396         * tbl/table.c (left_text_entry::add_tab): New function.
15398         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
15399         initialize like LP.
15401 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
15403         * troff/env.c (environment::start_field): Give an error message if
15404         there is no next tab.
15406 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
15408         * troff/env.c (hyphenate): Skip initial elements with zero
15409         hyphenation code.
15411         * macros/tmac.s (par@init): Keep VS in points rather than units.
15413 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
15415         * pic/main.c (main): Implement `-c' option.
15416         * pic/output.h: Declare make_tpic_output().
15417         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
15418         protected.
15419         (tpic_output): New class.
15420         (tpic_output::tpic_output, tpic_output::set_pen_size,
15421         tpic_output::command, make_tpic_output): New functions.
15423 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
15425         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
15426         if they're not already defined.
15427         * tbl/table.c (init_output): Don't test \n(.g.
15429         * troff/input.c (do_if_request): Delete `g' condition. Recognize
15430         `d', `r' and `c' conditions even in compatibility mode.
15432 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
15434         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
15435         box.
15437 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
15439         * troff/env.h (environment::prev_line_interrupted): New member.
15440         (environment::get_prev_line_interrupted): New function.
15441         * troff/env.c (environment::newline): Set prev_line_interrupted.
15442         (environment::environment(const environment *),
15443         environment::environment(symbol)): Initialize
15444         prev_line_interrupted.
15445         * troff/input.c (process_input_stack): Don't give special
15446         treatment to space and newline at the beginning of the line if the
15447         previous line was interrupted.
15449 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
15451         * eqn/eqn.y: Disallow PRIME by itself.
15452         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
15453         PRIME.
15454         (def_table): Remove definition of '.  Define prime to be `.
15456         * eqn/eqn.y: Split off part of rule `script' into a new rule
15457         `nonsup'.
15459 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
15461         * macros/tmac.s ({, }): New string aliases.
15463 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
15465         * README-0.7: New file.
15467 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
15469         * macros/tmac.s: New file.
15470         * man/groff_ms.man: New file.
15471         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
15472         * Makefile.bd: Similarily.
15473         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
15474         definition of TMAC_S.
15475         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
15476         * macros/TODO: New file.
15478 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
15480         * troff/env.c (right_justify): New function.
15481         (init_env_requests): Bind this to request "rj".
15482         (center_lines): Set right_justify_lines to 0. If we get a bad
15483         integer, center 1 line.
15484         (environment::environment(symbol), environment::environment(const
15485         environment *)): Initialize right_justify_lines.
15486         (environment::get_right_justify_lines): New function.
15487         (init_env_requests): Bind this to number_register ".rj".
15489         * troff/env.c (environment::choose_breakpoint): Implement
15490         hyphenation_margin and hyphenation_space.
15491         (environment::get_hyphenation_space,
15492         environment::get_hyphenation_margin): New functions.
15493         (init_env_requests): Bind these to .hys and .hym.
15494         (hyphenation_space_request, hyphenation_margin_request): New
15495         functions
15496         (init_env_requests): Bind these to hys and hym.
15497         (environment::environment(symbol), environment::environment(const
15498         environment *)): Initialize hyphenation_margin and
15499         hyphenation_space.
15500         * troff/env.h: Corresponding changes to class environment.
15502 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
15504         * troff/div.c (blank_line): Always do a break.
15506         * eqn/box.c (do_text): Turn off escapes while appending text to
15507         string.
15509 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
15511         * troff/input.c (while_break_request, while_continue_request): New
15512         functions.
15513         (init_input_requests): Bind these to "break" and "continue".
15514         (while_depth, while_break_flag): New variables.
15515         (while_request): Update while_depth.  Break out of loop if
15516         while_break_flag is set.
15518 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
15520         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
15521         rather than 0.
15523 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
15525         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
15527         * stringify: New file.
15528         * Makefile (groff.o): Use stringify.
15530         * xditview/tmac.X: Remove definition of \(rn.
15531         * xditview/libXdvi/DviChar.c: Remove radicalex from
15532         Adobe_symbol_map.
15534 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
15536         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
15537         (alphabetic_block_entry::alphabetic_block_entry,
15538         alphabetic_block_entry::divert, alphabetic_block_entry::print):
15539         New functions.
15540         (block_entry::divert): Split off body into ...
15541         (block_entry::do_divert): If the block is alphabetic, subtract 2n
15542         from the line length; also update the span width to dl+2n, and the
15543         alphabetic span width to dl.
15545         * driver/input.c (do_file):  While reading argument to D command,
15546         when expanding buffer, multiply szp by sizeof(int) rather than 2
15547         in the argument to memcpy.
15549         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
15550         width of alphabetic columns.
15552 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
15554         * troff/node.c (lookup_family): Supply second argument to lookup.
15556         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
15557         search, return immediately if v is 0.
15559         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
15560         (troff_output::start_picture): Set this reg.
15561         (troff_output::end_picture): Remove this reg
15562         * eqn/box.c (box::extra_space): Don't produce `\x's if
15563         EQN_NO_EXTRA_SPACE_REG is defined.
15565         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
15566         * eqn/text.c (split_text): Map ' to \(fm when it's the first
15567         character.
15569 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
15571         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
15572         requests.
15574         * troff/div.c (top_level_diversion::top_level_diversion):
15575         Initialize page_number to 0.
15577 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
15579         * groff/troff (environment::environment(const environment *)):
15580         Initialize name to e->name, rather than "anonymous".
15582 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
15584         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
15585         requested_page.  Split middle part into ...
15586         (FindPage): New function.
15587         (SetValues): If we don't yet know the last page, and the requested
15588         page is greater than the current page, call FindPage.
15589         Update the font_map_string before doing this.
15591         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
15592         Translate \(lh and \(rh into left and right double arrows.
15594         * troff/node.c (class hyphen_inhibitor_node): New class.
15595         (hyphen_inhibitor_node::hyphen_inhibitor_node,
15596         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
15597         hyphen_inhibitor_node::type,
15598         hyphen_inhibitor_node::get_hyphenation_type): New functions.
15599         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
15600         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
15601         word.
15603 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
15605         * troff/node.h (dummy_node::get_hyphenation_type,
15606         transparent_dummy_node::get_hyphenation_type):  Declare them.
15607         * troff/node.c: (dummy_node::get_hyphenation_type,
15608         transparent_dummy_node::get_hyphenation_type): New functions.
15610 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
15612         * xditview/libXdvi/draw.c: If M_PI not defined after including
15613         math.h, then define it.
15615         * xditview/Makefile: Add definition of AR. Pass it to the submake
15616         in libXdvi.
15617         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
15619 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
15621         * troff/dictionary.h (object_dictionary::alias): Declare return
15622         value as int.
15623         * troff/dictionary.c (object_dictionary::alias): Return non-zero
15624         if the old name was defined.
15625         * troff/input.c (alias_macro): Give a warning if the old name was
15626         not defined.
15627         * troff/reg.c (alias_reg): Likewise.
15629 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
15631         * troff/input.c (token::next): Delete implementation of \R.
15633         * macros/Makefile: Strip comments from tmac.e while installing it.
15635         * troff/input.c: New variable `nroff_mode'.
15636         (troff_request, nroff_request): New functions.
15637         (init_input_requests): Bind `troff' and `nroff' to troff_request
15638         and nroff_request.
15639         (do_if_request): Compute results of t and n conditions from
15640         nroff_mode.
15642         * text/text.c (split_text): Fix typo in >=.
15644         * eqn/lex.c: Add definition of `==' to def_table.
15646 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
15648         * pic/tex.c (tex_output::start_picture): Change the definitions of
15649         \graph and \graphtemp so that they work properly with Plain TeX.
15651         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
15652         argument to `ar' is not less than the first.
15654         * pic/pic.y: Allow a comma between elements of the variable list
15655         in the argument to `reset'.
15657         * pic/object.c (arc_object::arc_object): Fix computation of
15658         radius.
15660         * eqn/main.c (main): Add exit(0).
15662 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
15664         * troff/div.c (begin_page): Test no_space_mode after doing the
15665         break, but still push the page ejector cookie before doing the
15666         break.  Also set the next page number after doing the break.
15667         
15668         * xditview/xditview.c (NewFile): Don't set the title and icon name
15669         if this is the first file and its name is `-'.
15670         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
15671         the X75 and X100 devices.
15672         (main): If a device has the XT_OPTION flag set and there's exactly
15673         one file argument, pass the driver -xrm and -title options to set
15674         the icon name and window title to the name of the file.
15676         * troff/env.c (environment_switch): If there was an argument but
15677         it wasn't a valid number or name, then pop an environment but
15678         don't give an error message on underflow.
15680         * troff/number.c (start_number): Correct spelling in error message.
15682         * troff/input.c (token::delimiter): Don't print an error message
15683         if err is false.
15685         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
15686         ParseDrawFunction if dw->display_enable is true.
15688 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
15690         * pic/pic.y: Parse text positioning like normal attributes, so as
15691         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
15692         positioning attribute.
15694 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
15696         * tbl/main.c (process_data): When in state START while reading a
15697         text block, don't change to state MIDDLE if c is a newline.
15699 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
15701         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
15702         so as to avoid shadowing parameter.
15704 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
15706         * tbl/table.c (trim_space): Deleted.
15707         (table::add_entry): Don't call trim_space.
15709 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
15711         * VERSION: Change version to 0.6.
15713         * troff/number.c (parse_expr): Make == work.
15715 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
15717         * man/grog.man: New file.
15718         * man/Makefile: Add grog.n to MAN1PAGES.
15719         * etc/grog.sh: New file.
15720         * etc/Makefile: Install grog.sh as grog.
15722 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
15724         * troff/input.c (token::next): Implement \E.
15726 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
15728         * xditview/tmac.X: Change font translations to match tmac.ps.
15730         * troff/input.c (non_empty_name_warning): Don't give a warning if
15731         `\{' terminates the name.
15733 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
15735         * ps/devps/symbol.diff: New file.
15736         * ps/devps/FontMakefile: Mention symbol.diff.
15738 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
15740         * troff/node.c (font_position): Use get_long_name to read the
15741         external_name.
15743         * troff/env.c (environment_switch): If we get a number that's < 0
15744         or >= NENVIRONMENTS, treat it like a name.
15745         Change NENVIRONMENTS to 10.
15747         * troff/groff.h: Remove definition of FONTS_MAX.
15748         * troff/node.h (class font_family): Make map a pointer instead of
15749         an array. Add a map_size member. Make it a class. Make nm const
15750         and public. Make invalidate_fontno a friend.
15751         * troff/node.c: Define font_table_size. Make font_info a pointer
15752         rather than an array.
15753         (class troff_output_file): Allocate font_position dynamically. Add
15754         nfont_positions member.
15755         (troff_output_file::set_font): Grow font_position if necessary.
15756         (troff_output_file::~troff_output_file): Delete font_position.
15757         (troff_output_file::troff_output_file): Allocate font_position.
15758         (grow_font_table): New function.
15759         (troff_output_file::really_begin_page,
15760         troff_output_file:really_copy_page): Use nfont_positions rather
15761         than FONTS_MAX.
15762         (mount_font_no_translate, mount_style): Call grow_font_table if
15763         necessary.
15764         (font_family::font_family): Allocate map.
15765         (font_family::make_definite): Grow map if necessary. Use
15766         font_table_size instead of FONTS_MAX.
15767         (font_family::~font_family): New function.
15768         (invalidate_fontno): Use font_family::map_size.
15769         (get_fontno, env_space_width, env_half_narrow_space_width,
15770         env_narrow_space_width, symbol_fotno, is_good_fontno,
15771         get_bold_fontno, make_glyph_node): Use font_table_size rather than
15772         FONTS_MAX.
15773         (next_available_font_position): Never return 0.
15775 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
15777         * ps/tmac.ps: Add font translations for compatibility with dpost.
15779 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
15781         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
15782         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
15783         Move definitions baseline_sep, shift_down, column_sep,
15784         matrix_side_sep into...
15785         * eqn/box.c: Add them to param_table.
15786         * eqn/pbox.h: Add declarations to pbox.h.
15788         * troff/input.c (set_string): Cast value to unsigned char *.
15790         * troff/token.h (process_input_stack): Declare it static before
15791         declaring it a friend.
15793 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
15795         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
15796         and bottom.
15797         * dvi/devdvi/EX: Regenerate.
15799         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
15800         transparent.
15802 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
15804         * eqn/lex.c: In defaults_table, make definition of `dot' call
15805         `dot_def'.  Don't explicitly make it roman.  Similarily for other
15806         accents.
15808         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
15809         argument.
15810         (for_input::get, for_input::peek): Use this.
15811         (do_for): Add by_is_multiplicative argument.
15812         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
15813         Change semantic value of optional_by to be a double plus a flag
15814         saying whethet the by clause is multiplicative.
15816         * eqn/lex.c (get_delimited_text): Remember location of start of
15817         definition.  Improve error handling when EOF is encountered.
15819         * lib/font.h: Rename handle_x_command to
15820         handle_unknown_font_command.
15821         * lib/font.c (font::load): Call handle_unknown_font_command for
15822         any unknown command in the font description file.  Don't call
15823         handle_x_command. Include the name of the command in the argv.
15824         Improve message for unknown command after kernpairs or charset
15825         command.
15826         * ps/ps.c (ps_font::handle_x_command): Rename to
15827         handle_unknown_font_command.  Remove message about `x download'
15828         command.  Give error message for wrong number of arguments.
15829         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
15830         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
15831         handle_unknown_font_command. Give an error message for wrong
15832         number of arguments.  Rename design_size to designsize.
15833         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
15834         checksum', `designsize' instead of `design_size'.
15836 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
15838         * eqn/*.[chy]: Change underaccent to uaccent.
15840         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
15841         give it the same precedence as ACCENT.
15842         * eqn/other.c (make_underaccent_box): New function.
15843         * eqn/box.h: Declare it.
15844         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
15845         def_table.
15847 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
15849         * pic/pic.y (reset_all): New function. Called in rule for RESET.
15850         (parse_init): Call reset_all.
15851         (define_variable): When defining scale reset only those
15852         pre-defined variables that are scaled.
15853         (defaults_table): Add `scale' as non-scaled value.
15855         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
15856         together with the text; allow any number of positioning words;
15857         allow center as a positioning word.
15859         * pic/object.c (output::compute_scale): Get picture maximum height
15860         and width from variables called maxpswid and maxpsht.
15861         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
15863 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
15865         * pic/object.c (object_spec::make_text): Multiply textht by number
15866         of text items.
15868         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
15869         occur.
15870         (do_sprintf): New function.
15871         (pic.gperf): Add sprintf token.
15872         (text, sprintf): New rules.
15874         * pic/pic.y: `rand()' with no arguments returns a random number
15875         in the range [0,1).
15877         * pic/pic.y: Allow a bare expression to be an attribute: change
15878         precedences to support this.  Change optional_ordinal rule to
15879         optional_ordinal_last to avoid reduce/reduce conflict.
15880         * pic/object.c (object_spec::object_spec): Initialize direction.
15882         * pic/pic.y: Implement ^ operator meaning exponentiation.
15884         * troff/node.h: Add default argument to mount_font.
15885         * troff/node.c (font_position): Read an optional third argument
15886         giving the external_name.
15887         (mount_font): Add optional argument giving the external_name.
15888         (mount_font_not_translate): Have additional argument giving
15889         external name.  Use this name to load the font.  Pass both names
15890         to font_info::font_info.
15891         (font_info::font_info): Have additional argument giving
15892         external_name.
15893         (class tfont): New member external_name.
15894         (font_info::get_tfont): Use external name to construct tfont_spec.
15896 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
15898         * eqn/lex.c (init_table): Add argument giving device.  Define
15899         name of device to be "1".
15900         (do_ifdef): Counts as true if the argument has been defined with
15901         `define'.
15902         * eqn/main.c (main): Call init_table with device argument. Make
15903         device local to main.
15904         * eqn/eqn.h: Change declaration of init_table. Remove declaration
15905         of device.
15907         * pic/lex.c (get_delimited): Allow text to be delimited by
15908         matching {}s.  Don't recognize ending delimiter within a string.
15910         * troff/input.c (get_delim_name): New function.
15911         (token::next): Implement \C.
15913         * lib/font.c (font::load): Grok ---.  Add an alias for each
15914         character based on its code.
15915         (font::get_code_width): Deleted.
15916         * lib/font.h (class font): Declare font::number_to_index().
15917         Remove declaration of font::get_code_width.
15918         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
15919         to indices of named characters.
15920         (font::number_to_index): New function.
15921         * troff/input.c (font::number_to_index): New function.
15922         (get_charinfo_by_number, charinfo::get_number,
15923         charinfo::set_number): New functions.
15924         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
15925         (token::process, token::description, token::get_char,
15926         token::add_to_node_list, token::operator==): Handle
15927         TOKEN_NUMBERED_CHAR.
15928         * troff/charinfo.h: Declare get_charinfo_by_number,
15929         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
15930         charinfo class.
15931         (charinfo::numbered): New function.
15932         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
15933         * troff/env.h (class environment): Remove declaration of ...
15934         * troff/env.c (environment::make_numbered_char_node): Deleted.
15935         * troff/node.c (make_numbered_node): Deleted.
15936         (class numbered_glyph_node): Remove.
15937         (troff_output_file::put_char_width, troff_output_file::put_char):
15938         Handle numbered chars.
15939         (troff_output_file::numbered_char): Removed.
15940         (tfont::get_code_width): Removed.
15941         (make_glyph_node): Don't search special fonts for numbered
15942         characters.
15943         * troff/node.h: Remove declaration of make_numbered_node.
15944         * driver/input.c (do_file): Handle N command.
15945         * driver/printer.h: Add declaration of ...
15946         * driver/printer.c (printer::set_numbered_char): New function.
15947         * dvi/tfmtodit.c (main): Generate unnamed entries.
15948         * ps/devps/afmtodit: Likewise.
15949         * xditview/xtotroff.c (MapFont): Likewise.
15950         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
15952         * tbl/main.c (process_format): If multiple widths are specified
15953         for a column but all the widths are the same, don't give an error
15954         message.
15956         * tbl/table.c (table::do_row): If the current row is all lines and
15957         the stuff doesn't contains a line, mark the top of the row after
15958         printing stuff before the row.  If the current row is not all
15959         lines and the stuff doesn't contain a line, don't unnecessarily
15960         mark the top of the row before printing the stuff.
15961         
15962 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
15964         * troff/groff.h: Remove MAX_PATH.
15965         * troff/input.c (open_file): Dynamically allocate space for the
15966         path.
15967         (open_mac_file, process_macro_file): Corresponding changes.
15969 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
15971         * troff/node.h (class output_file): Make copy_file pure.  Add
15972         vspace method ifdef COLUMN. Add is_printing method.
15973         * troff/node.c: Add class printing_reg. Add class
15974         real_output_file. Derive other output_file classes from
15975         real_output_file; in these classes rename begin_page to
15976         really_begin_page, print_line to really_print_line, copy_file to
15977         really_copy_file, transparent_char to really_transparent_char.
15978         Move output_file::flush to real_output_file. Add printing member
15979         to class output_file.
15980         * troff/div.h: Remove printing member from top_level_diversion.
15981         Add vspace member function to class diversion ifdef COLUMN. Add
15982         some declarations ifdef COLUMN.
15983         * troff/div.c (top_level_diversion::copy_file,
15984         top_level_diversion::transparent_output,
15985         top_level_diversion::output): Don't test printing member before
15986         output.
15987         * troff/input.c: Handle initial variable_space_request ifdef
15988         COLUMN.
15989         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
15990         but comment it out.
15992 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
15994         * troff/div.c (diversion::need): Make any space forced.  If we
15995         sprung a trap, set truncated_space to minus the distance to the
15996         trap and set needed_space to the amount that was needed.
15997         (top_level_diversion::space): A forced space turns no_space_mode
15998         off.
15999         (class constant_vunits_reg): New class.
16000         (init_div_requests): Implement number registers .trunc and .ne
16001         using constant_vunits_reg.
16002         (class truncated_space_reg): Deleted.   
16004         * troff/div.h: Don't have a no_space_mode member in diversion.
16005         Instead have it in top_level_diversion.
16006         * troff/div.c (diversion::diversion): Don't initialize
16007         no_space_mode.
16008         (top_level_diversion::top_level_diversion): Initialize
16009         no_space_mode.
16010         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16011         (macro_diversion::output): Don't clear no_space_mode.
16013         * troff/input.c (diverted_space_node::reread): Don't call
16014         environment::do_break.  In fill mode, act like a blank line.
16015         (diverted_copy_file_node::reread): Don't call
16016         environment::do_break.
16018         * troff/div.c (blank_line): New function.
16019         * troff/div.h: Declare it.
16020         * troff/input.c (process_input_stack): Call it.
16022         * troff/div.c (truncated_space_reg::get_string): New function.
16023         (init_div_requests): Bind to .trunc.
16024         (space_request, top_level_diversion::space,
16025         top_level_diversion::output, macro_diversion::space,
16026         macro_diversion::output): Update truncated_space.
16027         (macro_diversion::output): Redo calculations when trap sprung.
16028         (macro_diversion::output, macro_diversion::space): No need for
16029         trap_flag.
16031         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16032         after truncating post line spacing.
16034 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
16036         * ps/devps/prologue (MF, SF): Make them work even if setfont is
16037         defined as a procedure rather than as an operator.
16039 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
16041         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16043 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
16045         * troff/div.c (top_level_diversion::output): Merge
16046         output_file::print_line and output_file::end_of_line member
16047         functions.
16048         * troff/div.h (class output_file):
16049         * troff/node.c (troff_output_file::print_line,
16050         troff_output_file::end_of_line, output_file::end_of_line,
16051         ascii_output_file::print_line, suppress_output_file::print_line):
16052         Corresponding changes.  
16054 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
16056         * troff/input.c (token::next): Don't give a warning for `\.'.
16058         * troff/env.c (environment::get_center_lines): New function.
16059         (init_env_requests): Bind number register .ce to it.
16060         * troff/env.h: Declare it.
16061         * tbl/table.c (table::init_output): Define reset macro to restore
16062         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
16063         Then do .ce 0.
16064         (table::print): If center option not given, then imply center
16065         option if SAVED_CENTER_REG > 0.
16067 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
16069         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16070         Troff.ps from DOWNLOAD.
16071         
16072         * troff/Makefile: Change comment in DEFINES to avoid confusing
16073         System V make.
16075         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16076         code.  Don't try to catch errors with stopped.
16077         (check_line_lengths): New function.
16078         * ps/devps/prologue (EXEC): Deleted.
16079         (EBEGIN, EEND): New procedures.
16081 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
16083         * troff/input.c: Include request.h before node.h.
16084         * troff/node.c: Likewise.
16085         * troff/env.c: Likewise.
16086         * troff/div.c: Likewise.
16087         * troff/node.h (class special_node): Store argument as a macro
16088         rather than a char *.
16089         * troff/node.c (special_node::special_node, special_node::copy):
16090         Grok this.
16091         (special_node::~special_node): Deleted.
16092         (special_node::tprint): Deleted.
16093         (special_node::tprint_start, special_node::tprint_end,
16094         special_node::tprint_char): New functions.
16095         (troff_output_file::special): Deleted.
16096         (troff_output_file::start_special, troff_output_file::end_special,
16097         troff_output_file::special_char): New functions.
16098         * troff/input.c (special_node::tprint): New function.
16099         (do_special): Use macro not char *.
16100         (do_transparent_macro): Deleted.
16101         (token::next): Don't call do_transparent_macro.
16103         * troff/input.c (token::next): Add 'Y' case.
16104         (do_transparent_macro): New function.
16105         * troff/node.c (troff_output_file::special): Handle newlines with
16106         argument using new continuation convention.
16107         * driver/input.c (get_string): Cope with continuation convention.
16108         (do_file): Don't call skip_line after calling get_string(1).
16109         * ps/ps.c (ps_printer::special, ps_printer::do_import,
16110         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16111         arg.
16112         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16113         with +.
16115 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
16117         * troff/input.c (asciify): By default, illegal input characters
16118         should return empty string.
16120         * troff/input.c (copy_file): Handle first page transition like title.
16121         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16123         * troff/input.c (token::next): Improve error message for EOF after
16124         escape character.
16125         (input_char_description): New function.
16126         (get_char_for_escape_name): Use input_char_description.
16127         (token::next): Warn about unrecognized escape sequences.
16128         (warning_table): Add WARN_ESCAPE.
16129         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16130         accordingly.
16132         * troff/token.h: Remove declaration of process_input_stack.
16134         * troff/input.c: Remove declaration of init_hyphen_requests.
16135         * troff/request.h: Correct spelling in declaration of same.
16137         * troff/input.c (token::next): Check whether escape_char is 0.
16139 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
16141         * groff.c (main, usage, help): Implement -P and -L options.
16142         * groff.sh: Likewise.
16144         * troff/input.c (token::next): Use some gotos to avoid code
16145         duplication.
16147         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16148         Avoid calling symbol::symbol if name empty.
16150 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
16152         * troff/input.c (init_input_requests): Make \n(.x return the major
16153         version number and \n(.y return the minor version number.
16154         * troff/Makefile: Construct file majorminor.c defining
16155         major_version and minor_version automatically from ../VERSION.
16157         * troff/node.c (class glyph_node): Make operator new and operator
16158         delete public.
16159         (class ligature_node): Similarily.
16161         * troff/input.c (operator==(const macro &, const macro &)): New
16162         function.
16163         (non_interpreted_node::same): Use this.
16164         (string_iterator::string_iterator): Make macro& argument const.
16166         * troff/input.c (input_iterator::get): New function. Don't make
16167         asciify_macro or class non_interpreted_node friends of class
16168         input_iterator.
16169         (non_interpreted_node::interpret): Use input_iterator::get.
16170         (asciify_macro): Likewise.
16172         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
16173         ~non_interpreted_node): Deleted.
16174         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
16175         Deleted.
16177         * troff/symbol.h: Make all symbol member functions const.
16179         * lib/strtol.c: New file.
16180         * lib/Makefile: Add strtol.c.
16181         * Makefile: Define STRTOL as strtol.o to include strtol in
16182         libgroff.a.
16184 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
16186         * pic/troff.c (troff_output::simple_circle): Divide by scale.
16188 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
16190         * troff/input.c (do_special): Use input_level.
16192         * troff/token.h (TOKEN_BACKSPACE): New token.
16193         (token::backspace): New function.
16194         * troff/input.c (token::description, token::next, token::process):
16195         Grok TOKEN_BACKSPACE.
16196         (do_special): Turn TOKEN_BACKSPACE back into \b.
16198         * troff/token.h (token::leader): New function.
16199         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
16201         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
16203         * troff/input.c (do_special): Use token::description in error
16204         message.
16206 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
16208         * troff/input.c (decode_args): Combine quoted and
16209         quote_input_level variables. Make it a for (;;) loop.
16211         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
16213         * troff/input.c (read_long_escape_name): The test for whether to
16214         expand buffer was off by 1.
16215         (read_string): Similarily.
16217 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
16219         * troff/input.c: Use `const int' rather than `static const int'.
16221         * troff/div.h (diversion::copy_file): Declare as pure virtual.
16222         (macro_diversion::copy_file): New function.
16223         * troff/node.h: New class diverted_copy_file_node.
16224         * troff/node.c: Implement it.
16225         * troff/input.c (copy_file): Use diversion::copy_file. Handle
16226         first page transition by pushing a diverted_copy_file_node.
16227         * troff/input.c (token::next, process_input_stack): Don't handle
16228         COPY_FILE_REQUEST.
16230 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
16232         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
16233         whether space widths need adjusting.
16235         * troff/charinfo.h: Generalize translated_to_space to
16236         special_translation so as to allow translation to \&.
16237         * troff/input.c (translate): Allow translation to \&.
16238         (charinfo::*): Corresponding changes.
16239         * troff/node.c (make_node, node::add_char): Corresponding changes.
16240         * troff/node.h (dummy_node::dummy_node): Allow optional first
16241         argument.
16243         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
16244         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
16245         TOKEN_REQUEST.
16246         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
16247         TOKEN_REQUEST with an argument of TITLE_REQUEST.
16248         (token::process): Grok that.
16249         * troff/input.c (copy_file): Handle first page transition like
16250         title by pushing a COPY_FILE_REQUEST cookie.
16251         (token::next, process_input_stack): Grok that.
16252         * troff/node.h (output_file::copy_file): Add x and y arguments.
16253         Make it non-pure.
16254         * troff/div.c (top_level_diversion::copy_file): Supply them.
16255         * troff/node.c (troff_output_file::copy_file): Add x and y
16256         arguments; moveto specified position.  Invalidate font_position
16257         array after copying file.
16258         (output_file::copy_file): New function.
16259         (suppressed_output_file::copy_file, ascii_output::copy_file):
16260         Removed.
16261         * troff/input.c (transparent_file): New function.
16262         (init_input_requests): Bind to "trf".
16263         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
16264         (process_input_stack): Likewise.
16266         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
16268         * troff/node.c (init_node_requests): New number registers .kern
16269         pointing to global_kern_mode, and .lg pointing to
16270         global_ligature_mode.
16272         * troff/node.c (ligature): Don't change it if we get a bad
16273         integer.
16275         * troff/input.c (do_define_string): Don't strip tabs.
16277         * troff/input.c (asciify_macro): Make the string_iterator auto.
16279         * troff/node.c (init_font_requests): Rename to...
16280         (init_node_requests):
16281         * troff/node.h: Change declaration.
16282         * troff/input.c (main): Change call.
16284         * troff/input.c (node::reread, diverted_space_node::reread): New
16285         methods.
16286         (process_input_stack): Call reread rather than
16287         get_diverted_space_node.
16288         * troff/node.c (node::get_diverted_space_node,
16289         diverted_space_node::get_diverted_space_node): Removed.
16290         * troff/node.h: Declare reread methods instead of
16291         get_diverted_space_node methods. Make `n' member private.
16292         * troff/input.c: (token::diverted_space): Removed.
16293         * troff/token.h: Removed declaration.
16294         
16296 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
16298         * eqn/script.c (script_box::compute_metrics): Don't let
16299         SUP_RAISE_FORMAT become negative.
16301         * tbl/table.c (table::do_row): Entries that don't end in the
16302         this row shouldn't make the row non-blank.
16303         
16304         * tbl/table.c (table::make_columns_equal): Only set the width of
16305         columns which are marked as equal.
16306         
16307         * tbl/main.c (process_data): Before issuing excess data error,
16308         if last character was a newline unget it; then get it again after
16309         the error.  Also include the contents of the entry in the message.
16311         * groff.c: New file.
16312         * Makefile: Build groff from groff.c.  Make it possible to use
16313         either groff.sh or groff.c as groff.
16314         * Makefile.bd: Similarily.
16316 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
16318         * groff.sh: Don't delay expansion of $@ in assignment to files.
16319         Remove occurrences of \".
16321 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
16323         * all Makefiles: Simplify and rearrange.
16325         * Makefile: Handle fmod like malloc.
16326         * lib/Makefile: Similarily.
16327         * lib/fmod.c: Remove #ifdef NEED_FMOD.
16329         * Makefile: Rename OPTIMISE to OPTIMIZE.
16331         * groff.sh: Remove assignment to PATH.
16332         * Makefile: Remove SHPATH variable.
16333         * Makefile.bd: Similarily.
16335         * groff.sh: Add -V option to print the pipeline instead of
16336         executing it.
16338 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
16340         * lib/font.c: Split off file searching into ...
16341         * lib/fontfile.c: New file.
16343         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
16345 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
16347         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
16348         Also change misleading comment.
16349         (table::do_vspan): Change similarily misleading comment.
16350         * tbl/main.c (process_data): A format row with an explicit `s'
16351         uses up a data line, even if all the other columns are `_' or `='.
16353         * troff/input.c (token::description): Fix description of
16354         TOKEN_DUMMY and TOKEN_EMPTY.
16356 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
16358         * groff.sh: Fix description of -Z in help message.
16360 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
16362         * pic/object.c (object_spec::make_object): Allow negative and zero
16363         line thicknesses.
16364         * pic/pic.y: Give linethick default value of -1.0.
16365         * pic/troff.c (troff_output::troff_output): Initialize
16366         last_line_thickness to BAD_THICKNESS.
16367         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
16368         (troff_output::line_thickness): Canonicalize negative thicknesses
16369         to RELATIVE_THICKNESS.
16370         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
16371         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
16372         to -1.0.
16373         (tex_output::start_picture): Set pen_size to -2.0.
16375         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
16376         0, then use 0 linewidth.
16377         (ps_printer::ps_printer): Initialize line_thickness to -1.
16379         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
16381         * ps/devps/symbolchars: Remove `or'.
16382         * ps/tmac.ps: Implement \(or with .char.
16384         * ps/devps/symbolchars: Move most characters into textmap.
16385         * ps/devps/textmap: Add names for troff bracket characters. Remove
16386         ul, ru, br, bv.
16388         * ps/devps/TSymbol.ps: Removed.
16389         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
16390         * ps/tmac.ps: Do with .char what TSymbol did.
16391         * ps/devps/download: Remove TSymbol.
16393         * ps/devps/T: Removed.
16394         * ps/devps/Troff.ps: Removed.
16395         * ps/devps/Troff.afm: Removed.
16396         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
16397         * ps/devps/download: Remove Troff.
16398         * ps/devps/FontMakefile: Remove T target.
16399         * ps/devps/DESC-A4: Remove T from font list.
16400         * ps/devps/DESC-letter: Likewise.
16402         * troff/input.c (macro_to_node): Rename to ...
16403         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
16404         character's definition while processing it.
16405         * troff/node.c (node::add_char, make_node): Change calls to
16406         macro_to_node accordingly.
16408         * troff/input.c (token::next): Translate \_ to \(ul.
16410         * tty/devascii/R.proto: Add `|'.
16411         * tty/devlatin1/R.proto: Likewise.
16413 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
16415         * man: Put the version number in all the man pages.
16417 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
16419         * Makefile.bd: New file.
16420         * README.bd: New file.
16422         * VERSION: New file.
16423         * lib/version.c: Removed.
16424         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
16425         in clean target.
16427         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
16428         environment variable.
16430         * all Makefiles: Split install target into install.bin for
16431         binaries, and install.nobin for everything else.
16432         * Makefile: Add bindist target.
16434         * man/afmtodit.man: New file.
16435         * man/Makefile: Add afmtodit.n to MAN1PAGES.
16436         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
16437         in BINDIR.
16438         * ps/Makefile: Pass BINDIR to make install in devps.
16440         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
16441         the space character.
16443         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
16445 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
16447         * ps/ps.c: Redo font downloading.
16448         * ps/devps/download: New file.
16449         * ps/devps/Makefile: Add download to DEVICEFILES.
16450         * ps/devps/afmtodit: Remove -d option.
16451         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
16452         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
16453         * ps/devps/zapfdr.ps: Likewise.
16454         * ps/devps/TSymbol.ps: Likewise.
16456 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
16458         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
16460 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
16462         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
16463         then strip the first line if it starts with %.
16464         * Makefile: Add a comment about this.
16466         * man/tfmtodit.man: New file.
16467         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
16468         * dvi/Makefile: Install tfmtodit in BINDIR.
16470         * dvi/tfmtodit.c (usage): Mention -v option.
16472 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
16474         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
16475         * troff/node.c (troff_output_file::transparent_char): Don't call
16476         flush_tbuf.
16478         * eqn: Add check_tabs method to most box classes.
16479         * eqn/box.c (box::top_level): Call check_tabs.
16481         * eqn/script.c (script_box::output): Use \Z.
16482         * eqn/limit.c (limit_box::output): Use \Z.
16484         * eqn/box.c (box::top_level): Use itoa.
16486 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
16488         * dvi/tmac.dvi: Add font translations for CR, C, TT.
16489         * dvi/devdvi/Makefile: Don't make links to CW.
16491         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
16492         HX, HD.
16493         * xditview/tmac.X: Likewise.
16495         * troff/node.c: Add font translation feature.
16496         (get_font_translation): New function.
16497         (symbol_fontno): Translate the font name.
16498         (mount_font_no_translate): Rename to mount_font to this.
16499         (mount_font): New function.
16500         (font_family::make_definite): Call mount_font_no_translate instead
16501         of mount_font.
16502         (mount_style): Translate the font name.
16503         (font_translate): New function.
16504         (init_font_requests): Bind "ftr" to font_translate.
16506         * ps/devps/prologue (SN): New procedure that rounds a position to
16507         the nearest (pixel + (.25,.25)).
16508         (DL): Use SN to round endpoints.
16510         * lib/version.c: Changed version to 0.5.
16512 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
16514         * Makefile: Move definition of PAGE to the very beginning, so that
16515         people are less likely to miss it.
16517 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
16519         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
16521         * troff/env.c (environment::choose_breakpoint): Make `can't find
16522         breakpoint' error a warning of type WARN_BREAK.  Change message to
16523         `can't break line'.
16524         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
16525         code 040000.
16526         * troff/input.c: Add WARN_BREAK to warning_table.  Include
16527         WARN_BREAK in DEFAULT_WARNING_MASK.
16529         * tty/tmac.tty: Add definition of \(+-.
16531         * groff.sh: Remove `--' option to set command.
16533         * dvi/devdvi/texsy.map: Remove duplicate md entry.
16535         * ps/devps/eqnchar: Better definition of cdot using md.
16536         * dvi/devdvi/eqnchar:  Likewise.
16537         * xditview/devX100/eqnchar:  Likewise.
16538         * xditview/devX75/eqnchar: Likewise.
16539         * eqn/lex.c: Add definition of cdot.
16541 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
16543         * troff/input.c (get_optional_char): New function.
16544         * troff/input.c (set_page_character): Use get_optional_char(),
16545         rather than has_arg() and tok.get_char(1).
16546         * troff/env.c (tab_character, leader_character, hyphen_char,
16547         field_characters): Likewise.
16548         (margin_character): Likewise.  Also always delete the
16549         margin_character_node.
16551         * troff/input.c (token::get_char): Use token::description.
16553         * troff/input.c (has_arg): Don't skip over tab and \}.
16554         * troff/number.c (start_number): Give a warning if the number
16555         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
16557 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
16559         * troff/input.c (empty_name_warning, non_empty_name_warning): New
16560         functions.
16561         (get_name, get_long_name): Use these.  Rename `warn' argument to
16562         `required'.
16564         * troff/node.c (get_fontno): Test that the symbol is not null.
16566         * troff/input.c (token::description): New function.
16567         * troff/number.c (parse_term): Use token::description in `numeric
16568         expression expected' message.
16569         * troff/groff.h: Add WARN_MISSING.
16570         * troff/number.c (start_number): New function.
16571         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
16572         get_incr_number): Use start_number().
16573         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
16574         default.
16575         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
16576         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
16577         token::descripion.
16578         * troff/input.c (token::get_char): Use WARN_MISSING.
16579         * troff/input.c (token::delimiter): Use token::description.
16580         * troff/env.c (environment_switch): Back out Aug 3 change.
16581         * troff/input.c (has_arg): Skip over \}s and tabs but give a
16582         warning.
16583         * troff/token.h (token::tab): New function.
16584         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
16585         * troff/reg.c (alter_format): Likewise.
16586         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
16588 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
16590         * troff (most files): Redo warnings. Divide warnings into various
16591         categories; warning() has an additional first argument indicating
16592         the category it falls into.
16593         * troff/input.c (main): -w now takes an argument. New option -W.
16594         (enable_warning, disable_warning): New functions.
16596         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
16597         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
16599 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
16601         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
16602         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
16603         * xditview/devX75/eqnchar: Likewise.
16604         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
16606         * eqn/other.c: When bar or over applies to a single character
16607         don't produce an overline_box or an underline_box. Instead produce
16608         an accent_box or an underaccent_box, with the accent a line
16609         whose width is accent_width.  New classes underaccent_box,
16610         overline_char_box and underline_char_box.
16611         * eqn/box.h: Move overline_box, underline_box, accent_box class
16612         declarations into eqn/other.c. Add declarations of
16613         make_underline_box, make_overline_box, make_accent_box.
16614         * eqn/eqn.y: Call make_overline_box, make_underline_box
16615         make_accent_box instead of constructors.
16616         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
16618         * eqn/other.c: Add accent_box::~accent_box.
16619         * eqn/box.h: Declare it.
16621         * groff.sh: With -Tps, use eqn -D.
16623         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
16624         rather than \l.
16625         (underline_box::output): Similarily.
16626         (accent_box::output): Use \Z.
16628         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
16629         bit smaller.)
16631 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
16633         * troff/div.c (top_level_diversion::transparent_output(unsigned
16634         char)): Use asciify.
16635         * troff/input.c (asciify): Don't make it static.
16636         * troff/token.h (asciify): Declare it.
16637         
16638         * troff/input.c (get_name, get_long_name, token::get_char,
16639         token::delimiter): Add an extra default argument which says
16640         whether a warning should be printed.
16641         * troff: Pass a non-zero argument to one of these rather than
16642         printing a warning directly.
16644 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
16646         * troff: Consistently use symbol::is_null.
16648         * troff/dictionary.h: Move some inline functions into
16649         dictionary.c.
16651         * troff/request.h: Move inline functions into input.c.
16652         (request_or_macro::invoke): Make it pure.
16654         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
16655         * troff/input.c (init_input_requests): Use class constant_int_reg.
16656         (class compatible_reg): Deleted.
16657         * troff/div.c (init_div_requests): Use class constant_int_reg.
16658         (class last_post_line_extra_space_reg): Deleted.
16660         * troff/env.c (tab_character): Don't change the tab character if
16661         we get an invalid argument.
16662         (hyphen_char): Similarily.
16664         * troff/reg.c (alter_format): Check that nm is not null.
16666         * Makefile, groff.sh: Make it possible to customize the commands
16667         used for printing PostScript and dvi files. Also make it possible
16668         to customize the path used by groff.sh.
16670         * eqn/eqn.y: Make `left' right associative.
16672 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
16674         * pic/pic.h: Added definition of M_SQRT2 for those systems that
16675         don't have it.
16677         * pic/pic.h: Removed definition of INT_MAX.
16679         * troff/node.c (italic_corrected_node::vertical_extent): Omit
16680         `return'.
16682         * troff/input.c (token::next):  Handle \R like \n.
16684 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
16686         * ps/tmac.pc (PSPIC): Simplify.
16688         * troff/env.c (tab_stops::to_string):
16689         * pic/pic.y (object_type_name):
16690         * pic/troff.c (simple_output::line):
16691         * pic/tex.c (tex_output::spline):
16692         * pic/object.c (object_spec::make_object):
16693         * tbl/main.c (process_data):  Add cases to switch statements to
16694         avoid cfront warnings. (Some of these are spurious, since the
16695         switch already has a default case.)
16697         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
16698         `ps-'.  Don't test systat; instead check number of arguments to
16699         ps-bb.
16701 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
16703         * macros/tmac.e: Do not decrease the page offset by 0.5i.
16705         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
16706         Unlink the file as soon as we have opened it, so that we don't
16707         have to bother with signal handlers.
16708         (handler): Deleted.
16709         (fatal_error_exit): Deleted.
16710         (main): Don't call signal.
16712         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
16713         can be ignored.
16714         * dvi/devdvi/Makefile: Use the -k option with S and MI.
16716         * pic/pic.y:  If there is a label, or an nth construction before
16717         the first `.' in the argument to `with', ignore it and generate a
16718         warning.
16719         * pic/lex.c (lex_warning): New function.
16721         * tbl/table.c (table::init_output): In section keep and release
16722         macro, use 0 indent when diverting and the correct indent when
16723         rereading.
16725         * troff/input.c (interpolate_number_format): Do not interpolate
16726         anything if the number register is not defined.
16728         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
16730 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
16732         * ps/devps/prologue (PICTURE): Set components of graphics state to
16733         their default values.
16735         * ps/devps/text.enc: Add trademark
16736         * ps/devps/textmap: Add names for club, spade, heart, diamond,
16737         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
16738         * ps/devps/symbolchars: Add names for summation and product.
16740         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
16741         suchthat. Add pp. Add upper-case letters.
16743         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
16744         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
16745         Upsilon.
16747         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
16748         rA (right angle bracket) to ra.  Introduce names for double-headed
16749         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
16750         * ps/devps/textmap: Likewise for ps device.
16751         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
16752         * tty/devascii/R.proto: Rename lA to la and rA to ra.
16753         * tty/devascii/R.proto: Likewise.
16754         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
16755         \(uA, \(dA.
16756         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
16758         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
16760         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
16761         def_table.
16763 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
16765         * troff/div.c (when_request): Use symbol::is_null rather than
16766         has_arg to determine whether we have an argument.
16767         (change_trap): Remove the trap if we get an invalid number. Give
16768         an error if we don't get at least the macro name.
16769         (diversion_trap): Remove trap if we get an invalid name or number.
16771         * troff/env.c (environment_switch): Pop if we get an invalid
16772         symbol or numeric expression.
16774         * troff/input.c (do_define_macro):  If EOF is encoutered while
16775         defining the macro, do tok.next() before returning.
16777         * troff/token.h (has_arg): Move definition from here, to ...
16778         * troff/input.c (has_arg): ... here
16780         * troff/env.c (space_size): Do nothing if we get an invalid argument.
16781         * troff/input.c (shift): Likewise.
16783         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
16784         for `.c'.
16786         * pic/troff.c (troff_output::start_picture):  Comment out calls to
16787         `..'.
16789         * eqn/main.c (do_file): Subtract 1 from current_lineno if
16790         interpret_lf_args succeeds.
16792         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
16793         \\.  This avoids problems with \$N.
16795         * groff.sh: Pass -C to preprocessors.
16797         * lib/lf.c (interpret_lf_args):  Be more flexible.
16799         * tbl/main.c (main): Add -C option.
16800         (table_input::get): Do not recognize TE if followed by character
16801         other than a space or newline unless -C option given.
16802         (process_input_file): Likewise for lf, TS.
16803         (process_data): Likewise for lf in text blocks.
16805         * eqn/main.c (main): Add -C option.
16806         (do_file): Don't recognize EQ, EN or lf if followed by character
16807         other than space or newline unless -C option given.
16808         * eqn/lex.c (file_input::read_line): Similarily.
16809         * eqn/eqn.h: Declare compatible_flag.
16811         * etc/soelim.c (main): Add -C option.
16812         (interpret_lf_args): Use version in libgroff.
16813         (do_file):
16815         * pic/main.c (main): Add -C option, which sets compatible_flag.
16816         (top_input::get), (top_input::peek):  If -C option not given,
16817         do not recognize .PS/.PE/.PF/.lf if followed by a character
16818         other than space or newline.
16819         * pic/lex.c (file_input::read_line): Similarily.
16820         * pic/pic.h: Add declaration of compatible_flag.
16822 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
16824         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
16826         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
16827         derived from node.  New class space_char_hmotion_node.
16828         * troff/input.c (asciify_macro): New function.
16829         * troff/input.c (init_input_requests): New request `asciify' bound
16830         to asciify_macro.
16831         * macros/mm.diff: New file.
16832         * Makefile:  In install.mm target use `patch' to apply
16833         macros/mm.diff.
16835         * troff/input.c (macro::print_size): Just print the size in bytes.
16837         * troff/div.c (return_request): Correct the argument
16838         interpretation.
16840 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
16842         * troff/node.h (class composite_node): Add sz member.
16843         * troff/node.c (composite_node::size): Return sz.
16844         * troff/input.c (macro_to_node):  Use the initial size in the
16845         environment as the size of the composite_node.
16847         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
16848         default.
16850 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
16852         * troff/div.c (change_trap): If we get a bad number expression,
16853         do nothing.
16855 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
16857         * lib/matherr.c (matherr): Define this only if math.h defines
16858         TLOSS.
16860 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
16862         * troff/div.c (macro_diversion::distance_to_next_trap): If there
16863         no diversion trap return vunits(INT_MAX - vresolution).
16865 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
16867         * troff/input.c (do_zero_width): New implementation that doesn't
16868         use a temporary environment. Use instead:
16869         (token::add_to_node_list): New function.
16870         * troff/env.c (environment::get_prev_char_height),
16871         (environment::get_prev_char_height),
16872         (environment::get_prev_char_skew): New functions.
16873         (environment::get_prev_char): New function.
16874         (environment::get_prev_char_width): Change to use get_prev_char.
16875         (init_env_request): Implement new registers .cht, .cdp, .csk.
16876         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
16877         \Z being processed in a separate environment.
16879 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
16881         * tbl/table.c: Removed TABLE_BOTTOM_REG.
16883         * tbl/table.c (table::init_output): In the section release macro,
16884         give a warning message if the section won't fit on one page.
16886         * tbl/table.c (table::do_top): Emit table keep only if table is
16887         boxed.
16888         (table::do_bottom): Likewise for table release.
16889         (table::table), (table::add_vertical_rule):  Remove reference to
16890         keep member.
16891         * tbl/table.h: Remove keep member.
16893         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
16894         SECTION_RELEASE_MACRO, if there's not enough space before the next
16895         trap to output the diversion, call T# ourselves, set
16896         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
16897         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
16898         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
16899         vertical position and return to it before turning traps on again.
16900         
16901 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
16903         * troff/node.c, troff/node.h: In classes derived from node,
16904         replace prev_char_width method by last_char_node method.
16905         * troff/env.c (environment::get_prev_char_width): Use
16906         node::last_char_node rather than node::get_prev_char_width.
16908         * Makefile: Added comment about -fno-inline on 68030-based
16909         Apollos.
16911         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
16912         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
16913         expressions using sizeof to int.
16914         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
16916         * macros/tmac.e (TS):  Don't move @f back past the current
16917         position.
16919 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
16921         * ps/ps.c (main): Buffer stderr.
16922         * dvi/dvi.c (main): Likewise.
16923         * tty/tty.c (main): Likewise.
16925         * ps/ps.c (ps_printer::do_import): Improve error handling.
16927         * troff/input.c (abort_request): Use asciify.
16929         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
16930         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
16931         type of first argument int rather than char.  This works around a
16932         bug on the 68030 based Apollo using g++ 1.37.1.
16934         * tbl/table.h (class table): Add `keep' member.
16935         * tbl/table.c (table::table): Initialize `keep'.
16936         (table::add_vertical_rule): Set `keep' to 1.
16937         (table::do_top): Only emit table keep macro is `keep' is non-zero.
16938         (table::do_bottom): Likewise for table release macro.
16939         (table::do_row): Emit section keep macro even if the row is 0.
16941 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
16943         * macros/tmac.e (@C): Preserve the font family across the change
16944         in environments.
16946 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
16948         * lib/font.c: Initialize font::hor and font::vert to 1.
16949         (font::load_desc): Check the values of font::hor and font::vert.
16951         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
16952         be included in a C compilation.
16953         (iftoa): Use INT_DIGITS. Include lib.h.
16954         (itoa): Likewise.
16955         (as_string): Likewise.
16956         * tbl/table.c: Removed definition of INT_DIGITS.
16957         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
16958         * troff/input.c (input_input_requests): Likewise.
16959         * ps/ps.c (make_encoding_name): Likewise.
16960         (ps_printer::set_style): Likewise.
16961         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
16963         * tty/devascii/R.proto: Map fm onto '.
16964         * tty/devlatin1/R.proto: Likewise.
16966 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
16968         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
16969         argument to \w is at a different input level.
16971         * tbl/table.c (table::init_output): Define a new macro
16972         REPEATED_VPT_MACRO, like vpt but if in a diversion also
16973         transparently outputs itself.
16974         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
16975         vpt.
16976         (table::do_row): Likewise.
16978         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
16979         TRANSPARENT_STRING_NAME.
16981         * tbl/table.c (table::init_output): In the table release macro
16982         print an error message and don't produce any output if after
16983         issuing the need request the table still will not fit.  Also
16984         remove the diversion after bringing it back.
16986         * tbl/table.c (table::init_output): Define a new macro
16987         REPEATED_MARK_MACRO, like mk but if in a diversion also
16988         transparently outputs itself.
16989         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
16990         is necessary because .TH might not call .T#.
16991         (table::do_top): Likewise TOP_REG.
16992         (table::define_bottom_macro): If TOP_REG is no longer valid, use
16993         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
16994         table header might contain just the two top rules.
16996 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
16998         * troff/div.c: Implement new request `ptr' to print all traps.
17000         * troff/env.c (init_env_requests): Implement `.tabs' reg with
17001         init_string_env_reg.
17002         * troff/env.c (class tab_reg): Deleted.
17004 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
17006         * troff/div.c: New number register .pn returns the number of the
17007         next page as set by the pn request.
17009         * macros/tmac.an: Redid headers and footers.  Number each manual
17010         entry starting from 1 unless \nC is > 0, like Sun.  Added an
17011         optional 5th argument to .TH which specifies the manual name and
17012         appears in the center of the header.  Understand the X, P and D
17013         registers like Sun.
17015 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
17017         * troff/env.c (init_env_requests): New number register `.lt' to
17018         return the title length.
17020         * troff/node.h (class transparent_dummy_node): New class.
17021         * troff/node.c (class transparent_dummy_node): Provide member
17022         functions. 
17023         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17024         than a dummy_node.
17026         * troff/input.c (token::next): New escape sequence \).
17027         * troff/input.c (get_copy): Recognize \) in copy mode.
17029         * troff/input.c (input_stack::clear): New function.
17030         * troff/input.c (exit_request): Use input_stack::clear.
17032         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17033         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17035         * troff/env.c: Move set_page_character to input.c.  Move
17036         page_character to input.c also.
17037         * troff/env.c (title): Split off the reading of the parts of the
17038         title into read_title_parts.
17039         * troff/input.c (read_title_parts): New function.  Check the
17040         input_level when testing whether a token matches the delimiter.
17042         * troff/input.c (exit_request): New function.
17043         * troff/input.c (init_input_requests): Bind ex request to
17044         exit_request rather than exit_groff.
17046         * troff/input.c (exit_groff): Call tok.next() before
17047         process_input_stack().
17049 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
17051         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17052         * troff/env.h: ditto.
17053         * troff/input.c: ditto.
17055         * troff/env.c (environment::is_empty): Test pending_lines.
17057         * troff/env.c (environment::have_pending_lines): Removed.
17059         * troff/input.c: Add request to flush pending lines from the
17060         environment.
17062         * troff/env.c, troff/env.h: Add automatic widow control feature.
17064         * troff/input.c (exit_groff):  Do process_input_stack() after
17065         do_break() but before setting exit_flag to 2.
17067         * troff/input.c: Remove FLUSH_PENDING_LINES and
17068         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17069         environment after END_TRAP token seen, but only if there aren't
17070         any more traps still unfinished.
17071         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17073 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
17075         * troff/env.c: Rename the `retain_size' member of class
17076         pending_output_line to `no_fill'.
17078         * troff/env.c (title): When the line is output, make the
17079         retain_size argument !fill.
17081         * troff/node.h: Add `hyphenated' member to struct breakpoint.
17082         * troff/node.c (space_node::get_breakpoints),
17083         (dbreak_node::get_breakpoints):  Fill this in.
17084         * troff/env.c:  Allow specification of maximum number of
17085         consecutive hyphenated lines.
17087         * troff/env.c (environment::is_empty): Add test for !current_tab.
17089 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
17091         * troff/env.c (environment::hyphenate_line): Don't completely give
17092         up if the word is not to be hyphenated; continue so that breaks
17093         can be made at break_char_node's.
17095         * lib/lib.h: Only define INT_MAX if it's not already defined;
17096         undef INT_MIN if it's already defined.
17098         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17100         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17101         This works around a bug in AT&T C++ 2.0 used with an ANSI C
17102         compiler.
17103         
17104         * macros/tmac.an (an-header): Set no-space mode.
17106         * macros/tmac.an (TH): Start a new page if necessary.
17108         * Started using ChangeLog at version 0.4.
17110 Local Variables:
17111 version-control: never
17112 coding: latin-1
17113 End: