* src/roff/troff/env.cc (vertical_spacing): Allow zero value for
[s-roff.git] / ChangeLog
bloba8d3ed4075588aef4789c6f2bc63a48998be5f6a
1 2003-03-20  Werner LEMBERG  <wl@gnu.org>
3         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
4         `.vs'.
5         * doc/groff.texinfo: Updated.
7 2003-03-19  Werner LEMBERG  <wl@gnu.org>
9         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
10         TOKEN_END_TRAP>: Reset `have_input'.
12 2003-03-18  Werner LEMBERG  <wl@gnu.org>
14         * src/roff/groff/groff.man: Mention groff_trace man page.
16 2003-03-16  Werner LEMBERG  <wl@gnu.org>
18         * Makefile.in (LIBEXT): New variable to indicate the file extension
19         of library files.  Computed heuristically from $(OBJEXT).
20         (MDEFINES): Add $(LIBEXT).
21         * Makefile.lib, Makefile.comm: Use it.
23         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
24         overlong lines into smaller chunks.
25         (get_binary): New function.
26         (main): Use them.
27         * src/utils/pfbtops/pfbtops.man: Updated.
29 2003-03-15  Colin Watson  <cjwatson@debian.org>
31         * src/roff/groff/groff.man: Minor syntax fix.
33 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
35         * src/devices/grops/ps.cc (ps_printer::media_set,
36         ps_printer::~ps_printer): Handle zero paper width and length.
38 2003-03-13  Werner LEMBERG  <wl@gnu.org>
40         Add options -p and -l to grodvi.
42         * src/devices/grodvi/dvi.cc: Include paper.h.
43         (landscape_flag, user_paper_length, user_paper_width): New global
44         variables.
45         (dvi_printer::begin_page): Emit `papersize' special.
46         Set color after initialization of `cur_h' and `cur_v'.
47         (main): Add options `-l' and `-p'.
48         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
49         * src/devices/grodvi/grodvi.man, NEWS: Updated.
51         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
53 2003-03-12  Werner LEMBERG  <wl@gnu.org>
55         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
56         * man/groff_tmac.man: This man page.
57         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
58         deprecated.
60         * tmac/X.tmac: Don't load pspic.tmac.
62 2003-03-11  Werner LEMBERG  <wl@gnu.org>
64         Make variable `pr' local to libdriver/input.cc.  Based on a patch
65         by Bernd Warken <bwarken@mayn.de>.
67         * src/include/driver.h (pr): Removed.
69         * src/libs/libdriver/input.cc (pr): New global variable.
70         (do_file): Deallocate `pr'.
71         * src/libs/libdriver/printer.cc (pr): Removed.
73         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
74         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
75         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
76         (main): Don't delete `pr'.
78 2003-03-10  Werner LEMBERG  <wl@gnu.org>
80         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
81         * tmac/papersize.tmac: New file.
82         * tmac/troffrc: Include `papersize.tmac'.
83         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
84         * tmac/an-old.tmac: Set LT to LL by default.
86         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
87         doc/groff.texinfo: Updated.
89         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
90         bug which caused all odd iso papers to have wrong dimensions.
92         * src/devices/grops/ps.cc (user_paper_width): New global variable.
93         (main) <'p'>: Set `user_paper_width' also.
94         (ps_printer::media_width, ps_printer::media_height): Use values
95         given with option `-p'.
97 2003-03-09  Werner LEMBERG  <wl@gnu.org>
99         * src/include/nonposix.h: Provide default for SET_BINARY.
101         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
102         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
103         unconditionally.
105         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
106         (main): Treat \r\n as \n.
108 2003-03-08  Werner LEMBERG  <wl@gnu.org>
110         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
111         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
113 2003-03-07  Werner LEMBERG  <wl@gnu.org>
115         Added support to access more than 256 glyphs in Type 1 fonts.
117         * src/devices/grops/ps.cc (subencoding): New structure.
118         (style): Add `sub' field.
119         Updated all users.
120         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
121         Add `set_subencoding', `get_subfont' and `encode_subfont' member
122         functions.
123         Updated all users.
124         (ps_printer::set_char): Use `set_subencoding'.
125         (make_subencoding_name): New function.
126         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
127         (ps_printer::~ps_printer): Emit subencoding definitions.
129         * src/devices/grops/psrm.cc (valid_input_table): New array to
130         properly support EBCDIC.
131         (white_space): Add `\f'.
132         (ps_get_line): Change first argument to be of type `string &'.
133         Updated all callers.
134         This allows to get lines of arbitrary length.
135         Use `valid_input_table'.
136         Remove warning about non-conforming PS line length.  This seems
137         not to be of great importance -- for example, dvips don't emit
138         a warning either.
139         (PS_LINE_MAX): Removed.
140         (matches_comment): Change first argument to be of type `string &'.
142         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
144         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
145         %AGL_to_unicode, %default_ligatures): New hash tables.
146         Read all map entries.
147         Add unencoded characters.
148         Check for default ligatures if there are no `L' entries.
149         Print all kern entries.
150         Print all characters in charset.
151         * src/utils/afmtodit/afmtodit.man: Updated.
153         * font/devps/*: Regerated all fonts.
155         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
156         of characters, just use `.trin'.  Otherwise the mapping is depending
157         on the font encoding.
158         * tmac/ps.tmac: Add `fi' and `fl'.
159         Improve `Fi' and `Fl'.
160         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
161         * tmac/Xps.tmac: Fix `em'.
163         * NEWS: Updated.
165 2003-03-04  Werner LEMBERG  <wl@gnu.org>
167         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
168         `have_input'.
170 2003-03-03  Werner LEMBERG  <wl@gnu.org>
172         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
174         * font/devps/generate/textmap: Remove entry `similarequal'.
175         * font/devps/symbolmap: Updated.
177 2003-03-02  Werner LEMBERG  <wl@gnu.org>
179         * src/libs/libgroff/font.cc (font::load): Fix error message for
180         bad character type.
182         * src/devices/grops/grops.man: Improve documentation of the -b
183         flag.
185         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
186         `ascii' and `cp1047'.
188 2003-03-01  Werner LEMBERG  <wl@gnu.org>
190         Document composite glyphs and the `composite' request.
192         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
194 2003-02-28  Werner LEMBERG  <wl@gnu.org>
196         * font/devdvi/generate/ec.map: Add some more Unicode entities.
197         * font/devdvi/*EC: Updated.
199         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
200         * tmac/latin1 (latin1-tr): Undo any previous mapping.
201         * tmac/troffrc: Load `composite.tmac'.
202         * tmac/Makefile.sub (NORMALFILES): Updated.
204         * doc/groff.texinfo (Input Encodings): New section.
205         * NEWS: Updated.
207 2003-02-27  Werner LEMBERG  <wl@gnu.org>
209         * doc/texinfo.tex: New version 2003-02-11.06.
211         * tmac/doc-common (Dt): Don't emit warning for unknown section.
212         * tmac/groff_mdoc.man: Fix description of `Dt'.
214 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
216         * font/devps/prologue.ps: Fix for included Postscript that does
217         a setpagedevice -- which is now safely ignored.
219         * NEWS: Updated.
221         * src/devices/grops/ps.cc: Now sets the page size in the generated
222         document.  This is done in two ways: Via a %%-comment for gv and
223         the like, and via a PageSize and setpagedevice for programs that
224         understands Postscript proper, like ps2pdf.
226         * src/devices/grops/ps.h: New broken-flag to avoid page size
227         definition, if required.
229         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
231         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
232         Not really necessary due to the fix in prologue.ps, but cleaner:
233         Such information does not belong in an .eps file.
235         * doc/Makefile.sub: See doc/Makefile.in.
237 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
239         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
240         instead of P1 since the latter is broken in some versions of netpbm.
241         * configure: Updated.
243 2003-02-26  Larry Kollar  <kollar@alltel.net>
245         Make man pages more customizable.
247         * tmac/an-old.tmac (FT): New register holding footer distance from
248         bottom.
249         (HF): New string holding the default heading font.
250         (TH): Handle registers `IN' and `SN' set on the command line.
251         Use `FT'.
252         (PT, BT): New strings to customize header and footer lines.
253         (an-header, an-footer): Use them.
254         (SH, SS): Use `HF'.
255         * tmac/groff_man.man: Document changes.
257         * doc/groff.texinfo: Document man changes.
258         Document Ultrix extensions of man.
260 2003-02-26  Werner LEMBERG  <wl@gnu.org>
262         * src/roff/troff/input.cc (do_width, do_if_request): Reset
263         `have_input' after changing back to old environment.
265         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
266         function up to be defined before first call.  This is necessary to
267         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
269         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
270         the default font directory also.  Based on a patch from James
271         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
272         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
273         * src/utils/afmtodit/afmtodit.man: Document it.
275         * NEWS: Updated.
277         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
279 2003-02-25  Gaius Mulley <gaius@glam.ac.uk>
281         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
282         (GROFF_PNMTOPS_NOSETPAGE): New macro.
283         * configure.ac: Use it.
284         * configure: Regenerated.
285         * Makefile.in: Updated.
287         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
288         (CLEANADD): Add www.tmac-sed.
289         (pnmtops_nosetpage): Define default.
290         (install_data): Handle www.tmac-sed and substitute
291         @PNMTOPS_NOSETPAGE@.
292         (stamp-sed): Add www.tmac.
293         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
294         It now breaks URLs at suitable places.
295         (www:substring_ok): New register set by...
296         (www:@test_substring): New macro.
297         (www:error): New alias to www-error.
298         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
299         New macros.
300         (URL): Use www:url_breaks.
301         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
302         (CDS, CDE): New macros.
304 2003-02-25  Werner LEMBERG  <wl@gnu.org>
306         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
307         buffer overflow.
309 2003-02-24  Werner LEMBERG  <wl@gnu.org>
311         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
312         can be negative also.
314         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
315         `int16'.
316         (read_char_table): Avoid negative ascenders.
317         (output_charset): Add cast.
318         * font/devlj4/*: Regenerated.
320         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
321         possible.
323         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
324         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
325         of `<>'.
326         * font/devdvi/*: Regenerated.
328         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
329         normal width, while the previously used characters (U+2329 and
330         U+232A) are classified as wide due to canonical equivalence with the
331         CJK punctuation characters U+3008 and U+3009.
333         * font/devutf8/R.proto: Updated.
334         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
336         * man/groff_char.man: Simplify handling of table traps by
337         introducing `start block' and `end block' macros.
338         (Ns, Ne, 2s, 2e, Ds, De): New macros.
339         (DL): Make it work with Unix troff also.
340         Fix code values of `la' and `ra'.
342         * tmac/dvi.tmac: Define `<>' for CW and CWI.
344 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
346         * src/devices/grohtml/post-html.cc (element_list::~element_list):
347         New destructor, fixing a major memory leak.
349 2003-02-22  Werner LEMBERG  <wl@gnu.org>
351         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
352         to be conform with Unicode 3.0 and newer.
354         * font/devlj4/generate/text.map: Add `Eu'.
355         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
356         * font/devlj4/S: Regenerated.
358         * man/groff_char.man: Completely rewritten.
360         * doc/groff.texinfo: Fix description of request and macro arguments.
362 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
364         Valgrind fixes.
366         * src/devices/grohtml/html-table.cc (html_table::~html_table):
367         Deallocate `columns' list.
368         * src/devices/grohtml/post-html.cc (char_block::~char_block):
369         New destructor.
370         (text_glob::text_glob_html, text_glob::text_glob_special,
371         text_glob::text_glob_line, text_glob::text_glob_auto_image,
372         text_glob::text_glob_tag): Avoid memory leaks.
373         (text_glob::remember_table): Free memory before reassigning.
375 2003-02-19  Werner LEMBERG  <wl@gnu.org>
377         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
378         alias `hbar'), the Planck constant over two pi.
380         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
381         `+e' for position 34.
382         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
383         `u2662' and `u2661'.
384         * font/devdvi/{MI,S}: Regenerated.
385         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
386         * font/devlbp/*: Add `hbar' alias.
387         * font/devlj4/generate/special.map: Ditto.
388         * font/devlj4/S: Regenerated.
389         * font/devps/generate/symbolchars: Add `+e'.
390         * font/devps/generate/textmap: Fix PS name for `-h'.
391         Add `hbar' alias.
392         * font/devps/symbolmap: Regenerated.
394         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
396         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
397         `-h', `hbar'.
398         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
399         `-h'.
401         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
402         `hbar'.
403         * tmac/tty-char.tmac: Add `+e'.
405 2003-02-17  Werner LEMBERG  <wl@gnu.org>
407         Another round trying to really fix problems with `have_input'.
409         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
410         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
412         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
413         handling if both foreground and background colors are default.
415         * doc/groff.texinfo (Debugging): Document .lf differences to
416         AT&T troff.
418 2003-02-16  Werner LEMBERG  <wl@gnu.org>
420         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
421         null-bytes in created string.
423         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
424         alias_macro, lookup_request): Improve warning messages.
426         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
427         not `strdup'.
428         Free `last_image_filename'.
430         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
431         `buffer'.
432         (imageList::createPage, imageList::createImage): Use `free', not
433         `a_delete'.
434         (imageItem::~imageItem): Free `imageName'.
435         (addRegDef): Use `strsave', not `strdup'.
436         (get_resolution): Free `pathp'.
438 2003-02-15  Werner LEMBERG  <wl@gnu.org>
440         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
441         to `dummy'.
443 2003-02-14  Werner LEMBERG  <wl@gnu.org>
445         Add memory management for colors to deallocate unnamed colors
446         properly.
448         * src/include/color.h (color): New members `free_list' and `next'.
449         New member functions `new' and `delete'.
450         Add destructor.
451         * src/libs/libgroff/color.cc: Implement it.
453         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
454         for array size of new operator.
456         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
457         redundant comparison.
459         * src/roff/troff/input.cc (word_space_node::reread,
460         hmotion_node::reread): Avoid warning about unused parameter.
461         (reset_output_registers): Remove redundant parameter.
462         (define_color): Undo change 2003-02-12.
464         * src/roff/troff/reg.h: Updated.
466         * src/roff/troff/node.cc (troff_output_file::really_print_line,
467         output_file::put_filename, real_output_file::really_put_filename,
468         ascii_output_file::really_print_line,
469         break_char_node::get_hyphen_list): Avoid warning about unused
470         parameter.
471         (suppress_node::tprint): Updated.
473         * configure.ac: Check declaration for rand() and srand().
474         * configure: Regenerated.
476         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
477         conditionally.
478         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
479         and srand().
481         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
482         to avoid compiler warnings.
484         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
485         unused.
487         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
488         is unused.
489         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
490         (unused) parameter.
491         Updated all callers.
493         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
494         is unused.
495         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
496         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
498         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
499         Parameter is unused.
500         (html_printer::add_table_end): Define parameter conditionally.
501         * src/devices/grohtml/output.cc (simple_output::special): Parameter
502         is unused.
504         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
505         (lbp_printer::set_char): Last parameter is unused.
507         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
509 2003-02-13  Werner LEMBERG  <wl@gnu.org>
511         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
512         Make \D'f ...' move horizontally again for backwards compatibility.
513         Replace it with \D'Fg ...' where appropriate to avoid dependency
514         on horizontal resolution.
516         * src/roff/troff/input.cc (do_get_long_name): New function.
517         (get_long_name): Call it.
519         (read_draw_node): Handle `\D'Fx ...' by calling ...
520         (read_color_draw_node): New function.
522         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
523         `end'.
524         Pass it to `do_get_long_name' which is used instead of
525         `get_long_name'.
527         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
528         unnecessary value guard.
529         (parse_D_command) <'f'>: Add horizontal shift.
531         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
532         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
533         (FILL_MAX): Removed.
535         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
536         Updated.
538 2003-02-12  Werner LEMBERG  <wl@gnu.org>
540         * src/roff/troff/input.cc (do_name_test, do_expr_test,
541         do_zero_width): Push `\n' if closing delimiter is missing.
543         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
544         <'F'>: Make \F non-transparent at the beginning of line.
545         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
546         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
547         `have_input'.
549         (define_color): Free color in case of reassignment.
551         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
552         @DefescListEnd): Use @Var, not @var.
553         Fix all calls.
555         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
557         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
558         `shaded' and `outlined' arrays.
559         (object_spec::object_spec): Initialize `shaded' and `outlined'.
560         (graphic_object::set_fill_color, graphic_object::set_outline_color):
561         Use strsave.
562         (closed_object::set_fill_color): Ditto.
563         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
564         instead of strdup.
565         (troff_output::reset_color): Use a_delete instead of free.
566         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
568 2003-02-11  Werner LEMBERG  <wl@gnu.org>
570         * doc/groff.texinfo: Improve documentation of `ad'.
571         Document that \D'f...' is dependent on the horizontal resolution.
572         * man/groff_diff.man: Improve documentation of \D'f...'.
574         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
575         compensating \h'...' for \D'f ...' since the latter no longer moves
576         current position.
577         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
579 2003-02-10  Werner LEMBERG  <wl@gnu.org>
581         Improve error messages for `x F' (and `F') commands.
583         * src/include/error.h: Add declaration for
584         `current_source_filename'.
585         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
586         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
587         parameter for source file string.
588         Updated all callers.
590         * src/libs/libdriver/input.cc: Add `current_source_filename'.
591         (remember_source_filename): New function.
592         (parse_x_command <'F'>, do_file <'F'>): Use it.
594 2003-02-09  Werner LEMBERG  <wl@gnu.org>
596         Make grotty not emit warnings about unknown colors more than
597         necessary.
599         * src/devices/grotty/tty.cc: Include `ptable.h'.
600         (TTY_MAX_COLORS): Removed.
601         (DEFAULT_COLOR_IDX): Defined to -1.
602         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
603         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
604         Change `tty_colors' to be a ptable.
605         First arg of `put_color' is now `char'.
606         New functions `make_rgb_string' and `tty_color'.
607         (tty_printer::tty_printer): Use `tty_color'.
608         (tty_printer::color_to_idx): Return value is now `char'.
609         Use `tty_color'.
611         * src/include/color.h (color): Add `print_color' member function.
612         * src/libs/libgroff/color.cc (color::print_color): Implement it.
614 2003-02-08  Werner LEMBERG  <wl@gnu.org>
616         Valgrind fixes.
618         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
619         encoding file.
621         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
622         assume that value has been allocated with `new[]', thus use
623         `a_delete' for deallocation.
625         * src/libs/libdriver/input.cc (get_integer_arg,
626         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
627         where appropriate.
629         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
630         * src/libs/libgroff/nametoindex.cc
631         (character_indexer::named_char_index): Use `new <type>[1]'.
633         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
634         <type>[1]'.
635         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
636         (split_text): Use `a_delete'.
638         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
639         <type>[1]'.
641         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
642         harmless memory leak.
643         (hyphen_trie::read_patterns_file): Initialize `buf'.
644         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
645         Initialize `current_fill_color'and `current_glyph_color'.
646         * src/roff/troff/glyphuni.cc
647         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
648         * src/roff/troff/uniuni.cc
649         (unicode_decompose_init::unicode_decompose_init): Ditto.
650         * src/roff/troff/uniglyph.cc
651         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
653 2003-01-26  Werner LEMBERG  <wl@gnu.org>
655         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
656         `access' before calling `unlink'.
657         (do_file): Handle __EMX__.
659         * src/include/nonposix.h: Handle __EMX__.
661         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
662         (fontpath,tmacpath): Use it.
663         (MDEFINES): Add it.
664         Sorted alphabetically.
666         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
667         @SEP@.
668         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
669         @SEP@.
671 2003-01-27  Werner LEMBERG  <wl@gnu.org>
673         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
674         New files, copied from gnulib.
675         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
676         * configure.ac: Updated.
677         * configure: Regenerated.
679         * src/include/config.hin: Regenerated.
680         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
681         Don't define `strcasecmp' as `strcmp'.
682         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
683         Dont define `strncasecmp' as `strncmp'.
685         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
686         Removed.
688 2003-01-26  Werner LEMBERG  <wl@gnu.org>
690         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
691         s/unline/unlink/.
693 2003-01-25  Werner LEMBERG  <wl@gnu.org>
695         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
697 2003-01-24  Werner LEMBERG  <wl@gnu.org>
699         Add US-english hyphenation exceptions (converted from Barbara
700         Beeton's hyphenation exception log reports which appear irregularly
701         in TUGBoat).
703         * tmac/hyphen.us: Updated to latest version.
704         * tmac/README: Updated.
705         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
706         * tmac/troffrc: Load `hyphenex.us'.
707         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
708         * doc/groff.texinfo: Updated.
710 2003-01-23  Werner LEMBERG  <wl@gnu.org>
712         Improve hyphenation slightly.  This is a first step in redesigning
713         the hyphenation algorithm to make it more flexible (e.g. allowing
714         kerns and ligatures between the hyphenation character and the
715         following character -- while not used normally in English, other
716         languages like German would benefit).
718         * src/roff/troff/env.cc (environment::hyphenate_line): Use
719         assertion instead of if-clause.
720         Let `get_hyphen_list' return the number of involved characters in
721         the hyphenation pattern instead of computing it directly (which
722         often yields too small values).
723         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
724         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
725         parameter.
727 2003-01-22  Werner LEMBERG  <wl@gnu.org>
729         Fixing a bug which caused groff to hang if the hyphenation exception
730         dictionary tried to grow.
732         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
733         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
734         pointer to dictionary.
736 2003-01-20  Werner LEMBERG  <wl@gnu.org>
738         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
739         negative left italic correction.
740         * src/utils/afmtodit/afmtodit.man: Document it.
742         * font/devps/generate/Makefile (RFLAG): Add `-m'.
743         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
744         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
746         * NEWS: Updated.
748 2003-01-16  Werner LEMBERG  <wl@gnu.org>
750         * NEWS: Updated.
752 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
754         * src/preproc/refer/refer.man: Mention REFER environment variable.
756 2003-01-05  Werner LEMBERG  <wl@gnu.org>
758         Similar to \[is], the square root glyph (\[sr]) and the square root
759         extension glyph (\[radicalex]) are now text symbols.  The new
760         mathematical versions are called \[sqrt] and \[sqrtex],
761         respectively.
763         * font/devX*/S: Regenerated.
764         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
765         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
766         * font/devdvi/EX, font/devdvi/S: Regenerated.
767         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
768         * font/devlj4/generate/special.map: Add `sqrt'.
769         * font/devlj4/S: Regenerated.
770         * font/devps/generate/textmap: Add `sqrt'.
771         * font/devps/S, font/devps/symbolmap: Regenerated.
773         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
774         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
775         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
776         overlap horizontally.
778         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
779         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
780         Fix `radicalex'.
782         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
783         and `sqrtex' are overlapping glyphs.
785 2003-01-04  Werner LEMBERG  <wl@gnu.org>
787         * font/devdvi/generate/texsy.map: Add `is'.
788         * font/devps/symbolmap: Regenerated.
789         * font/devdvi/*TC, MI, S: Regenerated.
791         * tmac/dvi.tmac: Remove `is'.
793 2003-01-03  Werner LEMBERG  <wl@gnu.org>
795         `is' is now a text symbol (only relevant for dvi).  The math variant
796         can be accessed with `integral'.
798         * font/devX*/S: Regenerated.
799         * font/devdvi/generate/texex.map: Remove `is'.
800         * font/devdvi/EX: Updated.
801         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
802         * font/devlj4/generate/special.map: Ditto.
803         * font/devlj4/S: Regenerated.
804         * font/devps/generate/textmap: Add `integral'.
805         * font/devps/S: Regenerated.
807         * tmac/dvi.tmac: Define `is'.
809         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
811         * src/preproc/tbl/main.cc (process_format): Fix error message.
813 2003-01-02  Werner LEMBERG  <wl@gnu.org>
815         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
816         * font/devps/textmap: Fix entries for `ne' and `nc'.
817         * font/devps/symbolmap: Regenerated.
819         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
820         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
821         `38', `58', `78', `-+', `|=', `nc', `ne'.
823         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
824         Use `schar' for `aq'.
825         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
826         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
827         * tmac/tty.tmac: Add `ne'.
829         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
830         for fallback glyphs.
832 2002-12-29  Werner LEMBERG  <wl@gnu.org>
834         Add glyph `|='.
836         * font/devX*/*: Regenerated.
837         * font/devdvi/generate/ec.map: Remove `eq'.
838         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
839         Assign `|=' to position 39.
840         * font/devdvi/*EC, S: Regenerated.
841         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
842         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
843         Assign `|=' to position 549.
844         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
845         `equalmath'.
846         Add `uni2243' for `|='.
848         * tmac/ec.tmac: Add `eq'.
849         * tmac/dvi.tmac: Add `=~'.
850         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
851         `|='.
853 2002-12-21  Werner LEMBERG  <wl@gnu.org>
855         * font/devdvi/generate/tc.map: Remove `**'.
856         * font/devdvi/*TC: Regenerated.
857         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
858         `78', `<<', `>>'.
859         * font/devutf8/NOTES: Updated.
861         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
862         Don't give default parameter to `set_macro'.
863         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
864         instead of `set_macro'.
865         (charinfo::setx_macro): Implement it.
866         (charinfo::set_macro): Don't change `mode'.
868         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
869         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
870         * tmac/dvi.tmac: Define `!=' with `.schar'.
872 2002-12-20  Werner LEMBERG  <wl@gnu.org>
874         * font/devX*/S: Regenerated.
875         * font/devdvi/generate/ec.map: Remove `pl'.
876         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
877         * font/devdvi/*{TC,EC}: Regenerated.
878         * font/devhtml/R.proto: Add `-+'.
879         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
880         * font/devlbp/*: Remove `or'.
881         * font/devlj4/generate/special.map: Remove `or'.
882         * font/devlj4/S: Regenerated.
883         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
884         `seveneighths', `threeeighths'.
885         Remove `plusmath'.
886         Replace `minusplus' with `uni2213'.
887         * font/devps/symbolmap: Regenerated.
888         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
889         Add `-+'.
891         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
892         function.
893         * src/roff/troff/node.cc (troff_output_file::put_char_width):
894         Call glyph_color and fill_color even if tcommand_flag isn't set.
895         (make_node, node::add_char): Check not ci->is_fallback but
896         ci->is_normal.
898         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
899         * tmac/ec.tmac: Add .rchar entry for `f/'.
900         Don't remove `12', `14', `34'.
901         Define `pl' to be always roman.
902         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
903         Define `18', `38', `58', `78'.
904         * tmac/tty.tmac: Add `-+'.
905         * tmac/dvi.tmac: Define `f/'.
906         (dvi-frac): Use `f/'.
907         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
908         Define `18', `38', `58', `78'.
910 2002-12-15  Colin Watson  <cjwatson@debian.org>
912         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
914 2002-12-10  Werner LEMBERG  <wl@gnu.org>
916         Add glyph `tno', a textual variant of `no'.
918         * font/devX*/*: Regenerated.
919         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
920         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
921         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
922         * font/devdvi/*: Regenerated.
923         * font/devlbp/*: Add `tno'.
924         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
925         * font/devlj4/*: Regenerated.
926         * font/devps/generate/textmap: Replace `no' with `tno'.
927         * font/devps/generate/symbolchars: Add `no'.
928         * font/devps/*: Regenerated.
930         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
932         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
933         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
935         * NEWS: Updated.
937         * tmac/dvi.tmac: Replace most `\\' with `\E'.
938         Add definition for `sd'.
939         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
941         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
943 2002-12-08  Werner LEMBERG  <wl@gnu.org>
945         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
946         mode to avoid rounding errors.
947         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
949         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
950         src/roff/troff/troff.man: Improve documentation of -T.
952 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
954         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
955         (run_pipeline) [_WIN32]: Provide working function without `fork'.
957 2002-12-06  Werner LEMBERG  <wl@gnu.org>
959         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
960         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
961         Scaling Euro.sansserif glyphs down to have the same height as
962         digits.
963         Removed unnecessary points; added some extrema.
965         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
966         Regenerated.
968 2002-12-04  Werner LEMBERG  <wl@gnu.org>
970         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
971         and `Euro.symbol.bold.slanted'.
972         Improve some glyph offsets and widths.
973         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
974         Regenerated.
975         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
976         typo.
977         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
978         direcory.
980         * tmac/europs.tmac: Updated to new glyph indices.
981         Use Euro.symbol for font familiy `A'.
983         * doc/groff.texinfo: Minor improvements.
985 2002-12-02  Werner LEMBERG  <wl@gnu.org>
987         * font/devdvi/generate.tc.map: s/%O/%0/.
988         * font/devdvi/*TC: Regenerated.
990         * src/roff/troff/div.cc (init_div_requests): Sorted.
992         * tmac/dvi.tmac: Remove `Ye'.
993         * tmac/ec.tmac: Remove `Ye'.
994         Add .rchar entry for `de'.
996         * man/groff.man, man/groff_diff.man: Document register `.pe'.
997         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
998         * NEWS: Updated.
1000 2002-11-30  Werner LEMBERG  <wl@gnu.org>
1002         Add PS font for various Euro glyphs.
1004         * font/devps/generate/freeeuro.sfd: New master font file for
1005         pfaedit.
1006         * font/devps/generate/sfdtopfa.pe: New conversion script for
1007         pfaedit.
1008         * font/devps/generate/Makefile (FONTS): Add `EURO'.
1009         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
1010         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
1011         `freeeuro.sfd'.
1012         * font/devps/EURO: Generated from `freeeuro.afm'.
1013         * font/devps/download: Add `freeuro.pfa'.
1014         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
1015         `freeeuro.pfa'.
1017         * tmac/europs.tmac: New file.
1018         * tmac/ps.tmac: Include `europs.tmac'.
1019         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
1021 2002-11-29  Werner LEMBERG  <wl@gnu.org>
1023         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
1024         * font/devdvi/S: Regenerated.
1025         * font/devhtml/R.proto: Fix `CR' and `ci'.
1026         Add `OK'.
1027         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
1028         Remove `bs'.
1029         * font/devps/symbolmap: Regenerated.
1030         * font/devutf8/R.proto: Fix `CR' and `ci'.
1031         Add `OK'.
1032         * font/devutf8/NOTES: Updated.
1034         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
1035         `ci'.
1036         Add `OK'.
1037         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1039         * tmac/dvi.tmac: Add `lh' and `rh'.
1040         * tmac/Xps.tmac: Fix `lh' and `rh'.
1041         * tmac/X.tmac: Add `OK'.
1042         * tmac/lj4.tmac: Ditto.
1044 2002-11-24  Werner LEMBERG  <wl@gnu.org>
1046         * font/devX*/S: Regenerated.
1047         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
1048         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
1049         * font/devdvi/generate/texsy.map: Remove `or' glyph.
1050         * font/devdvi/S: Regenerated.
1051         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
1052         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
1053         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
1054         `bracketleftbt', `bracketrighttp', `bracketrightex',
1055         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
1056         `braceex', `braceleftex', `bracerightex', `bracerighttp',
1057         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
1058         `rb', and `bv'.
1059         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
1060         * font/devutf8/NOTES: Updated.
1061         * font/devlj4/generate/special.map: Add glyph `braceex'.
1062         * font/devlj4/S: Regenerated.
1064         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
1066 2002-11-14  Werner LEMBERG  <wl@gnu.org>
1068         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
1069         and `vA'.
1070         Fix code for `an'.
1071         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1073         * doc/texinfo.tex: New version from texinfo 4.3.
1074         * doc/groff.texinfo: Updated for texinfo 4.3.
1075         Use @tie{} where appropriate.
1076         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
1077         * font/devdvi/generate/tc.map: Remove `rn'.
1078         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
1079         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
1080         Fix code for `an'.
1081         * font/devX100/*, font/devX100-12/*, font/devX75/*,
1082         font/devX75-12/*: Regenerated.
1084         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
1085         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
1086         Improve definition of `an'.
1087         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
1088         `ru'.
1089         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
1090         * tmac/X.tmac: Add definition for `or'.
1091         * tmac/Xps.tmac: Undo change 2002-11-05.
1092         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
1094 2002-11-11  Werner LEMBERG  <wl@gnu.org>
1096         * src/roff/troff/node.cc (troff_output_file::put_char): Always
1097         call flush_tbuf.
1099 2002-11-10  Werner LEMBERG  <wl@gnu.org>
1101         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
1102         defines a glyph which is searched after the check for fonts declared
1103         with `.special' (and before the check for all mounted special
1104         fonts).  `fschar' defines a glyph for a particular font which is
1105         searched after the check for fonts declared with `.fspecial' (and
1106         before the check for fonts declared with `.special').  `rfschar'
1107         removes glyphs defined with `fschar'.
1109         * src/roff/troff/token.h (char_mode): New enum.
1110         Declare do_define_character.
1111         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
1112         `mode'.
1113         (charinfo::is_fallback): Updated.
1114         (charinfo::is_special): New method.
1115         * src/roff/troff/input.cc (do_define_character): Add and use
1116         optional second parameter used as a prefix for font-specific glyph
1117         names.
1118         (define_character, define_fallback_character): Updated.
1119         (define_special_character): New function.
1120         (init_input_requests): Add `schar'.
1121         (charinfo::charinfo, charinfo::set_macro): Updated.
1122         * src/roff/troff/node.cc: Include `stringclass.h'.
1123         (make_glyph_node): Handle special glyphs defined with `.schar' and
1124         `.fschar'.
1125         (define_font_special_character, remove_font_special_character): New
1126         functions.
1127         (init_node_requests): Sorted.
1128         Add `fschar' and `rfschar'.
1129         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1130         Document new requests.
1132         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
1133         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
1135 2002-11-08  Werner LEMBERG  <wl@gnu.org>
1137         Added new font `SC' (cmtex10) to devdvi.
1139         * devdvi/generate/Makefile (FONTS): Add `SC'.
1140         (SC): New rule.
1141         * devdvi/generate/textex.map: New map file for cmtex.
1142         * devdvi/SC: New.
1143         * devdvi/Makefile.sub (DEVFILES): Updated.
1144         * tmac/dvi.tmac: Add fspecial entries for SC.
1145         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
1146         found before `S' since the font position of `SC' is lower due to the
1147         gaps in DESC's `font' line.
1148         * tmac/ec.tmac: Add a `special' call.
1149         * NEWS: Updated.
1151         * font/devhtml/R.proto: Remove double entry for `ti'.
1152         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
1153         * tmac/tty-char.tmac: Remove entry for `bq'.
1154         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
1155         * tmac/ec.tmac: Don't remove `aq' glyph.
1156         * tmac/X.tmac: Fix entry for `em'.
1157         Add entries for `fo' and `fc'.
1158         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
1160         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
1161         documentation of `special' and `fspecial' requests.
1163 2002-11-05  Werner LEMBERG  <wl@gnu.org>
1165         * font/devascii/R.proto, font/devcp1047/R.proto,
1166         font/devlatin1/R.proto: Remove entry for `.i'.
1167         * font/devdvi/generate/textt.map: Add entry for `ad'.
1168         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
1169         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
1170         We need this for getting kerning values to compose `/l' and `/L'.
1171         * font/devdvi: Regenerated font definition files for CM fonts.
1172         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
1173         * font/devutf8/R.proto: Ditto.
1174         Remove double entry for `ti'.
1176         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
1177         for (groff) ligatures, `la', and `ra'.
1178         Add "'C", "'c", `IJ', and `ij'.
1179         Remove double entry for `ti'.
1180         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
1181         double entries.
1182         Add "'C", "'c", `IJ', and `ij'.
1183         Fix entries for (groff) ligatures, `la', and `ra'.
1185         * tmac/ps.tmac (ps-achar): New macro.
1186         Define "'c" and "'C".
1187         * tmac/tty.tmac: Add entry for `.i'.
1188         * tmac/X.tmac (X-achar): New macro.
1189         Define "'c", "'C", and `:Y'.
1190         Add entries for `IJ' and `ij'.
1191         * tmac/Xps.tmac (Xps-achar): New macro.
1192         Define "'c" and "'C".
1193         Add entries for `IJ' and `ij'.
1194         * tmac/lbp.tmac (lbp-achar): New macro.
1195         Add fallback characters for all groff ligatures and many other
1196         glyphs.
1197         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
1198         Add entries for `/l' and `/L'.
1199         Define "'c" and "'C".
1200         Add entries for `IJ' and `ij'.
1202 2002-11-02  Larry Kollar  <kollar@alltel.net>
1204         * PROBLEMS: Document how to solve Mac OS X compilation problems.
1206 2002-11-02  Werner LEMBERG  <wl@gnu.org>
1208         Adding support for composite glyphs: \[xxx yyy ...] and the
1209         `composite' request.
1211         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
1212         to Unicode-based glyph names.
1213         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
1214         glyph names to groff glyph names.
1215         * src/roff/troff/uniuni.cc: New file for canonically decomposing
1216         Unicode-based glyph names.
1217         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
1218         for handling Unicode glyph names.
1219         * src/roff/troff/input.cc: Include unicode.h.
1220         (composite_glyph_name): New function.
1221         (token::next) <'['>: Handle Unicode glyph names and composite
1222         glyphs.
1223         (composite_dictionary): New dictionary for the `composite' request.
1224         (composite_request): Implement `composite' request.
1225         (init_input_requests): Add `composite'.
1226         Alphabetically sorted.
1227         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
1228         commented out).
1229         (init_env_requests): Alphabetically sorted.
1230         Removed `tas' and `tar' (already commented out).
1231         * src/roff/troff/Makefile.sub: Updated.
1233 2002-10-31  Ruslan Ermilov <ru@FreeBSD.org>
1235         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
1236         of options.
1238 2002-10-29  Werner LEMBERG  <wl@gnu.org>
1240         Fix computation of .trunc register.  Additionally, its value (and
1241         the value of the .ne register) is now always set before entering the
1242         trap.
1244         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
1245         `needed_space' before calling `space'.
1246         (top_level_diversion::space): Remove special code for 'sp before the
1247         first page.
1248         Call `begin_page' with the discarded space as a parameter.
1249         (top_level_diversion::begin_page): Add optional parameter to set
1250         `truncated_space'.
1251         * src/roff/troff/div.h: Updated.
1253         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
1254         \n[.ne].
1256         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
1257         (LP): Remove superfluous call to `br'.
1258         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
1259         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
1261 2002-10-26  Werner LEMBERG  <wl@gnu.org>
1263         * tmac/doc-ditroff: Remove useless switch/variable -rC.
1264         (doc-setup-header): Don't set page register `%'.
1265         * tmac/doc-nroff: Remove variable `C'.
1266         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
1267         (doc-setup-header): Don't set page register `%'.
1268         Don't call `bp'.
1269         * tmac/doc-common (doc-header): Call `ns'.
1270         (doc-paragraph): Protect .sp with .br so that it survives traps
1271         possibly set by the user.
1272         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
1274         * tmac/doc*: Replace ' with . for consistency if no effect.
1276 2002-10-26  Werner LEMBERG  <wl@gnu.org>
1278         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
1279         so that it survives traps possibly set by the user.
1281         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
1282         (troff_output_file::set_font): Call flush_tbuf if necessary.
1283         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
1284         flush_tbuf and do_motion only if necessary.
1285         (troff_output_file::start_special,
1286         troff_output_file::put_char_width, troff_output_file::put_char,
1287         troff_output_file::draw): Updated.
1288         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
1289         vmotion_node::tprint): Undo change 2002-10-23.
1291 2002-10-25  Werner LEMBERG  <wl@gnu.org>
1293         * tmac/www.tmac (DC): Fix case of overlapping images.
1295 2002-10-23  Werner LEMBERG  <wl@gnu.org>
1297         * src/roff/troff/node.cc (troff_output_file::fill_color,
1298         troff_output_file::glyph_color): Set current color before testing
1299         color_flag.
1300         (troff_output_file::put_char_width, troff_output_file::put_char,
1301         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
1302         before glyph_color.
1303         (troff_output_file::file_color, troff_output_file::glyph_color):
1304         Call do_motion.
1305         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
1306         vmotion_node::tprint): Move first, then call fill_color.
1308 2002-10-20  Werner LEMBERG  <wl@gnu.org>
1310         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
1311         possible to use multiple main macro packages.
1313 2002-10-19  Werner LEMBERG  <wl@gnu.org>
1315         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
1316         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
1317         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
1318         is set.
1319         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
1320         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
1322 2002-10-16  Werner LEMBERG  <wl@gnu.org>
1324         * NEWS, doc/webpage.ms: Updated.
1326 2002-10-14  Werner LEMBERG  <wl@gnu.org>
1328         * src/roff/troff/node.cc (troff_output_file::put_char_width,
1329         troff_output_file::put_char, troff_output_file::fill_color,
1330         troff_output_file::glyph_color): Handle case where color pointer
1331         is null.
1333 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
1335         Add the new -r option to grotty.  It is similar to the -i option
1336         except it tells grotty(1) to use the "reverse video" attribute to
1337         render italic fonts.
1339         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
1340         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
1341         (tty_printer::make_underline, tty_printer::put_color,
1342         tty_printer::end_page): Use it.
1343         (main): Add -r switch.
1344         (usage): Updated.
1345         * src/devices/grotty/grotty.man: Document it.
1347 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
1349         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
1350         cast to `unsigned char' to properly read patterns with 8bit
1351         characters.
1353 2002-10-08  Werner LEMBERG  <wl@gnu.org>
1355         * REVISION: Increased to 2.
1357 Version 1.18.1 released
1358 =======================
1360 2002-10-08  Werner LEMBERG  <wl@gnu.org>
1362         * doc/webpage.ms, NEWS: Updated.
1364 2002-10-07  Werner LEMBERG  <wl@gnu.org>
1366         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
1367         suppress additional whitespace after the header.
1369         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
1370         with NetBSD.
1372         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
1374 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
1376         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
1377         (Dt): Use it to improve language localization (especially Russian
1378         and French).
1380 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
1382         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
1383         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
1384         drawing commands.
1385         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
1386         curve type.
1387         Call `picurve' for BSPLINE.
1388         (HGPrintElt): Handle BSPLINE.
1389         * src/preproc/grn/README: Document it.
1391 2002-10-03  Werner LEMBERG  <wl@gnu.org>
1393         * src/roff/troff/node.cc (break_char_node::col): New variable.
1394         Updated constructor.
1395         (space_node::tprint, word_space_node::tprint): Call `fill_color'
1396         unconditionally.
1397         (space_node::space_node): Remove assertion.
1398         (break_char_node::add_self): Pass color argument to space node.
1399         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
1400         Ditto.
1401         * src/roff/troff/env.cc (environment::do_break,
1402         environment::add_padding): Ditto.
1404 2002-10-02  Werner LEMBERG  <wl@gnu.org>
1406         Redesigning color support in troff.  Colors are no longer
1407         represented as separate nodes but are now part of glyph nodes and
1408         friends.  This fixes the current formatting misbehaviour due to the
1409         changes introduced on 2002-09-20.  Some extra code is necessary for
1410         proper grotty support: Without adding color variables to
1411         space-related nodes, the background color would be changed too late.
1413         * src/roff/troff/node.h, src/roff/troff/node.cc:
1414         s/current_pagecolor/current_fill_color/.
1415         s/current_glyphcolor/current_glyph_color/.
1416         (glyph_color_node, fill_color_node): Removed.
1417         (node::get_glyph_color, node::get_fill_color): New virtual member
1418         functions.
1419         (space_node::col): New variable.
1420         Updated constructors of space_node and derived classes accordingly.
1421         (hmotion_node::col): New variable.
1422         Updated constructors of hmotion_node and space_char_hmotion_node
1423         accordingly.
1424         (vmotion_node::col): New variable.
1425         Updated constructor accordingly.
1426         (draw_node::gcol, draw_node::fcol): New variables.
1427         Updated constructor accordingly.
1428         (special_node::gcol, special_node::fcol): New variables.
1429         Updated constructors accordingly.
1430         (troff_output_file::put_char, troff_output_file::put_charwidth,
1431         troff_output_file::draw): Set glyph and fill color.
1432         (troff_output_file::start_special): Set glyph and fill color.
1433         Always set current font.
1434         (troff_output_file::fill_color, troff_output_file::glyph_color):
1435         Don't call `do_motion'.
1436         (glyph_node::gcol, glyph_node::fcol): New variables.
1437         Updated constructors of glyph_node and ligature_node accordingly.
1438         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
1439         member functions.
1440         (glyph_node::merge_glyph_node,
1441         kern_pair_node::add_discretionary_hyphen,
1442         node::add_discretionary_hyphen): Updated.
1443         (break_char_node::merge_self): Updated.
1444         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
1445         vmotion_node::tprint): Handle color.
1446         (make_glyph_node, make_node, node::add_char): Updated.
1448         * src/roff/troff/env.cc (environment::space_newline,
1449         environment::space, environment::output_line, environment::do_break,
1450         environment::make_tab_node, environment::add_padding, title):
1451         Updated.
1452         (environment_switch, environment_copy): Don't add color nodes.
1454         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
1455         nothing.
1456         (token::next): Updated.
1457         \m and \M now are as transparent as \s.
1458         (process_input_stack, token::add_to_node_list, token::process,
1459         read_draw_node): Updated.
1460         (charinfo_to_node_list): Don't add color nodes.
1462         * doc/groff.texinfo: Updated.
1464 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
1466         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
1467         strings.
1469 2002-09-27  Colin Watson  <cjwatson@debian.org>
1471         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
1473 2002-09-23  Werner LEMBERG  <wl@gnu.org>
1475         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
1476         appropriate.
1477         (DEFAULT_LINEWIDTH_FACTOR): New macro.
1478         (linewidth_factor): New global variable.
1479         (lbp_printer::set_line_thickness): Fix case for size < 0, using
1480         linewidth_factor.
1481         (long_options): Add -w/--linewidth option.
1482         (usage): Updated.
1483         (main): Handle -w option to set linewidth_factor.
1484         (lbp_printer::lbp_printer): Initialize req_linethickness, not
1485         line_thickness.
1487         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
1489 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
1491         Fixed a bug in the line thickness setting code.
1493         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
1494         variable.
1495         (lbp_printer::set_line_thickness): Pass environment as second
1496         parameter.
1497         Implement it actually.
1498         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
1499         and `set_line_thickness, depending on the current font size.
1501 2002-09-21  Werner LEMBERG  <wl@gnu.org>
1503         Some Debian patches.
1505         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
1506         * src/roff/troff/node.cc (bracket_node::copy): Initialize
1507         `list->last'.
1509 2002-09-20  Werner LEMBERG  <wl@gnu.org>
1511         * configure: Regenerated with autoconf 2.54.
1513 2002-09-20  Werner LEMBERG  <wl@gnu.org>
1515         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
1516         glyph_color.
1517         Rename cur_fill_color to fill_color.
1518         * src/roff/troff/env.cc: Updated.
1520 2002-09-20  Werner LEMBERG  <wl@gnu.org>
1522         * src/roff/troff/env.cc (title): Copy color status after processing
1523         title.
1524         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
1525         fill color nodes to reset colors properly.
1527         * tmac/www.tmac (DC): Fix color handling.
1529         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
1530         * doc/groff.texinfo: Fixing documentation of `tl' request.
1531         * doc/webpage.ms: Updated.
1533 2002-09-19  Werner LEMBERG  <wl@gnu.org>
1535         * src/roff/troff/env.cc (environent_switch, environment_copy):
1536         Emit glyph and fill color nodes to initialize colors properly.
1538 2002-09-17  Colin Watson  <cjwatson@debian.org>
1540         * src/roff/troff/env.cc (environment::set_glyph_color,
1541         environment::set_fill_color): Fix typo which prevented \m[] work
1542         correctly.
1544 2002-09-17  Werner LEMBERG  <wl@gnu.org>
1546         Add left and right italic correction to non-slanted PS fonts.  This
1547         is an experimental feature to improve image rendering of grohtml.
1549         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
1550         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
1551         * font/devps/*: All non-slanted fonts regenerated.
1552         * NEWS: Updated.
1554 2002-09-16  Werner LEMBERG  <wl@gnu.org>
1556         Add a site-specific font directory.
1558         * Makefile.in (localfontdir, legacyfontdir): New variables.
1559         (fontpath): Use them.
1560         (MDEFINES, uninstall_dirs): Updated.
1561         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
1562         Remove `FONTPATH' and `MACROPATH'.
1564         * src/roff/troff/troff.man, NEWS: Updated.
1565         * doc/groff.texinfo (Font Directories): New section.
1566         Other minor fixes.
1568         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
1569         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
1570         src/preproc/grn/grn.man: Minor fixes.
1572         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
1573         Remove unused variable.
1575 2002-09-11  Werner LEMBERG  <wl@gnu.org>
1577         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
1578         * man/groff_out.man: Fix documentation of 'N'.
1580 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
1582         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
1583         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
1584         set.
1585         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
1586         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
1587         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
1588         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
1589         PRE_TAG>: Call `begin' with `FALSE'.
1591 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1593         * src/libs/libgroff/string.cc (string::extract): Fix position of
1594         terminating null byte.
1596 2002-09-08  Werner LEMBERG  <wl@gnu.org>
1598         Add global option `nospaces' to tbl so that leading and trailing
1599         spaces in data items are ignored.
1601         * src/libs/libgroff/string.cc (string::remove_spaces): New member
1602         function to remove leading and trailing spaces.
1603         * src/include/stringclass.h: Updated.
1605         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
1607         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
1608         option.
1609         Fix typo in error messages.
1610         (process_data): Implement `nospaces' option.
1611         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
1613 2002-09-07  Werner LEMBERG  <wl@gnu.org>
1615         * src/include/config.hin: Add `HAVE_ISATTY'.
1616         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
1617         `fname' member.
1618         * src/libs/libgroff/tmpname.cc: Include `time.h'.
1619         * src/libs/libdriver/input.cc (Char): Add `operator==' and
1620         `operator!=' for `char'.
1621         * doc/groff.texinfo: Replace @ifnottex block for top node with
1622         @ifhtml block.
1624 2002-09-06  Werner LEMBERG  <wl@gnu.org>
1626         * doc/Makefile.in (.texinfo.html): Add -I switch.
1627         * doc/groff.texinfo: Add @ifnottex block for top node to make
1628         translation to HTML work.
1630 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
1632         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
1633         (get_papersize, determine_vertical_offset): Removed.
1634         (char_buffer::do_image): Always specify letter size.
1635         (main): Updated.
1636         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
1637         -sPAPERSIZE.
1639 2002-09-05  Werner LEMBERG  <wl@gnu.org>
1641         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
1642         default indentation.
1644 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
1646         * src/preproc/html/pre-html.cc (imageList::createPage): Use
1647         -sPAPERSIZE for gs.
1648         (generateImages): Clean up push-back buffer.
1650 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1652         * doc/groff.texinfo: Minor fixes.
1654 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
1656         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
1657         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
1658         (gsPaper): Removed.
1659         (determine_vertical_offset): Use LETTER_LENGTH.
1660         (createPage): Moved to ...
1661         (imageList::createPage): This.
1662         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
1663         (imageList::getMaxX): New function.
1664         (createImage): Moved to ...
1665         (imageList::createImage): This.
1666         (imageList::createImages): New function.
1667         (generateImages): Read `maxx' directly.
1668         Updated.
1669         (scanArguments): Don't specify `gsPaper' for `-o'.
1670         (makeTempFiles): Call `xtmpfile' with the last argument set to
1671         `TRUE'.
1673 2002-08-24  Werner LEMBERG  <wl@gnu.org>
1675         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
1676         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
1677         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
1678         * src/preproc/html/pushback.cc: Include nonposix.h.
1679         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
1680         conditionally.
1682 2002-08-23  Werner LEMBERG  <wl@gnu.org>
1684         Use $(OBJEXT) for the object file extension.
1686         * Makefile.comm (.SUFFIXES): Add .obj.
1687         (.cc.obj, .c.obj): New implicit rules.
1688         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
1689         (MDEFINES): Add EXEEXT and OBJEXT.
1690         * */Makefile.sub: s/.o/.$(OBJEXT)/.
1692 2002-08-22  Werner LEMBERG  <wl@gnu.org>
1694         * INSTALL: Mention texinfo 4.2 as a prerequisite.
1696 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
1698         * src/devices/grohtml/post-html.cc (colType): Make enum global to
1699         the file.
1700         (html_printer::update_min_max, html_printer::add_table_end): New
1701         methods.
1702         (html_printer::lookahead_for_tables): Use them.
1703         Reset page offset correctly.
1704         (html_printer::~html_printer): Add creation of creator comment up.
1706 2002-08-20  Werner LEMBERG  <wl@gnu.org>
1708         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
1709         * man/groff_tmac.man: Fix typos.
1710         * man/groff_font.man: Minor reordering.
1711         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
1712         * contrib/groffer/groffer.man: Fix typos.
1714 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
1716         Avoid endless loops while scanning for tables.
1718         * src/devices/grohtml/post-html.cc (list::insert): Set
1719         ptr->right->left.
1720         (html_printer::next_horiz_pos): Add `text_glob' argument; update
1721         all callers.
1722         Return immediately if that argument is NULL.
1723         (html_printer::calc_nf): Don't test if `g' is NULL.
1724         (html_printer::lookahead_for_tables): Use
1725         `glyphs.move_right_get_data'.
1726         Don't test if `g' is NULL.
1728 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
1730         A better fix, replacing fix 2002-08-15, for increasing SIZE.
1732         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
1733         a pointer.
1734         (char_block::char_block): Allocate `buffer'.
1735         (char_buffer::add_string): Use it.
1737 2002-08-15  Werner LEMBERG  <wl@gnu.org>
1739         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
1740         src/devices/grodvi/grodvi.man: Document default line thickness.
1742 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
1744         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
1745         8192.
1747 2002-08-14  Werner LEMBERG  <wl@gnu.org>
1749         * doc/webpage.ms: Updated.
1751 2002-08-09  Werner LEMBERG  <wl@gnu.org>
1753         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
1754         unbreakable space.
1756 2002-08-08  Aaron Campbell <aaron@monkey.org>
1758         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
1759         (&& -> &).
1761 2002-08-08  Werner LEMBERG  <wl@gnu.org>
1763         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
1764         tok.next().
1765         (read_gray): Ditto.
1766         Don't push back a space but a newline onto the stack.
1768 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
1770         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
1771         inadvertently.
1773         * src/devices/grohtml/post-html.cc (html_printer::end_font,
1774         html_printer::start_font): Handle them.
1775         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
1776         reset bold and tt.
1777         (html_text::do_bold): Don't reset italic and tt.
1778         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
1779         * font/devhtml/DESC.proto: Add those fonts.
1780         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
1782 2002-08-07  Werner LEMBERG  <wl@gnu.org>
1784         * MORE.STUFF: Added gpresent.
1786         * tmac/trace.tmac: Show nesting level by a corresponding amount of
1787         whitespace before printing the logging message.
1789 2002-07-31  Colin Watson  <cjwatson@debian.org>
1791         * src/devices/grohtml/html-table.cc (html_table::finish_row):
1792         Initialize `n' to zero.  This fixes a segfault on ARM.
1794 2002-07-30  Werner LEMBERG  <wl@gnu.org>
1796         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
1798 2002-07-29  Werner LEMBERG  <wl@gnu.org>
1800         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
1801         final semicolon.
1803 2002-07-28  Colin Watson  <cjwatson@debian.org>
1805         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
1806         `.ps'.
1807         (html_printer::html_printer): Initialize `pointsize'.
1809 2002-07-26  Werner LEMBERG  <wl@gnu.org>
1811         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
1812         gnu.png.
1813         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
1814         (gnu.eps): Add -rle switch to pnmtops.
1815         (distfiles): Add gnu.eps and gnu.png.
1817 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
1819         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
1820         Add `operator!='.
1822 2002-07-24  Werner LEMBERG  <wl@gnu.org>
1824         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
1825         ' \+' but '  *' for sed.
1826         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
1828 2002-07-23  Werner LEMBERG  <wl@gnu.org>
1830         * doc/groff.texinfo: Document `papersize' keyword.
1831         * NEWS, man/groff_font.man: Updated.
1833 2002-07-23  Colin Watson  <cjwatson@debian.org>
1835         Extend papersize keyword to accept more than a single entry.  The
1836         first valid will be used.
1838         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
1839         (font::scan_papersize): Really skip final newline.
1840         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
1842 2002-07-23  Werner LEMBERG  <wl@gnu.org>
1844         * configure.ac: Test for isatty.
1845         * configure: Regenerated.
1846         * src/include/posix.h: Check HAVE_ISATTY.
1847         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
1848         * src/utils/lookbib/lookbib.cc: Include posix.h.
1849         Don't declare isatty.
1851 2002-07-21  Werner LEMBERG  <wl@gnu.org>
1853         * NEWS: Add `output' request.
1855         * REVISION: Increased to 1.
1857 Version 1.18.0 released
1858 =======================
1860 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
1862         Allow internal glyph indices > 0xFF in grohtml for input characters.
1864         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
1865         as parameter.
1866         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
1867         Updated all callers.
1868         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
1869         (html_printer): Updated.
1871 2002-07-19  Werner LEMBERG  <wl@gnu.org>
1873         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
1874         * font/devutf8/R.proto: Adding some missing glyphs.
1875         * font/devutf8/NOTES: Updated.
1877         * tmac/dvi.tmac: Add more composite glyphs.
1878         * tmac/html.tmac: Updated.
1880         * man/groff_char.man: Add `sum' and `product' entities.
1882         * NEWS: Updated.
1884 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
1886         Improved table, tab, and indenting support.
1888         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
1889         string_iterator::suppress_newline_flag): Removed.  Updated all
1890         function which have used it.
1892         * src/roff/troff/env.cc: Include `input.h'.
1893         (environment::add_node): Accept 0 as parameter.
1894         (environment::add_html_tag): Add `force' parameter.
1895         Updated all callers.
1896         (environment::add_html_tag_tabs): Ditto.
1897         For the moment, support left-aligned tabs only.
1898         (environment::make_html_tag): New function.
1899         (fill, no_fill): Set .br html tag additionally.
1900         (environment::newline): Emit `eol.ce' or `eol' tag for html.
1901         (environment::add_html_tag_eol): Removed.
1902         (tab_stops::distance_to_next_tab): Add variant for handling 
1903         nextpos'.
1904         (environment::distance_to_next_tab): Ditto.
1905         Updated all callers.
1906         (environment::handle_tab): Handle tabs for html.
1907         
1908         * src/roff/troff/env.h: Updated.
1910         * src/roff/troff/div.cc: Updated all callers of
1911         `environment::add_html_tag'.
1913         * src/devices/grohtml/html-table.cc,
1914         src/devices/grohtml/html-table.h: New files.
1916         * src/devices/grohtml/html-text.cc (html_text): New members
1917         `blank_para' and `start_space'.
1918         (html_text::issue_tag): Don't emit TABLE_TAG.
1919         Handle indentation for PRE_TAG and P_TAG.
1920         (html_text::end_tag): Updated.
1921         (html_text::table_is_void, html_text::issue_table_begin,
1922         html_text::issue_table_end): Removed.
1923         (html_text::do_push): Simplified.
1924         [DEBUGGING]: Small fix.
1925         (html_text::push_para): Add new parameter for indentation; updated
1926         all callers.
1927         Handle PRE_TAG.
1928         (html_text::do_indent, html_text::do_table, html_text::done_table,
1929         html_text::is_in_table): Removed.
1930         (html_text::do_pre): Handle P_TAG also.
1931         (html_text::shutdown): Handle p->indent.
1932         (html_text::check_emit_text): Simplified.
1933         (html_text::do_emittext): Reset `blank_para'.
1934         (html_text::do_para): Add new parameter for indentation; updated
1935         all callers.
1936         (html_text::remove_indent): New function.
1937         (html_text::do_space): Handle verbatim text properly.
1938         (html_text::ever_emitted_text, html_text::starts_with_space,
1939         html_text::remove_para_align): New functions.
1940         (html_text::dump_stack_element, html_text::dump_stack): Updated.
1942         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
1943         Updated.
1945         * src/devices/grohtml/post-html.cc: Include html-table.h.
1946         (INDENTATION): Removed.
1947         (text_glob): Added many `is_<foo>' functions.
1948         Added table description `tab'.
1949         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
1950         member functions.
1951         (list): Add `insert' and `move_to' member functions.
1952         (page): Add `insert_tag' member function.
1953         (page::dump_page) [DEBUG_TABLES]: Improved.
1954         (html_printer): Add `table' and `max_linelength' elements.
1955         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
1956         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
1957         `remove_tabs', `remove_courier_tabs'.
1958         (html_printer::emit_raw): Handle indentation.
1959         (html_printer::do_center, html_printer::write_header): Updated.
1960         (html_printer::is_courier_until_eol): Check for tag.
1961         (html_printer::do_linelength): Handle max_linelength.
1962         (html_printer::do_page_offset, html_printer::do_indentation): Handle
1963         fill_on.
1964         (html_printer::do_tempindent): Updated.
1965         (html_printer::do_indentedparagraph): Removed.
1966         (html_printer::do_indent): Simplified.
1967         (html_printer::do_eol): Use `ever_emitted_text'.
1968         (html_printer::do_flush, html_printer::do_links): Don't call
1969         done_table.
1970         (html_printer::do_break): Handle end_tempindent.
1971         (html_printer::troff_tag): Get argument.
1972         Don't handle `.ip'.
1973         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
1974         (html_printer::flush_page): Call `lookahead_for_tables'.
1975         Don't call `done_table'.
1976         (html_printer::add_to_sbuf): Always call do_indent.
1978         * src/devices/grohtml/Makefile.sub: Updated.
1980         * tmac/an-old.tmac (TP): Don't handle html device specially.
1981         (an-do-tag-html): New function which will be used instead of
1982         `an-do-tag' if html device is used.
1984         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
1986         * tmac/s.tmac (@IP): Don't handle html device specially.
1987         (@IP-html): New function which will be used instead of `@IP' if
1988         html device is used.
1990         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
1991         is a hack which will eventually vanish again.
1992         (PIMG): Handle `-C' option correctly if not html.
1993         (HR): Use HTML-NS.
1995 2002-07-17  Werner LEMBERG  <wl@gnu.org>
1997         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
1999 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
2001         * contrib/pic2graph/pic2graph.*: Use convert(1).
2002         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
2004 2002-07-14  Bernd Warken  <bwarken@mayn.de>
2006         * tmac/groff_trace.man: New file.
2007         * tmac/Makefile.sub: Updated.
2008         * NEWS: Updated.
2010 2002-07-13  Werner LEMBERG  <wl@gnu.org>
2012         * src/roff/groff/groff.man: Add some cross references.
2014 2002-07-12  Werner LEMBERG  <wl@gnu.org>
2016         * src/roff/troff/input.cc (substring_request): Add warnings for
2017         string indices out of range.
2019 2002-07-11  Werner LEMBERG  <wl@gnu.org>
2021         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
2022         * font/devdvi/*EC: Regenerated.
2024 2002-07-10  Bernd Warken  <bwarken@mayn.de>
2026         * man/groff_char.man: Updated and extended.
2028 2002-07-10  Werner LEMBERG  <wl@gnu.org>
2030         * src/roff/troff/input.cc (length_macro): Renamed to...
2031         (length_request): This.
2032         Move call of `tok.next()' to the very end, otherwise the register
2033         value hasn't been updated yet.
2034         (init_input_requests): Updated.
2036 2002-07-09  Werner LEMBERG  <wl@gnu.org>
2038         * src/roff/troff/input.cc (substring_macro): Renamed to...
2039         (substring_request): This.
2040         (init_input_requests): Updated.
2041         * src/roff/troff/request.h: Updated.
2043 2002-07-08  Robert D. Goulding <goulding@Princeton.EDU>
2045         * src/roff/grog/grog.sh: Fix typo.
2047 2002-07-08  Werner LEMBERG  <wl@gnu.org>
2049         * win32-diffs: Updated.
2051         Handle `papersize' keyword properly in DESC.
2053         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
2054         type.
2055         Updated all callers.
2056         * src/libs/libgroff/paper.cc: Add four more paper formats used by
2057         grolj4.
2058         * src/include/paper.h: Updated.
2060         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
2061         Other minor C syntax fixes.
2062         (papersize, paperlength, paperwidth): Renamed to `user_*'.
2063         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
2064         members.
2065         (lbp_printer::lbp_printer): Pass three arguments.
2066         Set paper dimensions properly.
2067         (make_printer, main): Updated.
2068         (handle_unknown_desc_command): Fix error messages.
2069         (main): Handle papersize keyword in DESC properly.
2071         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
2072         `user_paper_size'.
2073         (lbp_printer::lbp_printer): Pass an argument.
2074         Set paper_size properly.
2075         (handle_unknown_desc_command): Removed.
2076         (make_printer, main): Updated.
2077         * src/devices/grolj4/grolj4.man: Minor documentation fix.
2079         * man/groff_font.man, NEWS: Updated.
2081 2002-07-07  Werner LEMBERG  <wl@gnu.org>
2083         Integrated eqn2graph, contributed by Eric S. Raymond.
2085         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
2086         files.
2087         * Makefile.in, NEWS: Updated.
2089 2002-06-04  Werner LEMBERG  <wl@gnu.org>
2091         Changing the substring request to make it fit better with other
2092         string manipulation functions in other programming languages:
2093         Index 0 is now the first character in the string, and index -1
2094         indicates the last character.  Since this request didn't work
2095         properly anyway in the last release, it doesn't harm too much to
2096         change the syntax.
2098         * src/roff/troff/input.cc (substring_macro): Use loops to get
2099         the real string length (ignoring COMPATIBLE_SAVE and
2100         COMPATIBLE_RESTORE) and offsets.
2101         Implement change described above.
2103         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
2104         (doc-do-Bd-args, doc-do-Bl-args: Changed accordingly.
2106         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
2108 2002-06-03  Werner LEMBERG  <wl@gnu.org>
2110         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
2111         COMPATIBLE_RESTORE are completely ignored.
2113         * src/roff/troff/input.cc (char_list::set, char_list::get): New
2114         functions.
2115         (macro): `length' field renamed to `len'.
2116         Added new field `empty_macro' (1 if macro is empty), to be used
2117         instead of checking `len'.
2118         Updated all callers.
2119         (macro::empty): Updated.
2120         (macro::length, macro::set, macro::get): New functions.
2121         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2122         Set `empty_macro'.
2123         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
2124         COMPATIBLE_RESTORE pairs.
2125         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2126         * src/roff/troff/request.h: Updated.
2128         * doc/groff.texinfo: Document .chop's behaviour better.
2130 2002-06-02  Werner LEMBERG  <wl@gnu.org>
2132         * doc/pic.ms: Fix documentation for the addition of positions.
2134         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
2136 2002-06-29  Werner LEMBERG  <wl@gnu.org>
2138         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
2140         * src/roff/troff/input.cc (have_string_arg): New global variable.
2141         (read_mode): New enumeration.
2142         (read_escape_name): Use it.  Update all calls.
2143         (read_long_escape_name): Use it.  Update all calls.
2144         Set have_string_arg if appropriate.
2145         (get_char_for_escape_name): Add parameter for handling space
2146         character.
2147         (interpolate_string_with_args, decode_string_args): New functions.
2148         (get_copy, token::next): Call it if necessary.
2149         (interpolate_string): Fix error message.
2151         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
2152         Document it.
2154 2002-06-24  Bernd Warken  <bwarken@mayn.de>
2156         * man/groff_tmac.man: Updated and extended.
2158 2002-06-24  Werner LEMBERG  <wl@gnu.org>
2160         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
2162 2002-06-23  Werner LEMBERG  <wl@gnu.org>
2164         * doc/pic.ms: Improve documentation of composite block objects.
2166 2002-06-22  Werner LEMBERG  <wl@gnu.org>
2168         * src/roff/troff/input.cc (init_registers): Add three registers
2169         `seconds', `minutes', and `hours' to hold the current time.
2171         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
2172         Updated.
2174 2002-06-20  Werner LEMBERG  <wl@gnu.org>
2176         Make \X accept both `\ ' and `\~', converting them to single space
2177         characters.
2179         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
2180         (token::unstretchable_space): New inline function.
2181         * src/roff/troff/input.cc (token::next, token::delimiter,
2182         token::description, token::add_to_node_list, token::process): Handle
2183         TOKEN_UNSTRETCHABLE_NODE.
2184         (encode_char): Handle tok.stretchable_space and
2185         tok.unstretchable_space.
2187         * NEWS, doc/groff.texinfo: Document it..
2189 2002-06-19  Werner LEMBERG  <wl@gnu.org>
2191         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
2193         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
2194         keyword to enable/disable SGR output.
2195         (tty_printer::change_fill_color): New function.
2196         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
2198         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
2199         call.
2201 2002-06-18  Werner LEMBERG  <wl@gnu.org>
2203         Add a `color' request and a `.color' register to control usage of
2204         colours.
2206         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
2207         (color_flag): This (which is the inverse).
2208         (activate_color): New function.
2209         (main, init_input_requests): Updated.
2210         * src/roff/troff/troff.h, src/roff/troff/node.cc
2211         (troff_output_file::fill_color, troff_output_file::glyph_color):
2212         Updated.
2214         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
2215         Document the changes.
2217 2002-06-17  Colin Watson  <cjwatson@debian.org>
2219         Circumvent bug in autoconf 2.53 regarding top_builddir.
2221         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
2222         * Makefile.in, doc/Makefile.in:
2223         s/@top_builddir@/@groff_top_builddir@/.
2224         * configure: Regenerated (with autoconf 2.53).
2226 2002-06-17  Werner LEMBERG  <wl@gnu.org>
2228         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
2229         `paperwidth' and `paperlength' for the `papersize' keyword.
2231 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
2233         * src/devices/grops/grops.man: Add info about Type 42 fonts.
2235 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
2237         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
2238         html_printer::do_linelength, html_printer::do_pageoffset,
2239         html_printer::do_indentation, html_printer::do_tempindent,
2240         html_printer::do_break, html_printer::begin_page): Clear indented
2241         text.
2242         * tmac/html.tmac: Disable hyphenation.
2244 2002-06-15  Werner LEMBERG  <wl@gnu.org>
2246         Don't produce HTML files if utility programs are missing.
2248         * Makefile.in (make_html, make_install_html): New variables.
2249         (MDEFINES): Updated.
2251         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
2252         utility programs.
2253         * configure.ac: Use it.
2254         * configure: Regenerated.
2256         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
2257         (HTMLEXAMPLESFILES): This new variable.
2258         (EXAMPLESIMAGEFILES): Renamed to...
2259         (HTMLEXAMPLEIMAGEFILES): This.
2260         (CLEANADD): Add HTMLEXAMPLEFILES.
2261         (all): Use `make_html'.
2262         (html): New target.
2263         (install_data): Use `make_install_html'.
2264         Move html stuff to...
2265         (install_html): This new target.
2266         (uninstall_sub): Updated.
2268 2002-06-14  Bernd Warken  <bwarken@mayn.de>
2270         * src/roff/grog/Makefile.sub (grog): Renamed to...
2271         (grog.old): This.
2272         (grog): New rule to always install grog.sh as grog.
2274 2002-06-08  Bernd Warken  <bwarken@mayn.de>
2276         * src/roff/grog/grog.pl: Fix typo.
2278 2002-06-07  Werner LEMBERG  <wl@gnu.org>
2280         * doc/groff.texinfo: Add more info on .tr arguments.
2282 2002-06-05  Werner LEMBERG  <wl@gnu.org>
2284         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
2286         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
2287         * configure: Regenerated.
2289 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2291         * src/roff/troff/symbol.cc (table_sizes): Add more values.
2293         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
2295 2002-06-04  Werner LEMBERG  <wl@gnu.org>
2297         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
2298         is not initialized at the time we need it in case `--prefix' hasn't
2299         been set.  Check for `ac_default_prefix' also.
2300         Test for `papersize' keyword also and generalize allowed whitespace.
2301         * configure: Regenerated.
2303         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
2304         `paperlength'.
2306         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
2307         with...
2308         (src_version, src_revision): New variables to avoid overwriting
2309         from parent make process.
2310         (version.cc): Updated.
2312         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
2313         (linebuf, linebufsize): New global variables.
2314         (sys_fatal): Use `fatal' to abort properly.
2315         (get_line): New function.
2316         (get_resolution): Use it.
2317         Improve error messages.
2318         (get_papersize): Check `papersize' also.
2319         Use `get_line'.
2320         Improve error messages.
2322 2002-06-03  Werner LEMBERG  <wl@gnu.org>
2324         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
2325         should be removed only if builddir is not srcdir.
2326         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
2327         (clean): Depend on `mostlyclean'.
2328         (distclean): Depend on `clean'.
2329         (realclean, extraclean): Depend on `distclean'.
2330         (.y.cc, .y.o): Simplified.  The output files are no longer written
2331         to srcdir but to builddir.
2332         * Makefile.in (MDEFINES): Add `version' and `revision'.
2333         (uninstall_dirs): Fix order of directories.
2334         * doc/Makefile.sub (version, revision): Removed.
2335         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
2336         Added `HTMLDOCFILES'.
2337         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
2338         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
2339         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
2340         as prefix.
2342         * doc/texinfo.tex (\authortt): New macro.
2343         (\shortcontt): Define.
2344         (\titlepage): Set \tt to \authortt while defining \authorfont.
2345         (\appendixbox): New macro.
2346         (\chapmacro, \appendixentry): Use \appendixbox to get even
2347         indentation for letters.
2348         (\summarycontents): Set \tt.
2349         (\internalpagesize): Add two arguments for real paper width and
2350         height as needed by pdfTeX.
2351         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
2352         Updated.
2353         (\tempdima, \tempdimb): New temporary dimensions.
2354         (\pagesizesyyy): Updated.
2356 2002-06-02  Werner LEMBERG  <wl@gnu.org>
2358         Adding a new keyword `papersize' to the DESC file format (similar
2359         but not completely identical to grolbp's extension).  grops now has
2360         a -p command line option to override `papersize'.  Finally, grolbp
2361         has been adapted to the new syntax.
2363         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
2364         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
2365         elements.
2366         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
2367         (CCSRCS): Add `paper.cc'.
2369         * src/include/font.h (font): Add `papersize' element.
2370         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
2371         (font::scan_papersize): New function.
2372         (font::load_desc): Use it for handling `papersize' keyword.
2373         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
2375         * src/devices/grops/ps.cc: Include paper.h.
2376         (user_paper_length): New global variable.
2377         (ps_printer): Use paper length as initializer.
2378         (make_printer): Updated.
2379         (main): Handle new `-p' option.
2380         * src/devices/grops/grops.man: Updated.
2382         * src/devices/grolbp/lbp.cc: Include paper.h.
2383         s/papersizes/lbp_papersizes/.
2384         (set_papersize): Use new `papersizes' array.
2385         (handle_unknown_desc_command): Don't handle `papersize'.
2386         (main): Use `font::scan_papersize' for handling `-p' option.
2387         * src/devices/grolbp/grolbp.man: Updated.
2389         * man/groff_font.man: Document `papersize'.
2390         * NEWS: Updated.
2392 2002-05-30  Werner LEMBERG  <wl@gnu.org>
2394         * src/devices/grops/TODO: Updated.
2395         * src/devices/grops/grops.man: More info on paper formats.
2396         * man/groff_font.man: Document `paperheight' and `paperwidth'.
2398 2002-05-29  Werner LEMBERG  <wl@gnu.org>
2400         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
2401         to list only if srcdir != currdir.
2402         (distfiles): New target.
2404         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
2405         (NOMAKEDIRS): New variable.
2406         (DISTDIRS): Use it.
2408 2002-05-26  Werner LEMBERG  <wl@gnu.org>
2410         Add .output request, similar to \! at top-level.
2412         * src/roff/troff/input.cc (transparent): Remove unused declaration.
2413         (output_request): New function.
2414         (init_input_requests): Add it.
2415         Sorted.
2416         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
2417         Document it.
2419         * Makefile.in (MDEFINES): Add INSTALL_INFO.
2420         (prepare_examples): Fix typo.
2421         * doc/groff.texinfo (@direntry): Fix it.
2423 2002-05-25  Werner LEMBERG  <wl@gnu.org>
2425         Including the doc subdir into groff's Makefile system.
2427         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
2428         * configure.ac: Use it.
2429         Generate `doc/Makefile'.
2430         * configure: Regenerated.
2432         * Makefile.in (infodir, INSTALL_INFO): New variables.
2433         (MDEFINES, uninstall_dirs): Updated.
2434         (OTHERDIRS): Add `doc'.
2435         * Makefile.comm (CLEANDIRADD): New variable.
2436         (mostlyclean): Use it.
2438         * doc/Makefile.sub, doc/Makefile.in: New files.
2439         * doc/Makefile: Removed.
2441         * NEWS, INSTALL: Updated.
2443 2002-05-24  Werner LEMBERG  <wl@gnu.org>
2445         * doc/homepage.ms: Renamed to ...
2446         * doc/webpage.ms: This.
2447         Use `.NHR'.
2449 2002-05-23  Werner LEMBERG  <wl@gnu.org>
2451         Integrating the `mom' macro package, contributed by Peter Schaffter
2452         <df191@ncf.ca>.
2454         * contrib/mom/*: New subdirectory tree.
2455         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
2456         be used for documentation files.
2457         (MDEFINES, uninstall_dirs): Use them.
2458         (OTHERDIRS): Add contrib/mom.
2459         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
2460         @HTMLDOCDIR@.
2461         * MANIFEST, NEWS: Updated.
2463 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
2465         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
2466         if at outer level; at start-up we are at outer level.
2468         * src/roff/troff/input.cc (do_suppress): Implement it.
2469         Simplify \O[3].
2471         Add option -p to show progress information.
2472         pre-grohtml will now render only one page at a time, reducing the
2473         size of needed disk resources enormously.
2475         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
2476         (imagePageName): New global variable.
2477         (psPageName, show_progress, currentPageNo): New global variables.
2478         (html_system): Close saved stderr and stdout handles.
2479         (write_end_image): Accept a parameter to control \O escape.
2480         (write_start_image): Adapted to new \O meaning.
2481         (char_buffer::write_upto_newline): Updated.
2482         (createAllPages): Replaced with...
2483         (createPage): This new function to create a single page for images.
2484         It uses `psselect' from the psutils package.
2485         (removeAllPages): Removed.
2486         (createImage): Updated.
2487         Handle progress display.
2488         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
2489         (scanArguments): Add option -p.
2490         (makeTempFiles): Updated to create temp files for psPageName and
2491         imagePageName.
2492         (removeTempFiles): Removed.
2493         (main): Updated.
2495         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
2496         html_printer::write_header): Append `\0' to `buffer'.
2497         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
2498         (main): Handle -p.
2499         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
2500         Handle `text_emitted'.
2501         (html_text::table_is_void): Slightly rewritten.
2502         (stop): New external symbol.
2503         (html_text::do_push) [DEBUGGING]: Use it and simplify.
2504         (html_text::shutdown): Call `dump_stack'.
2505         (html_text::do_space): Rewritten.
2506         * src/devices/grohtml/grohtml.man: Document -p and the need of
2507         `psselect'.
2509         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
2510         new \O syntax.
2511         Call \O[0] if `ps4html' is active.
2512         * tmac/s.tmac (@EQ, @EN): Handle html better.
2513         (@TS, TE): Ditto.
2514         * tmac/html.tmac: Don't use black for background colour.
2516         * src/roff/troff/node.cc: Include `div.h'.
2517         (troff_output_file::really_print_line): Don't use `is_on'. 
2518         (troff_output_file::word_marker, troff_output_file::flush_tbuf
2519         troff_output_file::check_charinfo,
2520         troff_output_file::put_char_width, troff_output_file::put_char,
2521         troff_output_file::determine_line_limits, troff_output_file::draw,
2522         real_output_file::begin_page, glyph_color_node::tprintf,
2523         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
2524         Use `is_on'.
2525         (troff_output_file::really_on): Call `do_motion'.
2526         (suppress_node::tprint): Use `get_page_number' instead of `%'
2527         register.
2528         Call `reset_output_registers' conditionally on `is_on'.
2530         * doc/groff.texinfo: Document new syntax of \O.
2531         * NEWS, man/groff_diff.man: Updated.
2533 2002-05-22  Werner LEMBERG  <wl@gnu.org>
2535         * MORE.STUFF: Add info about David Frey's deroff implementation.
2536         Mention troff.org.
2538 2002-05-16  Werner LEMBERG  <wl@gnu.org>
2540         Pic's `with' attribute now accepts positions.
2542         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
2543         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
2544         conflicts.
2545         (object_spec): Add rule for `WITH' and `position'.
2546         (relative_path): Give `corner' the precedence of `CHOP'.
2547         * src/preproc/pic/object.h (path): New members `pos' and
2548         `is_position'.
2549         * src/preproc/pic/object.cc: Updated initializers of `path'.
2550         (path::follow): Handle `is_position'.
2552         * doc/pic.ms: Completely updated grammar description.
2553         Many typographical improvements.
2555 2002-05-15  Werner LEMBERG  <wl@gnu.org>
2557         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
2558         code of x in range 0-127) also.
2559         * doc/groff.texinfo, man/groff_diff.man: Updated.
2561         Added keywords `north', `south', `east', and `west' for corners
2562         in pic.
2564         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
2565         and WEST.
2566         (yylex): Handle them.
2567         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
2568         (corner): Handle them.
2570 2002-05-14  Werner LEMBERG  <wl@gnu.org>
2572         * src/devices/grops/grops.man: Clarify handling of `download' file.
2574 2002-05-11  Werner LEMBERG  <wl@gnu.org>
2576         Adding `warnscale' and `spreadwarn' requests, based on a patch from
2577         Jeffrey Friedl <jfriedl@yahoo.com>.
2579         * src/roff/troff/input.cc (spread_limit, warn_scale,
2580         warn_scaling_indicator): New global variables.
2581         (warnscale_request, spreadwarn_requests): New functions.
2582         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
2583         (init_input_requests): Updated.
2584         (error_type): Add `OUTPUT_WARNING'.
2585         (do_error): Handle it.
2586         (output_warning): New warning function which shows output location.
2587         * src/roff/troff/env.h (spread_limit): New external variable.
2588         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
2589         `output_warning'.
2590         (distribute_space): Emit warning if added space is larger than
2591         `spread_limit'.
2592         (environment::possibly_break_line): Emit warning if a line can't
2593         be adjusted on both sides.
2595         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
2597 2002-05-08  Werner LEMBERG  <wl@gnu.org>
2599         * src/roff/troff/node.cc (special_node::special_node): Use
2600         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
2601         \X''\% crashes, for example.
2603         * doc/groff.texinfo: Document \! and \? used at top-level.
2605 2002-05-06  Werner LEMBERG  <wl@gnu.org>
2607         * src/preproc/pic/pic.man: Fix some keyword syntax.
2608         Other minor typographical fixes.
2610         * src/roff/groff/groff.man: Fix typos.
2612 2002-05-04  Werner LEMBERG  <wl@gnu.org>
2614         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
2615         (ShortOpt[]): This to avoid problems with refer.
2617         * doc/pic.ms: Fix typo.
2618         Fix pic grammar description.
2620         * tmac/an-old.tmac (ne): Use de1, not de.
2622 2002-05-03  Werner LEMBERG  <wl@gnu.org>
2624         * doc/groff.texinfo: Finished separation of glyphs and characters.
2625         Don't use the string `Appendix' for appendix headers (both in
2626         the text and the table of contents).
2627         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
2628         directories.
2630         Use registers LL and LT (similar to -ms) for controlling the
2631         length of title and line, respectively, in the -man and -mdoc
2632         macro packages.
2634         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
2635         (doc-setup-page-layout): Use \n[LL] and \n[LT].
2636         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
2637         (TH): Use \n[LL].
2638         (an-header, an-p-footer): Use \n[LT].
2639         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
2640         doc/groff.texinfo: Document it.
2642 2002-05-02  Werner LEMBERG  <wl@gnu.org>
2644         * doc/fdl.texi: New file.
2645         * doc/groff.texinfo: Include it.
2646         Define and use @copying.
2647         Starting with separating glyph, symbol, and character.
2649 2002-04-27  Werner LEMBERG  <wl@gnu.org>
2651         * Makefile.in (EXEEXT): Set it.
2652         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
2653         programs.
2655         * src/include/nonposix.h: Define GS_NAME.
2656         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
2658         Some preliminary changes for EMX support under OS/2.
2660         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
2661         __EMX__ similar to __MSDOS__.
2662         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
2664 2002-04-25  Werner LEMBERG  <wl@gnu.org>
2666         * doc/groff.texinfo: Integrated groff_out.man.
2667         Some macro fixes.
2669 2002-04-23  Werner LEMBERG  <wl@gnu.org>
2671         * man/groff_out.man: Minor fixes.
2673 2002-04-23  Werner LEMBERG  <wl@gnu.org>
2675         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
2676         correct page references.
2677         Fixed many index entries.
2679 2002-04-23  Bernd Warken  <bwarken@mayn.de>
2681         * man/roff.man: Enlarged.
2683 2002-04-22  Werner LEMBERG  <wl@gnu.org>
2685         * doc/groff.texinfo: More examples, other fixes.
2687 2002-04-20  Werner LEMBERG  <wl@gnu.org>
2689         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
2690         will now form a chain, e.g.
2692           .pi foo
2693           .pi bar
2695         is now the same as
2697           .pi foo | bar
2699         This is for compatibility with plan 9's troff.
2701         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
2702         with UNIX troff.
2703         * NEWS: Updated.
2705         * doc/groff.texinfo: Add documentation of remaining requests and
2706         registers.
2708 2002-04-19  Werner LEMBERG  <wl@gnu.org>
2710         * doc/groff.texinfo: Add documentation of remaining escapes.
2712         * font/devdvi/generate/tc.map: Remove entry for `sr'.
2713         * font/devdvi/*TC: Regenerated.
2715 2002-04-18  Werner LEMBERG  <wl@gnu.org>
2717         * src/roff/troff/input.cc (token::next): Make \H behave consistently
2718         if not in compatibility mode, i.e., increment relative to the
2719         previous height.
2720         * doc/groff.texinfo: Updated accordingly.
2722 2002-04-17  Werner LEMBERG  <wl@gnu.org>
2724         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
2726 2002-04-16  Bernd Warken  <bwarken@mayn.de>
2728         * src/roff/groff/groff.man: Improve documentation of -P option.
2729         Other minor fixes.
2731 2002-04-15  Werner LEMBERG  <wl@gnu.org>
2733         Add new escape \F to switch font family.
2735         * src/roff/troff/input.cc (token::next): Handle \F.
2736         * src/roff/troff/env.cc (environment::set_family): Handle
2737         `interrupted' flag.
2738         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
2739         Document it.
2741 2002-04-14  Werner LEMBERG  <wl@gnu.org>
2743         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
2744         spaces in tags.
2746 2002-04-13  Werner LEMBERG  <wl@gnu.org>
2748         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
2749         \m[] and \M[], respectively.
2751         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
2752         (symbol::symbol): Handle NULL string and empty string differently.
2753         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
2754         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
2755         Add optional parameter.
2756         Updated calling functions.
2757         (get_copy, do_glyph_color, do_fill_color, token::next): Use
2758         `symbol::is_empty'.
2759         * src/roff/troff/env.cc (environment::set_font): Ditto.
2761         * src/preproc/pic/troff.cc (troff_output::set_fill,
2762         troff_output::reset_color: Updated.
2764         * tmac/www.tmac: Updated.
2766         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
2767         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
2768         Updated.
2770         * tmac/Xps.tmac: Remove some redundant code.
2772         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
2773         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
2774         man/groff_out.man, man/groff.man, man/groff_diff.man,
2775         src/roff/groff/groff.man: Replace \f[P] with \f[].
2777 2002-04-13  Bernd Warken  <bwarken@mayn.de>
2779         * src/include/printer.h, src/libs/libdriver/printer.cc
2780         (printer::change_fill_color): New member function.
2781         * src/libs/libdriver/input.cc (parse_D_command): Use it.
2783 2002-04-12  Werner LEMBERG  <wl@gnu.org>
2785         * doc/groff.texinfo: Completed pass on gtroff reference.
2787 2002-04-11  Werner LEMBERG  <wl@gnu.org>
2789         * doc/groff.texinfo: More fixes.
2791 2002-04-11  Bernd Warken  <bwarken@mayn.de>
2793         * src/include/color.h: Decorate with `const'.
2794         Use `size_t'.
2795         Include `stddef.h'.
2796         * src/libs/libgroff.color.cc: Decorate with `const'.
2797         Use `size_t'.
2798         (color::color): Initialize members.
2799         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
2800         command according to the documentation.
2802         * man/groff_out.man: Updated.
2803         Minor fixes.
2805 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
2807         * src/preproc/html/pre-html.cc (write_start_image): Remove
2808         redundant output.
2809         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
2811         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
2812         \C'hy' caused an assertion failure.
2814         * src/roff/troff/env.cc (environment::environment): Initialize
2815         `emitted_node'.
2816         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
2818 2002-04-10  Werner LEMBERG  <wl@gnu.org>
2820         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
2821         Document pvs request and .pvs register.
2823 2002-04-09  Werner LEMBERG  <wl@gnu.org>
2825         * doc/groff.texinfo: Improve and fix documentation of diversions
2826         and environments.
2828 2002-04-08  Werner LEMBERG  <wl@gnu.org>
2830         * doc/groff.texinfo: Fix documentation of drawing functions.
2831         Other minor fixes.
2833 2002-04-07  Werner LEMBERG  <wl@gnu.org>
2835         * doc/groff.texinfo: Better documentation of double quotes as
2836         arguments.
2837         Other minor fixes.
2839 2002-04-06  Werner LEMBERG  <wl@gnu.org>
2841         * man/groff_font.man: Document names of special characters better.
2842         * doc/groff.texinfo: Minor improvements.
2844         * tmac/lbp.tmac: Load latin1.tmac.
2845         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
2847         * font/devX*/*: Regenerated (all chars > 0x80 removed).
2849 2002-04-05  Werner LEMBERG  <wl@gnu.org>
2851         * tmac/tty.tmac: Don't use shc request.
2852         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
2853         * NEWS: Updated.
2855         * man/groff_diff.man: Minor fixes.
2857         * font/devlbp/*: Remove all `charXXX' entities.
2859         * src/libs/libgroff/font.cc (font::~font): Deallocate
2860         `special_device_coding'.
2861         (font::load): Use `new' for allocating `special_device_coding'.
2862         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
2863         Removed unused member.
2865 2002-04-05  Werner LEMBERG  <wl@gnu.org>
2867         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
2868         (resource_manager::do_begin_binary,
2869         resource_manager::do_begin_data): Use it.
2871         * doc/texinfo.tex: Updated to version 4.2.
2873         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
2874         (token::zero_width_break): New inline function.
2875         * src/roff/troff/input.cc (token::next): Use it.
2876         (token::description): Updated.
2877         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
2878         (token::add_to_node_list, token::process): Use it.
2879         * NEWS, doc/groff.texinfo: Updated.
2881         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
2882         * tmac/tty.tmac: Add missing backslash.
2884 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
2886         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
2887         `.ps' register instead of `.s' to handle fractional point sizes.
2888         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
2889         limit_box::output): Ditto.
2890         * src/preproc/eqn/other.cc (size_box::compute_metrics,
2891         size_box::output): Ditto.
2892         * src/preproc/eqn/over.cc (over_box::compute_metrics,
2893         over_box::output): Ditto.
2894         * src/preproc/eqn/script.cc (script_box::compute_metrics,
2895         script_box::output): Ditto.
2896         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
2897         sqrt_box::output): Ditto.
2899 2002-04-03  Michael Selway  <mas@ssl.co.uk>
2901         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
2902         Fix typo.
2904 2002-04-03  Werner LEMBERG  <wl@gnu.org>
2906         * doc/homepage.ms: Reduce title size.
2907         * doc/groff.texinfo: Fix documentation of .t register.
2908         Fix handling of colon.
2909         Fix `\' vs. `\\'.
2911         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
2912         only if page length is positive to avoid a loop.
2914         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
2915         tbl.
2917 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
2919         * src/include/nonposix.h, src/roff/groff/pipeline.c:
2920         s/__CYGWIN32__/__CYGWIN__/.
2922 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
2924         * doc/gnu.xpm: New image contributed by Emily Mulley.
2925         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
2926         (homepage.html): Be dependent on gnu.eps.
2927         * doc/homepage.ms: Updated to new image.
2929         * src/devices/grohtml/post-html.cc (html_printer): New member
2930         `sbuf_prev_hpos'.
2931         (html_printer::flush_sbuf, html_printer::set_char): Set it.
2932         (html_printer::sbuf_continuation): Use it.
2934 2002-03-28  Werner LEMBERG  <wl@gnu.org>
2936         * src/libs/libgroff/getopt.c: Updated to latest version.
2938         * tmac/README: More on hyphen.tex license.
2940 2002-03-26  Larry Kollar  <kollar@alltel.net>
2942         * doc/groff.texinfo: Add documentation of most missing requests.
2944 2002-03-25  Werner LEMBERG  <wl@gnu.org>
2946         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
2947         of `+-', `mu', and `di', respectively.
2949         * font/devascii/R.proto, font/devutf8/R.proto,
2950         font/devlatin1/R.proto, font/devhtml/R.proto,
2951         font/devcp1047/R.proto, font/devlpb/*: Add them.
2952         * font/devps/generate/textmap: Ditto.
2953         * font/devps/*: Regenerated.
2954         * font/devlj4/generate/text.map: Add them.
2955         * font/devlj4/*: Regenerated.
2956         * font/devdvi/generate/tc.map: Use them.
2957         * font/devdvi/generate/texsy.map: Add them.
2958         * font/devdvi/*: Regenerated.
2959         * font/devX*/*: Regenerated.
2961         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
2962         tmac/tty-char.tmac: Updated.
2964         * NEWS, man/groff_char.man: Updated.
2966 2002-03-24  Werner LEMBERG  <wl@gnu.org>
2968         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
2969         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
2970         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
2971         we use `.fchar' in dvi.tmac.
2972         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
2973         * tmac/Xps.tmac: Simplify some char definitions.
2974         Add definition for \[f/].
2975         * man/groff_char.man: Updated for new X.tmac.
2977         * tmac/README: New file.
2979 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
2981         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
2982         internal .y.o rule took precendence over the .y.cc rule, compiling
2983         the yacc files with gcc instead of g++.
2985 2002-03-23  Werner LEMBERG  <wl@gnu.org>
2987         * tmac/dvi.tmac: Add replacement font for `CB'.
2989         * tmac/doc.tmac: s/request/macro/ in messages.
2990         (doc-generic-macro): Improve error message.
2991         * tmac/groff_mdoc.man: Minor improvements.
2993 2002-03-22  Werner LEMBERG  <wl@gnu.org>
2995         * doc/groff.texinfo: Document possible conflict between `tr' and
2996         `char' requests.
2998 2002-03-21  Werner LEMBERG  <wl@gnu.org>
3000         Improve handling of hyphenation patterns.  It is now possible to
3001         use most of TeX's pattern files unmodified.  To make the process
3002         more flexible, a new request `hpfcode' has been added which
3003         provides a character code mapping for the `hpf' request.  See
3004         comment before hpf_getc() for more details.
3006         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
3007         functions.
3008         (read_patterns_file): Additional parameter for exception dictionary.
3009         Extended to recognize \pattern, \hyphenation, and \endinput.
3010         (do_hyphenation_patterns_file): Updated.
3011         * src/roff/troff/env.h (hpf_code_table): New extern.
3013         * src/roff/troff/input.cc (hpf_code_table): New array.
3014         (init_hpf_code_table, hyphenation_patterns_file_code): New
3015         functions.
3016         (hyphenation_code): Handle translation from `trin' correctly.
3017         (main, init_input_requests): Updated.
3018         (charinfo::set_translation): Handle hyphenation code also.
3020         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
3021         inline function.
3023         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
3024         char' is used for offsets in hyphenation exceptions.
3026         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
3028         * NEWS, man/groff_diff.man, man/groff.man: Document it.
3030 2002-03-20  Larry Kollar  <kollar@alltel.net>
3032         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
3033         requests.
3035 2002-03-18  Werner LEMBERG  <wl@gnu.org>
3037         * tmac/html.tmac: Fix serious typo.
3039 2002-03-17  Larry Kollar  <kollar@alltel.net>
3041         * doc/groff.texinfo: Add documentation for `writec' request.
3043 2002-03-17  Werner LEMBERG  <wl@gnu.org>
3045         Added request `hpfa' to append hyphenation patterns.
3047         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3048         parameter `append'.
3049         (hyphenation_patterns_file): Renamed to...
3050         (do_hyphenation_patterns_file): This.
3051         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
3052         functions.
3053         (init_hyphen_requests): Updated.
3054         * NEWS, man/groff.man, man/groff_diff.man: Document it.
3056 2002-03-16  Werner LEMBERG  <wl@gnu.org>
3058         Added request `writec' in analogy to `tmc'.
3060         * src/roff/troff/input.cc (write_request): Renamed to...
3061         (do_write_request): This.
3062         Added one parameter.
3063         (write_request, write_request_continue): New functions.
3064         (init_input_requests): Updated.
3065         * NEWS, man/groff.man, man/groff_diff.man: Document it.
3067         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
3068         5-10000pt.
3069         * NEWS: Document it.
3071 2002-03-15  Werner LEMBERG  <wl@gnu.org>
3073         * man/groff.man: Add writem request.
3075         Add request `trin' (translate input) to make `.asciify' work
3076         correctly.  This is necessary since `charXXX' entity names are no
3077         longer hardcoded in font definition files.
3079         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
3080         `translate_input' members.
3081         (charinfo::set_asciify_code, charinfo::get_asciify_code,
3082         charinfo::set_translation_input): New methods.
3083         (charinfo::set_translation): Add third argument.
3084         * src/roff/troff/input.cc (charinfo:set_translation): Set
3085         `asciify_code'.
3086         (do_translate): Add second argument.
3087         (translate_input): New function.
3088         (init_input_requests): Updated.
3089         * src/roff/troff/node.cc (glyph_node::asciify,
3090         composite_node::asciify): Use `get_asciify_code'.
3092         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
3094         * NEWS, man/groff.man, man/groff_diff.man: Updated.
3096 2002-03-14  Larry Kollar  <kollar@alltel.net>
3098         * doc/groff.texinfo: Improve documentation of .RS and .RE.
3100 2002-03-14  Werner LEMBERG  <wl@gnu.org>
3102         Add a new request `sizes' similar to the `sizes' command in DESC
3103         files.
3105         * src/roff/troff/env.cc (override_sizes): New function.
3106         (init_env_requests): Use it.
3107         * src/roff/troff/token.h: Export `read_string'.
3108         * NEWS, man/groff_diff.man, man/groff.man: Document it.
3110 2002-03-12  Werner LEMBERG  <wl@gnu.org>
3112         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
3114 2002-03-10  Werner LEMBERG  <wl@gnu.org>
3116         * tmac/pspic.tmac: Add support for -Tdvi.
3117         * tmac/dvi.tmac: Include pspic.tmac.
3118         * src/devices/grodvi/grodvi.man: Document it.
3119         * NEWS: Updated.
3121         * font/devlj4/generate/Makefile: Fix URL of metric files.
3123 2002-03-09  Werner LEMBERG  <wl@gnu.org>
3125         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
3127 2002-03-09  Larry Kollar  <kollar@alltel.net>
3129         * tmac/groff_ms.man: Add documentation for RS and RE macros.
3131 2002-03-08  Werner LEMBERG  <wl@gnu.org>
3133         * doc/groff.texinfo: Fixes for texinfo 4.1.
3135 2002-03-07  Werner LEMBERG  <wl@gnu.org>
3137         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
3138         included.
3139         Handle CYGWIN properly.
3141 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
3143         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
3144         * tmac/lbp.tmac: Add some font translations.
3146 2002-03-02  Werner LEMBERG  <wl@gnu.org>
3148         * font/devcp1047/R.proto, font/devlatin1/R.proto,
3149         font/devhtml/R.proto: Remove `charXXX'  entries.
3150         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
3151         where appropriate.
3153         * font/devlj4/generate/text.map: Remove `charXXX' entries.
3154         * font/devlj4/*: Regenerated all font definition files.
3155         * tmac/lj4.tmac: Load latin1.tmac.
3157         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
3158         from 2000-06-17: LJ4 metric files are *not* text files.
3160         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
3161         register to test for EBCDIC.
3163 2002-03-01  Werner LEMBERG  <wl@gnu.org>
3165         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
3166         files (as grops already does).
3167         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
3168         files.
3169         * src/devices/grops/grops.man: Document comment lines in encoding
3170         files.
3172         * tmac/cp1047.tmac: New file.
3173         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
3174         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
3175         * tmac/Makefile.sub (NORMALFILES): Updated.
3177         * tmac/ec.tmac: Don't load latin1.tmac again.
3179         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
3180         font/devps/generate/dingbats.map,
3181         font/devps/generate/dingbats.rmap, font/devps/text.enc,
3182         font/devps/generate/Makefile (symbolmap): Add header comment.
3183         * font/devps/generate/textmap: Ditto.
3184         Remove `charXXX' entries.
3185         * font/devps/symbolmap: Regenerated.
3186         * font/devps/*: Regenerated all font definition files.
3188 2002-02-28  Werner LEMBERG  <wl@gnu.org>
3190         Add color support to grodvi (for drawing colors are currently
3191         translated to gray values).
3193         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
3194         (dvi_printer): Add `cur_color' member.
3195         (dvi_printer::set_color): New function.
3196         (draw_dvi_printer): Remove `fill'.
3197         (draw_dvi_printer::fill_next): Pass environment as parameter.
3198         Update code for new color support translated to gray.
3199         (dvi_printer::set_char): Updated.
3200         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
3201         changes crossing the page border.
3202         (dvi_printer::draw): Updated.
3203         Remove cases `f' and `F'.
3204         * tmac/dvi.tmac: Add color definitions.
3205         * NEWS, src/devices/grodvi/grodvi.man: Updated.
3207         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
3208         used incorrectly.
3210         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
3211         versions of autoconf.
3212         * configure: Updated.
3214         * doc/homepage.ms: Use `.blm'.
3215         * tmac/www.tmac (www-depth): New auxiliary variable.
3216         (www-pop-level): Don't issue HTML tag.
3217         (ULS, ULE, LI): Use absolute indentation.
3219         * src/devices/grops/ps.cc (ps_printer::begin_page,
3220         ps_printer::end_page): Switch forth and back to default color while
3221         starting a new page.
3223 2002-02-27  Werner LEMBERG  <wl@gnu.org>
3225         Add EC and TC fonts to devdvi.
3227         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
3228         * font/devdvi/generate/cork.map: Renamed to...
3229         * font/devdvi/generate/ec.map: This.
3230         Remove entry for `aq'.
3231         * font/devdvi/generate/tc.map: New file.
3232         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
3233         EC and TC fonts.
3234         (FONTS): Updated.
3235         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
3236         * font/devdvi/Makefile.sub (DEVFILES): Updated.
3237         * tmac/ec.tmac: New file.
3238         * tmac/Makefile.sub (NORMALFILES): Updated.
3239         * NEWS, src/devices/grodvi/grodvi.man: Updated.
3240         * man/groff_char.man: Check `ECFONTS' register.
3242         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
3244 2002-02-26  Werner LEMBERG  <wl@gnu.org>
3246         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
3247         * font/devdvi/generate/cork.map: Add 'y and 'Y.
3248         * font/devdvi/*: Updated.
3249         * tmac/dvi.tmac: Formatting.
3251         Add font `HBI' for the dvi output.
3252         Add support for font families `T' and `H'.
3254         * font/devdvi/HBI: New file.
3255         * font/devdvi/B: Renamed to ...
3256         * font/devdvi/TB: This.
3257         * font/devdvi/BI: Renamed to ...
3258         * font/devdvi/TBI: This.
3259         * font/devdvi/I: Renamed to ...
3260         * font/devdvi/TI: This.
3261         * font/devdvi/R: Renamed to ...
3262         * font/devdvi/TR: This.
3263         * font/devdvi/H: Renamed to ...
3264         * font/devdvi/HR: This.
3265         * font/devdvi/Makefile.sub (DEVFILES): Updated.
3266         * font/devdvi/generate/Makefile (HBI): New rule.
3267         (FONTS): Updated.
3268         (R, I, B, BI, H): Renamed to ...
3269         (TR, TI, TB, TBI, HR): This, respectively.
3270         (srcdir): Fixed.
3271         * NEWS, src/devices/grodvi/grodvi.man: Updated.
3272         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
3273         Add `styles' and `family' keywords.
3274         * tmac/dvi.tmac: Alias `H' to `HR'.
3275         Add some fspecial requests for italic fonts.
3276         Add TR and TI as special.
3277         Add support for `_' with font CWI.
3279         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
3280         operator `:'.  Until now, the expression `0:1' would return 2
3281         instead of 1.
3283 2002-02-25  Werner LEMBERG  <wl@gnu.org>
3285         * man/groff_char.man: Added some missing PS glyph names (from the
3286         Adobe Glyph List).
3287         * font/devps/generate/textmap, font/devps/symbolmap: Add
3288         `arrowupdn'.
3290         * doc/groff.texinfo: Minor additions and fixes.
3291         * man/groff_diff.man: Remove documentation of fp request.  This
3292         is already covered in the original troff manual.
3293         Updated to be consistent with other doc files.
3294         * NEWS: Updated.
3296 2002-02-24  Werner LEMBERG  <wl@gnu.org>
3298         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
3299         TTYDEVDIRS.
3300         Define new variable OTHERDEVDIRS (containing `font/devlj4
3301         font/devlbp' if not EBCDIC).
3302         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
3303         (OTHERDEVDIRS): New variable.
3304         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
3305         * configure: Regenerated.
3307         * NEWS, src/devices/grotty/grotty.man: Updated.
3309 2002-02-23  Werner LEMBERG  <wl@gnu.org>
3311         * src/roff/troff/input.cc (do_overstrike, do_bracket,
3312         get_line_arg): Honour input level.
3314         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
3316         * font/*/*: Implement it in all font files.
3317         * font/devps/generate/textmap, font/devps/generate/symbolchars,
3318         * font/devps/symbolmap: Updated.
3319         * font/devlj4/generate/text.map: Updated.
3320         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
3321         * font/devdvi/generate/texmi.map: Updated.
3323         * font/devutf8/R.proto: Remove all `charXXX' entries.
3324         * font/devutf8/NOTES: Updated.
3326         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
3327         version 4.1.0.
3329         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
3331         * NEWS, man/groff_char.man: Updated.
3333 2002-02-21  Phil Lobbes <phil@perkpartners.com>
3335         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
3337 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3339         * src/roff/grog/grog.pl: Fix computation of $refer.
3341 2002-02-19  Werner LEMBERG  <wl@gnu.org>
3343         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
3344         `snprintf' and `vsnprintf'.
3346         * src/include/htmlindicate.h: Renamed to...
3347         * src/include/htmlhint.h: This.
3348         * src/include/Makefile.sub: Updated.
3349         * src/preproc/eqn/main.cc: Updated.
3351 2002-02-18  Werner LEMBERG  <wl@gnu.org>
3353         * man/roff.man, man/groff_out.man, man/groff.man,
3354         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
3355         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
3357         * win32-diffs: Updated.
3359 2002-02-17  Werner LEMBERG  <wl@gnu.org>
3361         * doc/Makefile (clean): Add *.eps.
3362         (MEMACROS): Removed.
3363         (TFLAG): New variable.
3364         (TROFF): Use it.
3365         Add -ww.
3366         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
3367         (.me.dit): Fixed.
3368         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
3370         * tmac/www.tmac: Use dummy diversion while resetting and disabling
3371         `.tl'.
3372         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
3373         unstripped.
3374         * src/roff/troff/troff.man: Fix order of parameter description.
3376         * NEWS: Updated.
3378 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
3380         Simplify image handling for grohtml.
3381         Fix <p> bug.
3383         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
3384         comment out.
3385         (html_text::dump_stack): Don't emit newline while debugging.
3386         (html_text::do_push) [DEBUGGING]: Print more info.
3387         (html_text::check_emit_text): Fix handling of <p>.
3388         * src/devices/grohtml/html.h: Updated.
3389         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
3390         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
3391         send its data to stderr also.
3392         Update all callers.
3393         (simple_output::space_or_newline) [DEBUGGING]: Removed.
3394         * src/devices/grohtml/post-html.cc (html_printer::do_links,
3395         html_printer::html_printer): Remove `DEBUGGING' conditionals.
3397         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
3398         Removed.
3399         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
3400         is_inline_image): Removed.
3401         (html_begin_suppress, html_end_suppress): Don't take a parameter.
3402         (graphic_start, graphic_end): Removed.
3403         * src/include/htmlindicate.h: Updated.
3404         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
3405         (macroset_template): New global variable.
3406         (makeFileName): Use `macroset_template'.
3407         (write_end_image): Don't take a parameter.
3408         Don't emit newline.
3409         (write_start_image: Don't emit newline.
3410         (char_buffer::write_upto_newline): Updated.
3411         (char_buffer::skip_to_newline): Renamed to ...
3412         (char_buffer::skip_until_newline): This.
3413         Fix code.
3414         (char_buffer::write_file_troff, char_buffer::write_file_html):
3415         Simplified.
3416         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
3417         (removeAllPages): Remove `DEBUGGING' conditionals.
3418         (addRegDef, dump_args): New functions.
3419         (char_buffer::do_html, char_buffer::do_image): Handle
3420         `www-image-template' command line variable.
3421         Add more debugging code.
3422         (addps4html): Removed.
3423         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
3425         * src/preproc/eqn/main.cc: Include `ctype.h'.
3426         (suppress_html): Removed.
3427         (do_file): Updated.
3428         (inline_equation): Use `html_begin_suppress' and
3429         `html_end_suppress'.
3430         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
3431         (troff_output::start_picture, troff_output::finish_picture):
3432         Updated.
3433         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
3434         (process_input_file): Updated.
3436         * src/roff/troff/div.cc (page_number): Set page number only if the
3437         `ps4html' register isn't defined.
3438         * src/roff/troff/input.cc (image_no): New external variable.
3439         (do_suppress): Use it.
3440         * src/roff/troff/node.h (suppress_node::image_id): New member.
3441         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
3442         (suppress_node::suppress_node): Initialize `image_id' member.
3443         (suppress_node::same): Handle `image_id' also.
3444         (suppress_node::copy): Updated.
3445         (last_image_id): New global variable.
3446         (suppress_node::tprint): Use it.
3448         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
3449         HTML-IMAGE-END.
3450         * tmac/pspic.mac (PSPIC): Fix html support.
3451         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
3452         * tmac/www.tmac (www-image-template): Set up.
3453         (HTMLINDEX): Renamed to...
3454         (HX): This.
3455         (BODYCOLOR): Renamed to...
3456         (BCL): This.
3457         (BACKGROUND): Renamed to...
3458         (BGIMG): This.
3459         (URL): Change order of parameters for consistency.
3460         (MAILTO): Renamed to...
3461         (MTO): This.
3462         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
3463         (IMG, PIMG, MPIMG): This.
3464         (HTML-H-BEGIN, HTML-H-END): Renamed to...
3465         (HnS, HnE): This.
3466         (LINKS): Renamed to...
3467         (LK): This.
3468         (LINE): Renamed to...
3469         (HR): This.
3470         (NO-AUTO-RULE): Renamed to...
3471         (NHR): This.
3472         (HTML-TL): Renamed to...
3473         (HTL): This.
3474         (UL-BEGIN, UL-END): Renamed to...
3475         (ULS, ULE): This.
3476         (DROPCAP): Renamed to...
3477         (DC): This.
3478         (TS, TE, EQ, EN): Provide default definitions.
3479         (www-make-unique-name): Updated.
3480         (HTML-IMAGE-INLINE): Fix typo.
3481         * tmac/groff_www.man: Updated.
3483         * doc/Makefile (homepage.html): Add option -r to grohtml.
3484         Use shortened image name.
3485         * doc/groff.texinfo: Updated info on grohtml strings and macros.
3486         * doc/homepage.ms: Updated and extended.
3488 2002-02-14  Werner LEMBERG  <wl@gnu.org>
3490         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
3492         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
3493         SGR_BACK_DEFAULT_COLOR): Replaced with ...
3494         (tty_printer::put_color): Use it.
3495         (ttr_printer::end_page): Simplify.
3497 2002-02-13  Werner LEMBERG  <wl@gnu.org>
3499         * tmac/groff_tmac.man: Moved to...
3500         * man/groff_tmac.man: This place.
3501         * tmac/Makefile.sub, man/Makefile.sub: Updated.
3503 2002-02-12  Werner LEMBERG  <wl@gnu.org>
3505         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
3506         $(COMPILE.c) to not include groff's assert.h.
3508         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
3509         variable.
3510         * NEWS, src/drivers/grotty/grotty.man: Document it.
3512 2002-02-11  Werner LEMBERG  <wl@gnu.org>
3514         * src/libs/snprintf/snprintf.c: Updated to latest version
3515         (2002-02-11).
3517         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
3518         test whether there is `.]' also.
3519         Don't check for spaces after `.['.
3520         * src/roff/grog/grog.sh: Do the same.
3522 2002-02-10  Werner LEMBERG  <wl@gnu.org>
3524         Illegal -> Invalid.
3526         * src/libs/libgroff/illegal.cc: Renamed to ...
3527         * src/libs/libgroff/invalid.cc: This.
3528         (illegal_char_table): Renamed to ...
3529         (invalid_char_table): This.
3530         * src/libs/libgroff/Makefile.sub: Updated.
3531         * win32-diffs: Updated.
3533         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
3534         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
3535         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
3536         font::load), src/preproc/eqn/main.cc (read_line, main),
3537         src/preproc/eqn/lex.cc (file_input::read_line),
3538         src/preproc/pic/lex.cc (file_input::read_line,
3539         simple_file_input::get, simple_file_input::peek),
3540         src/preproc/pic/main.cc (top_input::get, top_input::peek),
3541         src/preproc/pic/pic.man, src/preproc/refer/main.cc
3542         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
3543         do_bib), src/preproc/tbl/main.cc (table_input::get),
3544         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
3545         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
3546         do_zero_width, read_request, encode_char, ps_get_line,
3547         transparent_file, get_char_for_escape_name, transparent_translate,
3548         asciify, input_char_description, read_string, set_string),
3549         src/roff/troff/env.cc (environment::add_html_tag),
3550         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
3552         * src/include/lib.h: Updated.
3554         * src/preproc/eqn/eqn.cc: Removed.
3556         * NEWS: Updated.
3558         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
3560 2002-02-09  Werner LEMBERG  <wl@gnu.org>
3562         * doc/gnu.xpm: New image.
3563         * doc/Makefile (DOCS): Add homepage.ps.
3564         Add rules for converting xpm->png and xpm->eps.
3565         Use `gnu.{xpm,eps}' as image names.
3566         * doc/homepage.ms: Updated.
3568 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
3570         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
3571         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
3572         Remove calls to `B1' and `B2'
3573         (PNG-IMAGE): New macro for inclusion of images in PNG format.
3574         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
3575         auxiliary variables for MARGIN-PNG-IMAGE.
3576         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
3577         auxiliary macros for MARGIN-PNG-IMAGE.
3578         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
3579         the margin.
3580         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
3581         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
3582         (DROPCAP): New macro to produce dropcap characters.
3583         (www-do-image): Renamed back to...
3584         (HTML-DO-IMAGE): This.
3585         Updated all callers.
3587         * doc/Makefile (gnubw.eps): Updated.
3588         * doc/homepage.ms: Updated.
3590 2002-02-08  Werner LEMBERG  <wl@gnu.org>
3592         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
3593         Added `linethick' to table in section `Style Variables'.
3595 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
3597         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
3599 2002-02-07  Werner LEMBERG  <wl@gnu.org>
3601         Adding options -C (compatibility mode) and -c (grotty's old output
3602         scheme) to nroff.
3604         * src/roff/nroff/nroff.sh: Implement it.
3605         Remove `-Wall'.
3606         * NEWS, src/roff/nroff/nroff.man: Updated.
3608         * PROBLEMS: Document bison 1.32 bug.
3610         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
3612         * src/roff/troff/node.cc (make_tfont): Define it earlier.
3613         * src/roff/troff/div.h: Add prototype for `end_diversions'.
3614         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
3615         * src/roff/troff/env.h: Add prototype for `title'.
3617         Adding EBCDIC support to grotty.
3619         * src/devices/grotty/tty.cc (CSI): New macro.
3620         (SGR_*, tty_printer::put_color): Use it.
3622 2002-02-06  Werner LEMBERG  <wl@gnu.org>
3624         Implementing color support in grotty.  The new switch -c activates
3625         the old drawing scheme, disabling color at the same time.  The new
3626         switch `-i' selects italic instead of underlining (SGR only).
3628         * src/devices/grotty/tty.cc (putstring): New define instead of
3629         `fputs'.  Updated all callers.
3630         (old_drawing_scheme): New global variable.
3631         (COLOR_CHANGE): New enum value.
3632         (SGR_*): New defines containing color handling escape sequences.
3633         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
3634         (glyph): New members `back_color_idx' and `fore_color_idx'.
3635         (glyph::order): Add COLOR_CHANGE.
3636         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
3637         `is_underline', `is_bold', `cu_flag', `tty_colors'.
3638         New methods `make_underline', `make_bold', `color_to_idx',
3639         `change_color', `put_color'.
3640         (cu_flag): Moved into `tty_printer' class.
3641         (tty_printer::tty_printer): Initialize colors.
3642         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
3643         tty_printer::draw, tty_printer::end_page): Handle colors also.
3644         (main): Add options `-c' and `-i'.
3645         (usage): Updated.
3646         * NEWS, src/devices/grotty/grotty.man: Updated.
3648         * src/include/errarg.h (errarg): Add support for `unsigned int'.
3649         * src/libs/libgroff/errarg.c: Implement it.
3651         * src/include/printer.h (printer): Add `change_color' method
3652         (currently used by grotty only).
3653         * src/libs/libdriver/printer.cc: Implement it.
3654         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
3655         call to `pr->change_color'.
3657         * src/roff/troff/node.cc (troff_output_file::fill_color,
3658         troff_output_file::glyph_color): Call `do_motion'.
3660         * tmac/tty.tmac: Add color definitions.
3662         * src/roff/groff/groff.man: Minor fixes.
3664 2002-02-05  Bernd Warken  <bwarken@mayn.de>
3666         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
3667         it.  This is a preparation for future changes.
3669 2002-02-05  Werner LEMBERG  <wl@gnu.org>
3671         * src/roff/troff/input.cc (process_input_stack): Fix the case
3672         where leading spaces are followed by \f or \s; previously, an
3673         incorrect space width has been used.
3675         * doc/roff.man (quoted_char): Fix argument.
3676         (comment): Define string.
3678 2002-02-04  Larry Kollar  <kollar@alltel.net>
3680         * doc/groff.texinfo: More fixes.
3682 2002-02-04  Werner LEMBERG  <wl@gnu.org>
3684         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
3685         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
3686         `restore_compatibility' before `output_string' -- the LINE_STRING
3687         register now already contains proper switches from and to
3688         compatibility mode.
3690         * man/groff_char.man: Add Euro symbol.
3691         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
3692         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
3693         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
3694         Other minor fixes.
3696         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
3697         texinfo->pdf.
3698         (.texinfo.html): Add support for texinfo->html.
3700 2002-02-03  Werner LEMBERG  <wl@gnu.org>
3702         Added three new requests `ds1', `as1', and `ami'.  The former two
3703         are equivalent to `ds' and `as' with the difference that
3704         compatibility mode is saved on entry, switched off during string
3705         expansion, and restored on exit.  The latter is the pendant to `dei'
3706         for `am'.
3708         (do_define_string): Use `define_mode' and `calling mode'.
3709         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
3710         end of string, respectively.
3711         (define_string, append_string): Use `calling_mode'.
3712         (define_nocomp_string, append_nocomp_string,
3713         define_string_indirect): New functions.
3714         (init_input_requests): Updated.
3715         * NEWS, man/groff_diff.man, man/groff.man: Document it.
3717         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
3718         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
3719         mm macro package accesses this string register directly.
3720         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
3722         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
3723         compatibility mode.
3725 2002-02-02  Larry Kollar  <kollar@alltel.net>
3727         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
3729 2002-01-31  Werner LEMBERG  <wl@gnu.org>
3731         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
3733 2002-01-31  Bernd Warken  <bwarken@mayn.de>
3735         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
3736         * man/groff_out.man: Revised and updated.
3738 2002-01-30  Bernd Warken  <bwarken@mayn.de>
3740         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
3741         out the unused `{' and `}' commands.  Undefined by default.
3742         (IntArray): Make `data' private.
3743         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
3744         new methods instead.
3745         (skip_line_D, skip_to_end_of_line): New functions.
3746         (get_D_fixed_args): Use `skip_line_D'.
3747         Changed to handle dummy odd arguments by ...
3748         (get_D_fixed_args_odd_dummy): This new function.
3749         (get_D_variable_args): Split some code into ...
3750         (get_possibly_integer_args): This new function.
3751         (send_draw): Use more `const'.
3752         (delete_current_env): New function.
3753         (position_to_end_of_args): Use `size_t'.
3754         Updated.
3755         (send_draw): Updated.
3756         (parse_D_command): Handle `c', `C', and `t' better.
3757         Updated.
3758         (do_file): Updated.
3760 2002-01-29  Werner LEMBERG  <wl@gnu.org>
3762         * NEWS: Revised.
3763         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
3764         @Def...ListEnd which replaces @Def...x.  This is necessary to get
3765         proper HTML output -- see the comment in the file for more
3766         information.
3767         Updated all calls.
3769 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
3771         Fixes to make color changes of 2002-01-21 work with grohtml.
3773         * src/devices/grohtml/post-html.cc (style): Updated.
3774         (html_printer): Remove unused methods.
3775         (html_printer::do_font, html_printer::draw, html_printer::set_char,
3776         html_printer::special): Updated.
3777         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
3778         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
3779         Added some debugging code.
3780         (html_text::start_tag): Updated.
3781         (html_text::do_push): New method.
3782         (html_text::push_para): Call it.
3783         Add method for handling color.
3784         (html_text::do_color): Updated.
3785         (html_text::shutdown): Handle color.
3786         * src/devices/grohtml/html-text.h (tag_definition): New member
3787         `col'.
3788         Updated.
3790 2002-01-28  Werner LEMBERG  <wl@gnu.org>
3792         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
3794 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
3796         Add two switches -a and -g to control the antialiasing bits for
3797         text and graphics, respectively.
3799         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
3800         `-g'.
3801         * src/devices/grohtml/grohtml.man: Document them.
3802         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
3803         New macros.
3804         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
3805         (setupAntiAlias): New function.
3806         (createAllPages): Updated.
3807         (scanArguments): Handle `-a' and `-g'.
3808         (main): Call `setupAntiAlias'.
3809         * NEWS: Updated.
3811 2002-01-27  Werner LEMBERG  <wl@gnu.org>
3813         * doc/groff.texinfo (Def*): Call index function after deffn.
3815         * tmac/html.tmac: Call `nroff' request.
3817 2002-01-26  Larry Kollar  <kollar@alltel.net>
3819         * tmac/groff_ms.man: Add some omissions.
3821 2002-01-25  Larry Kollar  <kollar@alltel.net>
3823         * tmac/groff_ms.man: Typographical improvements.
3825 2002-01-25  Werner LEMBERG  <wl@gnu.org>
3827         * doc/groff.texinfo: Updated version and copyright.
3828         * src/devices/grops/grops.man: Updated.
3830         * tmac/groff_tmac.man: Fix `ig' macro.
3832         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
3833         nroff mode.
3834         Use `.ne' unconditionally everywhere.
3835         (TS): Only insert some vertical space.  Doing a page break is no
3836         longer necessary due to the redefinition of the `ne' request.
3838         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
3839         warning for unknown subcommands but parse and pass them to the
3840         device driver.
3842 2002-01-24  Werner LEMBERG  <wl@gnu.org>
3844         * tmac/groff_www.man, NEWS: Fix typos.
3846 2002-01-21  Werner LEMBERG  <wl@gnu.org>
3848         Complete revision of color support:
3850           Adapt programs to the new libdriver/input.cc.
3852           Color spaces are no longer converted to RGB but transferred as-is
3853           in the troff intermediate output format.
3855           Handle default color gracefully.  troff now supports a `default'
3856           color (which can't be changed).
3858           grops will now use the proper color space functions if available.
3860           Update pic.
3862         Note that currently grohtml doesn't handle colors properly.  This
3863         has to be fixed.
3865         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
3866         (ui_to_a): New function.
3867         * src/include/lib.h: Updated.
3869         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
3870         (color): Simplified; removed all `double' members and methods.
3871         A new array `components' now holds the color parameters.
3872         (color::is_default, color::get_components): New methods.
3873         (color::operator==, color:operator!=): New.
3874         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
3875         to make access to the `components' array more comprehensible.
3876         * src/libs/libgroff/color.cc: Implement new color support.
3877         (atoh): Small fixes.
3878         (color::read_encoding): Simplified for new troff intermediate color
3879         output format.
3880         (default_color): New global variable.
3882         * src/roff/troff/input.cc (default_symbol): New global variable.
3883         (lookup_color): Use it.
3884         (default_black): Removed.
3885         (do_glyph_color, do_fill_color): Simplified.
3886         (define_color): Handle default color.
3887         Improve warnings.
3888         (do_if_request): Handle default color.
3889         * src/roff/troff/env.cc (environment::environment): Initialize
3890         colors with `default_color'.
3891         * src/roff/troff/node.cc (troff_output_file::put): Add method
3892         for `unsigned int'.
3893         (troff_output_file::hex): Removed.
3894         (troff_output_file::fill_color, troff_output_file::glyph_color):
3895         Updated to include/color.h and libdriver/input.cc.
3897         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
3898         fill color properly (identically to the outline color).  \D'f...'
3899         doesn't work any more.
3900         All function calls to it updated.
3902         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
3903         Updated.
3904         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
3905         Updated.
3907         * src/devices/grops/ps.cc (ps_output::put_color): New method.
3908         (ps_printer::sbuf_color): Make a real member instead of pointer.
3909         (ps_printer::fill_color, ps_printer::output_color): Removed.
3910         (ps_printer::ps_printer): Updated.
3911         (ps_printer::set_char): Ditto.
3912         (ps_printer::set_color): Use various color schemes.
3913         Use `put_color' method.
3914         (ps_printer::flush_sbuf): Don't set color.
3915         (ps_printer::fill_path): Take `environment' as parameter.
3916         Simplify color handling.
3917         (ps_printer::set_line_thickness): Renamed to ...
3918         (ps_printer::set_line_thickness_and_color): This (and updated).
3919         (ps_printer::set_color): Change second parameter from `complete'
3920         to `fill' which better describes what it does.
3921         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
3922         and text in the right order.
3923         Updated.
3924         Remove branches for `f' and `F'; this is handled by
3925         libdriver/input.cc.
3926         * src/devices/grops/ps.h: Updated.
3927         * font/devps/prologue (FL): Redefined.
3928         ({F,C}r,k,g: New color functions (with and without filling).
3930         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
3931         * man/groff_diff.man, man/groff.man, man/groff_out.man,
3932         doc/groff.texinfo, NEWS: Updated.
3934 2002-01-20  Bernd Warken  <bwarken@mayn.de>
3936         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
3937         in this file for what has been changed.
3939 2002-01-19  Werner LEMBERG  <wl@gnu.org>
3941         * test-groff: Fix GROFF_FONT_PATH.
3942         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
3943         is read before .TH or .Dd is parsed.
3945 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
3947         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
3948         quadrant boundaries.
3950 2002-01-18  Werner LEMBERG  <wl@gnu.org>
3952         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
3953         applied last patch.
3955 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
3957         * tmac/doc.common: Initialize %I register for the %I macro to
3958         avoid (harmless) warning.
3959         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
3960         when in the SYNOPSIS section.
3962 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
3964         * src/preproc/pic/lex.cc (get_token): Fix typo.
3966 2002-01-17  Werner LEMBERG  <wl@gnu.org>
3968         * devices/grops/ps.cc: Fix incorrectly applied last patch.
3970 2002-01-17  Larry Kollar  <kollar@alltel.net>
3972         * tmac/groff_ms.man: Completely rewritten.
3974 2002-01-16  Werner LEMBERG  <wl@gnu.org>
3976         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
3978 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
3980         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
3981         fill colors.
3982         (ps_printer::draw): Ditto.
3984 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
3986         * tmac/groff_mdoc.man: Minor fixes.
3988 2002-01-13  Werner LEMBERG  <wl@gnu.org>
3990         * man/groff_out.man: Some fixes.
3992 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
3994         * doc/pic.ms: Fix typos.
3996 2002-01-12  Werner LEMBERG  <wl@gnu.org>
3998         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
4000 2002-01-10  Werner LEMBERG  <wl@gnu.org>
4002         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
4003         symbols.
4004         * NEWS: Updated.
4006 2002-01-09  Bernd Warken  <bwarken@mayn.de>
4008         * man/groff_out.man: Revised.
4009         * man/roff.man: Minor fixes.
4010         * src/roff/troff/troff.man: Some reordering.
4012 2002-01-09  Werner LEMBERG  <wl@gnu.org>
4014         * tmac/an-old.tmac: Add dummy macros for equation support.
4016 2002-01-07  Werner LEMBERG  <wl@gnu.org>
4018         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
4020         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
4021         man pages.
4022         * tmac/groff_man.man: Small improvements.
4024 2002-01-07  Bernd Warken  <bwarken@mayn.de>
4026         * man/groff_diff.man: Revised.
4028 2002-01-06  Werner LEMBERG  <wl@gnu.org>
4030         * tmac/www.tmac: Remove extraneous backslash.
4032 2002-01-06  Bernd Warken  <bwarken@mayn.de>
4034         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
4036 2002-01-05  Werner LEMBERG  <wl@gnu.org>
4038         Integrated groffer, contributed by Bernd Warken.
4040         * contrib/groffer/*: New.       
4041         * Makefile.in, NEWS: Updated.
4043 2002-01-04  Werner LEMBERG  <wl@gnu.org>
4045         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
4046         registers defined in macro packages.
4047         Revising the ms part.
4049 2002-01-04  Larry Kollar  <kollar@alltel.net>
4051         * doc/groff.texinfo: Add documentation for ms macros.
4053 2002-01-02  Werner LEMBERG  <wl@gnu.org>
4055         First step in adding PS support for the Euro symbol.  `eu' is the
4056         official Euro logo, `Eu' is a font-specific glyph variant.
4058         * font/devps/text.enc: Add `Euro' at position 9.
4059         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
4060         * font/devps/symbolmap: Regenerated.
4062         * NEWS: Updated.
4064 2002-01-02  Bernd Warken  <bwarken@mayn.de>
4066         * man/roff.man: Revised.
4068 2002-01-01  Bernd Warken  <bwarken@mayn.de>
4070         * src/roff/groff/groff.man: Completely rewritten.
4072 2001-12-31  Werner LEMBERG  <wl@gnu.org>
4074         * doc/Makefile: Updated.
4076 2001-12-30  Werner LEMBERG  <wl@gnu.org>
4078         * tmac/www.tmac: Make all names of internal macros/registers/strings
4079         lowercase, and prepend `www-'.
4080         Other minor changes.
4081         * src/roff/troff/troff.man: Add preprocessor string at BOF.
4083 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
4085         Implement option `-b' in grohtml to set the HTML background colour.
4087         * src/devices/grohtml/post-html.cc (default_background): New global
4088         variable.
4089         (html_printer::html_printer): Initialize `background' to
4090         `default_background'.
4091         (main): Implement option `-b'.
4092         (usage): Updated.
4093         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
4094         of `-b' option.
4095         * src/devices/grohtml/grohtml.man: Updated.
4096         * doc/Makefile (.ms.html): Use `-b'.
4097         * tmac/html.tmac: Don't set background color.
4099         Add new grohtml tag `.html-tl'.
4101         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
4102         member variable.
4103         (title_desc::title_desc): Updated.
4104         (html_printer::troff_tag): Handle `.html-tl'.
4105         (html_printer::write_title): Use `with_h1'.
4106         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
4107         (HTML-TL): New macro.
4109         Add support for unordered lists in HTML.
4111         * tmac/www.tmac (www-level): New auxiliary register.
4112         (www-level1, www-level2, www-level3): New auxiliary strings.
4113         (www-push-level, www-pop-level): New auxiliary macros
4114         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
4116         Miscellaneous.
4118         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
4119         (DEFAULT_VERTICAL_OFFSET): Removed.
4120         (IMAGE_BOARDER_PIXELS): Set to 0.
4121         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
4122         (vertical_offset): Initialize with 0.
4123         (gsPaper): New global variable.
4124         (get_resolution): Scan for and return unsigned int.
4125         (get_papersize): New function to get paper length from devps/DESC.
4126         (determine_vertical_offset): New function.
4127         (createAllPages): Produce gray-level images and use proper page
4128         length.
4129         (createImage): Use `-quiet' option of pnmcrop.
4130         (addZ): Fix passing of `-Z'.
4131         (scanArguments): Fix handling of `-o'.
4132         (main): Call `determine_vertical_offset'.
4133         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
4134         code for `l'.
4136         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
4137         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
4138         glyph descenders properly.
4140         * doc/homepage.ms: Include `gnubw.eps'.
4141         * doc/Makefile (gnubw.eps): New rule.
4142         (homepage.html): Depend on `gnubw.eps'.
4144 2001-12-25  Werner LEMBERG  <wl@gnu.org>
4146         * src/roff/troff/input.cc (default_black): Fix return value.
4148 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
4150         * tmac/doc-common (Dt): Change output of architecture strings.
4151         Do some syntax cleanup.
4152         * tmac/groff_mdoc.man: Updated.
4154 2001-12-23  Werner LEMBERG  <wl@gnu.org>
4156         Adding an `itc' request (input line trap accepting \c).
4158         * src/roff/troff/env.h (environment): New member
4159         `continued_input_trap'.
4160         Make `do_input_trap' a friend function instead of `input_trap'.
4161         * src/roff/troff/env.cc (environment::environment,
4162         environment::copy): Updated.
4163         (environment::newline): Implement it.
4164         (do_input_trap): New function.
4165         (input_trap): Call `do_input_trap'.
4166         (input_trap_continued): New function.
4167         (init_env_requests): Updated.
4168         * src/roff/troff/TODO: Updated.
4170         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
4171         `.it'.
4173         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
4175 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
4177         * tmac/doc-common, tmac/doc-syms: Small updates.
4179 2001-12-22  Colin Watson  <cjwatson@debian.org>
4181         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
4183 2001-12-22  Bernd Warken  <bwarken@mayn.de>
4185         * MANIFEST: New file.
4187 2001-12-22  Werner LEMBERG  <wl@gnu.org>
4189         * src/preproc/grn/grn.man: Updated.
4191 2001-12-22  Solar Designer  <solar@openwall.com>
4193         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
4194         (DBRead): Use it.
4196 2001-12-19  Werner LEMBERG  <wl@gnu.org>
4198         Implement a fallback character request `.fchar'.
4200         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
4201         (is_fallback): New inline function.
4202         * src/roff/troff/input.cc (do_define_character): New function.
4203         (define_character): Call `do_define_character'.
4204         (define_fallback_character): New function.
4205         (init_input_requests): Add `fchar'.
4206         (charinfo::charinfo): Updated.
4207         (charinfo::set_macro): New argument to set `fallback' flag.
4208         * src/roff/troff/node.cc (make_glyph_node, make_node,
4209         node::add_char): Check `fallback' flag.
4210         * NEWS, man/groff_diff.man, man/groff_man: Updated.
4212 2001-12-16  Werner LEMBERG  <wl@gnu.org>
4214         * groff.texinfo: Document exact search algorithm for glyphs.
4216 2001-12-15  Werner LEMBERG  <wl@gnu.org>
4218         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
4219         the left side of $(MANPAGES) rule to make it always non-empty.
4221 2001-12-14  Werner LEMBERG  <wl@gnu.org>
4223         * src/roff/troff/input.cc (default_black): Define default color
4224         `black' if not yet defined.
4226 2001-12-13  Werner LEMBERG  <wl@gnu.org>
4228         Implement new string-valued register `.fn' to return the current
4229         real (internal) font name.
4231         * env.cc (environment::get_font_name_string): New function.
4232         (init_env_requests): Add `.fn' register.
4233         * env.h (environment): Updated.
4234         * node.cc (font_info): Make `get_font_name' a friend.
4235         (get_font_name): New function.
4236         * node.h: Updated.
4238         * man/groff_diff.man, man/groff.man, NEWS: Updated.
4240 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4242         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
4244 2001-12-12  Werner LEMBERG  <wl@gnu.org>
4246         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
4248 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
4250         * man/groff_diff.man: Adding documentation for \O.
4252 2001-12-10  Werner LEMBERG  <wl@gnu.org>
4254         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
4255         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
4257 2001-12-09  Werner LEMBERG  <wl@gnu.org>
4259         * man/roff.man: Revised.
4260         * src/roff/groff/groff.man: Replace man page references with a
4261         pointer to roff.man.
4263 2001-12-09  Bernd Warken  <bwarken@mayn.de>
4265         * man/roff.man: Completely rewritten.
4267 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4269         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
4271 2001-12-05  Werner LEMBERG  <wl@gnu.org>
4273         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
4274         longer used.
4275         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
4276         order of initializers.
4277         * NEWS: Updated.
4279 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
4281         * doc/groff.texinfo: Fix documentation of \O.
4283         * src/devices/grohtml/html-text.cc (html_text::do_indent,
4284         html_text::do_table, html_text::do_emittext, html_text::do_para):
4285         Use `const' for first argument.
4286         (html_text::do_table): Use cast.
4287         * src/devices/grohtml/html-text.h: Updated.
4288         * src/devices/grohtml/output.cc (simple_output::put_string): Add
4289         method for `const string &s'.
4290         * src/devices/grohtml/html.h: Updated.
4291         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
4292         (ANCHOR_TEMPLATE): Modified.
4293         (manufacture_headings): New global variable to handle `-h' option.
4294         (is_subsection): Removed.
4295         (char_buffer::add_string): Add `const' to first argument.
4296         Protect against invalid string argument.
4297         Add method for `const string &s'.
4298         (text_glob): Completely redesigned.
4299         (page): Use `const' for strings and remove string length variable.
4300         (page::add_html): Removed.
4301         (page::add_end_encode): New member function.
4302         (to_unicode): Moved upwards.
4303         (title_desc, header_desc): Updated.
4304         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
4305         definition.
4306         (html_printer::is_bold, html_printer::make_bold): New member
4307         functions.
4308         (html_printer::end_of_line): Updated.
4309         (generate_img_src, html_printer::do_auto_image,
4310         html_printer::do_title, html_printer::write_header,
4311         html_printer::determine_header_level, html_printer::do_heading,
4312         html_printer::do_linelength, html_printer::do_pageoffset,
4313         html_printer::do_indentation, html_printer::do_tempindent,
4314         html_printer::do_indentedparagraph, html_printer::do_break,
4315         html_printer::flush_sbuf, get_html_translation,
4316         html_printer::begin_page, html_printer::special): Rewritten to get
4317         rid of static string length limit.
4318         (html_printer::troff_tag): Added `.no-auto-rule'.
4319         (html_printer::flush_globs): Small fix.
4320         (html_printer::determine_space): Don't compute `space_width'.
4321         (html_printer::translate_to_html): Renamed to ...
4322         (html_printer::emit_html): This (with updates).
4323         (html_printer::write_header): Implement `-h' option.
4324         (html_printer::draw): Remove commented-out code.  Handle `F'
4325         command.
4326         (html_printer::add_char_to_sbuf): Removed.
4327         (html_printer::add_to_sbuf): Rewritten.
4328         (html_printer::sbuf_continuation): Fixed.
4329         (html_printer::seen_backwards_escape, reverse,
4330         html_printer::remove_last_char_from_sbuf): Removed.
4331         (char_translate_to_html, str_translate_to_html): Removed.
4332         (html_printer::overstrike): New function member.
4333         (html_printer::set_char): Use it.
4334         (html_printer::do_body): New function member.
4335         (html_printer::~html_printer): Use it.
4336         (main): Handle `-h' option.
4337         (usage): Updated.
4338         * src/devices/grohtml/grohtml.man: Document -h switch.
4340         * src/preproc/html/pre-html.cc: Include searchpath.h
4341         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
4342         (get_resolution): New function.
4343         (checkImageDir): Use `0777' permissions in mkdir()
4344         (write_start_image): Rewritten to use `\O[5...]'.
4345         (createImage, generateImages): Updated.
4346         (main): Handle `F' and `h' options.
4347         Use `get_resolution'.
4349         * src/roff/troff/input.cc (begin, end, image): Removed.
4350         (do_suppress): Take parameter.
4351         Handle modified syntax of `\O'.
4352         (token::next): Updated.
4353         (init_markup_requests): Removed.
4354         (main): Updated.
4356         * src/roff/troff/div.h: Add declaration for begin_page().
4358         * tmac/color-html.tmac: Removed.  Contents moved to...
4359         * tmac/html.tmac: Here.  Set background color.
4360         * tmac/color.tmac: Removed.  Contents moved to...
4361         * tmac/ps.tmac: Here.
4362         * tmac/www.tmac: Remove the title command when generating images
4363         for html.
4364         (NO_AUTO_RULE): New macro.
4365         (HTML_DO_IMAGE): Use revised `\O' escapes.
4366         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
4368 2001-12-02  Werner LEMBERG  <wl@gnu.org>
4370         * tmac/groff_mdoc.man: Fix typo.
4372 2001-12-01  Colin Watson  <cjwatson@debian.org>
4374         * man/roff.man: Fix typo.
4376 2001-11-29  Werner LEMBERG  <wl@gnu.org>
4378         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
4379         stdlib.h.
4381         * src/roff/troff/input.cc (read_draw_node): Emit error message if
4382         more than one argument to \D'f ...'.
4384         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
4386 2001-11-28  Werner LEMBERG  <wl@gnu.org>
4388         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
4389         loaded only once.
4391         * tmac/groff_man.man: Minor cosmetic fix.
4393 2001-11-27  Werner LEMBERG  <wl@gnu.org>
4395         * src/roff/groff/groff.man, tmac/groff_tmac.man,
4396         tmac/groff_www.man: s/mwww/www/.
4398 2001-11-26  Werner LEMBERG  <wl@gnu.org>
4400         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
4401         * configure: Regenerated.
4402         * win32-diffs: Updated.
4404         * tmac/groff_mwww.tmac: Renamed to ...
4405         * tmac/groff_www.tmac: This.
4406         * tmac/mwww.tmac: Removed.
4407         * NEWS, tmac/Makefile.sub: Updated.
4409 2001-11-21  Werner LEMBERG  <wl@gnu.org>
4411         * doc/groff.texinfo: Improve documentation of the `\v' escape.
4412         Fix explanation of `\D' and `rt'.
4414 2001-11-20  Werner LEMBERG  <wl@gnu.org>
4416         * tmac/an-old.tmac (an-header): Set header length equal to page
4417         width.
4418         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
4419         minor fixes.
4420         * NEWS: Small fix.
4422 2001-11-19  Werner LEMBERG  <wl@gnu.org>
4424         * NEWS, man/Makefile.sub: Updated.
4426 2001-11-19  Bernd Warken  <bwarken@mayn.de>
4428         * man/ditroff.man: New file.
4430 2001-11-17  Werner LEMBERG  <wl@gnu.org>
4432         * man/groff_differences.man: Renamed to ...
4433         * man/groff_diff.man: This.  Updated.
4434         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
4436         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
4437         * src/preproc/html/pushback.cc: This.  Updated.
4438         * src/preproc/html/pushbackbuffer.h: Renamed to ...
4439         * src/preproc/html/pushback.h: This.
4440         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
4441         Updated.
4443         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
4444         * src/libs/libgroff/htmlhint.cc: This.
4445         * src/libs/libgroff/Makefile.sub: Updated.
4447         * tmac/an-old.tmac (an-end): Fix page length.
4449 2001-11-16  Werner LEMBERG  <wl@gnu.org>
4451         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
4452         * man/Makefile.sub: Include groff_differences.man.
4453         * VERSION: Set to 1.18.
4454         * REVISION: Set to 0.
4456 2001-11-16  Bernd Warken  <bwarken@mayn.de>
4458         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
4459         the second dot (or ending macro name) to end a macro.
4460         * doc/groff.texinfo: Doc fix.
4462 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
4464         * tmac/doc-common (doc-header): Handle very long document titles
4465         better.
4467 2001-11-16  Werner LEMBERG  <wl@gnu.org>
4469         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
4471 2001-11-15  Werner LEMBERG  <wl@gnu.org>
4473         * src/roff/troff/troff.man: Revised and split into troff.man and...
4474         * man/groff_differences.man: New file.
4475         * NEWS: Updated.
4477 2001-11-13  Werner LEMBERG  <wl@gnu.org>
4479         * tmac/an-old.tmac (TS, TE): New macros for table support.
4481 2001-11-12  Werner LEMBERG  <wl@gnu.org>
4483         * src/include/lib.h: Provide a fix for emx to not include
4484         groff-getopt.h.
4486 2001-10-27  Werner LEMBERG  <wl@gnu.org>
4488         * src/roff/troff/input.cc (substring_macro): Fix computation of
4489         boundary values.
4491 2001-10-20  Werner LEMBERG  <wl@gnu.org>
4493         Undo change from 2001-08-28.
4495         * src/roff/troff/input.cc (have_input): New global variable.
4496         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
4497         in compatibility mode.
4498         (process_input_stack): Use it.
4500 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
4502         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
4503         being handled as end-of-sentence characters,
4505 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
4507         * src/roff/troff/input.cc (file_iterator): New members
4508         `suppress_newline_flag' and `seen_escape'.
4509         (file_iterator::next_file): Updated.
4510         (file_iterator::fill): Use it.
4511         (string_iterator): New member `suppress_newline_flag'.
4512         (string_iterator::fill): Set it.
4513         (get_color_element): Use MAX_COLOR_VAL.
4514         * src/roff/troff/env.cc (environment): Remove `need_eol'.
4515         (no_fill): Don't set `env->ignore_next_eol'.
4516         (environment::newline): Handle `eol' tag properly.
4517         Emit `eol.ce'.
4518         (environment::add_html_tag): Set `env->ignore_next_eol'.
4519         Don't handle `.ce'.
4520         * src/roff/troff/env.h (environment): Updated.
4522         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
4523         member function.
4524         (html_printer::outstanding_eol): New member function.
4525         (html_printer::do_title): Use new functions.
4526         (html_printer::troff_tag): Test `id_eol_ce'.
4528 2001-10-10  Werner LEMBERG  <wl@gnu.org>
4530         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
4531         files work with -C also.
4533 2001-10-05  Werner LEMBERG  <wl@gnu.org>
4535         * doc/pic.ms: Minor fix.
4536         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
4537         as a valid command line switch.
4538         * src/devices/grohtml/post-html.cc (main): Ditto.
4539         (usage): Updated.
4540         * src/devices/grohtml/grohtml.man: Updated.
4541         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
4543 2001-10-04  Werner LEMBERG  <wl@gnu.org>
4545         Implementing color support in troff, pic, grops, and grohtml.  These
4546         changes are based on a major patch provided by Gaius Mulley
4547         <gaius@glam.ac.uk>.
4549         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
4550         definitions with both hex values and fractions.
4552         New escapes: \m and \M for drawing and background color,
4553         respectively.  This corresponds to the troff output commands `m'
4554         and `DF'.
4556         groff and troff accept command line switch `-c' to disable color
4557         output (which is automatically disabled in compatibility mode).
4559         New scaling indicator `f' for fractions (1f = 65536u).
4561         New conditional operator `m' to test for defined colors with `if'
4562         and `ie'.
4564         New keywords `color' (or `colour', `colored', `coloured'), `outline'
4565         (or `outlined'), and `shaded' added to pic.
4567         * src/include/color.h: New file.
4568         * src/include/driver.h: Include it.
4569         * src/include/printer.h: Include color.h.
4570         (environment): New members `col' and `fill'.
4571         (printer): Remove `adjust_arc_center' member function.
4572         * src/include/Makefile.sub: Updated.
4574         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
4575         `env.fill'.
4576         Handle `m' and `DF' troff commands.
4577         * src/libs/libgroff/color.cc: New file.
4578         * src/libs/libgroff/Makefile.sub: Updated.
4580         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
4581         (stop): Removed.
4582         (createImage): Fix computation of `y2'.
4583         Use `pnmcrop' also.
4584         (buffer::write_file_html): Remove calls to `stop'.
4586         * src/preproc/pic/common.h (common_output): New abstract function
4587         members `set_color', `reset_color', `get_last_filled', and
4588         `get_outline_color'.
4589         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
4590         (object_spec): Add members `shaded' and `outlined'.
4591         * src/preproc/pic/output.h (output): `command' is now abstract.
4592         New function members `set_color', `reset_color', `get_last_filled',
4593         and `get_outline_color'.
4594         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
4595         `outline[d]', and `shaded'.
4596         * src/preproc/pic/object.cc (output::command): Removed.
4597         (output::set_location): Moved to output.h.
4598         (graphic_object): Add protected members `outline_color' and
4599         `color_fill'.
4600         Add member functions `set_outline_color', `get_outline_color', and
4601         `set_fill_color'.
4602         (closed_object): Add member function `set_fill_color'.
4603         Add member `color_fill'.
4604         (graphic_object::print_text): Use `out->set_color' and
4605         `out->reset_color'.
4606         (box_object::print, ellipse_object::print, circle_object::print,
4607         line_object::print, spline_object::print, arc_object::print): Ditto.
4608         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
4609         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
4610         `SHADED', making them `%left'.
4611         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
4612         * src/preproc/pic/tex.cc (tex_output): New dummy function members
4613         `set_color', `reset_color', `get_last_filled', and
4614         `get_outline_color'.
4615         * src/preproc/pic/troff.cc (simple_output): New abstract function
4616         members `set_color', `reset_color', and `get_last_filled'.
4617         (simple_output::polygon, simple_output::circle,
4618         simple_output::ellipse): Use `get_last_filled'.
4619         (troff_output): New members `last_filled' and `last_outlined'.
4620         New function members `set_color', `reset_color', `get_last_filled',
4621         and `get_outline_color'.
4622         (troff_output::finish_picture): Use `reset_color'.
4623         (troff_output::set_fill): Test `last_filled'.
4624         * src/preproc/pic/pic.man: Updated.
4626         * src/roff/groff/groff.cc (main): Implement `-c' option.
4627         (synopsis, help): Updated.
4628         src/roff/groff/groff.man: Updated.
4630         * src/roff/troff/troff.h: Include color.h.
4631         (warning_type): Add WARN_COLOR.
4632         * src/roff/troff/env.h (environment): New members
4633         `{cur,prev}_{glyph,fill}_color'.
4634         New member functions `get_{prev_,}{glyph,fill}_color'.
4635         * src/roff/troff/env.cc: Initialize and implement them.
4636         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
4637         Replace `NULL' with `0' everywhere for consistency.
4638         (lookup_color, default_black, do_glyph_color, do_fill_color,
4639         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
4640         define_color): New functions.
4641         (token::next): Implement \M and \m escapes.
4642         (do_if_request): Implement `m' operator.
4643         (usage): Updated.
4644         (main): Implement `-c' option.
4645         (init_markup_requests): Add `defcolor' request.
4646         (warning_table): Add `color' warning.
4647         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
4648         classes.
4649         * src/roff/troff/node.cc (troff_output_file): New members
4650         `current_{page,glyph}color'.  New member functions `put_hex',
4651         `glyph_color', and `fill_color'.
4652         (glyph_color_node::*, fill_color_node::*): Implement it.
4653         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
4654         (parse_term): Add support for `f'.
4655         * src/roff/troff/troff.man: Updated.
4657         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
4658         entry for `F'.
4659         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
4660         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
4662         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
4663         (tag_definition): Use `void *' for arg1.
4664         (html_text): New member functions `do_color' and `done_color'.
4665         Use `void *' for second parameter of `push_para' member function.
4666         New `push_para' member function with a single parameter.
4667         Use `char *' for parameter of `issue_table_begin' member funtion.
4668         New `issue_color_begin' member function.
4669         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
4670         COLOR_TAG.
4671         (html_text::issue_color_begin): New function.
4672         (html_text::issue_table_begin): Use `char *' for parameter.
4673         (html_text::start_tag, html_text::shutdown,
4674         html_text::check_emit_text): Updated.
4675         (html_text::push_para): Use `void *' for second parameter.
4676         Add same function with only one parameter.
4677         (html_text::do_*): Updated.
4678         (html_text::do_color, html_text::done_color): New functions.
4679         * src/devices/grohtml/post-html.cc (style): New member `col'.
4680         Mew member `style' with 6 parameters.
4681         (style::style, style::operator==): Updated.
4682         (html_printer::do_font): Use it.
4683         (html_printer::draw): Add dummy entry for `F'.
4684         (html_printer::set_char): Updated.
4685         * src/devices/grohtml/grohtml.man: Updated.
4687         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
4688         trailing zeroes removed.
4689         (ps_printer): New members `sbuf_color', `fill_color', and
4690         `output_color'.
4691         Removed member `fill'.
4692         New member function `set_color'.
4693         (ps_printer::ps_printer, ps_printer::set_char): Updated.
4694         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
4695         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
4697         * tmac/color-html.tmac, tmac/color.tmac: New files.
4698         * tmac/troffrc: Include them.
4699         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
4700         * tmac/Makefile.sub: Updated.
4702         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
4703         man/groff.man: Updated.
4704         * font/devps/prologue.ps: Define FC and CO functions.
4706 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
4708         Fix incorrect cropping of images and incorrect handling of special
4709         characters.  Fix handling of file names in \O.
4711         * src/include/geometry.h: New file.
4712         * src/libs/libgroff/geometry.cc: New file.
4713         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
4714         to `geometry.cc'.
4715         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
4716         initial spaces.
4717         (do_suppress): Updated.
4718         * src/roff/troff/node.cc: Include geometry.h.
4719         (troff_output_file::flush_tbuf): Fixed parameters to
4720         `check_output_limits'.
4721         (troff_output_file::check_charinfo): Ditto.
4722         (troff_output_file::determine_line_limits): Add support for `Da'
4723         and `Dl' commands.
4725         * src/devices/grohtml/post-html.cc (str_translate_to_html):
4726         Add new parameter `is_special' to decode special characters from
4727         escape sequences.
4728         (html_printer::do_title, html_printer::do_heading,
4729         html_printer::do_indentedparagraph,
4730         html_printer::translate_to_html, html_printer::special): Updated.
4732 2001-10-03  Werner LEMBERG  <wl@gnu.org>
4734         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
4735         Fix entry for config.h.
4736         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
4737         * tmac/troffrc: Translate nonbreakable space character to `\~'.
4738         * src/preproc/eqn/eqn.man: Document -d command line option.
4740 2001-09-27  Werner LEMBERG  <wl@gnu.org>
4742         * man/groff.man: Use
4744           .ev xxx
4745           .na
4746           .nh
4747           <table>
4748           .ev
4750         instead of the old code (`.ad .hy' after the table) to suppress
4751         incorrect hyphenation for grohtml output.
4753 2001-09-22  Werner LEMBERG  <wl@gnu.org>
4755         * man/groff_font.man, man/groff_out.man: Minor fixes.
4757 2001-09-20  Werner LEMBERG  <wl@gnu.org>
4759         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
4760         Arnold Robbins <arnold@skeeve.com>).
4762 2001-09-09  Werner LEMBERG  <wl@gnu.org>
4764         * configure: Regenerated with autoconf 2.52.
4766         * doc/groff.texinfo: Complete revision of indices.
4768 2001-09-07  Werner LEMBERG  <wl@gnu.org>
4770         * doc/Makefile (clean): Updated to delete all indices.
4772 2001-09-05  Werner LEMBERG  <wl@gnu.org>
4774         * src/roff/troff/troff.man: Remove superfluous line.
4776         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
4777         given on the command line (or rather, if only the default warnings
4778         are set).
4780 2001-09-03  Werner LEMBERG  <wl@gnu.org>
4782         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
4783         use .ne for TTY devices.
4785 2001-08-31  Werner LEMBERG  <wl@gnu.org>
4787         * src/roff/troff/token.h, src/roff/troff/input.cc:
4788         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
4790 2001-08-28  Werner LEMBERG  <wl@gnu.org>
4792         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
4793         * src/roff/troff/input.cc (token::next): Return
4794         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
4795         compatibility mode.
4796         (token::description): Updated.
4797         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
4798         (token::add_to_node_list, token::process): Ignore
4799         TOKEN_TRANSPARENT_ESCAPE.
4801 2001-08-27  Werner LEMBERG  <wl@gnu.org>
4803         * tmac/an-old.tmac: Fix `S' string.
4805 2001-08-26  Werner LEMBERG  <wl@gnu.org>
4807         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
4809 2001-08-25  Werner LEMBERG  <wl@gnu.org>
4811         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
4812         backslashes).
4813         Many other minor fixes.
4815         * configure.ac: Add message at end to inform how to compile
4816         xditview.
4817         * configure: Regenerated.
4819 2001-08-24  Werner LEMBERG  <wl@gnu.org>
4821         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
4822         Updated to latest version of libc.
4824 2001-08-23  Werner LEMBERG  <wl@gnu.org>
4826         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
4827         Autoconf 2.50 and newer can handle this.
4828         * configure: Regenerated.
4830 2001-08-21  Werner LEMBERG  <wl@gnu.org>
4832         * doc/pic.ms: Fix typo.
4833         * src/preproc/tbl/tbl.man: Document case of global options.
4835 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4837         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
4838         handling of `CR' font.
4840 2001-08-20  Werner LEMBERG  <wl@gnu.org>
4842         Use a config.h file.
4844         * src/include/lib.h: Include config.h.
4845         * All C files: Ditto (if necessary).
4846         * All C++ source and header files: Include lib.h first (if
4847         necessary).
4849         * src/include/config.hin: New file (autogenerated by autoheader).
4850         * stamp-h.in: New file.
4851         * configure.ac: Updated.
4852         * aclocal.m4: Add third parameters to AC_DEFINE macros.
4853         (GROFF_ARRAY_DELETE): Simplified.
4854         * Makefile.sub (DISTCLEANFILES): Updated.
4855         Added targets for remaking config.status, config.hin, config.h,
4856         stamp-h.in, and stamp-h.
4857         * configure: Regenerated.
4859 2001-08-19  Werner LEMBERG  <wl@gnu.org>
4861         * NEWS: Updated.
4863 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
4865         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
4866         (do_sprintf): Use snprintf().
4868 2001-08-18  Werner LEMBERG  <wl@gnu.org>
4870         * src/libs/snprintf/*: Added an snprintf module written by Mark
4871         Martinec.
4872         * src/libs/libgroff/Makefile.sub: Updated.
4873         * configure.ac: Add test for snprintf().
4874         * Makefile.in: Updated.
4875         * configure: Regenerated.
4877         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
4878         uses snprintf().
4880 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
4882         * tmac/doc.tmac (Ex): New implementation.
4883         * tmac/doc-common, tmac/groff_tmac.man: Updated.
4885 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
4887         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
4888         argument.
4889         * tmac/groff_tmac.man: Updated.
4891 2001-08-13  Werner LEMBERG  <wl@gnu.org>
4893         * src/preproc/tbl/tbl.man: Minor documentation update.
4895 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4897         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
4898         * configure.ac: Add declaration test for gettimeofday().
4899         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
4900         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
4901         * configure: Regenerated.
4903 2001-08-11  Werner LEMBERG  <wl@gnu.org>
4905         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
4906         * configure.ac: Add declaration test for strcasecmp().
4907         * Makefile.in: Updated.
4908         * configure: Regenerated.
4909         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
4910         this is necessary because groff's mkstemp.cc is C++.
4911         Add declaration conditionally for strcasecmp().
4913 2001-08-10  Werner LEMBERG  <wl@gnu.org>
4915         Integrated pic2graph, contributed by Eric S. Raymond.
4917         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
4918         files.
4919         * Makefile.in, NEWS: Updated.
4921         * src/preproc/tbl/tbl.man: Revised.
4923 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
4925         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
4927 2001-08-09  Werner LEMBERG  <wl@gnu.org>
4929         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
4930         requests.
4932 2001-08-08  Paul Eggert  <eggert@twinsun.com>
4934         * Makefile.sub (configure): Depend on configure.ac, not
4935         configure.in.
4936         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
4938 2001-08-07  Werner LEMBERG  <wl@gnu.org>
4940         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
4941         fixes.
4943 2001-08-06  Werner LEMBERG  <wl@gnu.org>
4945         * src/roff/troff/troff.man: Improve documentation of -E option.
4947 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4949         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
4950         Simplified.
4952 2001-07-27  Werner LEMBERG  <wl@gnu.org>
4954         * src/preproc/refer/refer.cc: Undo last change.
4955         * src/devices/grohtml/post-html.cc: Ditto.
4957 2001-07-26  Werner LEMBERG  <wl@gnu.org>
4959         * src/preproc/refer/refer.cc: Include `lib.h'.
4960         * src/devices/grohtml/post-html.cc: Ditto.
4962 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
4964         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
4965         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
4966         * Makefile.in: Comment updated.
4967         * configure: Regenerated.
4969 2001-07-25  Werner LEMBERG  <wl@gnu.org>
4971         * src/preproc/pic/pic.cc: Removed.
4972         * src/preproc/pic/pic_tab.h: Removed.
4973         * src/preproc/refer/label.cc: Removed.
4975         * doc/Makefile (.ms.html): Don't use a file name extension in
4976         argument to grohtml's -I option.
4977         * Makefile.in (dist): Remove CVS directories.
4978         Call `distfiles' target.
4980         * src/devices/grohtml/grohtml.man: Add information about valid
4981         versions of pnmtopng.
4982         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
4983         name instead of number.
4985 2001-07-24  Werner LEMBERG  <wl@gnu.org>
4987         * doc/groff.texinfo: Minor fixes.
4989 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
4991         * doc/Makefile (.ms.html): Put image files into a subdirectory.
4992         (clean): Updated.
4994 2001-07-20  Werner LEMBERG  <wl@gnu.org>
4996         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
4997         * src/libs/libgroff/mkstemp.cc: New file.
4998         * src/libs/libgroff/mksdir.cc: New file.
4999         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
5000         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
5001         * src/libs/libgroff/Makefile.sub: Updated.
5002         * src/include/lib.h: Add mksdir() prototype.
5003         * src/include/posix.h: Define S_IXUSR if not yet defined.
5005         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
5006         (createAllPages): Use mksdir() instead of current code.
5007         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
5008         (main): [!HAVE_MKSTEMP]: Removed.
5010         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
5011         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
5012         macros.
5013         * configure.ac: Add tests for stdint.h, sys/time.h, and
5014         gettimeofday().
5015         Call new GROFF_xxx macros.
5016         * configure: Regenerated.
5017         * Makefile.in: Comments updated.
5019 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
5021         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
5022         instead of current code.
5023         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
5024         * src/roff/groff/groff.cc (possible_command::insert_args): New
5025         function.
5026         (main): Use it for predriver handling instead of insert_arg().
5028 2001-07-19  Werner LEMBERG  <wl@gnu.org>
5030         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
5031         groff also.
5033         * src/include/posix.h: Define S_IWUSR if not yet defined.
5035 2001-07-18  Werner LEMBERG  <wl@gnu.org>
5037         * NEWS: Updated.
5039 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
5041         * tmac/groff_mdoc.man: Document new -width and -column syntax.
5042         Some other minor fixes.
5043         * tmac/an-old.tmac: Add `AT' and `UC' macros.
5045 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
5047         Replace call to `troff' with `groff -Z' to make it aware of
5048         GROFF_BIN_PATH.
5050         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
5051         (troff_command, command_prefix): Removed.
5052         (alterDeviceTo): Use groff.
5053         (addZ): New function.
5054         (char_buffer::do_html): Use it.
5055         (scanArguments): Use TROFF_COMMAND.
5056         (findPrefix): Removed.
5057         (main): Updated.
5058         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
5060 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
5062         * doc/pic.ms: Documentation fixes.
5064 2001-07-17  Werner LEMBERG  <wl@gnu.org>
5066         Replace atexit() with global destructor.
5068         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
5069         (xtmpfile_list_init): New global structure to deallocate
5070         xtmpfile_list on exit.  Its destructor inherits most code from
5071         remove_tmp_files().
5072         (remove_tmp_files): Deleted.
5073         (add_tmp_file): Simplified.
5075 2001-07-16  Werner LEMBERG  <wl@gnu.org>
5077         Replace strdup() with strsave().
5079         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
5080         (set_papersize): Use strsave() and a_delete.
5081         (main): Use strsave().
5082         * src/preproc/html/pre-html.cc (make_message, createAllPages,
5083         removeAllPages): Use strsave() and a_delete.
5085         * configure.ac: Remove test for strdup.
5086         * Makefile.in: Comment updated.
5087         * configure: Regenerated.
5089 2001-07-15  Werner LEMBERG  <wl@gnu.org>
5091         * win32-diffs: Updated.
5093 2001-07-14  Werner LEMBERG  <wl@gnu.org>
5095         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
5096         removing the old one.
5097         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
5099 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5101         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
5103 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
5105         Merge -xwidth into -width.  Add -xwidth functionality to -column
5106         also.
5108         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
5109         avoid warning.
5110         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
5111         string immediately following a leading dot starts with a valid mdoc
5112         argument.
5113         Add similar code to the -column branch.
5114         (doc-Bl-usage): Updated.
5115         * groff_mdoc.man: s/-xwidth/-width/.
5117 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
5119         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
5120         running into centered or non-formatted text.
5122 2001-07-11  Werner LEMBERG  <wl@gnu.org>
5124         Introduce short and long prefixes to have the selection at run-time
5125         whether there is a 8+3 limit for names of temporary files.
5127         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
5128         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
5129         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
5130         variables.
5131         (temp_init): New global structure to initialize above three
5132         variables.
5133         (xtmptemplate): Use two parameters for long and short prefix.
5134         Simplify code use above three variables.
5135         (xtmpfile): Use long and short prefixes as parameters.
5136         * src/include/lib.h: Updated.
5138         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
5139         with ...
5140         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
5141         (createAllPages, makeTempFiles): Updated.
5143 2001-07-09  Werner LEMBERG  <wl@gnu.org>
5145         * REVISION: Increased to 3.
5147 Version 1.17.2 released
5148 =======================
5150 2001-07-07  Werner LEMBERG  <wl@gnu.org>
5152         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
5153         to size_t.
5155 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
5157         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
5158         Fix synopsis.
5159         * tmac/groff_mdoc.man: Fix synopsis.
5161 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
5163         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
5164         Restore `doc-Pa-font'.
5166 2001-07-04  Werner LEMBERG  <wl@gnu.org>
5168         * src/utils/indxbib/dirnamemax.c: Moved to ...
5169         * src/libs/libgroff/maxfilename.cc: Here.
5170         s/dir_name_max/file_name_max/.
5171         Add copyright.
5172         * src/include/lib.h: Add file_name_max.
5173         * src/utils/indxbib/indxbib.cc: Updated.
5174         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
5175         Updated.
5177         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
5178         as empty.
5179         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
5181         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
5182         REGION_TEMPLATE): New macros.
5183         (createAllPages, makeTempFiles): Use them.
5184         Include `nonposix.h'.
5185         (html_system): New function.
5186         (createAllPages, createImage): Use it.
5187         Use EXE_EXT.
5189         * tmac/www.tmac: Fix typos.
5191 2001-07-03  Werner LEMBERG  <wl@gnu.org>
5193         * tmac/www.tmac: Disable hyphenation in normal text only if output
5194         device is html.
5195         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
5196         * tmac/groff_mwww.man, NEWS: Updated.
5198 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
5200         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
5201         image location.
5203 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
5205         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
5206         doc-display-ps-stack): Implement font and font size stack for
5207         displays.
5209 2001-07-02  Werner LEMBERG  <wl@gnu.org>
5211         * REVISION: Increased to 2.
5212         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
5214         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
5215         beginning of a line.
5216         * src/groff/grog/grog.sh: Ditto.
5218 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
5220         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
5221         make it portable.
5223 2001-06-27  Werner LEMBERG  <wl@gnu.org>
5225         Fix problems with preprocessor string for `man' program.
5227         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
5228         Updated/added copyright.
5229         Moved Emacs's local variable to identify nroff mode to the end of
5230         the file; add local variable if missing.
5232 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
5234         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
5235         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
5236         * configure: Regenerated.
5238 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
5240         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
5241         * configure: Regenerated.
5243 2001-06-24  Werner LEMBERG  <wl@gnu.org>
5245         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
5246         but www.tmac.
5247         * doc/pic.ms: Fix typos.
5249 Version 1.17.1 released
5250 =======================
5252 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
5254         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
5255         * configure: Updated.
5257 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
5259         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
5260         image names.
5261         * src/roff/troff/dic.cc (blank_line): Add html tag.
5263 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
5265         * src/roff/troff/input.cc (do_suppress): Fix typo.
5267 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
5269         Added two new options (-D and -I) to specify image names and a
5270         subdirectory to place the images in.
5272         Change syntax from \\Ox to \\O[x].
5274         * src/devices/grohtml/post-html.cc (main): Add options.
5275         (usage): Updated.
5276         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
5277         Use `NULL' instead of `0' for null string pointers.
5278         (MAX_RETRIES): New macro.
5279         (lengthOfintToStr, intToStr, make_message): New functions.
5280         (makeFileName): Make function static.
5281         Implement -D and -I options.
5282         (checkImageDir): New function.
5283         (write_end_image, write_start_image): Use new syntax of \O.
5284         (createAllPages, removeAllPages): Implement -D and -I options.  Use
5285         make_message().
5286         (createImage): Use make_message().
5287         (addps4html): Add guard for malloc().
5288         (usage, scanArguments): Updated.
5289         (makeTempFiles): Use mkstemp().
5290         (removeTempFiles): Use unlink().
5291         (findPrefix): Add guard for malloc().
5292         (main): Updated.
5293         * src/roff/troff/input.cc (get_delim_file_name): New function to
5294         parse \O.
5295         (do_suppress): Updated to parse new syntax.
5296         * src/devices/grohtml/grohtml.man: Updated.
5297         * tmac/www.tmac: Updated to new syntax.
5299         * NEWS: Updated.
5301 2001-06-15  Werner LEMBERG  <wl@gnu.org>
5303         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
5305         * src/devices/grohtml/grohtml.man: Minor improvements.
5307 2001-06-14  Werner LEMBERG  <wl@gnu.org>
5309         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
5311 2001-06-11  Werner LEMBERG  <wl@gnu.org>
5313         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
5314         line to specify preprocessor options -- mandb 2.3.1 only recognizes
5315         the former.
5316         * src/preproc/grn/grn.man: Add proper '\" string.
5318 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
5320         * test-groff: Don't use PATH but GROFF_BIN_PATH.
5322 2001-06-08  Werner LEMBERG  <wl@gnu.org>
5324         Updated to autoconf 2.50.
5326         * configure.in: Renamed to...
5327         * configure.ac: This.
5328         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
5329         (GROFF_OS390): Updated.
5330         * configure: Regenerated.
5332 2001-05-18  Werner LEMBERG  <wl@gnu.org>
5334         * src/roff/troff/env.c, src/roff/troff/env.h,
5335         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
5336         from 2000-12-21.
5338 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
5340         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
5342 2001-05-16  Werner LEMBERG  <wl@gnu.org>
5344         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
5345         less than or equal zero; set it to 1 then.
5346         * src/roff/troff/node.h (node::node): Initialize `last'.
5348 2001-05-08  Werner LEMBERG  <wl@gnu.org>
5350         * tmac/an-old.tmac: Make predefined strings work in compatibility
5351         mode.
5352         Add troff version guard.
5353         * tmac/doc.tmac: Simplify version guard.
5355 2001-05-07  Werner LEMBERG  <wl@gnu.org>
5357         The .ns and .rs requests are now honoured not only in the top-level
5358         but in all diversions (similar to UNIX troff).
5360         This change is based on a patch from Tadziu Hoffmann
5361         <hoffmann@usm.uni-muenchen.de>.
5363         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
5364         (top_level_diversion): Remove `no_space_mode' member.
5365         * src/roff/troff/div.cc (diversion::diversion,
5366         top_level_diversion::top_level_diversion): Updated.
5367         (macro_diversion::output): Reset `no_space_mode'.
5368         (no_space, restore_spacing): Use `curdiv' unconditionally.
5369         (space_request, blank_line): Check `curdiv->no_space_mode'.
5370         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
5371         `curdiv' unconditionally.
5372         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
5373         Updated.
5375 2001-05-06  Werner LEMBERG  <wl@gnu.org>
5377         Added two new requests `de1' and `am1' which are similar to `de' and
5378         `am' with the difference that compatibility mode is saved on entry,
5379         switched off during macro execution, and restored on exit.
5381         * src/roff/troff/input.h: Added two new special characters
5382         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
5383         * src/roff/troff/input.cc (input_iterator): Added two member
5384         functions `save_compatible_flag' and `get_compatible_flag'.
5385         (input_stack): Ditto.
5386         (string_iterator): Ditto.  Also add private member
5387         `saved_compatible_flag'.
5388         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5389         (calling_mode): New enumeration.
5390         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
5391         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
5392         (define_macro, define_indirect_macro, append_macro, ignore): Use
5393         `calling_mode'.
5394         (define_nocomp_macro, append_nocomp_macro): New functions.
5395         (init_input_requests): Updated.
5396         (do_request): Rename local variable `saved_compatible_flag' to
5397         `old_compatible_flag'.
5398         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5400         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
5401         public and trap-invoked macros.  As a consequence, the man macros
5402         work in compatibility mode also.
5404 2001-05-06  Solar Designer  <solar@openwall.com>
5406         * Makefile.in: Use $(mandir).
5408 2001-05-06  Alexios Zavras  <zvr@pobox.com>
5410         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
5412 2001-05-05  Werner LEMBERG  <wl@gnu.org>
5414         Added `.ns' number register: Returns 1 in no-space mode (if in
5415         top-level diversion), 0 otherwise.
5417         * src/roff/troff/div.cc (no_space_mode_reg): New class.
5418         (init_div_requests): Updated.
5419         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
5420         Document it.
5422 2001-05-04  Werner LEMBERG  <wl@gnu.org>
5424         * src/roff/nroff/nroff.man: Improved documentation (especially
5425         locales).
5427 2001-05-02  Werner LEMBERG  <wl@gnu.org>
5429         Added `brp' request: This is \p as a request.
5431         * src/roff/troff/env.cc (environment::do_break): Add parameter
5432         `spread'.
5433         (do_break_request): New function (was `break_request').
5434         (break_request): Calls `do_break_request'.
5435         (break_spread_request): New; calls `do_break_request'.
5436         (init_env_requests): Updated.
5437         * src/roff/troff/env.h: Updated.
5438         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5440         * REVISION: Increased to 1.
5441         * win32-diffs: Updated.
5443 2001-05-01  Werner LEMBERG  <wl@gnu.org>
5445         * tmac/an-old.tmac: Fix minor compatibility mode issue.
5446         * tmac/troffrc-end: Make it really work in compatibility mode.
5448 2001-04-27  Werner LEMBERG  <wl@gnu.org>
5450         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
5451         stdlib.h.
5453 2001-04-22  Werner LEMBERG  <wl@gnu.org>
5455         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
5456         latest versions from glibc CVS archive.
5458         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
5459         <c.zeelenberg@hccnet.nl>.
5461 2001-04-21  Werner LEMBERG  <wl@gnu.org>
5463         * configure.in: Move check for mkstemp() to...
5464         * aclocal.m4 (GROFF_MKSTEMP): This new function.
5465         * configure: Regenerated.
5467         * src/include/groff-getopt.h: Don't use variable names in
5468         declarations.
5470         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
5471         * src/devices/grohtml/Makefile.sub,
5472         src/devices/grohtml/post-html.cc: Updated.
5474 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
5476         * configure.in: Add special check for mkstemp().
5477         * src/libs/libgroff/tmpfile.cc: Use it.
5478         * src/utils/indxbib/indxbib.cc: Ditto.
5479         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
5480         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
5481         `const'.
5483 2001-04-20  Bruce Lilly  <blilly@erols.com>
5485         `Version_string' as C++ object was not visible to linker from C
5486         object files.
5487         Add `const' to `Version_string'.
5489         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
5490         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
5491         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
5492         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
5493         (scanArguments), src/preproc/refer/refer.cc (main),
5494         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
5495         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
5496         (main), src/devices/grohtml/post-html.cc (main),
5497         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
5498         (main), src/utils/hpftodit/hpftodit.cc (main),
5499         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
5500         (main), src/utils/lkbib/lkbib.cc (main),
5501         src/utils/addftinfo/addftinfo.cc (main): Implement it.
5503         * src/roff/groff/pipeline.c: Add _UWIN.
5504         * src/include/nonposix.h: Ditto.
5506 2001-04-20  Werner LEMBERG  <wl@gnu.org>
5508         * src/include/lib.h: Use HAVE_STRERROR.
5509         * src/roff/groff/pipeline.c: Ditto.
5510         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
5511         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
5512         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
5513         * win32-diffs: Updated.
5514         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
5516 2001-04-19  Werner LEMBERG  <wl@gnu.org>
5518         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
5519         instead of hardwired `"troff"'.
5520         (char_buffer::read_file): Remove unused variables.
5521         (char_buffer::write_file_troff): Ditto.
5522         (char_buffer::write_file_html): Ditto.
5523         (generateImages): Ditto.
5524         (abs): Removed.
5525         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
5527         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
5529         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
5530         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
5531         index_search_item::search1): Ditto.
5532         * src/roff/troff/node.h (width_list): Reorder members.
5533         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
5534         (lookup_warning): Ditto.
5535         (prepend_string): Commented out.
5536         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
5537         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
5538         * src/preproc/tbl/main.cc (process_format): Ditto.
5539         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
5540         compiler warnings.
5541         * src/preproc/pic/pic.cc: Updated.
5542         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
5543         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
5544         * src/preproc/refer/command.cc (execute_command): Ditto.
5545         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
5546         * src/preproc/refer/token.cc (lookup_token): Ditto.
5547         * src/preproc/soelim/soelim.cc: Ditto.
5548         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
5549         (isHexDigit): Commented out.
5550         (pushBackBuffer::isString): Remove unused variable.
5551         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
5552         warning.
5553         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
5554         resource_manager::read_resource_arg, read_one_of, parse_extensions):
5555         Ditto.
5556         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
5557         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
5558         lookup_paper_size): Ditto.
5559         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
5560         (text_glob, element_list): Reorder members.
5561         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
5562         compiler warning.
5563         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
5564         return value to `void'.
5565         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
5566         of initializers.
5567         * src/devices/grohtml/html.h (simple_output::check_newline,
5568         simple_output::space_or_newline, simple_output::enable_newlines):
5569         Add return value.
5570         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
5571         compiler warnings.
5572         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
5573         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
5574         output_ligatures, output_charset, read_map): Ditto.
5575         * src/utils/lookbib/lookbib.cc (main): Ditto.
5576         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
5577         (do_file): Fix typo (`=' -> `==').
5578         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
5579         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
5581 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
5583         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
5584         Fix usage of GROFF_BIN_PATH.
5585         * src/roff/nroff/nroff.man: Updated.
5587 2001-04-18  Werner LEMBERG  <wl@gnu.org>
5589         * NEWS: Fixing typos.
5590         Updated.
5592 Version 1.17 released
5593 =====================
5595 2001-04-17  Werner LEMBERG  <wl@gnu.org>
5597         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
5598         directory, not in $(srcdir).
5600 2001-04-16  Werner LEMBERG  <wl@gnu.org>
5602         * doc/groff.texinfo: More info on conditionals.
5604 2001-04-15  Werner LEMBERG  <wl@gnu.org>
5606         * doc/groff.texinfo: Added some info about groff internals.
5608         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
5609         about missing special character only if the name is non-null.
5611 2001-04-14  Werner LEMBERG  <wl@gnu.org>
5613         Removing the grohtml-old device driver which is now obsolete.
5615         * src/devices/grohtml-old/*: Removed.
5616         * font/devhtml-old/*: Removed.
5617         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
5618         Remove comments.
5619         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
5620         * test-groff (PATH): Updated.
5621         * tmac/Makefile.sub (NORMALFILES): Updated.
5622         * tmac/an-old.tmac: Remove special code for html-old device.
5623         Replace `html-or-html-old' register with `an-html'.
5624         * tmac/eqnrc: Updated.
5625         * tmac/html-old.tmac: Removed.
5626         * tmac/troffrc, tmac/troffrc-end: Updated.
5627         * tmac/www.tmac: Remove special code for html-old device.
5628         Replace `html-or-html-old' register with `www-html'.
5630         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
5631         src/libs/libgroff/htmlindicate.cc (graphic_end),
5632         include/htmlindicate.h, src/preproc/grn/*.cc,
5633         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
5634         single argument for consistency with rest of source code.
5636         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
5638 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
5640         * src/roff/troff/troff.man: Fixing typos.
5642 2001-04-13  Werner LEMBERG  <wl@gnu.org>
5644         * doc/pic.ms: Fixing many font switches.
5645         * doc/groff.texinfo: Fixes, additions.
5646         * MORE.STUFF: Updated.
5648 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
5650         * src/devices/grohtml/grohtml.man: Updated manual page regarding
5651         simple anchor.
5652         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
5653         cropping of images.
5654         (removeTempFiles): New function to tidy up temporary files.
5655         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
5656         Many fixes to do with the new inline suppress node and image regions
5657         are much tighter.
5658         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
5659         (generate_img_src): New function.
5660         (html_printer::do_auto_image): Utilizes it.
5661         (do_heading, do_title): Include inline images within their contents.
5662         (html_printer::begin_page): Tidied up comments that are issued to
5663         the html output file.
5664         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
5665         than courier.
5666         (text_glob::is_br): New method used by do_heading.
5667         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
5668         equivalent diversion.
5669         * src/include/html-strings.h: Altered image tags to reflect the
5670         inline image node.
5671         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
5672         parameter.
5673         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
5674         it is already inside a pic image.  Only emit tags if the argument
5675         `-Tps:html' is present.
5676         * src/preproc/tbl/main.cc: Changes to reflect additional
5677         `html_end_suppress' parameter.
5678         * src/roff/troff/env.cc: Only emit eol tag if a node has been
5679         emitted since the last eol tag was written.
5680         * src/roff/troff/env.h: New boolean `emitted_node'.
5681         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
5682         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
5683         * src/roff/troff/node.cc (check_charinfo): New method. 
5684         (troff_output_file::determine_line_limits): Alterations to limit
5685         checking.
5686         * tmac/www.tmac: Changes to reflect new suppress nodes.
5687           
5688 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
5690         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
5691         Escape the html_glyph in the buffer.
5692         (str_translate_to_html): Output the unescaped escaped_char.
5693         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
5694         `frame=void', not `frame=none'.  Add `border=0'.
5696 2001-04-12  Werner LEMBERG  <wl@gnu.org>
5698         * PROBLEMS: Add some words on how to avoid wrapper macros.
5700 2001-04-11  Blake McBride  <blake@florida-software.com>
5702         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
5704 2001-04-11  Werner LEMBERG  <wl@gnu.org>
5706         * font/devlbp/Makefile.sub (CLEANADD): Set it.
5707         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
5708         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
5709         * Makefile.sub (DISTCLEANFILES): Here.
5711         * libs/libgroff/new.cc: Include `nonposix.h'.
5712         * win32-diffs: Updated.
5714 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
5716         Added skeleton macro for defunct macros.
5718         Updated documentation.
5720         When inside displays, an empty input line warning should be
5721         suppressed.  If another macro call is put inside a display,
5722         all subsequent empty lines found in that display caused a
5723         warning to be emitted.
5725         * tmac/doc.tmac (doc-defunct-macro): New macro.
5726         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
5727         (doc-restore-global-vars): Fixed typo.
5728         (doc-empty-line): Check the `doc-display-depth' register to
5729         determine whether we are inside display or not.
5731         * tmac/doc-common: Removed `Or' and `Sf' registers.
5732         Moved obsolete `Ds' macro to doc.tmac.
5734         * tmac/groff_mdoc.man: Bump document date.
5735         Document `.Vt' under ``Variable Types''.
5736         Removed documentation for obsolete `.Or' macro.
5738 2001-04-10  Werner LEMBERG  <wl@gnu.org>
5740         * NEWS: Updated.
5741         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
5743 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
5745         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
5746         (usage): Add stream argument. Don't exit.
5747         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
5748         Write --version output to stdout, not stderr.
5749         (usage): Add stream argument. Don't exit.
5750         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
5751         (usage): Add stream argument. Don't exit.
5752         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
5753         constants.
5754         (usage): Add stream argument. Don't exit.
5755         (main): Write --help output to stdout, not stderr.
5756         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
5757         (usage): Add stream argument. Don't exit.
5758         * src/devices/grops/ps.cc (main): Accept --help and --version.
5759         (usage): Add stream argument. Don't exit.
5760         * src/devices/grotty/tty.cc (main): Accept --help and --version.
5761         (usage): Add stream argument. Don't exit.
5762         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
5763         (main): Accept --help and --version.
5764         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
5765         (main): Accept --help and --version.
5766         * src/preproc/html/pre-html.cc (usage): Add stream argument.
5767         (scanArguments): Accept --help and --version.
5768         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
5769         (main): Accept --help and --version.
5770         * src/preproc/refer/refer.cc (main): Accept --help and --version.
5771         (usage): Add stream argument. Don't exit.
5772         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
5773         exit.
5774         (main): Accept --help and --version.
5775         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
5776         (main): Accept --help and --version.
5777         * src/roff/groff/groff.cc (main): Accept --help and --version.
5778         (synopsis): Add stream argument.
5779         (help): Write --help output to stdout, not stderr.
5780         (usage): Add stream argument. Don't exit.
5781         * src/roff/grog/grog.pl: Accept --help and --version.
5782         (help): New sub.
5783         * src/roff/grog/grog.sh: Accept --help and --version.
5784         * src/roff/nroff/nroff.sh: Accept --help and --version.
5785         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
5786         (usage): Add stream argument. Don't exit.
5787         (main): Accept --help and --version.
5788         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
5789         (usage): New function with stream argument, doesn't exit.
5790         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
5791         (usage): New function with stream argument, doesn't exit.
5792         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
5793         (usage): Add stream argument. Don't exit.
5794         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
5795         (main): Accept --help and --version.
5796         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
5797         exit.
5798         (main): Accept --help and --version.
5799         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
5800         (main): Accept --help and --version.
5801         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
5802         (usage): Add stream argument. Don't exit.
5804 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
5806         Fix indentation in SYNOPSIS.
5808         Updated to include changes of latest BSD mdoc version (basically,
5809         the only change is that `.Fn' and `.Fc' put a final semicolon after
5810         a function declaration in the SYNOPSIS section).
5812         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
5813         (doc-in-synopsis-section): New variable.  Updated all related
5814         functions.
5815         (doc-indent-synopsis-active): New register.
5816         (Nd, Fn, Fo): Use it.
5817         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
5818         `.Cd' with long argument line produces indented wrapped lines. 
5819         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
5820         undesirable line break to be output.
5821         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
5822         `.rs'.
5823         (Fn, Fc): Add final `;' to output.
5824         (doc-save-global-vars, doc-restore-global-vars): Updated.
5825         * tmac/doc-common: Remove `Ex' register.
5826         Updated.
5827         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
5828         copyright.
5830 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
5832         * tmac/doc.tmac (Cd): Simplify code.
5833         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
5835 2001-04-06  Werner LEMBERG  <wl@gnu.org>
5837         Implement continuous underlining for nroff mode.  To do that, a new
5838         request in the ditroff language has been added: `x u N' (N is 0
5839         or 1).
5841         \X and \Y are now transparent to end-of-sentence recognition.
5843         * src/include/printer.h (printer): Add `type' parameter to `special'
5844         method.
5845         * src/libs/libdriver/printer.cc (printer::special): Updated.
5846         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
5848         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
5849         specials of type `p'.
5850         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
5851         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
5852         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
5853         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
5854         (glyph::order): New method.
5855         (tty_printer::add_char): Use it.
5856         (tty_printer::special): New method.
5857         (tty_printer::end_page): Implement it.
5859         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
5860         * src/roff/troff/node.cc (special_node::special_node): Add parameter
5861         to set `no_init_string'.
5862         (special_node::tprint_start): Use it.
5863         (special_node::same, special_node::copy): Updated.
5864         (special_node::ends_sentence): New method.
5865         (troff_output_file::start_special): Add parameter to include
5866         inititialization of special conditionally.
5868         * src/roff/troff/env.h (environment): New member `underline_spaces'.
5869         * src/roff/troff/env.cc (do_underline_special): New function.
5870         (environment::set_font): Use it.
5871         (do_underline): Use it.  This was `underline()'.
5872         (underline): Call `do_underline()'.
5873         (continuous_underline): New function which calls `do_underline()'.
5874         (environment::newline): Use `do_underline_special()'.
5875         (init_env_requests): Updated.
5877         * NEWS, man/troff_out.man: Updated.
5879 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
5881         * font/devutf8/R.proto: Fix code of 'shc'.
5883 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
5885         Many fixes.  Diag lists can now be nested also; additionally,
5886         `-compact' and `-offset' are supported.
5888         * tmac/doc.tmac (doc-have-indent): Replaced with ...
5889         (doc-list-have-indent-stackXXX): A new register stack.
5890         (doc-have-diag-list): Removed.
5891         (Bl): Use `doc-list-have-indent-stackXXX'.
5892         (El): Updated.
5893         (doc-diag-list): Use `doc-compact-list-stackXXX'.
5894         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
5895         (doc-set-vertical-and-indent): Ditto.
5896         (doc-next-list-depth): Removed.
5897         (doc-increment-list-stack): Updated.
5898         (doc-decrement-list-stack): Use `doc-list-depth' instead of
5899         `doc-next-list-depth'.
5900         (doc-end-list, doc-end-column-list): Don't use
5901         `doc-increment-list-stack'.
5902         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
5903         (doc-save-global-vars, doc-restore-global-vars): Updated.
5904         * tmac/doc-common: Updated.
5905         * tmac/groff_mdoc.man: Updated.
5906         * NEWS: Fix typo.
5908 2001-04-02  Werner LEMBERG  <wl@gnu.org>
5910         * src/devices/grotty/grotty.man: Fix grammatical error.
5912 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
5914         Remove .Ld from mdoc package; replace it with special handling of
5915         `...'.
5917         * tmac/doc-common: Remove `Ld' register.
5918         Uncomment `doc-volume-ds-*' strings.
5919         Remove `doc-operating-system-default'.
5920         (Os): Updated.
5921         * tmac/doc-syms (Ld): Removed.
5922         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
5923         `...' specially.
5924         * NEWS: Updated.
5926         * tmac/groff_mdoc.man: Many fixes and updates.
5928 2001-03-29  Werner LEMBERG  <wl@gnu.org>
5930         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
5931         Bond <tkb@tkb.mpl.com>.
5932         * tmac/www.tmac: Save compatibility mode.
5934 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
5936         * tmac/groff_mdoc.man: Many fixes.
5938 2001-03-28  Werner LEMBERG  <wl@gnu.org>
5940         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
5941         isn't recognized.
5943 2001-03-27  Werner LEMBERG  <wl@gnu.org>
5945         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
5946         diversion.  This fixes overlong tags.
5948 2001-03-26  Werner LEMBERG  <wl@gnu.org>
5950         * doc/groff.texinfo: Fixed and improved documentation of fonts.
5951         * tmac/doc-syms: Fix error messages.
5952         * tmac/an-old.tmac: Remove incorrect double backslashes.
5954 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
5956         * tmac/Makefile.sub: Strip mdoc.local also
5957         * tmac/strip.sed: Fixed.
5959 2001-03-24  Werner LEMBERG  <wl@gnu.org>
5961         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
5962         selecting the font size.
5963         * tmac/groff_mdoc.man, NEWS: Document it.
5965 2001-03-23  Werner LEMBERG  <wl@gnu.org>
5967         * src/roff/troff/div.cc (save_vertical_space): Add default argument
5968         to `sv' request.
5969         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
5970         argument to restore previous font family.
5971         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
5973         * doc/groff.texinfo: More fixes and additions (mainly for font
5974         manipulating commands).
5976         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
5977         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
5978         * tmac/Makefile.sub, NEWS: Updated.
5980 2001-03-23  Werner LEMBERG  <wl@gnu.org>
5982         Replaced mdoc implementation.  The new version is `state of the
5983         art', using almost all new features of groff 1.17 -- it won't run
5984         with older versions.
5986         * tmac/doc.tmac: Completely rewritten.
5987         * tmac/doc-common: Ditto.
5988         * tmac/doc-nroff: Ditto.
5989         * tmac/doc-ditroff: Ditto.
5990         * tmac/doc-syms: Ditto.
5991         * tmac/mdoc.local: New file.
5992         * tmac/groff_mdoc.samples.man: Replaced with ...
5993         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
5994         * tmac/strip.sed: Updated.
5995         * tmac/Makefile.sub: Updated.
5996         * INSTALL: Updated.
5998         * tmac/groff_man.man: Add `man.local' to the FILES section.
6000 2001-03-22  Werner LEMBERG  <wl@gnu.org>
6002         * doc/groff.texinfo: Added many @noindent.
6003         Replaced @end_Example -> @endExample.
6004         Added info whether registers are r/o.
6005         Many other additions and fixes.
6007 2001-03-21  Werner LEMBERG  <wl@gnu.org>
6009         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
6010         in makeinfo of texinfo 4.0) to be used in @Def* macros.
6011         Improved @Def* macros: Now the exact syntax of request, register,
6012         and escapes is shown.
6013         Added macros for parentheses and brackets to be used in @Def*.
6014         Many fixes and improvements of the documentation.
6016 2001-03-20  Werner LEMBERG  <wl@gnu.org>
6018         * doc/groff.texinfo: Added new index: `st' (for strings).
6019         Added macros @Defstr(x).
6020         Added macro @Example (adding @group).
6021         Other minor improvements.
6023 2001-03-19  Werner LEMBERG  <wl@gnu.org>
6025         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
6026         `rq' for requests.  `fn' is no longer used.
6027         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
6028         Removed @Deffn(x).
6030         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
6031         number with name of man page.
6033 2001-03-19  Larry Kollar  <kollar@alltel.net>
6035         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
6036         consistency.
6038 2001-03-19  Werner LEMBERG  <wl@gnu.org>
6040         * man/groff_font.man: Document `prepro', `postpro', and `print'.
6041         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
6042         * src/devices/grohtml/grohtml.man: Fixing typos.
6044 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
6046         * tmac/s.tmac (@IP): Pass `.ip' html tag.
6047         * tmac/groff_mwww.man: Remove .LINE macro
6048         * tmac/www.tmac (LINE): Add `.ti'.
6050         * src/devices/grohtml/post-html.cc (html_printer): New member
6051         `indent'.
6052         (html_printer::emit_raw): Use it.
6053         (html_printer::do_linelength): Ditto.
6054         (html_printer::do_pageoffset): Ditto.
6055         (html_printer::do_indentation): Ditto.
6056         (html_printer::do_tempindent): Ditto.
6057         (html_printer::do_break): Ditto.
6058         (html_printer::begin_page): Ditto.
6059         (html_printer::do_indentedparagraph): New function.
6060         (html_printer::troff_tag): Handle `.ip'.
6061         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
6062         Add `<td width=...>' handling.
6063         (html_text::do_table): Add parameter.
6064         (html_text::do_indent): Updated.
6065         * src/devices/groohtml/html-text.h: Updated.
6067 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
6069         Introduced simple html tables to implement indentation.
6071         * src/devices/grohtml/html.h (word, word_list): New structures.
6072         (simple_output): Use it.
6073         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
6074         (html_printer): Improve indentation handling.
6075         (html_printer::emit_raw): Set `in_table' element.  Handle
6076         indentation if set.
6077         (html_printer::write_header): Move conditional downwards.
6078         Don't allow whitespace in tags.
6079         (html_printer::do_linelength): Handle line length and indentation
6080         conditionally.
6081         (html_printer::do_pageoffset): Handle indentation conditionally.
6082         (html_printer::do_indentation): Ditto.
6083         (html_printer::do_tempindent): New function member.
6084         (html_printer::do_fill): Take care of indentation.
6085         (html_printer::do_flush): Finish table.
6086         (html_printer::do_links): Ditto.
6087         (html_printer::do_break): New function for handling `.br' and `.ti'.
6088         (html_printer::troff_tag): Use it.
6089         Handle `.ti'.
6090         (html_printer::flush_globs): Fix.
6091         (html_printer::flush_page): Finish table.
6092         (html_printer::html_printer): Fix error message.  Set up
6093         `linelength'.
6094         (html_printer::add_to_sbuf): Remove special handling of character
6095         code 255.
6096         (to_unicode): Remove `stop()'.
6097         (html_printer::write_title): Cleanup.
6098         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
6099         (html_printer::~html_printer): Flush text and end the line.
6100         Use `put_string()'.
6101         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
6102         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
6103         emission of tags.
6104         (html_text::start_tag): Disable newlines.
6105         (html_text::table_is_void): New function.
6106         (html_text::issue_table_begin): Ditto.
6107         (html_text::issue_table_end): Ditto.
6108         (html_text::push_para): Better table handling.
6109         (html_text::do_indent): New function.
6110         (html_text::do_table): Ditto.
6111         (html_text::done_table): Ditto.
6112         (html_text::do_tt): Handle PRE_TAG.
6113         (html_text::is_in_table): New function.
6114         (html_text::check_emit_text): Handle tables.
6115         (html_text::do_emittext): Use `nl()'.
6116         (html_text::do_para): Handle table.
6117         (html_text::remove_def): New function.
6118         * src/devices/grohtml/output.cc (word, word_list): Implement
6119         methods.
6120         (simple_output::end_line): Flush last word.
6121         (simple_output::simple_comment): Ditto.
6122         (simple_output::begin_comment): Recoded.
6123         (simple_output::end_comment): Ditto.
6124         (simple_output::comment_arg): Removed.
6125         (simple_output::check_newline): Improve test and flush last word.
6126         (simple_output::space_or_newline): Improved.
6127         (simple_output::write_newline): Replaced with...
6128         (simple_output::nl): This.
6129         (simple_output::put_raw_char): Flush last word.
6130         (simple_output::check_space): Removed.
6131         (simple_output::put_translated_string): Ditto.
6132         (simple_output::put_string): Simplified.
6133         (simple_output::put_number): Updated.
6134         (simple_output::put_float): Ditto.
6135         (simple_output::put_symbol): Removed.
6136         (simple_output::enable_newlines): Add `check_newline()'.
6137         (simple_output::flush_last_word): New function.
6139         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
6140         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
6142         * tmac/s.tmac (@PP, @IP): Add html conditional code.
6143         * tmac/an-old.tmac (TP): Ditto.
6145 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
6147         * mdate.sh: Make it POSIX compliant.
6149 2001-03-09  Werner LEMBERG  <wl@gnu.org>
6151         Added the `return' request to end a macro immediately.  It simply
6152         pops iterators from the input stack until a macro iterator is found.
6154         * src/roff/troff/input.cc (input_iterator::is_macro,
6155         macro_iterator::is_macro): New member.
6156         (input_return_boundary): New class to signal an immediate return
6157         to while_request().
6158         (input_stack::add_return_boundary, input_stack::is_return_boundary):
6159         New functions.
6160         (input_stack::clear): Use it.
6161         (input_stack::pop_macro): New function.
6162         (while_request): Use `is_return_boundary()'.
6163         (return_macro_request): New function.
6164         (init_input_requests): Use it.
6166         * src/roff/troff/TODO: Updated.
6167         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6169 2001-03-08  Werner LEMBERG  <wl@gnu.org>
6171         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
6172         cleanup.
6174 2001-03-07  Werner LEMBERG  <wl@gnu.org>
6176         Make `\B' more rigid.
6178         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
6179         parameter.
6180         (get_number_rigidly): New function.
6181         * src/roff/troff/input.cc (do_expr_test): Use it.
6182         * src/roff/troff/token.h: Updated.
6184         * src/roff/troff/request.h: Fix typo (init_html_request ->
6185         init_markup_request).
6187 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
6189         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
6190         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
6191         are now `.begin', `.end', `.image'.
6193         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
6194         (html_printer::add_to_sbuf): Changing type of `code' parameter.
6195         Use add_char_to_sbuf().
6196         (to_unicode): New function.
6197         (char_translate_to_html): Changing type of `ch' parameter.
6198         Use `to_unicode()'.
6199         (html_printer::~html_printer): Comment out doctype string.
6200         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
6201         instead of `.html-end'.
6202         (write_start_image): Use `.begin' and `.image' instead of
6203         `.html-begin' and `.html-image'.
6204         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
6205         (html_begin): Renamed to ...
6206         (begin): This.
6207         (html_end): Renamed to ...
6208         (end): This.
6209         (html_image): Renamed to ...
6210         (image): This.
6211         (init_html_requests): Renamed to ...
6212         (init_markup_requests): This.
6213         * tmac/www.tmac: Updated.
6215 2001-02-28  Bram  <bram@avontuur.org>
6217         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
6218         constructor.
6220 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
6222         * doc/meref.me: Fixing some typos.
6224 2001-02-16  Werner LEMBERG  <wl@gnu.org>
6226         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
6227         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
6228         * src/roff/troff/node.h: Updated.
6230 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
6232         * tmac/groff_tmac.man: Fix typo.
6234 2001-02-16  Werner LEMBERG  <wl@gnu.org>
6236         Fixing a bug which prevented proper end-of-sentence recognition
6237         between an `unformatted' box and the following text.  As a
6238         consequence, vertical line distances are no longer preserved in
6239         boxes after a call to `.unformat' -- because boxes aren't
6240         line-oriented (contrary to diversions), this doesn't make sense
6241         anyway.
6243         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
6244         value.
6245         (vertical_size_node::set_unformat_flag): New method.
6246         * src/roff/troff/node.hh: Updated.
6247         * src/roff/troff/input.cc (word_space_node::reread,
6248         hmotion_node::reread): Reset `unformat' flag after usage.
6249         (unformat_macro): Append only if `set_unformat_flag()' returns
6250         non-zero.
6251         * src/roff/troff/troff.man: Updated.
6253 2001-02-15  Werner LEMBERG  <wl@gnu.org>
6255         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
6256         documentation of `asciify' and `unformat' requests.
6258 2001-02-13  Werner LEMBERG  <wl@gnu.org>
6260         Redesigned the `unformat' request.  It is no longer connected with
6261         `asciify' but rather uses new `reread()' methods if the `unformat'
6262         flag is set.  Additionally, the handling of space characters after
6263         unformatting has been fixed so that they retain their width.
6265         * src/roff/troff/node.h (width_list): New structure to store
6266         original widths of spaces.
6267         (node): Added `unformat' member.
6268         Replaced `num_spaces' variable with `orig_width' list.
6269         * src/roff/troff/node.cc (*node::asciify,
6270         asciify_reverse_node_list): Removed `unformat_only' flag and related
6271         code.
6272         (word_space_node::asciify, word_space_node::word_space_node): Use
6273         `orig_width'.
6274         (word_space_node::~word_space_node): New destructor.
6275         (word_space_node::copy): Updated to handle `orig_width'.
6276         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
6277         (*node::merge_space): Update `orig_width' list if necessary.
6278         (*node::set_unformat_flag): New methods to set the `unformat' flag.
6279         * src/roff/troff/enc.cc (environment::space_newline): Use
6280         `width_list'.
6281         (environment::space): Added method to handle space width and
6282         sentence space width as parameters.  Use `width_list'.
6283         (environment::make_tab_node): Updated.
6284         * src/roff/troff/env.h: Updated.
6285         * src/roff/troff/input.cc (word_space_node::reread,
6286         unbreakable_space_node::reread, hmotion_node::reread): New methods
6287         to handle nodes specially if `unformat' flag is set.
6288         (do_asciify_macro): Renamed back to ...
6289         (asciify_macro): This.
6290         (unformat_macro): New implementation to simply set the `unformat'
6291         flag.
6293         * MORE.STUFF: Added more info about deroff.
6295 2001-02-08  Werner LEMBERG  <wl@gnu.org>
6297         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
6298         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
6299         and `add_self()' methods to avoid hyphenation.  For example, the
6300         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
6301         soft hyphen after `foo'.  Now the hyphen list is correctly
6302         `foo<ignore><ignore>bar'.
6304 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
6306         * tmac/groff_tmac.man: Fix `BIR' macro.
6308 2001-02-04  Werner LEMBERG  <wl@gnu.org>
6310         A new escape sequence `\:', inserting a zero-width break point.
6312         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
6313         * src/roff/troff/input.cc (get_copy, token::next, asciify):
6314         Implement it.
6315         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
6316         method.
6317         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
6318         and `asciify()' methods.
6319         * src/roff/troff/node.cc (space_node::space_node): Updated.
6320         (space_node::asciify): Handle `was_escape_colon'.
6321         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6323         Handle `\~' similar to other comparable requests.
6325         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
6326         label.
6327         (token::next): Move creation of an unbreakable_space_node to...
6328         (token::add_to_node_list): Here.
6330         Fix a bug which sometimes prevented hyphenation of words connected
6331         with `\~' or `\ ' (and other escape sequences handled as
6332         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
6333         (after a call to the `unformat' request).
6335         * src/roff/troff/env.h (environment::possibly_break_line,
6336         environment::hyphenate_line): Introducing `start_here' parameter.
6337         * src/roff/troff/env.cc (environment::space_newline,
6338         environment::space): Use it.
6339         (environment::possibly_break_line, environment::hyphenate_line):
6340         Implement it.
6341         * src/roff/troff/input.cc (process_input_stack): Use it.
6342         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
6343         space_char_hmotion_node, overstrike_node): Add
6344         `get_hyphenation_type()' method.
6345         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
6346         if `unformat_only' is active.
6348 2001-01-30  Werner LEMBERG  <wl@gnu.org>
6350         Implemented new read-only number register `.linetabs' which
6351         returns 1 if in line-tabs mode, 0 otherwise.
6353         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
6354         * src/roff/troff/env.cc (get_line_tabs): New function.
6355         (init_env_requests): Use it.
6356         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6358         * VERSION, REVISION: Changing to 1.17.0.
6360 2001-01-28  Werner LEMBERG  <wl@gnu.org>
6362         Fixed a bug which prevented hyphenation of words which are finished
6363         with `\)'.
6365         * src/roff/troff/token.h (token): Add enum type
6366         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
6367         * src/roff/troff/input.cc (token::next, token::description,
6368         get_line_arg, token::add_to_node_list, token::process): Use it.
6370 2001-01-27  Werner LEMBERG  <wl@gnu.org>
6372         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
6373         * src/roff/troff/div.cc (do_divert): Use it.
6375         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
6377 2001-01-25  Werner LEMBERG  <wl@gnu.org>
6379         Adding the `linetabs' request.  If set, tab distances are not
6380         computed relative to the input line but relative to the output line.
6382         * src/roff/troff/env.h (environment): New member `line_tabs'.
6383         * src/roff/troff/env.cc (line_tabs_request): Implement request.
6384         (environment::environment, environment::copy): Updated.
6385         (environment::distance_to_next_tab): Use `line_tabs'.
6386         (init_env_requests): Register request.
6387         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
6388         fixes.
6390 2001-01-24  Werner LEMBERG  <wl@gnu.org>
6392         Introducing a new read-only register `.int' which is set to a
6393         positive value if the last output line is interrupted (i.e., if it
6394         contains `\c').
6396         * src/roff/troff/env.cc (init_env_requests): Add it.
6397         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6399 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
6401         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
6402         * src/preproc/html/pre-html.cc (findPrefix): New function which
6403         generates the troff executable name via the system prefix.
6404         * src/preproc/eqn/main.cc: Modified warning message.
6406 2001-01-23  Werner LEMBERG  <wl@gnu.org>
6408         troff's `box' and `boxa' requests didn't preserve temporary
6409         indentation.
6411         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
6412         `saved_target_text_length' members.
6413         * src/roff/troff/div.cc (do_divert): Use them.
6415         Tabs (but not yet leaders and fields) are now handled correctly by
6416         `asciify' request.
6418         * node.h (hmotion_node): Add field `was_tab'.
6419         * env.cc (environment::make_tab_node): Set it.
6420         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
6422         Added new request `unformat' which will, contrary to `asciify',
6423         preserve font information after unformatting (i.e., only nodes
6424         dealing with horizontal space are converted back to input
6425         characters).
6427         * input.cc (asciify_macro): Renamed to ...
6428         (do_asciify_macro): this, having a new parameter `unformat_only'.
6429         (asciify_macro, unformat_macro): New; using do_asciify_macro.
6430         (init_input_requests): Added `unformat'.
6431         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
6432         parameter to control asciification process.
6433         * node.h (*_node::asciify): Ditto.
6434         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6436 2001-01-20  Werner LEMBERG  <wl@gnu.org>
6438         * doc/groff.texinfo: Minor improvement of `.in' documentation.
6440 2001-01-18  Werner LEMBERG  <wl@gnu.org>
6442         * tmac/ps.tmac: Remove call of psold.tmac.
6443         * tmac/psold.tmac: Comment updated.
6444         * tmac/psnew.tmac: Removed since no longer needed.
6445         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
6447         * font/devutf8/R.proto: Adding `shc' glyph.
6448         * font/devutf8/NOTES: Updated.
6450         * test-groff: Updated.
6452 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
6454         First cut of the new html device driver.  Changes to pre-html and
6455         the new grohtml are too numerous to be documented here.
6457         Stuff related to `html' has been renamed to `html-old' and `html2'
6458         stuff has been renamed to `html' (including directories).  The new
6459         html device driver is therefore invoked as `-Thtml'.
6461         Added new `\O' escape to suppress output (needed by html driver).
6463         Added functions and code to pass info about input-level commands
6464         (`.in', `.fl', etc.) to html driver.
6466         Three new functions (.html-begin, .html-end, and .html-image) for
6467         better html handling: `html-begin' will execute the remaining line
6468         if at the outermost nesting level, increasing an internal counter.
6469         `html-end' does the same but decreases the internal counter.
6470         `html_image' puts its arguments into a special node (suppress_node)
6471         to define an image region.
6473         The `output' request has been removed.
6475         * tmac/html-tags.tmac: Removed.
6476         * tmac/arkup.tmac: Updated and renamed to ...
6477         * tmac/www.tmac: New file.
6478         * tmac/markup.tmac Updated and renamed to ...
6479         * tmac/mwww.tmac: New file.
6480         * tmac/Makefile.sub: Updated.
6481         * tmac/an-old.tmac: Updated.
6482         * tmac/eqnrc: Updated.
6483         * tmac/groff_man.man
6484         * tmac/groff_markup.man: Updated and renamed to ...
6485         * tmac/groff_mwww.man: New file.
6486         * tmac/groff_tmac.man: Updated.
6487         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
6488         * tmac/html.tmac: Updated and renamed from html2.tmac.
6489         * tmac/pspic.tmac: Updated html support.
6490         * tmac/s.tmac: Added html output support.
6491         * tmac/troffrc, tmac/troffrc-end: Updated.
6493         * Makefile.in, doc/Makefile: Updated.
6494         * doc/groff.texinfo: Added info about new `\O' escape.
6495         * doc/homepage.ms: Use `MAILTO' macro.
6497         * font/devhtml/DESC.proto: Add `C' font.
6498         * font/devhtml/Makefile.sub: Updated.
6499         * font/devhtml/R.proto: Minor fixes.
6500         * font/devhtml-old/Makefile.sub: Updated.
6502         * src/devices/grohtml-old/Makefile.sub: Updated.
6504         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
6505         method.
6506         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
6507         graphic_start): Add `inline' parameter.  Update.
6508         (html_end_suppress, graphic_end): Update.
6510         * src/include/html-strings.h: New file.
6511         * src/include/htmlindicate.h: Comments updated.
6512         * src/include/printer.h: Updated.
6514         * src/preproc/eqn/main.cc (do_file, main): Updated.
6515         * src/preproc/pic/troff.cc (troff_output::start_picture,
6516         troff_output::finish_picture): Updated.
6517         * src/preproc/tbl/main.cc (process_input_file): Updated.
6519         * src/roff/groff/groff.cc (main): Updated.
6520         Pass device arguments to predrivers also.
6521         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
6522         * src/roff/troff/env.h (environment): Updated.
6523         New elements `need_eol' and `ignore_next_eol' (for html output).
6524         * src/roff/troff/env.cc (environment::environment): Add initializers
6525         for `need_eol' and `ignore_next_eol'.
6526         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
6527         functions.
6528         (point_size, fill, no_fill, center, right_justify, line_length,
6529         indent, temporary_indent, break_request, handle_tab): Use
6530         `add_html_tag()'.
6531         (set_tabs): Use `add_html_tag_tabs()'.
6532         (environment::add_html_tag): Updated.
6533         (environment::do_break): Updated.
6534         * src/roff/troff/div.cc (space_request, flush_output): Use
6535         `environment::add_html_tag()'.
6536         * src/roff/troff/input.cc: Updated.
6537         New variable `html_level' to indicate nested `html-begin' requests.
6538         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
6539         (non_interpreted_char_node, token_node, non_interpreted_node): Add
6540         `force_tprint()' method.
6541         (token::next): Handle `\O'.
6542         (do_suppress): Implement it.
6543         (html_begin, html_end, html_image): New functions.
6544         (init_output_requests): Renamed to ...
6545         (init_html_requests): this.
6546         (main): Use it.
6547         (macro::append_str, macro::append_unsigned, macro::append_int): New
6548         methods.
6549         New variable `output_low_mark_miny' to limit minimal value of y.
6550         (reset_output_registers): Use it.
6551         (output_request): Removed.
6552         (get_output_registers): New function.
6553         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
6554         (*_node): Added `force_tprint()' if necessary.
6555         (special_node): New elements `tf' and `get_tfont()'.
6556         (suppress_node): New class.
6557         * src/roff/troff/node.cc:
6558         New global variables `image_no' and `suppress_start_page'.
6559         (real_output_file): New method `is_on()'.
6560         (troff_output_file): New method `start_special(tfont)'.
6561         (troff_output_file::really_print_line): Use `tprint' conditionally.
6562         (real_output_file::print_line): Updated.
6563         (real_output_file::on): Updated.
6564         (*_node): Added `force_tprint()'.
6565         (special_node::special_node): Initializer updated.
6566         (special_node::same, special_node::copy, special_node::tprint_start):
6567         Updated.
6568         (get_reg_int, get_reg_str): New functions.
6569         (suppress_node::*): New methods.
6570         New global variables last_position, last_image_filename;
6571         (min): New inline function.
6572         * src/roff/troff/reg.h, src/roff/troff/request.h,
6573         src/roff/troff/troff.h: Updated.
6575 2001-01-13  Werner LEMBERG  <wl@gnu.org>
6577         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
6578         documentation of `asciify' request.
6580 2001-01-12  Werner LEMBERG  <wl@gnu.org>
6582         * src/roff/troff/input.cc: Move definition of special characters
6583         like `ESCAPE_TILDE' to ...
6584         * src/roff/troff/input.h: New file.
6585         * src/roff/troff/Makefile.sub (HDRS): Add it.
6587         Extending the .asciify request to `unformat' space characters also.
6589         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
6590         to count input space characters.
6591         Update constructors to take care of it.
6592         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
6593         `ESCAPE_SPACE' instead of normal space.
6594         (word_space_node::asciify): New method.
6595         (unbreakable_space_node::asciify): New method.
6596         (word_space_node::merge_space): New method.
6597         * src/roff/troff/env.cc (environment::space_newline,
6598         environment::space): Add code to initialize `num_spaces' (using the
6599         constructor of `word_space_node').
6600         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6601         Document it.
6603 2001-01-09  Werner LEMBERG  <wl@gnu.org>
6605         * man/groff_char.man: Use table header traps only conditionally.
6607 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
6609         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
6611 2001-01-08  Werner LEMBERG  <wl@gnu.org>
6613         Introducing the `box' and `boxa' requests which are similar to
6614         `di' resp. `da' but omitting a partially filled line (which is
6615         restored after ending the diversion).
6617         * src/roff/troff/div.h (diversion): Add elements to save partially
6618         filled line.
6619         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
6620         partially filled line.
6621         (divert, divert_append): Updated.
6622         (box, box_append): New functions.
6623         (init_div_requests): Use them.
6624         * src/roff/troff/env.h (environment): do_divert() is now a friend.
6625         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6627         * doc/groff.texinfo: Fix documentation of `lf' request.
6629 2000-12-25  Werner LEMBERG  <wl@gnu.org>
6631         * src/roff/troff/troff.man, NEWS: Document `writem' request.
6633 2000-12-21  Werner LEMBERG  <wl@gnu.org>
6635         Ignore `ss' request if in compatibility mode.
6637         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
6638         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
6639         * src/roff/troff/env.cc (space_size): Use it.
6641         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
6642         `ss' request in nroff mode.
6644         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
6645         changes.
6647 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
6649         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
6651 2000-12-13  Werner LEMBERG  <wl@gnu.org>
6653         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
6654         * src/preproc/eqn/neqn.man: Small fixes and additions.
6656 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
6658         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
6659         Fixing typo.
6661         * src/preproc/eqn/neqn.man: New file.
6663         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
6664         negative' warning.
6666         * tmac/e.tmac: Add `T&' macro.
6667         Fix `indent cannot be negative' warning.
6668         * tmac/s.tmac: Fix `indent cannot be negative' warning.
6670 2000-12-07  Werner LEMBERG  <wl@gnu.org>
6672         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
6674 2000-12-06  Werner LEMBERG  <wl@gnu.org>
6676         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
6677         `alloca' symbol .
6679         * MORE.STUFF: Added info about deroff for djgpp.
6681         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
6682         documentation of -rcR switch.
6684 2000-12-03  Werner LEMBERG  <wl@gnu.org>
6686         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
6687         if -rcR=1 (which is now the default in nroff mode), a single, very
6688         long page is created instead of multiple pages: All `ne' and `wh'
6689         requests are put into conditionals; a new macro `an-end' is added to
6690         be called with `em'.
6692         Some other minor cleanups.
6694         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
6696 2000-12-02  Werner LEMBERG  <wl@gnu.org>
6698         Fixing a bug which prevented hyphenation in words followed
6699         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
6701         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
6702         Adding possibly_break_line().
6703         * src/roff/troff/env.h (environment): Make possibly_break_line()
6704         public.
6706         Make `\~' usable in .tr request.
6708         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
6709         (token): Add stretchable_space().
6710         * src/roff/troff/input.cc (token::next, token::delimiter,
6711         token::description, process_input_stack, do_translate,
6712         add_to_node_list, token::process): Use it.
6713         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
6714         for adjusting the space.
6715         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
6716         for stretchable space.
6717         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
6718         (make_node): Add code for stretchable space.
6719         * src/roff/troff/env.cc (environment::add_char): Use it.
6720         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
6721         (get_copy, token::next, transparent_translate, asciify): Use it.
6723         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
6724         doc/groff.texinfo: Updated.
6725         * man/groff.man: Small reorderings.
6727 2000-11-23  Werner LEMBERG  <wl@gnu.org>
6729         * NEWS: Fixes.
6730         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
6731         option.
6732         * src/roff/troff/input.cc (main): Add `config_macro_path' and
6733         `safer_macro_path' to -M option.
6734         * src/roff/troff/troff.man: Fixes.
6736 2000-11-22  Werner LEMBERG  <wl@gnu.org>
6738         Use safer path (except for config files) if -U isn't specified.  Add
6739         a special macro path (without home and current directory) for config
6740         files.  Add home directory to unsafe path for consistency.  Don't
6741         include the home directory in the font path.
6743         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
6744         `macro_path'.
6745         * src/include/macropath.h: Add `config_macrp_path'.
6746         * src/libs/libgroff/fontfile.cc: Fix font path.
6747         * src/roff/troff/input.cc (process_startup_file): Use
6748         `config_macro_path'.
6749         (main): Select unsafe path if -U is given.
6751         * src/preproc/eqn/main.cc (main): Fixing search path for
6752         configuration file.
6753         * src/preproc/eqn/eqn.man: Updated.
6755         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
6756         Updated.
6758         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
6759         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
6760         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
6761         src/devices/grotty/grotty.man: Updated.
6763         * Makefile.in: Fix comments.
6765 2000-11-17  Werner LEMBERG  <wl@gnu.org>
6767         * tmac/safer.tmac: Empty file added (again) for compatibility
6768         reasons.
6769         * tmac/Makefile.sub: Updated.
6771 2000-11-16  Werner LEMBERG  <wl@gnu.org>
6773         * src/devices/grodvi/dvi.cc (main),
6774         src/devices/grohtml2/post-html.cc (main),
6775         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
6776         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
6777         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
6778         (main), src/preproc/html2/pre-html.cc (main),
6779         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
6780         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
6781         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
6782         (main), src/utils/hpftodit/hpftodit.cc (main),
6783         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
6784         (main), src/utils/lookbib/lookbib.cc (main),
6785         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
6786         (main): Use stdout for -v.
6787         * src/roff/groff/groff.cc (run_commands),
6788         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
6789         to make direct printing to stdout possible.
6790         * src/roff/groff/pipeline.h: Updated.
6792         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
6793         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
6794         * src/utils/afmtodit/afmtodit.man: Updated.
6796         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
6797         (version): New function.
6798         (usage): Updated.
6799         * src/utils/addftinfo/addftinfo.man: Updated.
6801         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
6802         Fixing copyright dates.
6804         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
6805         replacing it.
6807         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
6808         version_string.
6810         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
6812 2000-11-15  Werner LEMBERG  <wl@gnu.org>
6814         In all programs, make -v return immediately with exit status 0 to
6815         be compliant with the GNU standard.
6817         * src/devices/grodvi/dvi.cc (main),
6818         src/devices/grohtml2/post-html.cc (main),
6819         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
6820         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
6821         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
6822         (main), src/preproc/html2/pre-html.cc (main),
6823         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
6824         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
6825         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
6826         (main): Implement it.
6827         * NEWS: Updated.
6829         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
6830         and postprocessors to the -v option.
6832         * src/roff/grog/grog.pl: Implement -v.
6833         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
6834         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
6836         * src/roff/nroff/nroff.sh: Implement -v.
6837         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
6838         * src/roff/nroff/nroff.man: Updated.
6839         
6840         * src/preproc/eqn/main.cc (main): Fix comment typo.
6842         * MORE.STUFF: Added info about djgpp port of grap.
6844 2000-11-14  Werner LEMBERG  <wl@gnu.org>
6846         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
6847         mode (or rather, implemented non-compatibility mode).
6848         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
6850         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
6851         replacing it -- we don't find gxditview otherwise.
6852         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
6854         * src/preproc/pic/depend: Removed.  Unnecessary.
6856         Implemented dummy keyword `solid' in pic for compatibility with
6857         AT&T pic.
6859         * lex.cc (lookup_keyword): Added `solid'.
6860         * pic.y: Added SOLID with dummy rule.
6861         * pic.cc, pic_tab.h: Regenerated.
6862         * doc/pic.ms: Updated.
6864 2000-11-13  Werner LEMBERG  <wl@gnu.org>
6866         For security reasons, don't use the current directory but the home
6867         directory while searching and scanning troffrc and troffrc-end.
6868         Similarly, replace the current directory with the home directory
6869         in the font path.
6871         * Makefile.in (fontpath, tmacpath): Remove current directory.
6873         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
6874         two parameters `add_home' and `add_current'.
6875         (search_path::~search_path, search_path::command_line_dir,
6876         search_path::open_file): Remove tests for `dirs' being zero.
6877         * src/include/searchpath.h: Adjust.
6878         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
6879         `safer_macro_path'.
6880         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
6882         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
6883         * src/roff/troff/input.cc: Use `mac_path', initialized with
6884         `macro_path'.
6885         (process_startup_file): Set `mac_path' to `safer_macro_path'.
6886         * src/roff/troff/env.cc: Use `mac_path'.
6888         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
6890         * NEWS, man/roff.man, src/roff/troff/troff.man,
6891         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
6892         Updated.
6894 2000-11-12  Werner LEMBERG  <wl@gnu.org>
6896         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
6898         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
6899         * configure.in: Fix typo in comment.
6900         * configure: Regenerated.
6902         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
6903         copyright dates.
6905 2000-11-08  Werner LEMBERG  <wl@gnu.org>
6907         Add system tmac directory (/usr/local/lib/groff/site-tmac).
6909         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
6910         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
6911         $(systemtmacdir).
6912         Use @libdir@.
6913         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
6914         * tmac/Makefile.sub (install_data): Create
6915         $(systemtmacdir) and $(localtmacdir).
6916         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
6917         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
6918         NEWS, doc/groff.texinfo: Updated and minor fixes.
6920         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
6921         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
6922         $(systemtmacdir) since the wrapper files are platform-dependent.
6924 2000-11-01  Werner LEMBERG  <wl@gnu.org>
6926         * doc/groff.texinfo: Fix typo.
6928 2000-10-26  Werner LEMBERG  <wl@gnu.org>
6930         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
6931           tmac.doc.old -> doc-old.tmac
6932           tmac.an.old  -> an-old.tmac
6934         * tmac/tmac.*: Moved to ...
6935         * tmac/*.tmac: this.
6936         * tmac/man.local: Fix comment.
6937         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
6938         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
6939         Added some `FILES' sections.  More use of @...@ directives.  Other
6940         minor updates.
6941         * arch/djgpp/README, font/devutf8/NOTES: Updated.
6942         * doc/homepage.ms, doc/groff.texinfo: Updated.
6943         * man/groff.man, man/roff.man: Updated.
6944         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
6945         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
6946         src/devices/grotty/grotty.man: Updated.
6947         * src/preproc/pic/pic.man: Updated.
6948         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
6949         instead of -mdoc.old.
6950         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
6951         * src/roff/nroff/nroff.man: Updated.
6952         * NEWS: Updated.
6954         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
6956         * tmac/mm.diff: Removed -- it has no use now since the mm package
6957         is part of groff.
6959         * tmac/*: Removed trailing spaces.
6961         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
6962         the tmac subdirectory also).
6964         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
6965         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
6966         stuff since it is no longer needed.
6968         * README, PROBLEMS: Updated.
6970 2000-10-25  Werner LEMBERG  <wl@gnu.org>
6972         Invert current behaviour: Search first FOOBAR.tmac, then
6973         tmac.FOOBAR.
6975         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
6976         (open_mac_file, macro_source): Implement it.
6977         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
6978         doc/groff.texinfo, NEWS: Document it.
6980         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
6981         Small documentation improvements.
6983         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
6984         subdirectory also).
6986         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
6988 2000-10-24  Werner LEMBERG  <wl@gnu.org>
6990         Add local tmac directory (groff/site-tmac).
6992         * Makefile.in: Add $(localtmacdir).
6993         (uninstall_dirs): Add $(localtmacdir).
6994         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
6995         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
6996         in $(localtmacdir).  Create $(localtmacdir).
6997         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
6998         Updated and minor fixes.
7000         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
7002         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
7004 2000-10-23  Werner LEMBERG  <wl@gnu.org>
7006         Move hyphen.us to tmac directory.
7008         * src/roff/troff/hyphen.us: Removed.
7009         * src/tmac/hyphen.us: Added.
7010         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
7012         Change installation structure for data files from .../groff/... to
7013         .../groff/<version><revision>/... to be conform with other GNU
7014         programs.
7016         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
7017         doc/Makefile: Implement it.
7018         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
7019         * configure: Updated.
7020         * arch/djgpp/README, font/devutf8/NOTES: Use it.
7021         * NEWS: Document it.
7022         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
7023         @MACRODIR@ instead of hard-coded directories.
7025 2000-10-22  Werner LEMBERG  <wl@gnu.org>
7027         Implement $GROFF_BIN_PATH environment variable (which defaults to
7028         $bindir) used for child programs of groff and similar wrappers.
7030         * gendefs.sh: Improve documentation.
7031         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
7032         src/preproc/eqn/Makefile.sub (neqn),
7033         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
7034         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
7035         $GROFF_BIN_PATH.
7036         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
7037         $GROFF_PATH__ (the latter for communication with troff).
7038         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
7039         set.
7040         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
7041         doc/groff.texinfo: Document it.
7043         * doc/groff.texinfo: Improve documentation of troff's -a option.
7045 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
7047         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
7048         non-intrusive eol marker.
7049         (troff_output_file::determine_line_limits): New function.
7050         (troff_output_file::draw): Use it.
7051         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
7052         output_pending_lines() instead of output_line().
7053         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
7054         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
7055         createImage): Small fixes.
7056         
7057 2000-10-14  Werner LEMBERG  <wl@gnu.org>
7059         Replace tmac.safer with a real secure solution.
7061         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
7062         system_request, pipe_output): Disable requests if in safer mode.
7063         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
7064         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
7065         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
7066         doc/groff.texinfo, src/roff/groff/groff.man,
7067         src/roff/troff/troff.man, arch/djgpp/README: Updated.
7069         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
7070         (resource_manager::output_prolog): Replace setenv() with putenv().
7072 2000-10-09  Werner LEMBERG  <wl@gnu.org>
7074         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
7075         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
7076         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
7077         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
7078         compilation errors with some compilers.  It seems that this code
7079         is no longer necessary -- if yes, it is easy to add some #ifdef's
7080         for that particular old-fashioned compiler.
7082         * MORE.STUFF: Added info about Meta-tbl.
7084         * doc/groff.texinfo: Added more info about `.if "..."..."'.
7086 2000-10-07  Werner LEMBERG  <wl@gnu.org>
7088         Adding a new escape sequence \B'...': If the string between
7089         the delimiters is a valid numeric expression, return the character
7090         `1', and `0' otherwise.  This is an analogon to \A.
7092         * src/roff/troff/input.cc (do_expr_test): Implement it.
7093         (token::next): Use it.
7094         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
7096         * tmac/tmac.trace: Made independent from escape character.
7098 2000-10-06  Werner LEMBERG  <wl@gnu.org>
7100         Adding a new request .dei: define indirect.  The first and second
7101         parameter of .dei are taken from string registers instead directly;
7102         this very special request is needed to make tmac.trace independent
7103         from the escape character (which might even be disabled).
7105         * src/roff/troff/input.cc (do_define_macro): Implement it.
7106         (define_macro_indirect): New function.
7107         (init_input_requests): Use it.
7109         Adding two requests .ecs and .ecr: Save and restore the escape
7110         character.  These two requests are needed to make tmac.trace
7111         independent from the escape character (which might even be
7112         disabled).
7114         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
7115         Implement it.
7116         (init_input_requests): Use it.
7118         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7120 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
7122         Adding a new option -P and new environment variable GROPS_PROLOGUE
7123         to grops, selecting a different prologue file (minor modifications
7124         by WL).
7126         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
7127         src/devices/grops/ps.cc (main): Implement it.
7128         * src/devices/grops/grops.man, NEWS: Document it.
7130 2000-09-22  Werner LEMBERG  <wl@gnu.org>
7132         * INSTALL: Add info about selecting paper format.
7134 2000-09-21  Werner LEMBERG  <wl@gnu.org>
7136         * src/roff/troff/input.cc (main): Fixing compiler warning.
7137         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
7138         strings.h from the former to the latter.
7139         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
7140         stuff from the former to the latter.
7142 2000-09-11  Werner LEMBERG  <wl@gnu.org>
7144         Implementing two new requests .tm1 and .tmc: The former is similar
7145         to .tm but can output leading spaces; its syntax is similar to
7146         defining a string, i.e., a `"' can be used to mark the beginning of
7147         the string to be written to stderr: `.tm1 " test'.  The latter is
7148         similar to .tm1 but doesn't write out a final newline character.
7150         * src/roff/troff/input.cc (terminal1, terminal_continue,
7151         do_terminal): New functions.
7152         (init_input_requests): Use them.
7153         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7155 2000-09-09  Werner LEMBERG  <wl@gnu.org>
7157         * tmac/groff_mdoc.samples.man: Small fixes.
7159 2000-09-08  Werner LEMBERG  <wl@gnu.org>
7161         * tmac/groff_mdoc.man: Fixing typo.
7163 2000-09-02  Werner LEMBERG  <wl@gnu.org>
7165         Implementing a .nop request which does nothing.
7167         * src/roff/troff/input.cc (nop_request): New function.
7168         (init_input_requests): Use it.
7169         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7171 2000-09-01  Werner LEMBERG  <wl@gnu.org>
7173         * doc/groff.texinfo: Added some comments.
7175 2000-08-30  Werner LEMBERG  <wl@gnu.org>
7177         * src/roff/troff/TODO: Updated.
7179 2000-08-25  Werner LEMBERG  <wl@gnu.org>
7181         * doc/groff.texinfo: Fix comment how to compile the DVI file.
7183 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
7185         * font/devps/generate/Makefile (SHELL): Define explicitly to
7186         "/bin/sh", for non-Unix platforms.
7187         (extraclean): Use a more portable "" quoting instead of a
7188         backslash (which doesn't work on DOS/Windows).
7189         
7190         * font/devlj4/generate/Makefile (extraclean): Ditto.
7192         * font/devdvi/generate/Makefile (extraclean): Ditto.
7194 2000-08-25  Werner LEMBERG  <wl@gnu.org>
7196         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
7197         src/roff/troff/troff.man: Document Eli's latest changes.
7199 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
7201         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
7202         macro file names of the form NAME.tmac as well as tmac.NAME.
7204 2000-08-25  Werner LEMBERG  <wl@gnu.org>
7206         * src/include/posix.h: Remove definition of FILENAME_MAX.
7208         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
7209         `sys_fatal' and `stop' function().
7211         * test-groff: Updated.
7213 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
7215         Added the new troff command .output <arg> to suppress output (while
7216         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
7217         registers (for passing the output dimensions to the output device).
7219         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
7220         parameter.
7221         * src/roff/troff/node.h, src/roff/troff/node.cc
7222         (troff_output_file::really_print_line,
7223         ascii_output_file::really_print_line,
7224         supress_output_file::really_print_line): Use `width' parameter.
7225         (troff_output_file::really_on, troff_output_file::really_off,
7226         output_file::on, output_file::off, real_output_file::on,
7227         real_output_file::off, real_output_file::really_on,
7228         real_output_file::really_off): New functions.
7229         (real_output_file:public output_file): New variable `output_on'.
7230         (real_output_file::begin_page, real_output_file::copy_file,
7231         real_output_file::transparent_char, real_output_file::print_line):
7232         Use it.
7233         (real_output_file::print_line): Use check_output_limits.
7234         * src/roff/troff/reg.h, src/roff/troff/request.h,
7235         src/roff/troff/input.cc (assign_registers): New function to remove
7236         two `goto's.
7237         (do_ps_file): Use it.
7238         (check_output_limits, reset_output_registers, output_request,
7239         init_output_requests): New functions.
7240         (init_input_requests): Updated.
7242         Added new grohtml2 device and html2 preprocessor (coding
7243         not yet finished) which will eventually replace grohtml.
7245         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
7246         Updated.
7247         * src/include/htmlindicate.h, src/include/htmlindicate
7248         (html_begin_suppress, html_end_suppress): New functions.
7249         * src/preproc/tbl/main.cc: Use it.
7250         * src/roff/groff/groff.cc: Add support for html2 device (which will
7251         automatically invoke the html2 preprocessor).
7252         * src/roff/troff/input.cc (is_html2): New variable.
7253         * src/roff/troff/troff.h, src/roff/troff/env.h,
7254         src/roff/troff/env.cc (environment::add_html_tag): New function
7255         (uses `is_html2').
7256         (environment::do_break): Use it.
7257         * font/devhtml2/*: New files.
7258         * src/devices/grohtml2: New device.
7259         * src/preproc/html2: New preprocessor.
7260         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
7262 2000-08-23  Werner LEMBERG  <wl@gnu.org>
7264         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
7266 2000-08-22  Werner LEMBERG  <wl@gnu.org>
7268         * src/include/lib.h: Provide a fix for IRIX to not include
7269         groff-getopt.h.
7271 2000-08-18  Werner LEMBERG  <wl@gnu.org>
7273         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
7274         since some non-GNU sed programs can't handle null regexps.
7275         * configure, src/preproc/eqn/Makefile.sub,
7276         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
7278         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
7279         bug (string.h and strings.h are both needed according to latest
7280         POSIX standard).
7282         * MORE.STUFF: Added info about unroff and troffcvt.
7284 2000-08-08  Werner LEMBERG  <wl@gnu.org>
7286         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
7287         used before -ms.
7289         * tmac/tmac.man.old: Remove unused number register.
7291         * tmac.doc: Minor documentation fix.
7293 2000-08-07  Paul Eggert  <eggert@twinsun.com>
7295         * src/roff/groff/pipeline.c (is_system_shell):
7296         Fix typo: "monocased_shell" no longer exists.
7298 2000-08-07  Paul Eggert  <eggert@twinsun.com>
7300         Remove FILENAME_MAX limits.
7302         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
7303         that the argument length is less than FILENAME_MAX.
7304         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
7305         Use struct hack to allocate and free file name.
7306         (struct xtmpfile_list): fname is now part of the structure,
7307         not a pointer to another string.
7309 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
7311         * src/include/posix.h: Add a default value for FILENAME_MAX.
7313 2000-08-06  Paul Eggert  <eggert@twinsun.com>
7315         Add support for new BSD-style man pages (with ".Dd" instead of
7316         ".TH"), so that "groff -man" understands both styles, even
7317         when running "groff -man" on a host whose system man page
7318         macros don't support ".Dd".
7320         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
7321         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
7322         in case the system man macros don't define Dd or TH.
7324         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
7325         * tmac/tmac.an: New one-line file.
7326         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
7328 2000-08-06  Werner LEMBERG  <wl@gnu.org>
7330         * src/roff/troff/troff.man: Fixing typos.
7332 Version 1.16.1 released
7333 =======================
7335 2000-07-31  Werner LEMBERG  <wl@gnu.org>
7337         Preparing release 1.16.1.
7339         * REVISION: Revision number set to 1.
7340         * MORE.STUFF: Added info about port to DOS.
7341         * NEWS, win32-diffs: Updated.
7343         * src/include/nonposix.h: Remove first line -- this file is used
7344         in C also.
7346         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
7347         link to it.
7349 2000-07-30  Werner LEMBERG  <wl@gnu.org>
7351         * doc/texinfo.tex: Update to latest version.
7353 2000-06-28  Paul Eggert  <eggert@twinsun.com>
7355         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
7356         commands that fail.  Don't assume that "export a=b" is valid shell
7357         syntax.  This is needed for Solaris 2.5.1.
7359         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
7360         comment about missing Solaris headers.
7362         * PROBLEMS: Add section about problems with Sun Make and VPATH.
7364 2000-06-25  Werner LEMBERG  <wl@gnu.org>
7366         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
7367         SET_BINARY().
7369         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
7371         * win32-diffs: Updated.
7372         * README.WIN32: Added CRs to make all Windows editors happy.
7374         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
7375         src/roff/groff/pipeline.c).
7377 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
7379         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
7380         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
7382 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
7384         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
7385         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
7386         are binary files.
7387         (main): Support non-Posix systems with several different styles of
7388         slash characters in file names.
7390         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
7391         (main) [SET_BINARY]: Switch stdin into binary mode.
7393         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
7394         (main): Support file names with several possible slash-type
7395         characters, as given by DIR_SEPS[] in nonposix.h.
7396         (main) [__MSDOS__]: If renaming the temporary index file fails
7397         because it has more than one dot in its trunk, replace the dot
7398         with an underscore and try again.
7399         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
7400         Newline.
7401         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
7403         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
7404         (File::File): Open the input file in binary mode.  Strip CR
7405         characters from each CR-LF pair.
7406         (xbasename): Support file names with several possible slash-type
7407         characters, as given by DIR_SEPS[] in nonposix.h.
7409         * src/include/Makefile.sub (HDRS): Add nonposix.h.
7411         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
7412         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
7413         [!_POSIX_VERSION]: Define for traditional Unix systems.
7414         (real_output_file::real_output_file): Remove the MSVC-specific
7415         call to popen, use instead POPEN_WT, appropriately defined on
7416         nonposix.h.  #include nonposix.h.
7417         (real_output_file::~real_output_file): Remove the MSVC-specific
7418         call to pclose, a suitable macro is now defined on nonposix.h.
7419         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
7420         and WEXITSTATUS instead of assuming traditional Unix
7421         interpretation of the status returned by pclose.
7423         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
7424         call to popen, use POPEN_RT instead (appropriately defined on
7425         nonposix.h).  #include nonposix.h.
7426         (ps_bbox_request): Open the PostScript file in binary mode.
7427         Close the file after processing it.
7428         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
7429         nonposix.h.
7431         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
7432         A version of run_pipeline that doesn't use `fork'.
7433         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
7434         (system_shell_name, system_shell_dash_c)
7435         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
7436         the ugliness of testing DOS/Windows file names for equality, and
7437         support both stock shells and ports of Unix shells.
7439         * src/roff/groff/groff.cc: #include nonposix.h.
7440         (BSHELL): Definition moved to nonposix.h.
7441         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
7442         instead of a literal "-c".
7443         (xbasename): Support file names with several possible slash-type
7444         characters, as given by DIR_SEPS[] in nonposix.h.
7445         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
7446         of literal strings.
7448         * src/preproc/soelim/soelim.cc: #include nonposix.h.
7449         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
7451         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
7452         pic_tab.h.
7454         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
7456         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
7457         eqn_tab.h.
7459         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
7461         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
7462         P_tmpdir is defined, use it instead of the literal "/tmp".
7463         (remove_tmp_files, add_tmp_file): New functions.
7464         (xtmpfile): Record temporary files and register an atexit function
7465         to delete them explicitly, instead of relying on the OS to do
7466         that, which doesn't work on non-Unix systems.
7468         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
7469         (search_path::search_path): Use PATH_SEP instead of a literal
7470         colon.
7471         (search_path::command_line_dir): Ditto.
7472         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
7473         to support non-Posix systems.
7475         * src/libs/libbib/search.cc: #include nonposix.h.
7476         (search_list::add_file): Open the file in binary mode.
7478         * src/libs/libbib/linear.cc: #include nonposix.h.
7479         (file_buffer::load): Remove \r characters preceding \n from the
7480         loaded buffer.
7482         * src/libs/libbib/index.cc: #include nonposix.h.
7483         (make_index_search_item): Open index_filename in O_BINARY mode.
7484         (index_search_item_iterator::get_tag): Ditto.  Remove \r
7485         characters before \n characters.
7486         (index_search_item::check_files): Open files in binary mode.
7487         (index_search_item::munge_filename): Support DOS-style file names
7488         with backslashes and drive letters, use IS_ABSOLUTE.
7490         * src/devices/grops/ps.cc: #include nonposix.h.
7491         (main) [SET_BINARY]: Switch stdout to binary mode.
7493         * src/devices/grolj4/lj4.cc: #include nonposix.h.
7494         (main) [SET_BINARY]: Switch stdout to binary mode.
7496         * src/devices/grolbp/lbp.cc: #include nonposix.h
7497         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
7499         * src/devices/grodvi/dvi.cc: #include nonposix.h.
7500         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
7501         nonposix.h).
7502         (main) [SET_BINARY]: Switch stdout to binary mode.
7503         [_MSC_VER]: Remove an explicit call to _setmode.
7505         * src/include/nonposix.h: New file.
7507         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
7508         operation when building with DJGPP.
7509         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
7510         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
7511         ENVSETUP.
7513         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
7514         MS-DOS.
7515         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
7516         etc. can include a semi-colon on DOS/Windows.
7517         (depend.temp): Use depend1.temp instead of depend.temp1, to
7518         prevent files from overerwiting each other on 8+3 filesystems.
7520         * gendef.sh (t): Change definition to work with DOS/Windows.
7522         doc/groff.texinfo: Apart of some typo corrections, I also changed
7523         some index entris, to make them more non-ambiguous, and also put
7524         @ignore around some parts that are not yet written, to allow the
7525         Info output be readable.
7527 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
7529         Replaced specific checks for function declarations with a generic
7530         routine taken from GNU bfd.
7532         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
7533         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
7534         * configure.in: Use it.
7535         * src/devices/grolbp/lbp.cc, src/include/lib.h,
7536         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
7537         src/roff/groff/groff.cc: Use it.
7538         * Makefile.in, configure: Updated.
7540 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
7542         * src/devides/grolbp/lbp.h: Removed unused variables.
7544 2000-05-31  Keith Thompson  <kst@sdsc.edu>
7546         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
7547         strncasecmp().
7549 2000-05-31  Werner LEMBERG  <wl@gnu.org>
7551         * aclocal.m4 (GROFF_SRAND): New function to test the return value
7552         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
7553         * configure.in: Use it.
7554         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
7555         * configure, Makefile.in: Updated.
7557         * configure.in: Add test for strncasecmp().
7558         * src/include/lib.h: Use it.
7560 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
7562         * src/preproc/grn/Makefile.sub: Add MLIB.
7564 2000-05-29  Nix  <nix@esperi.demon.co.uk>
7566         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
7568 2000-05-29  Werner LEMBERG  <wl@gnu.org>
7570         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
7572         * PROBLEMS: Small update.
7574         * src/devices/grolbp/lbp.cc: Various small fixes.
7576 2000-05-28  Keith Thompson  <kst@sdsc.edu>
7578         * src/roff/nroff/nroff.sh: Fix main loop syntax.
7580         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
7582 2000-05-25  Werner LEMBERG  <wl@gnu.org>
7584         * man/roff.man: Removed unused macro.
7586 2000-05-24  Werner LEMBERG  <wl@gnu.org>
7588         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
7589         This is needed e.g. if you do
7590         `make distclean; ./configure; make dist'.
7592 Version 1.16 released
7593 =====================
7595 2000-05-23  Werner LEMBERG  <wl@gnu.org>
7597         Adding font CWI (constant width italic) to devdvi.
7599         * font/devdvi/CWI: New file.
7600         * font/devdvi/generate/Makefile: Add generating rule.
7601         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
7602         tmac/tmac.dvi: Use it.
7603         * NEWS: Announce it.
7605         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
7606         * font/devlj4/generate/Makefile: Cosmetic changes only.
7608         * man/groff.man: Removed most of the redundant description of
7609         special characters (which is in groff_char.man).  Added font
7610         translation CB->CR for devdvi.  Other minor fixes.
7612         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
7613         (registered) symbols.
7615 2000-05-22  Werner LEMBERG  <wl@gnu.org>
7617         * doc/Makefile: Added rule for creating info files.
7619         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
7620         AMS font metrics.
7621         * font/devdvi/generate/Makefile: Fixed dependencies.
7623         * font/devps/*: Regenerated.  Heavy changes for Bookman and
7624         NewCentury Schoolbook!
7625         * font/devps/generate/afmname: Will now run with GNU awk.
7626         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
7627         * font/devps/generate/Makefile: Cosmetic changes only.
7629 2000-05-21  Werner LEMBERG  <wl@gnu.org>
7631         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
7632         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
7633         `.SS' now produces a heading with a smaller size than `.SH'. 
7634         Completely formatted.
7635         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
7637         * man/groff.man: Improved table appearance.  Use of `eo' request
7638         to reduce number of doubled backslashes in macro definitions.
7639         Replacing `\e' with `\(rs'.  Other minor fixes.
7641         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
7642         to have correct line number.
7644         * INSTALL: Small improvement.
7646 2000-05-20  Bernd Warken  <bwarken@mayn.de>
7648         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
7649         WL).
7651 2000-05-19  Bernd Warken  <bwarken@mayn.de>
7653         * man/groff.man: Complete update (with a lot of corrections by WL).
7655 2000-05-18  Werner LEMBERG  <wl@gnu.org>
7657         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
7659         * font/*/*: Implement it.
7660         * man/groff_char.man, NEWS: Document it.
7662         * src/include/unix.h: Removed.  It isn't used.
7664         * doc/groff.texinfo: Slight improvements.
7666 2000-05-17  Werner LEMBERG  <wl@gnu.org>
7668         * README, win32-diffs: Small fixes and improvements.
7670 2000-05-16  Werner LEMBERG  <wl@gnu.org>
7672         * FDL: New file (the Free Documentation License version 1.1).
7674         * doc/groff.texinfo: Added many start-up values for gtroff.
7675         Some structural improvements of the source code.
7677 2000-05-15  Werner LEMBERG  <wl@gnu.org>
7679         * src/roff/troff/input.cc: Added small comment about troffrc-end.
7680         * src/roff/troff/troff.man: Added info about troffrc-end.
7682 2000-05-14  Werner LEMBERG  <wl@gnu.org>
7684         * Makefile.in (EXTRADIRS): Fix typos.
7685         (dist): Handle deletion of old .tar.gz file correctly.
7686         (DISTDIRS): Include all tty output devices.
7688         * doc/groff.texinfo: Adding more cross references; countless other
7689         fixes.
7691 2000-05-13  Werner LEMBERG  <wl@gnu.org>
7693         * MORE.STUFF: Added Robert Marks's utilities.
7695 2000-05-12  Werner LEMBERG  <wl@gnu.org>
7697         Added win32 port contributed by Blake McBride
7698         <blake@florida-software.com>.
7700         * README.WIN32, win32-diffs: New files.
7701         * NEWS: Updated.
7703         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
7704         (tmove, tmove2): Added parentheses to avoid compiler warnings.
7705         (change): Removed unused variables.
7707         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
7708         (savebounds): Changed return value from `int' to `void'.
7709         * src/preproc/grn/hdb.cc: Ditto.
7711         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
7712         final backslash in comment to avoid compiler warning.
7714         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
7716         * doc/groff.texinfo: More fixes.
7718 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
7720         * tmac/tmac.doc: Documentation fix.
7722 2000-05-11  Werner LEMBERG  <wl@gnu.org>
7724         * doc/groff.texinfo: Reading the source code shows up a lot of
7725         omissions and incorrect data...  More conversion to @Deffn macros.
7727 2000-05-10  Werner LEMBERG  <wl@gnu.org>
7729         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
7730         dependency.
7732         * src/roff/troff/request.h: Removing unused `no_break_flag'.
7734 2000-05-09  Werner LEMBERG  <wl@gnu.org>
7736         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
7737         improvements.
7739         * doc/groff.texinfo: Extended history section.  More conversion to
7740         @Deffn macros.  More .tr documentation.
7742 2000-05-07  Werner LEMBERG  <wl@gnu.org>
7744         * doc/groff.texinfo: Completed tab section.  Added info about
7745         fields.
7747 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
7749         * PROBLEMS: Describe configure script fix for OS/390 Unix.
7751 2000-05-05  Werner LEMBERG  <wl@gnu.org>
7753         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
7754         LaTeX 2e).
7755         * NEWS: Document it.
7757         * man/troff.man: Minor optical improvements.
7759 2000-05-03  Werner LEMBERG  <wl@gnu.org>
7761         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
7763         * font/*/*: Implement it.
7764         * man/groff_char.man, NEWS: Document it.
7766 2000-05-02  Werner LEMBERG  <wl@gnu.org>
7768         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
7769         expansion.
7770         * NEWS: Document the three new man pages.
7772         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
7773         * configure: Updated.
7775         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
7777 2000-05-01  Werner LEMBERG  <wl@gnu.org>
7779         Added grap support to grog.
7781         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
7782         * src/roff/grog/grog.man: Document it.
7784         * doc/groff.texinfo, NEWS: Add info about grap support.
7786         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
7787         (with slight fixes by me).
7789         * tmac/groff_tmac.man: New file documenting tmac mechanism.
7790         * tmac/Makefile.sub: Add groff_tmac.man.
7791         * man/roff.man: New file giving overview of roff system.
7792         * man/troff.man: A short reference of troff.
7793         * man/Makefile.sub: Add roff.man and troff.man.
7795 2000-04-30  Werner LEMBERG  <wl@gnu.org>
7797         Added grap support to groff.
7799         * src/roff/groff/groff.cc: Implement it.
7800         * src/roff/groff/groff.man: Document it.
7802         * src/devices/grotty/grotty.man: Add cp1047 device.
7803         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
7804         Ditto.
7805         * src/roff/groff/groff.man: Ditto.
7806         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
7807         * doc/groff.texinfo: Ditto.
7809         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
7810         for cp1047.
7812 2000-04-29  Werner LEMBERG  <wl@gnu.org>
7814         * man/groff_char.man: Add `pc' glyph.
7815         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
7816         * tmac/tmac.tty: Add `pc' glyph.
7817         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
7818         we use cp1047 output device.
7820         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
7821         there are still hardcoded latin1->unicode values in utf8's font
7822         definition files.
7823         * configure: Updated.
7824         * NEWS: Minor clarification.  Updated.
7826         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
7827         Unix.
7829 2000-04-28  Werner LEMBERG  <wl@gnu.org>
7831         Adding EBCDIC code page 1047.
7833         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
7834         font/devcp1047/DESC.proto: New files.
7836         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
7837         either ascii/latin1 or cp1047.
7838         * Makefile.in: Use it.
7839         * configure: Updated.
7841         Replacing and/or adding `md' (mathdot) glyph with `pc'
7842         (periodcentered) in all text fonts.
7844         * font/*/*: Change it.
7846 2000-04-27  Werner LEMBERG  <wl@gnu.org>
7848         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
7850         * configure.in: Add check for strings.h.
7851         * src/include/driver.h: Use HAVE_STRINGS_H.
7852         * src/devices/grolbp/lpb.cc: Remove string.h.
7854         * src/include/groff-getopt.h: New file.  It will be used instead of
7855         getopt.h (to be included in lib.h) to avoid endless problems with
7856         picky C++ compilers.
7857         * src/include/lib.h: Use groff-getopt.h.
7858         * src/include/Makefile.sub: Updated.
7860         * configure: Updated.
7861         * Makefile.in: Updated.
7863         * NEWS: Mention EBCDIC support.
7865 2000-04-26  Werner LEMBERG  <wl@gnu.org>
7867         * TODO: Some additions.
7869 2000-04-25  Werner LEMBERG  <wl@gnu.org>
7871         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
7872         of mso request.
7874 2000-04-23  Werner LEMBERG  <wl@gnu.org>
7876         * src/roff/troff/troff.man: Minor fixes.
7878 2000-04-22  Werner LEMBERG  <wl@gnu.org>
7880         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
7881         `.T' string register and the incompatible definition of the `.T'
7882         number register (compared to Unix troff).
7884         * man/groff_char.man: Add some missing characters.
7885         * font/devutf8/NOTES: Update.
7887 2000-04-21  Werner LEMBERG  <wl@gnu.org>
7889         * src/include/htmlindicate.h, src/include/lib.h,
7890         src/include/posix.h: Fix copyright.
7892         * src/include/Makefile.sub: Update.
7894 2000-04-20  Werner LEMBERG  <wl@gnu.org>
7896         * src/roff/troff/input.cc (input_char_description): Removing
7897         superfluous space char.
7899         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
7901         * doc/groff.texinfo: Document EBCDIC.
7903 2000-04-19  Werner LEMBERG  <wl@gnu.org>
7905         Introducing `shc' as the glyph name for the soft hyphen character.
7907         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
7908         font/devlatin1/R.proto: Use it.
7910         * NEWS: Updated.
7912 2000-04-18  Werner LEMBERG  <wl@gnu.org>
7914         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
7915         dependency on ASCII order.
7917 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
7919         * src/libs/libgroff/illegal.c: Added EBCDIC table.
7920         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
7922         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
7923         to increase portability.
7925 2000-04-15  Werner LEMBERG  <wl@gnu.org>
7927         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
7928         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
7929         the generic `\n' if under OS/390 Unix.
7931         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
7933         * configure: Regenerated.
7935 2000-04-14  Werner LEMBERG  <wl@gnu.org>
7937         * doc/groff.texinfo: More conversions to @Deffn.
7939 2000-04-12  Werner LEMBERG  <wl@gnu.org>
7941         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
7942         with `:'.
7944         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
7946 2000-04-10  Werner LEMBERG  <wl@gnu.org>
7948         * doc/groff.texinfo: More conversions to @Deffn.
7950 2000-04-08  Werner LEMBERG  <wl@gnu.org>
7952         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
7953         Updated to latest version (glibc 2.1.3).
7955 2000-04-07  Werner LEMBERG  <wl@gnu.org>
7957         * doc/Makefile (clean): Include more index files.
7958         Add rule texinfo->dvi.
7960 2000-04-05  Werner LEMBERG  <wl@gnu.org>
7962         * doc/groff.texinfo: Added new index `op' for operators.  More
7963         info on end of sentence characters.  More use of @Deffn.
7965 2000-03-30  Werner LEMBERG  <wl@gnu.org>
7967         * */*.man: Adding a note that a whitespace can be inserted between
7968         a command line option and its parameter -- we are using GNU getopt.
7970         * src/roff/groff/groff.man: Add example of `-m mandoc'.
7972 2000-03-28  Werner LEMBERG  <wl@gnu.org>
7974         Correct anachronism of calling the man macro file with `-man'
7975         instead of `-m man' etc.
7977         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
7978         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
7979         load tmac.<package>.
7981         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
7983         * NEWS: Updated.
7985         * doc/groff.texinfo: Updated.
7987         * tmac/groff_man.man: Copyright added.
7989 2000-03-27  Werner LEMBERG  <wl@gnu.org>
7991         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
7992         typeset the request resp. escape name with a tt font -- due to a
7993         bug in texinfo.tex it is necessary to use the `-e' switch with
7994         texi2dvi.
7996         Improving info about usage of groff units.
7998         Other minor fixes.
8000 2000-03-20  Werner LEMBERG  <wl@gnu.org>
8002         * doc/groff.texinfo: Added section about man macro package
8003         (I've basically taken groff_man.man).  Introducing new indices `ma'
8004         for macros/strings and `gl' for glyph names.  Other minor fixes.
8006         * tmac/groff_man.man: Fixed some typos.
8008 2000-03-19  Werner LEMBERG  <wl@gnu.org>
8010         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
8011         Other minor fixes.
8013         * doc/texinfo.tex: New file.
8015 2000-03-18  Werner LEMBERG  <wl@gnu.org>
8017         * doc/groff.texinfo: Improved section on number registers.  Other
8018         minor updates.
8020 2000-03-16  Werner LEMBERG  <wl@gnu.org>
8022         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
8023         synopsis.
8025         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
8026         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
8027         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
8028         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
8030         * src/preproc/grn/grn.man: Better synopsis; added copyright.
8032         * src/roff/grog/grog.man: Updated copyright date.
8034 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
8036         * configure.in: Added test for strdup.
8038         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
8039         is available.
8041         Replaced dynamic allocation of arrays `[...]' with `new' operator.
8043         Other minor fixes.
8045 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
8047         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
8049 2000-03-11  Werner LEMBERG  <wl@gnu.org>
8051         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
8052         compilers silent.
8053         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
8054         * src/include/lib.h: Remove some spaces.
8056 2000-03-10  Werner LEMBERG  <wl@gnu.org>
8058         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
8059         initializers from arguments (some compilers don't like this).
8061 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
8063         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
8064         used by pic and eqn to tell grohtml where the graphic regions start
8065         and end.
8066         * src/libs/libgroff/Makefile.sub: Use it.
8067         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
8068         graphic_start() and graphic_end() from htmlindicate.cc.
8070 2000-03-09  Werner LEMBERG  <wl@gnu.org>
8072         * tmac/tmac.safer: Will now work correctly in compatibility mode.
8073         * tmac/groff_man.man: More fixes.
8075 2000-03-08  Werner LEMBERG  <wl@gnu.org>
8077         * doc/Makefile: Added texput.log to the `clean' target.
8078         * doc/groff.texinfo: Added info about delimiters for escapes.
8080 2000-03-08  Bernd Warken  <bwarken@mayn.de>
8082         * src/preproc/pic/pic.man: Add info on conversion of pic images to
8083         other graphic formats.
8085 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
8087         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
8088         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
8089         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
8090         files.
8092 2000-03-07  Werner LEMBERG  <wl@gnu.org>
8094         * doc/groff.texinfo: Spelling fixes.
8096 2000-03-06  Werner LEMBERG  <wl@gnu.org>
8098         * tmac/groff_man.man: Completely revised to cover everything in
8099         tmac.an.
8101         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
8102         Other minor fixings.
8103         * src/roff/troff/env.cc (environment_copy): Improve error message and
8104         fix itoa->i_to_a.
8105         * src/roff/troff/TODO: Updated.
8107         * doc/Makefile: Bug fixes -- this is still provisional, though...
8109         * tmac/eqnrc: Small fixes.
8111 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
8113         Adding a request `evc' to copy environments.
8115         * src/roff/troff/env.cc (environment::copy, environment_copy):
8116         Implement it.
8117         * src/roff/troff/env.h: Add prototype.
8119 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
8121         Adding strsep() -- Solaris 8 doesn't have it.
8123         * configure.in: Test it.
8124         * src/devices/grolbp/lbp.cc: Add code.
8126 2000-03-05  Werner LEMBERG  <wl@gnu.org>
8128         * src/roff/troff/div.cc (macro_diversion::output,
8129         top_level_diversion::output): Fixing an incompatibility with
8130         original troff: \x'0' updates the .a register also.  Thanks to
8131         <Andries.Brouwer@cwi.nl> for pointing this out.
8132         * doc/groff.texinfo: Document it.
8134         * Makefile.in: Create Makefile.dep if necessary before calling the
8135         submake process to avoid warning about nonexistent file.
8137         * NEWS, PROJECTS: Updated.
8139 2000-03-04  Werner LEMBERG  <wl@gnu.org>
8141         * tmac/troffrc: Add tmac.lbp.
8143 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
8145         * tmac/tmac.lbp: New file.
8146         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
8147         command.
8149 2000-03-03  Werner LEMBERG  <wl@gnu.org>
8151         * Makefile.in: Fixing $(subdir).
8153         * README, NEWS: Small fixes.
8155         * test-groff: Adding path to grolbp.
8157         * configure.in: The (new) file src/xditview/Imakefile.in will be
8158         also configured -- it is now possible to build gxditview in a
8159         directory different from $srcdir.
8161 2000-03-02  Blake McBride  <blake@florida-software.com>
8163         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
8165         * MORE.STUFF: Added website of bell labs and info about plot2dev.
8167 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
8169         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
8170         files.
8172 2000-02-29  Werner LEMBERG  <wl@gnu.org>
8174         Adding GNU getopt to the groff distribution.
8176         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
8177         New files.
8178         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
8179         * aclocal.a4: Remove GROFF_GETOPT function.
8180         * configure.in, Makefile.in, PROBLEMS: Update.
8181         * src/include/lib.h: Replace getopt tests with getopt.h.
8182         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
8184         * doc/groff.texinfo: Further checking/updating.  Adding more index
8185         entries.
8187         * man/groff_out.man: Fix nroff mode activation (for emacs).
8188         * man/groff_font.man: Add missing ligature.
8190 2000-02-28  Werner LEMBERG  <wl@gnu.org>
8192         * doc/groff.texinfo: Further checking/updating.  Adding more index
8193         entries.
8195         * src/devices/grolbp/grolbp.man: Added a comment line at the
8196         beginning of the file (similar to shell scripts) which indicates
8197         that `tbl' should be used as a preprocessor.
8199 2000-02-27  Blake McBride  <blake@florida-software.com>
8201         Adapting groff to MS Visual C++ 6.0 compiler (tested with
8202         Windows NT 4.0).  Uses _MSC_VER define where necessary.
8204         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
8205         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
8206         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
8207         src/include/lib.h, src/libs/libgroff/errarg.cc,
8208         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
8209         src/preproc/refer/label.y, src/preproc/refer/label.cc,
8210         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
8211         src/roff/troff/div.cc, src/roff/troff/env.cc,
8212         src/roff/troff/input.cc, src/roff/troff/node.cc,
8213         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
8214         if_to_a() to avoid name clashes.
8215         * src/include/posix.h: Don't use unistd.h.
8216         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
8217         clause for integrating non-Unix xtmpfile() code.
8218         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
8219         structure; use "rt" for popen() in pipe_source(); add getpid()
8220         dummy function.
8221         * src/roff/troff/node.cc: Use special versions of popen() in
8222         real_output_file() and pclose() in ~real_output_file().
8224 2000-02-27  Werner LEMBERG  <wl@gnu.org>
8226         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
8227         LBP-8 series laser printers).  This code has been contributed by
8228         Francisco Andrés Verdú <pandres@dragonet.es>.
8230         * src/devices/grolbp/*: The grolbp output device.
8231         * font/devlpb/*: The font description files.
8232         * Makefile.in: Add grolpb and devlbp subdirectories.
8234         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
8235         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
8236         typographic fixes.
8238         * doc/groff.texinfo: Further checking/updating.  Adding more index
8239         entries.
8241         * NEWS: Updated.
8243         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
8245         * man/groff_font.man: Adding info about obsolete DESC keywords.
8246         * src/devices/grolj4/grolj4.man: Documenting additional DESC
8247         keywords.
8249 2000-02-26  Werner LEMBERG  <wl@gnu.org>
8251         * src/preproc/grn/grn.man: Added info about the gremlin file format
8252         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
8254 2000-02-25  Werner LEMBERG  <wl@gnu.org>
8256         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
8257         friends to be non-integer.
8259         * src/preproc/grn/grn.man: Document it.
8261         * doc/groff.texinfo: Further checking/updating.  Adding more index
8262         entries.
8264 2000-02-24  Werner LEMBERG  <wl@gnu.org>
8266         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
8267         line thicknesses to be integer multiples of this value.
8269         * src/preproc/grn/grn.man: Commenting out the -s option -- the
8270         corresponding code doesn't work (yet).
8272         * doc/groff.texinfo: Further checking/updating.  Adding more index
8273         entries.
8275 2000-02-23  Werner LEMBERG  <wl@gnu.org>
8277         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
8278         specify line thickness instead of base units.  The new default
8279         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
8280         thick lines respectively.
8282         Removed unused variable `prevval'.
8284         * src/preproc/grn/grn.man: Updated.
8286 2000-02-22  Werner LEMBERG  <wl@gnu.org>
8288         * src/preproc/grn/main.cc: Slight formatting.
8290         * src/roff/groff/groff.man: Formatting fix.
8291         * src/preproc/grn/grn.man: Ditto.
8293         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
8295         * doc/groff.texinfo: Further checking/updating.
8297 2000-02-21  Werner LEMBERG  <wl@gnu.org>
8299         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
8301         * test-groff: Added grn subdir to path.
8303         * doc/groff.texinfo: Some restructing and other small improvements.
8305         * src/roff/groff/groff.cc (help): Fixed info string.
8307 2000-02-20  Werner LEMBERG  <wl@gnu.org>
8309         * doc/meref.me: Fix description of .GS request.
8311         * src/roff/troff/troff.man: Fixing typo.
8313         Adding the `grn' preprocessor for gremlin graphic files.
8315         * src/preproc/grn/*: This is the Berkeley distribution written by
8316         David Slattengren and Barry Roitblat, adapted to groff by Daniel
8317         Senderowicz and Werner Lemberg.
8319         * doc/grnexampl.{me,g}: A sample for grn.
8321         * Makefile.in: Added subdirectory entry for grn.
8323         * src/roff/groff/groff.cc: Added support for grn.  It can be now
8324         called with the switch `-g'.
8326         * src/roff/groff/groff.man: Updated.
8328         * src/roff/grog/grog.{man,pl,sh}: Updated.
8330         * NEWS: Updated.
8332 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
8334         * src/include/lib.h: Added xtmptemplate and made xtmpfile
8335         parametrically polymorphic.
8337         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
8338         and the alterations to xtmpfile.
8339         xtmpfile can be requested to return the filename created
8340         and asked not to unlink the temp file.  The default behaviour
8341         if parameters are absent is exactly the same as before.
8343 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
8345         A new request `length' is available which returns the length of a
8346         string in a number register:
8348         * src/roff/troff/input.cc (length_macro): Implement it.
8349         * src/roff/troff/input.cc (init_input_requests): Register it.
8351 2000-02-11  Werner LEMBERG  <wl@gnu.org>
8353         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
8354         of the `substring' request.
8356         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
8357         request.
8359         * src/roff/troff/TODO, NEWS: Updated.
8361 2000-02-09  Werner LEMBERG  <wl@gnu.org>
8363         * src/roff/groff/groff.man: Added an example.
8365 2000-02-06  Werner LEMBERG  <wl@gnu.org>
8367         I've considerably modified the directory structure of the
8368         distribution to get a more vertical layout.  For example, the number
8369         of top level directories has been reduced from 42 to 6.
8371         As a consequence, many changes, especially to the makefiles, were
8372         necessary:
8374         * The makefile variables `top_builddir' and `top_srcdir' have been
8375         introduced.  Virtually all relative paths have been replaced with
8376         absolute ones using these two variables.
8378         * Dependencies (in the files `Makefile.dep') are no longer part of
8379         the distribution.  Instead, they are created during a `make install'
8380         in the build directory.
8382         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
8383         make `top_srcdir' and `top_builddir' absolute.
8385         Some other changes:
8387         * Man pages now depend on the files `VERSION' and `REVISION'.
8389         * The added shell script `mkinstalldirs' will replace `mkdir' in
8390         almost all cases.
8392         * VERSION: Version number increased to 1.16.
8394 2000-02-04  Werner LEMBERG  <wl@gnu.org>
8396         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
8398         * Makefile.in: Removed $(tmac_m) since it is no longer needed
8399         (after an update of the mm stuff).
8401         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
8403 2000-02-03  Werner LEMBERG  <wl@gnu.org>
8405         The .psbb request will now also accept Mac PS images (i.e. using LF
8406         as the EOL character).
8408         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
8409         (with slight modifications).
8410         * troff/input.cc (do_ps_file): Use it.
8412         * test-groff: Add grohtml and grolj4 output devices to PATH.
8414 2000-01-30  Werner LEMBERG  <wl@gnu.org>
8416         * NEWS, MORE.STUFF: Updated.
8418 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
8420         Add the `srand' command to pic.
8422         * pic/lex.cc, pic/pic.y: Implement it.
8423         * pic/pic.man: Document it.
8424         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
8426 2000-01-30  Werner LEMBERG  <wl@gnu.org>
8428         Add a new request `.psbb'.  This does exactly what the external
8429         program psbb did.  It scans a PostScript image file for a
8430         %%BoundingBox comment and extracts the bounding box values (in
8431         PostScript units) which are then stored in the four new (read-only)
8432         number registers `llx', `lly', `urx', and `ury'.
8434         This will allow the usage of the .PSPIC macro without worrying
8435         about unsafe behaviour of groff, i.e., it will work without the
8436         `-U' switch of groff.
8438         * troff/input.cc: Implement it.
8439         * tmac/tmac.pspic: Use it.
8440         * troff/troff.man, grops/grops.man, NEWS: Document it.
8441         * psbb/*, Makefile.in: Remove it since it is no longer needed.
8443         This is bloody C code simply adapted from psbb.c!  Any improvements
8444         welcome.
8446 2000-01-29  Werner LEMBERG  <wl@gnu.org>
8448         * man/groff_font.man: Minor clarifications.
8450         * NEWS: Updated.
8452 2000-01-28  Werner LEMBERG  <wl@gnu.org>
8454         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
8456 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
8458         * man/groff_font.man: Brought up to date regarding tcommand
8459         extensions.
8460         * libgroff/font.cc: Handle everything after `--' as a comment
8461         in the font files.
8462         * devps/*: Added comment delimiter inside devps font files.
8464 2000-01-28  Werner LEMBERG  <wl@gnu.org>
8466         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
8467         \fC...\fP (which now works as expected).
8469         * troff/troff.man: Fix typo.
8471 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
8473         Completed the pass_filenames implementation in troff.
8475         * libdriver/input.cc: Will read the new `F' tcommand.
8476         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
8477         * troff/input.cc: Use it.
8479 2000-01-26  Werner LEMBERG  <wl@gnu.org>
8481         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
8482         font will now be updated even if an invalid font is selected.
8484 2000-01-24  Werner LEMBERG  <wl@gnu.org>
8486         * doc/homepage.ms: Updated for new tmac.arkup.
8488         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
8490         * tmac/tmac.arkup: Cleanup.
8492         Added `\&' to .HTML macro to `leave vertical mode', so to say.
8494         Removed obsolete .LINK macro completely.
8496         The macros .URL, .FTP, and .MAILTO now accept a third argument which
8497         will be immediately appended to the second argument (to be used with
8498         punctuation, for example).
8500         Disabled .CDFTP macro temporarily for security reasons.
8502         * tmac/groff_markup.man: Complete revision for latest changes in
8503         tmac.arkup -- note that it does not yet format correctly with
8504         grohtml :-(
8506 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
8508         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
8509         * devutf8/R.proto: Add mappings for wp, lh, rh.
8510         * devutf8/NOTES: Updated.
8512 2000-01-23  Werner LEMBERG  <wl@gnu.org>
8514         * doc/groff.texinfo: Updated version/copyright info.
8516 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
8518         Added support for two new directives in device descriptions:
8519         `pass_filenames' (to pass the input file name to the output device)
8520         and `use_charnames_in_special' (to support e.g. accented characters
8521         in the `X' request).
8523         * include/font.h, troff/charinfo.h: Declare it.
8525         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
8527         * devhtml/DESC: Use it.
8529         * troff/input.cc: New function encoded_char.
8531         * troff/token.h: Add test for `specialness'.
8533 2000-01-21  Werner LEMBERG  <wl@gnu.org>
8535         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
8536         mistake from the list of files to be installed.
8538 2000-01-18  Werner LEMBERG  <wl@gnu.org>
8540         * README: Added info how to apply patches.
8542 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
8544         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
8546 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
8548         * troff/input.cc: Add support for troffrc-end.
8550         * tbl/main.cc: Altered to issue table-start and table-end special
8551         characters if using the html device.
8553         * devhtml/*: Modified font files to incorporate html encoding of
8554         characters.
8556         * tmac/groff_markup.man: New file documenting tmac.arkup.
8558         * tmac/troffrc-end: New file.  This is invoked after all user
8559         specified macros.  Currently used by the html device to include
8560         tmac.html.  Thus no need for users to specify -mhtml anymore.
8562         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
8563         (MAN7): Add groff_markup.man.
8565         * tmac/tmac.an, tmac/tmac.html: Small html updates.
8567         * tmac/troffrc: tmac.arkup will now be called for the html device.
8569         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
8570         extra device specific information about fonts.
8572         * doc/homepage.ms: New file.  It is an example how an HTML home page
8573         could look like with grohtml.
8575         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
8577 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
8579         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
8580         of Im, Re.
8582         * devutf8/NOTES: Updated.
8584 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
8586         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
8587         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
8588         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
8589         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
8590         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
8591         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
8592         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
8593         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
8594         warnings.
8596         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
8598 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
8600         grolj4: Paper size will be searched case-insensitively.
8602         * include/lib.h: Add check for strcasecmp().
8603         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
8604         * configure.in: Check for strcasecmp().
8606 2000-01-11  Werner LEMBERG  <wl@gnu.org>
8608         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
8609         `REVISION'.
8611 2000-01-10  Werner LEMBERG  <wl@gnu.org>
8613         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
8614         revision scheme.
8616         Add a new read-only register, `.Y', which contains the groff
8617         revision.
8619         * troff/input.cc (init_input_requests): Define it.
8620         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
8621         * doc/groff.texinfo, troff/troff.man: Document it.
8623         * libgroff/Makefile.sub (version.cc): Add definition of
8624         `Version_string[]', consisting of `<major>.<minor>.<revision>'
8625         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
8626         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
8627         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
8628         troff/input.cc, pfbtops/pfbtops.c: Use it.
8630 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
8632         Add a revision scheme to the groff package.
8634         * REVISION: New file.
8635         * libgroff/Makefile.sub (version.cc): Use it to define
8636         `revision_string[]'.
8637         * grops/psrm.cc: Use revision_string (converted to an unsigned
8638         integer) in constructor of resource_manager.
8640 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
8642         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
8643         files.
8644         * Makefile.in (DEVDIRS): Add devutf8.
8645         * grotty/tty.cc: Include device.h.
8646         (glyph): Change type of `code' to `unsigned int'.
8647         (tty_printer): New field is_utf8.  Constructor takes device argument.
8648         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
8649         (tty_printer::add_char): Change type of first arg to `unsigned int'.
8650         (tty_printer::put_char): New function.
8651         (tty_printer::end_page): Use put_char() instead of ::putchar().
8652         (make_printer): Pass device to tty_printer constructor.
8653         * nroff.sh: Determine default device by calling 'locale'.  As a
8654         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
8655         Recognize UTF-8 locales.
8656         * tmac/eqnrc: Recognize utf8 like latin1.
8657         * tmac/troffrc: Device utf8 needs tmac.tty.
8659 2000-01-07  Werner LEMBERG  <wl@gnu.org>
8661         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
8663 2000-01-07  Paul Eggert  <eggert@twinsun.com>
8665         Add a new predefined writeable number register, `year',
8666         which contains the current year.
8668         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
8669         * tmac/tmac.s: Use it.
8670         * troff/input.cc (init_registers): Initialize it.
8672 2000-01-06  Werner LEMBERG  <wl@gnu.org>
8674         * PROBLEMS: Fixed typo.
8676 2000-01-04  Paul Eggert  <eggert@twinsun.com>
8678         * PROBLEMS: Add Y2k advice for the yr number register.
8680 2000-01-03  Paul Eggert  <eggert@twinsun.com>
8682         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
8684 2000-01-02  Werner LEMBERG  <wl@gnu.org>
8686         * tmac/tmac.arkup: Slight modification of macros to provide better
8687         appearance for non-HTML formats.
8689 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
8691         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
8692         does not automatically translate to malloc(n) on all OSes
8693         (e.g., SunOS) so do it explicitly.  Also, check the returned
8694         value.
8696 2000-01-01  Werner LEMBERG  <wl@gnu.org>
8698         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
8700         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
8701         expects this variable
8703 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
8705         * doc/Makefile: Added instructions to create HTML and text
8706         versions of some files.
8708 1999-12-31  Werner LEMBERG  <wl@gnu.org>
8710         * Updated INSTALL.gen.
8712         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
8713         better resp. correctly with non-HTML devices.
8715 Version 1.15 released
8716 =====================
8718 1999-12-28  Werner LEMBERG  <wl@gnu.org>
8720         * NEWS, VERSION: Changed to 1.15
8722 1999-12-27  Paul Eggert  <eggert@twinsun.com>
8724         * nroff/nroff.man: -S is safer, not safe.
8726         * groff/groff.cc (main): Use `safer', not `safe', in variable
8727         names.  This does not change the behavior.
8729         * troff/input.cc (main): Likewise.
8731         * nroff/nroff.sh: Likewise.
8733         * troff/input.cc (prepend_string): New function.
8734         (main): Prepend -msafer, so that we check macro libraries for
8735         safety.
8737         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
8739 Version 1.14 released
8740 =====================
8742 1999-12-26  Werner LEMBERG  <wl@gnu.org>
8744         * NEWS, VERSION: Changed to 1.14.
8746 1999-12-24  Werner LEMBERG  <wl@gnu.org>
8748         * refer/refer.cc: Fixing the last fix.
8750 Version 1.13 released
8751 =====================
8753 1999-12-23  Werner LEMBERG  <wl@gnu.org>
8755         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
8756         number disappear.
8758         * NEWS: Updated.
8760         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
8762         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
8763         document conventions, the version number must be a real.
8765 Version 1.12.1 released
8766 =======================
8768 1999-12-22  Werner LEMBERG  <wl@gnu.org>
8770         * VERSION: Changed to 1.12.1.
8772 1999-12-22  Alan Rooks  <arooks@istar.ca>
8774         * refer/refer.cc (do_file): Slight modification to satisfy the
8775         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
8776         UnixWare 7.1.
8778 1999-12-20  Werner LEMBERG  <wl@gnu.org>
8780         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
8781         notices.
8783         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
8784         list of unsafe requests.
8786         * pic/pic.man: Fixed a typo.
8788         * man/groff_out.man: Fixed a typo.
8790 1999-12-18  Werner LEMBERG  <wl@gnu.org>
8792         * Makefile.in: Doc fixes.
8794 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
8796         * groff/groff.cc: Missing `U' option added to getopt().
8798         * troff/troff.man: Missing `U' option added to synopsis.
8800 Version 1.12 released
8801 =====================
8803 1999-12-14  Werner LEMBERG  <wl@gnu.org>
8805         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
8806         to the synopsis.
8808         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
8809         with the more appropriate terms `safer' and `unsafe'.
8811         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
8812         sys_nerr and sys_errlist[].
8814         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
8816         * pic/pic.y, pic/pic.cc: Added check for fmod().
8818 1999-12-13  Werner LEMBERG  <wl@gnu.org>
8820         * VERSION: Changed to 1.12.
8822         Here some patches from various sources; most of them taken from
8823         the Debian distribution.
8825         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
8826         tmac/Makefile.sub: New files copied directly from the NetBSD
8827         distribution.  Probably, some additional adaptation later on is
8828         necessary...
8830         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
8831         of unsafe requests.
8833         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
8834         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
8835         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
8836         (`-S') is now the default.
8838         * README, NEWS: Updated.
8840 1999-12-09  Werner LEMBERG  <wl@gnu.org>
8842         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
8844         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
8846 1999-12-06  Werner LEMBERG  <wl@gnu.org>
8848         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
8849         grief than relief today.  Additionally, it is against the GNU
8850         coding standards.
8852         * configure: Recreated.
8854 1999-12-05  Werner LEMBERG  <wl@gnu.org>
8856         * configure.in: Added GROFF_LIBM.
8858         * configure: Recreated.
8860         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
8861         necessary.
8863         * Makefile.in: Added definition of $(LIBM).
8865         * Makefile.comm (LIBM): Removed.
8867         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
8869 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
8871         * doc/Makefile: Added rule for generation pic.html.
8873         (clean): Files produced by grohtml will be removed also.
8875         * doc/pic.ms: Small fix.
8877         * tmac/tmac.html: Fixed suppression of headers.
8879 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
8881         * tmac/tmac.html: Fixing horizontal arrows.
8883         Turning off hyphenation.
8885         * tmac/tmac.an: Improved support for grohtml; better indentation,
8886         no footers/headers.
8888 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
8890         * tmac/tmac.arkup: Added CDFTP macro
8892         * tmac/tmac.html: All headers are turned off for ms, me, and mm
8893         macros.
8895         * tmac/troffrc: Some additions for HTML stuff.
8897 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
8899         * tmac/tmac.html: Small changes.
8901 1999-09-26  Werner LEMBERG  <wl@gnu.org>
8903         * doc/groff.texinfo: Minor fixes.
8905 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
8907         * devhtml/TR: Changed spacewidth to 3.
8909         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
8911         * tmac/tmac.html: Moved markup macros to tmap.arkup.
8913         * tmac/tmac.arkup: New file.
8915         * grohtml/ChangeLog: New file.
8917 1999-09-16  Werner LEMBERG  <wl@gnu.org>
8919         * doc/groff.texinfo (Common Features): Added Copying chapter.
8920         Changed format to @smallbook.
8922 1999-09-15  Werner LEMBERG  <wl@gnu.org>
8924         * NEWS: Added info about groff.texinfo.
8926         * doc/groff.texinfo: Will now compile (using texi2dvi) without
8927         warning messages.
8929 1999-09-14  Werner LEMBERG  <wl@gnu.org>
8931         * groff/groff.man: More updates.
8933 1999-09-13  Werner LEMBERG  <wl@gnu.org>
8935         * doc/groff.texinfo: New file.  This manual is still very
8936         rudimentary.  It has been originally contributed by Trent
8937         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
8938         additions by me.
8940         * INSTALL: Added information about the `doc' subdir
8942         * troff/troff.man: Minor fixes.
8944         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
8945         reordered options.
8947         * troff/input.cc (usage): Added missing `-ffam' to usage message.
8949         * Makefile.in (dist): groff-$(version).tar.gz must be removed
8950         also, otherwise it is included itself in another call of `make
8951         dist'.
8953         * groff/groff.cc (synopsis): Removed superfluous space.
8955         * PROJECTS, PROBLEMS, NEWS: Updated.
8957         * VERSION: Updated to 1.12beta.
8959         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
8961         * README: Updated: Included documentation about CVS repository,
8962         mailing lists, and daily snapshots.
8964         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
8966 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
8968         * tmac/tmac.an: If the tag didn't fit into the space that the
8969         macro `TP' specifies, the rest of the tag went into the space for
8970         the next line.
8972 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
8974         * grolj4/lj4.cc: Added duplex printing (option `-d').
8976         * grolj4/grolj4.man: Document duplex printing.
8978 1999-09-12  Werner LEMBERG  <wl@gnu.org>
8980         * doc/Makefile (pic.ps): Fixed rule which caused problems with
8981         non-GNUish sed programs.
8983         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
8984         definition.
8986         * configure.in (LIBS): Added `-lc'
8988         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
8990         * pic/tex.cc (solid_arc): Casting M_PI to double.
8992         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
8994         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
8995         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
8996         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
8998         * groff/groff_man.man: New file.  This manual page was originally
8999         written for the Debian GNU/Linux system by Susan G. Kleinmann
9000         <sgk@debian.org>.
9002         * eqn/list.cc (list_box::compute_metrics,
9003         list_box::compute_sublist_width): Removed variable declaration to
9004         avoid shadowing warnings.
9006         * grops/psrm.cc (resource_manager::process_file): Ditto.
9008         * tfmtodit/tfmtodit.cc (main): Ditto.
9010         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
9011         to avoid shadowing warnings.
9013         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
9014         shadowing loop variable.
9016         * groff/groff.man, troff/troff.man: Added doc about grohtml.
9018 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
9020         New grohtml frontend to convert groff input to html.
9022         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
9024         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
9026         * tmac/eqnrc: Added html device.
9028         * tmac/tmac.html: New file.
9030         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
9031         (troff_output::start_picture, troff_output::finish_picture),
9032         tbl/main.cc (process_input_file):
9033         Surrounded output with `graphics_start' and `graphics_end' so that
9034         the html driver can identify non-text portions.
9036         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
9037         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
9038         grotty/tty.ps (tty_printer::set_char): Additional parameter
9039         `name'.
9041         * include/printer.h: Class printer: New function
9042         set_char_and_width; new variables (is_char_named, is_named_set,
9043         named_command, named_char_s, named_char_n) to hold information
9044         about named characters -- needed by the html driver.
9046         * libdriver/printer.cc (printer::set_ascii_char,
9047         printer::set_special_char): Use set_char_and_width.
9049         * devhtml/*: New device files for html driver.
9051         * grohtml/*: New driver grohtml.
9053 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
9055         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
9056         default strings.
9058 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
9060         * libgroff/string.cc (search): Small fix to test against NULL
9061         pointer.
9063 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
9065         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
9066         \b'abc') were stacked in reverse order when processed in a
9067         diversion.
9069         * troff/node.h: Added `*last' to struct `node' to make the above
9070         fix work.
9072         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
9073         The default scale for the 'f' and 't' graphics functions were 'm'
9074         rather than 'u' (i.e., no scaling).
9076 1999-09-11  Peter Miller  <peterm@jna.com.au>
9078         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
9079         do_file), soelim/soelim.man: Added `-I file' option to soelim,
9080         defining include paths.
9082         * soelim/soelim.cc (include_path_append): New function.
9084 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
9086         * tbl/main.cc (process_options): Unix (at least Documenter's
9087         Workbench) tbl allows arbitrary non-alpha characters between
9088         options.
9090 1999-09-11  Paul Eggert  <eggert@twinsun.com>
9092         Y2k fixes.  Don't assume that the current year precedes 2000.
9094         * doc/meref.me: Add \n(y2, \n(y4.
9096         * tmac/doc-common (Yr): New number register.
9097         (Dd): Don't assume current year precedes 2000.
9099         * tmac/tmac.e (td): Likewise.
9100         (y2, y4): New number registers.
9102         * pic/pic.man: Update reference for pic paper to May, 1991
9103         version.
9105 1999-09-11  Werner LEMBERG  <wl@gnu.org>
9107         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9108         Removed quotation marks which prevented correct expansion of
9109         $(tmac_wrap).
9111         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
9113 1999-09-10  Werner LEMBERG  <wl@gnu.org>
9115         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
9116         `config.cache'.
9118         * Removed configure.old.
9120 1999-08-31  Werner LEMBERG  <wl@gnu.org>
9122         * VERSION: Updated to 1.11.1
9124 1999-05-27  Werner LEMBERG  <wl@gnu.org>
9126         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
9128         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9129         added quotations around $(tmac_wrap) to avoid syntax error if
9130         variable is empty.
9132         * configure: Newly generated using autoconf 2.13.
9134         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
9136 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
9138         * README, PROJECTS, NEWS, INSTALL, VERSION, 
9139         doc/Makefile. doc/pic.ms, groff/groff.man:
9140         Prepare for 1.11 release.  No code changes.
9141         Documentation for pic added (doc/pic.ms).
9143 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
9145         * Version 1.10 released.
9147 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
9149         * afmtodit/afmtodit.pl: Avoid comment on first line.
9151 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
9153         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
9154         * configure.in: Call it.
9156         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
9157         (distfiles): Doesn't depend on config.log or config.cache.
9159 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
9161         * grog/grog.sh: Use print "" rather than print in END rule.
9163 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
9165         * tbl/main.cc (process_data): Don't give error for excess data
9166         entries that are comments.
9168 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
9170         * tbl/main.cc (process_data): Fix case where new for-scope rules
9171         silently change meaning of code.
9173 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
9175         * troff/env.cc (hyphenate): Loop over all consecutive sequences
9176         of non-zero hyphenation codes.
9178 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
9180         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
9182 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
9184         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
9186 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
9188         * tmac/tmac.andoc: Make it work in compatibility mode.
9190         * refer/token.h (token_info::is_range_sep): New function.
9191         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
9192         * refer/ref.cc (reference::output): More sophisticated check for
9193         multiple pages.
9195         * devps/prologue.ps (MANUAL): New procedure.
9196         * grops/ps.cc (main): New -m option.
9197         (usage): Include -m.
9198         (ps_printer::~ps_printer): Implement -m.
9200         * aclocal.m4 (GROFF_G): New macro.
9201         * configure.in: Call it.
9202         * Makefile.in (g): Provided by configure.
9204         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
9206         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
9207         translations.
9209         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
9210         (tmac_m, tmac_s): Deleted.
9211         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
9212         tmac_s_prefix): New variables.
9213         (MDEFINES): Change accordingly.
9214         * Makefile.comm (.man.n): Use new TMAC_* variables.
9215         * configure.in (GROFF_TMAC): Call.
9216         * aclocal.m4 (GROFF_TMAC): Define.
9217         * tmac/Makefile.sub (stamp_wrap): New target.
9218         (install_data, uninstall_sub): Handle macro wrapping.
9220 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
9222         * tbl/main.cc (main): Ignore -T option.
9224 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
9226         * devlj4/generate/special.map: Add definition of \(nb.
9228         * tmac/tmac.dvi: Add definition of \(nb.
9230         * troff/dictionary.c (dictionary::dictionary): association::v gets
9231         initialized by association::association.
9233         * tmac/Makefile.sub: Avoid using temporary files when installing.
9235         * troff/env.cc (environment::set_font): Make bad font number a
9236         warning.
9238         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
9240         * Makefile.in (datadir): Use share rather than lib.
9242         * groff/groff.cc (basename): Rename to xbasename.
9244 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
9246         * Makefile (CCLIBS): Don't use.
9247         * Makefile.ccpg: Likewise.
9249         * acgroff.m4: Rename to...
9250         * aclocal.m4: Modify extensively for autoconf 2.
9251         * configure.in: Likewise.
9252         * Makefile.in: Likewise.
9254         * groff/pipeline.c (const): Declare as empty if __STDC__ not
9255         defined.
9256         (xstrsignal): Check for definition of NSIG. Conditionalize
9257         on SYS_SIGLIST_DECLARED.  Make return type const.
9259 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
9261         * troff/input.cc (interpolate_macro): Rephrase missing space
9262         warning.
9264 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
9266         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
9267         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
9268         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
9269         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9270         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
9271         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
9272         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
9273         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
9274         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
9275         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
9276         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
9277         Fix 'for' scoping.
9279 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
9281         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
9282         string_iterator.
9283         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
9284         file.
9285         (macro_iterator::macro_iterator): Add additional argument.
9287 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
9289         * troff/div.cc (vertical_size::vertical_size): In place of integer
9290         specifying line spacing use cunits specifying post vertical
9291         space.
9292         (macro_diversion::output, top_level_diversion::output): Likewise.
9293         * troff/div.h: Change declarations accordingly.
9294         * troff/env.cc (pending_output_line): Replace ls field by post_vs
9295         field.
9296         (pending_output_line::pending_output_line,
9297         pending_output_line::output, environment::output,
9298         environment::output_line, environment::output_title,
9299         environment::hyphenate_line):  In place of
9300         integer specifying line spacing use cunits specifying post vertical
9301         space.
9302         (environment::environment): Add post_vertical_spacing and
9303         prev_post_vertical_spacing arguments.
9304         (environment::get_post_vertical_spacing): New function.
9305         (environment::total_post_vertical_spacing): New function.
9306         (environment::post_vertical_spacing): New function.
9307         (init_env_requests): Initialize pvs request and .pvs register.
9308         * troff/env.h: Change declarations.
9310 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
9312         * tmac/tmac.pspic: Immediately remove the temporary file.
9314 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
9316         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
9317         height is specified.
9319 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
9321         * tbl/table.c (struct vertical rule, class table_entry): Use int
9322         not short for start_row and end_row.
9324 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
9326         * troff/input.cc (trapping_blank_line, blank_line_macro): New
9327         functions.
9328         (diverted_space_node::reread, process_input_stack): Call
9329         trapping_blank_line() rather than blank_line().
9330         (init_input_requests): Bind "blm" to blank_line_macro().
9332         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
9334 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
9336         * troff/env.cc (environment::possibly_break_line): Require that
9337         width total excluding width of final space node be greater than
9338         the target text length.
9340 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
9342         * troff/node.cc (kern_pair_node::vertical_extent): New function.
9344 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
9346         * troff/node.cc (charinfo_node): New class.
9347         (glyph_node, composite_node): Derive from charinfo_node.  Change
9348         member functions accordingly.
9350 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
9352         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
9354 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
9356         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
9358         * devps/generate/textmap (notsubset): Add.
9360         * tmac/tmac.a4: New file.
9362 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
9364         * pic/main.cc (had_parse_error): New variable.
9365         (do_picture, do_whole_file): Set had_parse_error if yyparse()
9366         returns non-zero.
9367         (main): Return 1 if had_parse_error is true.
9369 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
9371         * grolj4/lj4.cc (main): Avoid use of strtoul.
9373 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
9375         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
9376         iso_8859_1 or $LESSCHARSET is latin1.
9378 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
9380         * hpftodit: New directory.
9381         * Makefile.in (CCPROGDIRS): Add hpftodit.
9382         * devlj4/generate: New directory.
9384 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
9386         * configure.in: Don't use AC_VFORK.
9387         * groff/pipeline.c (run_pipeline): Use fork() always.
9389 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
9391         * grops/ps.cc (main): Use %1 not %s in error message for -w.
9393         * Makefile.in (CCPROGDIRS): Add grolj4.
9394         (DEVDIRS): Add devlj4.
9395         * grolj4, devlj4: New directories.
9396         * tmac/troffrc: Handle lj4.
9397         * tmac/tmac.lj4: New file.
9399 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
9401         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
9403 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
9405         * troff/input.cc (do_if_request): At end of second string, switch
9406         environments before getting next token.
9408 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
9410         * devps/psstrip.sed: Split rule that strips whitespace on either
9411         side of delimiters.
9413 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
9415         * troff/node.h (font_family::make_definition): Add return value to
9416         declaration.  * troff/symbol.h (symbol::operator==,
9417         symbol::operator!=): Likewise.
9419 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
9421         * groff/groff.cc (main, help, synopsis): Handle -S.
9422         (possible_command::insert_arg): New function.
9424         * tmac/tmac.safer: New file.
9425         * tmac/msafer.man: New file.
9426         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
9428 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
9430         * pic/pic.h, pic/main.cc (safer_flag): New variable.
9431         * pic/pic.y (placeless_element): Avoid unsafe operations if
9432         `safer_flag' is set.
9433         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
9435 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
9437         * eqn/lex.cc (get_token): Put call to add_context() in block to
9438         work around Sun C++ 4.0 bug.
9440         * include/stringclass.h (operator +): Use ?: instead of `if' to
9441         work around Sun C++ 4.0 bug.
9443 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
9445         * tbl/main.cc (process_format): Accept - as a synonym for the _
9446         key letter.
9448         * libbib/index.cc (minus_one): Don't declare as const.
9450 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
9452         * troff/input.cc (get_char_for_escape_name): Push back a newline.
9454 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
9456         * troff/input.cc (write_macro_request): New function.
9457         (init_input_requests): Bind write_macro_request to writem.
9459 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
9461         * tmac/tmac.s (@EN): Turn filling back on even if there was no
9462         equation.
9464         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
9466         * tmac/tmac.s (@TS): Renamed from TS.
9467         (TS): Call LP then TS again.
9468         (cov*ab-init): Alias @TS to TS.
9470         * tmac/tmac.s: Allow QP or RS to initialize.
9472         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
9473         Move initializations of PS and LL here.
9474         (par@init): Don't initialize HY.  Avoid changing environment 0.
9475         (par*env-init): Don't all par@reset.
9477 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
9479         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
9481 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
9483         * Makefile.in (MDEFINES): Add LDFLAGS.
9484         (LDFLAGS): Add definition line.
9486 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
9488         * troff/input.cc (get_optional_char): Split off error check into...
9489         (check_missing_character): New function.
9490         * troff/token.h: Declare it.
9491         * troff/env.cc (margin_character): Don't call get_optional_char.
9492         Only call tok.next() after making the node.
9494         * include/lib.h (getopt): Make 2nd argument char *const *.
9496 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
9498         * nroff/conftest.sh: Deleted.
9500 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
9502         * pic/make-dos-dist: Deleted.
9504 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
9506         * devps/psstrip.sed: Strip comments before stripping trailing
9507         white space.
9509 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
9511         * Version 1.09 released.
9513 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
9515         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
9517 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
9519         * libgroff/font.cc (font::load_desc): Fix typo in error message.
9521 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
9523         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
9524         about returning without a value.
9526         * troff/charinfo.h (charinfo::get_special_translation): Cast
9527         TRANSLATE_NONE to int.
9529         * refer/token.cc (lookup_token, store_token): Remove bogus loop
9530         test.  Fix test so that it works with n unsigned.
9532         * pic/pic.y (defaults_table): Fully bracket initializer.
9533         * pic/lex.cc (lookup_keyword): Likewise.
9534         * eqn/lex.cc (token_table, def_table): Likewise.
9535         * eqn/box.cc (param_table): Likewise.
9536         * troff/input.cc (warning_table): Likewise.
9537         * libgroff/font.cc (table): Likewise.
9538         * grops/ps.cc (ps_printer::special): Likewise.
9539         * grops/psrm.cc (resource_manager::process_file): Likewise.
9540         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
9541         * refer/command.cc (command_table): Likewise.
9542         * addftinfo/addftinfo.cc (param_table): Likewise.
9544         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
9545         about temp's being unused.
9546         (unused): New function.
9548         * groff/pipeline.cc: Declare c_fatal.
9550         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
9551         uchar.
9553         * libbib/index.cc (index_search_item::load): Prevent compiler
9554         warnings about fd_closer's being unused.
9555         (unused): New function.
9557 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
9559         * troff/input.cc (copy_mode_error): Make `prefix' static.
9560         Fix typo.
9562         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
9563         defined.
9564         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
9565         HAVE_CC_OSFCN_H and modify accordingly.
9567         * troff/input.cc (init_charset_table): radicalex overlaps
9568         horizontally.
9570         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
9571         udodo!hans@relay.NL.net).
9572         * groff/configure.in: Call it.
9574         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
9575         * groff/configure.in: Call it.
9576         * include/lib.h: Conditionalize declaration of pclose.
9578         * troff/div.cc (last_page_number): New global variable.
9579         (top_level_diversion::begin_page): Exit if we just printed the
9580         last page.
9581         * troff/div.h (last_page_number): Declare it.
9582         * troff/input.cc (parse_output_page_list): Set last_page_number.
9584         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
9585         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
9586         tmac/tmac.X: Likewise.
9587         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
9588         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
9590 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
9592         * tmac/doc-ditroff (hK): Remove groff specific code which
9593         prevented page-breaks between separate manual entries.  If this is
9594         the first page, don't set the page number to 1.
9596         * acgroff.m4 (GROFF_POSIX): New macro.
9597         * configure.in: Use it.
9599         * troff/node.cc (class real_output_file,
9600         real_output_file::real_output_file,
9601         real_output_file::~real_output_file): Conditionalize use of
9602         popen/pclose on POPEN_MISSING.
9603         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
9604         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
9605         (pipe_source): Similarily.
9607         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
9609         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
9610         presence of declarations by trying to compile example with
9611         conflicting declarations.  (gcc only gives a warning for missing
9612         declarations.)
9614 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
9616         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
9617         (from Ulrich Lauther).
9619 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
9621         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
9623 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
9625         * indxbib/indxbib.cc (write_hash_table): Add code for case where
9626         pointers and ints have different sizes.
9628 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
9630         * tmac/tmac.s (par*env-init): Call par@reset.
9632 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
9634         * tmac/tmac.s (@IP): Switch to a new environment when diverting
9635         tag.
9636         (par*push-tag-env, par*pop-tag-env): New macros.
9638 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
9640         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
9641         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
9643         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
9644         comment.  Include <time.h>.
9646 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
9648         * grops/ps.cc (is_small_h, is_small_v): Deleted.
9649         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
9650         lines.
9652 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
9654         * troff/input.cc (read_request): Only print a prompt if reading
9655         from the terminal.  Also clearerr on EOF if reading from the
9656         terminal.  Declare isatty.
9658 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
9660         * refer/label.y: Rename map_t to map_func and extractor_t to
9661         extractor_func.
9663 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
9665         * include/assert.h: Don't use volatile.
9666         * libgroff/assert.cc: Likewise.
9668 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
9670         * troff/input.cc (abort_request): Look at character in tok before
9671         calling get_copy().
9673 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
9675         * troff/troff.h (NO_RETURN): Deleted.
9676         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
9677         * troff/input.cc (exit_troff): Likewise
9679         * Makefile.in: Remove `Making ...' messages since GNU make now
9680         gives these. 
9682         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
9684 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
9686         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
9687         to constant 1 inch.
9689 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
9691         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
9693 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
9695         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
9696         MARK_REG if there was no left delimiter.
9698 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
9700         * pic/troff.cc (troff_output::text): Set line thickness to
9701         relative before outputting text.
9703         * tmac/tmac.e (@k): Don't zero ?T.
9704         ((z): Likewise.
9706 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
9708         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
9710 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
9712         * troff/input.cc (decode_args): Warn about unquoted tabs (from
9713         Paul Eggert).
9715 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
9717         * troff/input.cc (ignoring): New variable.
9718         (ignore): Set ignoring during call to do_define_macro.
9719         (do_define_macro): Clear ignoring before interpolating terminating
9720         macro.
9721         (copy_mode_error): New function.
9722         (get_char_for_escape_name, read_long_escape_name,
9723         interpolate_arg): Use copy_mode_error.
9724         (warning_table): Add WARN_IG.
9725         * troff/troff.h (WARN_IG): Declare.
9726         (WARN_TOTAL): Change accordingly.
9728         * groff/pipeline.c (strsignal): Rename to xstrsignal.
9729         * groff/groff.cc (strsignal): Delete declaration.
9731 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
9733         * troff/div.cc (page_offset): Use 'm' as default scaling.
9735 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
9737         * nroff/nroff.sh: Ignore -u.
9739 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
9741         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
9743 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
9745         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
9746         drawing box.
9747         (B2): With -Tascii, leave additional vertical space before
9748         and after. Ensure that the left and right indent is restored to
9749         what it was even if the point size changes.  Don't call
9750         par@finish. Change the indent, line length and title length
9751         directly.  With -Tascii, make the width of the box 1n less.
9752         (B1): Remember 1n at the current point size.  Don't call
9753         par@reset.  Change the indent, line length and title length
9754         directly.  Ensure that the temporary indent is preserved.
9755         (par*box-mark-top): Turn off no spacing mode.
9757 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
9759         * Makefile.in (dist): Use .gz suffix.
9761 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
9763         * troff/input.cc (main): Add return 0.
9764         * pic/main.cc (main): Use return instead of exit.
9765         * tbl/main.cc (main): Likewise.
9766         * eqn/main.cc (main): Likewise.
9767         * grops/ps.cc (main): Likewise.
9768         * grotty/tty.cc (main): Likewise.
9769         * groff/groff.cc (main): Likewise.
9770         * grodvi/dvi.cc (main): Likewise.
9771         * refer/refer.cc (main): Likewise.
9772         * indxbib/indxbib.cc (main): Likewise.
9773         * lkbib/lkbib.cc (main): Likewise.
9774         * soelim/soelim.cc (main): Likewise.
9775         * addftinfo/addftinfo.cc (main): Likewise.
9776         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
9777         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
9779         * troff/token.h (process_input_stack): Don't declare as static.
9780         * troff/input.cc: Likewise.
9782         * troff/node.c (invalidate_fontno): Make it a static member of
9783         class font_family.  Change callers.
9784         * troff/node.c: Change declaration.
9786         * tbl/main.cc (struct input_entry_format): Add explicit public
9787         specifier.
9788         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
9789         struct double_hline_stuff): Likewise.
9790         * tbl/table.h (struct entry_format): Likewise.
9791         * pic/object.h (struct saved_state): Likewise.
9793         * include/stringclass.h: Add forward declarations of friend
9794         functions that are later declared as inline.  Don't include inline
9795         specifier in friend declaration.
9797         * libgroff/lib.h: Declare popen and pclose.
9798         * acgroff.m4 (GROFF_POPEN): New macro.
9799         * configure.in: Call it.
9801         * include/lib.h (PI): New constant. Undef first if necessary.
9802         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
9803         * grops/ps.cc (degrees, radians): Likewise.
9804         * libgroff/font.cc (font::get_skew): Likewise.
9806         * grops/ps.cc (is_ascii): New function.
9807         (ps_output::put_string): Use is_ascii.  Use csprint rather than
9808         isprint.
9809         (ps_printer::define_encoding): Use csspace.
9810         * libgroff/strtol.c (ISASCII): New macro.
9811         (strtol): Cast arguments to is*() and tolower() to unsigned char.
9812         Use ISASCII rather than isascii.
9813         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
9814         * libgroff/cset.cc: Likewise.
9815         * libdriver/input.cc: Include cset.h.
9816         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
9817         than isdigit().
9819         * refer/refer.cc (main): Use %ld rather than %d for longs.
9821         * libbib/index.cc (index_search_item_iterator::get_tag): Use
9822         S_ISREG macro.
9824         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
9826 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
9828         * troff/input.cc (hyphenation_code): Skip white space between
9829         char/code pairs.
9831 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
9833         * tbl/table.h (table::entry_list_tailp): New member.
9834         (table::table): Initialize it.
9835         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
9836         behaviour.
9838 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
9840         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
9841         with negative horizontal positions. Remove casts of glyph::hpos to
9842         int.
9843         (USHRT_MAX): Delete definition.
9844         (SHRT_MAX, SHRT_MIN): New definitions.
9845         (glyph::hpos): Change type to short.
9846         (tty_printer::end_page): Output multiple backspaces if necessary.
9847          Remove casts of glyph::hpos to int.
9848         
9849 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
9851         * tmac/tmac.s (@RT): New definition.
9853 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
9855         * refer/refer.cc (do_file): Make sure current_filename is set when
9856         filename is "-".
9858         * pic/common.cc (common_output::dot_line): Handle zero length
9859         lines.
9861 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
9863         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
9864         (par@init): Initialize \n[HY].
9866 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
9868         * troff/dictionary.cc (dictionary::remove): Continue when
9869         r < j < i.
9871 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
9873         * Makefile.com (.y.cc): Avoid ending up with two versions of
9874         $(YTABH).
9876 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
9878         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
9879         (\(,C): Likewise.  Also fix typo.
9881 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
9883         * lib.h: Delete extraneous semi-colon.
9885         * Add pso request: `so' from a pipe.
9886         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
9887         (file_iterator::close): New function.
9888         (file_iterator::~file_iterator, file_iterator::next_file): Use
9889         file_iterator::close.
9890         (file_iterator::backtrace): Say `process' rather than `file' when
9891         the stream is popened.
9892         (pipe_source): New function.
9893         (init_input_requests): Bind ".pso" to pipe_source.
9895 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
9897         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
9899         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
9900         digits in lower case.
9902 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
9904         * Version 1.08 released.
9906         * Makefile.in (dist): Insert || true after ln -s commands that
9907         might fail.
9909         * mm: Update to mm 1.16.
9911         * acgroff.m4 (GROFF_CSH_HACK): New macro.
9912         * configure.in: Call GROFF_CSH_HACK.  Substitute for
9913         SH_SCRIPT_SED_CMD.
9914         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
9915         MDEFINES.
9916         * nroff/Makefile.sub (nroff): New target.
9917         (install_data): Install nroff.
9918         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
9919         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
9921 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
9923         * eqn/Makefile.sub (neqn): Add chmod +x.
9925         * grog/Makefile.sub (grog): Remove spurious semi-colon.
9927 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
9929         * troff/input.cc (string_iterator::string_iterator()): Initialize
9930         lineno and count.
9932 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
9934         * troff/div.cc (macro_diversion::space,
9935         top_level_diversion::space): Don't set high_water_mark.
9936         (macro_diversion::output, top_level_diversion::output): Don't
9937         include post line space in high water mark.
9939 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
9941         * eqn/eqn.y: Don't define YYDEBUG.
9942         * pic/pic.y: Likewise.
9944 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
9946         * tmac/tmac.e ([3): Add space after comma following editors.
9947         Change double spaces to single spaces.
9948         ([4): Change double spaces to single spaces.
9950         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
9951         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
9952         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
9953         after %!PS-Adobe- (for Newsprint).
9955         * troff/div.cc (top_level_diversion::begin_page): When
9956         before_first_page is 1, set page_number to 1.
9958 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
9960         * eqn/box.cc (box::top_level): Protect equation with \&.
9962 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
9964         * groff/groff.cc (possible_command::set_name): Delete old name.
9966         * groff/groff.cc (possible_command::~possible_command): Use
9967         a_delete.
9969         * troff/node.cc (troff_output_file::begun_page): New member.
9970         (troff_output_file::troff_output_file): Initialize it.
9971         (troff_output_file::really_begin_page): Only output V command if a
9972         page has been begun.
9974         * pic/pic.y (placeless_element): Delete argument to PRINT after
9975         use.
9977 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
9979         * Make wrapman work.
9980         * troff/div.h (class top_level_diversion): Replace
9981         first_page_begun by before_first_page (with opposite sense).
9982         * Change first_page_begun to before_first_page inverting sense.
9983         * troff/div.cc (class nl_reg): New class.
9984         (init_div_requests): Use class nl_reg for \n(nl.
9985         (top_level_diversion::begin_page): Don't call
9986         output_file::begin_page if before_first_page is 2;
9987         reset before_first_page afterwards.  If have_next_page_number is
9988         false, then always increment page_number.
9989         * tmac/tmac.an: Set traps within TH rather than at the top-level.
9990         Restore compatibility mode after loading, and then disable
9991         compatibility mode in TH.
9993 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
9995         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
9996         past last line.
9997         * troff/node.h (output_file::trailer): Declare.
9998         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
9999         * troff/node.cc (output_file::trailer): New function.
10000         (troff_output_file::~troff_output_file): Move most code into...
10001         (troff_output_file::trailer): New function.
10002         (class troff_output_file): Delete page_length member. Declare
10003         trailer().
10004         (troff_output_file::really_begin_page): Use current page length
10005         for final V command.
10007         * tbl/main.cc (struct options): New decimal_point_char member.
10008         (options::options): Initialize this.
10009         (process_options): Implement decimalpoint option.
10010         (process_data): Pass decimal_point_char option to table::table.
10011         * tbl/table.h (class table): New decimal_point_char member.
10012         (table::table): Add additional argument.
10013         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
10014         second argument specifying decimal point character.  Use this
10015         instead of '.'.
10016         (table::table): Initialize decimal_point_char.
10017         (table::add_entry): Change call to find_dot.
10019         * troff/input.cc (get_copy, token::next): Implement \V.
10020         (interpolate_environment_variable): New function.
10022 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
10024         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
10025         * pic/pic.y: Likewise.
10027         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
10028         Add casts to int.
10029         * refer/ref.cc (reference::insert_field, reference::delete_field):
10030         Likewise.
10031         * troff/number.cc (parse_term): Likewise.
10033         * acgroff.m4 (GROFF_PROG_YACC): New macro.
10034         * configure.in: Use GROFF_PROG_YACC.
10036         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
10037         and g++.
10038         * Makefile.in (OPTIMIZE): New define.
10039         (DEBUG): Empty by default.
10040         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
10042         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
10043         (GROFF_ARRAY_DELETE): Likewise.
10044         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
10046         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
10048         * devps/psstrip.sed: Use different delimiter on last line (so that
10049         it works with BSD 4.4 sed.)
10051 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
10053         * devps/psstrip.sed: Delete comments.
10055         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
10056         optind, opterr, optarg.
10057         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
10058         opterr, optarg.
10060 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
10062         * Makefile.in (check): Dummy target.
10064 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
10066         * Version 1.07 released.
10068         * Integrate mm 1.11.
10070         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
10071         where start_col was meant.
10073 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
10075         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
10077 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
10079         * troff/input.cc (token::next): Make \z\o'...' and similar things
10080         work.
10082         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
10083         constants.
10084         (environment): Add margin_character_flags member.
10085         * env.cc (environment::environment(symbol),
10086         environment::environment(const environment *): Initialize
10087         margin_character_flags.
10088         (margin_character): Rewrite.
10089         (environment::output_line): Add a margin character if
10090         margin_character_flags is non-zero.  Turn off the
10091         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
10092         zero, use margin_character_node without copying and then set
10093         margin_character_node to 0.
10095         * devps/DESC.in: Change minimum size to 1000.
10097 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
10099         * troff/symbol.h (symbol::hash): Change return type to unsigned
10100         long.
10101         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
10102         Add casts to int.
10104         * test-groff: Use -r rather than -x.
10106         * grops/psfig.diff: Include in distribution again.
10108 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
10110         * Makefile.in (dist): Use gzip.
10112 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
10114         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
10115         unistd.h as well as in stdlib.h.
10116         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
10117         defined; otherwise include <sys/types.h> and <unistd.h> if
10118         UNISTD_H_DECLARES_GETOPT is defined.
10120         * configure.in: use builtin(include, ... rather than include(...
10121         * configure: Regenerate with autoconf 1.3.
10123         * libdriver/print.cc (printer::adjust_arc_center): Use new
10124         algorithm suggested by Andy Fyfe.
10126         * libdriver/printer.cc (printer::adjust_arc_center): New function.
10127         * include/printer.h: Declare this.
10128         * grops/ps.cc (ps_printer::draw): Use it.
10129         * grodvi/dvi.cc (dvi_printer::draw): Use it.
10131 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
10133         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
10135 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
10137         * eqn/main.cc (main): Handle "eqn -".
10139 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
10141         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
10143         * mm: Integrate version 1.08.
10145         * pic/troff.cc (troff_output::finish_picture): Set
10146         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
10147         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
10148         if it's not defined. Check whether the register is non-zero rather
10149         than whether it's not defined.
10150         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
10152         * indxbib/indxbib.cc: Move all signal handling into...
10153         * indxbib/signal.c: New file.
10154         * configure.in: Call AC_RETSIGTYPE.
10156         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
10157         * configure.in: Call GROFF_STRUCT_EXCEPTION.
10158         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
10160         * troff/input.cc (token::token, token::operator=): Work round SGI
10161         C++ bug.
10162         * pic/object.cc (position::position): Likewise.
10164 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
10166         * pic/pic.h: Move declaration of hypot().
10168 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
10170         * pic/pic.h: Declare hypot().
10172         * pic/pic.h: Define M_PI if necessary.
10174 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
10176         * tmac/tmac.e (re): Add alternative version that doesn't use groff
10177         `.ta T' feature.
10179         * devps/prologue.ps (RE): Handle the possibility that the old font
10180         doesn't have a FontName entry.
10182 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
10184         * tmac/tmac.e (fam): Redefine to set family in environment 2.
10185         (@C): Use @fam not fam.
10187 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
10189         * lookbib/lookbib.cc (main): Change type of start to const char *.
10190         * lkbib/lkbib.cc (main): Likewise.
10192         * eqn/lex.cc (definition::definition): Don't use member
10193         initializer syntax for members of anonymous unions.
10195         * troff/input.cc (input_stack::backtrace): Change type of to const
10196         char *.
10198 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
10200         * include/stringclass.h (class string): Declare inline friend
10201         functions as inline in class declaration.
10202         * troff/hvunits.h (class hunits, class vunits): Likewise.
10203         * include/refid.h (class reference_id): Likewise
10204         * troff/troff.h (points_to_units(units), scale(units, double)):
10205         Delete declarations.
10206         * libdriver/input.cc (get_char): Delete declaration.
10207         * include/lib.h: Change 2nd argument of getopt from const char **
10208         to char **.
10209         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
10210         char **' before assigning to a `const char **'.
10211         * tbl/table.cc: Delete extra declarations of prints().
10213 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
10215         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
10216         char **' before assigning to a `const char **'.
10218         * libgroff/errarg.cc (errarg::errarg): Don't use member
10219         initializer syntax for members of anonymous unions.
10221 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
10223         * mm: Integrate version 1.07.
10225 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
10227         * troff/input.c (translate2): Rename to
10228         (translate_no_transparent).
10229         (init_input_requests): Rename tr2 to trnt.
10231 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
10233         * troff/charinfo.h (class charinfo): Add transparent_translate field.
10234         (charinfo::set_translation, charinfo::set_special_translation):
10235         Add second argument that specifies value for
10236         transparent_translate.
10237         (charinfo::get_translation, charinfo::get_special_translation):
10238         Add optional second argument that specifies whether translation is
10239         being used for transparent throughput.
10240         * troff/input.cc (charinfo::set_translation,
10241         charinfo::set_special_translation): Handle second argument.
10242         (charinfo::charinfo): Initialize transparent_translate.
10243         (translate): Split main part off into
10244         (do_translate): New function.  Pass argument saying whether
10245         translation applies to transparent throughput.
10246         (translate2): New request.
10247         (init_input_requests): Bind translate2 to `tr2'.
10249 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
10251         * tbl/table.h (class table): Add `nokeep' flag.
10252         * tbl/main.cc (process_options): Handle `nokeep' option.
10253         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
10254         table::do_bottom): Don't output keep/release macro definitions or
10255         calls when `nokeep' option has been specified.
10257 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
10259         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
10261 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
10263         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
10264         block_entry::divert, alphabetic_block_entry::divert): Add extra
10265         argument giving column separation.
10266         (table::compute_widths): Pass column separation to
10267         table_entry::divert().
10268         (block_entry::do_divert): If an entry spans multiple columns and a
10269         minimumum width has been specified for each column, then set the
10270         line length to the sum of the widths (plus possibly the column
10271         separations).
10273         * troff/input.cc (set_escape_char): Don't set the escape_char
10274         until after calling has_arg().
10276 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
10278         * tbl/table.cc (table::do_top): Add missing \s0 for double box
10279         case.
10281         * tbl/table.cc (table::print_double_hline): Avoid extra new line
10282         in case where r > nrows - 1.
10284         * tbl/table.cc (BODY_HEIGHT): Deleted.
10285         (LINE_SEP): New definition.
10286         (table::print_single_hline, table::print_double_hline,
10287         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
10288         table::do_row, table::do_top): Use LINE_SEP space before a line
10289         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
10291         * tbl/table.cc (text_entry::print_contents): New function.
10292         (text_string_name, right_text_string_name): Deleted.
10293         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
10294         (simple_text_entry::do_width, numeric_text_entry::do_width,
10295         alphabetic_text_entry::do_width): Don't store the contents of the
10296         entry in a string.
10297         (left_text_entry::simple_print, right_text_entry::simple_print,
10298         center_text_entry::simple_print,
10299         alphabetic_text_entry::simple_print,
10300         numeric_text_entry::simple_print): Print the entry directly
10301         instead of using the stored string.
10303 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
10305         * devps/Makefile: Strip PostScript files.
10306         * devps/prologue: Rename to...
10307         * devps/prologue.ps.
10308         * devps/psstrip.sed: New file.
10309         * devps/download: Use .pfa rather than .ps for installed versions
10310         of fonts.
10312 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
10314         * troff/env.cc (input_trap): Give a warning if the argument is out
10315         of range.
10317         * troff/env.cc (adjust): Treat negative argument as missing. Round
10318         argument > 5 down to 5.
10320         * troff/env.cc (center, right_justify): Make negative argument zero.
10322         * troff/div.cc (page_offset, vertical_position_traps): Treat
10323         invalid argument as missing.
10324         * troff/env.cc (line_spacing, line_length, title_length, indent,
10325         underline, hyphen_line_max_request, control_char,
10326         no_break_control_char, widow_control_request, adjust, input_trap,
10327         point_size): Likewise.
10328         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
10329         constant_space): Likewise.
10330         * troff/input.cc (compatible, shift, warn_request,
10331         set_escape_char): Likewise.
10333         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
10334         * tbl/table.cc (table::table): Likewise.
10336         * Makefile.dev (install_dev): depends on $(DEVFILES).
10338 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
10340         * devX75, devX75-12, devX100, devX100-12: New directories.
10341         * Makefile.in: Add these to DEVDIRS.
10343         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
10344         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
10345         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
10346         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
10347         targets.
10348         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
10349         (uninstall): New target.
10350         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
10351         uninstall_prog, uninstall_dev): New targets.
10353         * troff/div.cc (return_request): Treat an invalid argument as
10354         missing.
10356 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
10358         * tmac/tmac.e ((f): Set up the environment even when there's a
10359         current diversion.  Transperently throughput a call to @N.
10360         (@N): New macro.
10362 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
10364         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
10365         up to vertical resolution.
10367         * tbl/table.cc (table::do_row): Change row number after printing
10368         stuff list.
10370         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
10372 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
10374         * Rename CHANGES to NEWS.
10376 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
10378         * libgroff/new.cc (operator new): Avoid calling malloc(0).
10380 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
10382         * man.ultrix: Removed.
10384 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
10386         * Makefile.comm (extraclean): Delete files whose names begin with
10387         `='.
10389         * pic/troff.cc (troff_output::text): Fix typo in implementation of
10390         aligned text.
10392 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
10394         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
10395         * troff/div.cc (page_length, need_space, space_request): Treat
10396         invalid optional argument as missing.
10397         * troff/env.cc (number_lines): If the first argument is present
10398         but not a number, turn on line numbering, don't change the next
10399         line number and parse the remaining arguments.
10401         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
10403 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
10405         * eqn/box.h: Change declaration accordingly.
10406         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
10407         the specified size was bad but don't give an error.  Check for
10408         overflow.
10409         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
10410         * eqn/lex (do_size): Likewise.
10412 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
10414         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
10415         compatible headers.
10417 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
10419         * tbl/table.cc (table::init_output): Improve error message when
10420         table won't fit on one page.
10422 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
10424         * pic/troff.cc (troff_output::start_picture): Generate line
10425         containing a horizontal motion equal to the width of the picture.
10427         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
10428         using GROFF_COMMAND_PREFIX environment variable.
10430 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
10432         * mdate.sh: Use $NF rather than $(NF).
10434 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
10436         * pic/main.cc (main):  Use %1 not %c in argument to warning.
10438         * eqn/main.cc (main): Output code to check that geqn was given the
10439         correct -T option.
10441 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
10443         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
10444         `ln -s ../Makefile .; make; rm -f Makefile'.
10446         * troff/hyphen: Rename to...
10447         * troff/hyphen.us:
10448         * troff/input.cc (main): Delete -H option. Don't call
10449         read_hyphen_file().
10450         * troff/env.cc: Include searchpath.h and macropath.h.
10451         (exception_dictionary): Deleted.
10452         (ht): Deleted.
10453         (read_hyphen_file): Deleted.
10454         (hyphenation_language): New struct.
10455         (class trie, class hyphen_trie): Move declarations up.
10456         (trie_node::~trie_node): Deleted.
10457         (trie::delete_trie_node): New function.
10458         (trie::do_delete): New pure virtual function.
10459         (hyphen_trie::do_delete): New function.
10460         (trie::~trie): New function.
10461         (hyphen_trie::~hyphen_trie): New function.
10462         (trie::clear): No need to chcek that tp is not 0.
10463         (current_language, language_dictionary): New variables.
10464         (hyphen_word): Give an error if no current language.  Use
10465         exceptions dictionary in current language.
10466         (hyphen_trie::read_patterns_file): Find file using macro_path.
10467         Allow comments (starting with %) in patterns file.  Don't make it
10468         a fatal error if the file can't be found.
10469         (hyphenate): Return if no current language.  Get the exceptions
10470         dictionary and the hyphenation patterns from the current language.
10471         (set_hyphenation_language): New variable.
10472         (hyphenation_patterns_file): New function.
10473         (hyphenation_language_reg): New class.
10474         (hyphenation_language_reg::get_string): New function.
10475         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
10476         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
10477         register.
10478         * groff/groff.cc (main, help, synopsis): Delete -H option.
10479         * include/Makefile.sub: Don't define HYPHENFILE.
10480         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
10481         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
10482         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
10483         hyphenation patterns.
10485 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
10487         * eqn/neqn.sh: New file.
10488         * eqn/Makefile.sub: Handle neqn.sh.
10490         * eqn/eqn.h: Declare `nroff' variable.
10491         * eqn/box.cc (param_table): Add `nroff' param.
10492         (nroff): Define it.
10493         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
10494         variable.
10495         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
10497         * troff/troff.h (WARN_FONT): New warning.
10498         (WARN_TOTAL): Change accordingly.
10499         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
10500         (warning_table): Add WARN_FONT.
10501         * troff/node.cc (mount_font_no_translate): Pass argument to
10502         font::load_font.  If this is non-zero, give a warning.
10503         Don't give an error message when accessing a font that has already
10504         been found to be invalid.
10505         * include/font.h (font::load, font::load_font): Add additional
10506         optional argument which suppresses error message if the font is
10507         not found.
10508         * libgroff/font.cc (font::load_font): Handle additional argument.
10509         (font::load): Add additional argument. If this is non-null, set it
10510         to 1 and don't give error message.
10512         * include/printer.h (printer::end_page): Add argument giving
10513         length of page.
10514         * libdriver/input.cc (do_file): Pass this.
10515         * grops/ps.cc (ps_printer::end_page): Add argument.
10516         * grodvi/dvi.cc (dvi_printer::end_page,
10517         draw_dvi_printer::end_page): Add argument.
10518         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
10519         columns_per_page members. New member nlines.
10520         (DEFAULT_LINES_PER_PAGE): Deleted.
10521         (tty_printer::tty_printer): Don't compute lines_per_page from
10522         font::paperlength. Don't compute columns_per_page from
10523         font::paperwidth.
10524         (tty_printer::add_char): Don't check horizontal position against
10525         columns_per_page. Grow glyphs vector if neccessary.
10526         (tty_printer::end_page): Add argument giving page_length in units.
10527         Discard lines past end of page.
10529 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
10531         * tmac/tmac.tty-char: Fix definition of \(/l.
10533         * tmac/tmac.X: Define \(en.
10535 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
10537         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
10538         lpq, then use lp rather than lpr.
10540         * tmac/tmac.s (par@reset): Don't call `ad'.
10541         (par*env-init): Call `ad'.
10543 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
10545         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
10546         date.
10548         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
10549         * indxbib/indxbib.cc: Likewise.
10551 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
10553         * libgroff/putenv.c: New file.
10554         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
10555         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
10556         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
10557         stdlib.h with AC_HAVE_HEADERS.
10559 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
10561         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
10562         does not exist.
10564 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
10566         * eqn/box.cc (gsize): Make it an int.
10567         (set_gsize): Parse argument handling increment or decrement.
10568         (box::top_level): Convert gsize to a string.
10570         * troff/input.cc (exit_troff): Make buf unsigned char [].
10571         Call to make_temp_iterator casts buf to char*.
10573         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
10575         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
10576         * Makefile.cpg (depend.temp): Likewise.
10578         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
10580         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
10582 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
10584         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
10586 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
10588         * Version 1.06 released.
10590         * Integrate mm 1.04.
10592 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
10594         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
10596 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
10598         * afmtodit/afmtodit.pl: Add -n option that disables generation of
10599         ligatures command.
10600         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
10601         afmtodit. Regenerate.
10603         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
10604         @f back past the current position.
10606         * tmac/tmac.e: Change calls to @R so that comments are not part of
10607         arguments.
10609 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
10611         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
10613         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
10614         check that we can link a call to a function declared in <stdio.h>.
10615         (GROFF_UNISTD_H): New macro.
10616         * configure.in: Call it.
10617         * Makefile.in: Document it.
10618         * include/posix.h: New file.
10619         * troff/troff.h: Don't include <osfcn.h>
10620         * troff/input.cc: Include posix.h.
10621         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
10622         osfcn.h.
10623         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
10624         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
10625         <fcntl.h>.
10626         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
10627         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
10628         * libbib/search.cc (O_RDONLY): Delete definition.
10629         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
10630         Don't include <osfcn.h>.
10632         * acgroff.m4 (GROFF_TIME_T): New macro.
10633         * configure.in: Call it.
10634         * Makefile.in: Document it.
10636         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
10637         * configure.in: Call it.
10638         * Makefile.in: Document -DTRADITIONAL_CPP.
10639         * include/ptable.h: Don't include generic.h.
10640         (name2): Define it.
10642         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
10643         Afterwards remove [T1 and [T2.
10644         (ref*spec!0, ref*spec!2): Use T1 rather than T.
10645         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
10646         (ref*add-T2): Renamed from ref*add-T.
10647         (ref*add-T1): New macro.
10649 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
10651         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
10653         * libbib/index.cc: Include <fcntl.h>.
10654         (O_RDONLY): Define if necessary.
10655         (make_index_search_item, index_search_item_iterator::get_tag,
10656         index_search_item::check_files): Use O_RDONLY.
10657         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
10658         (O_RDONLY): Define if necessary.
10659         (search_list::add_file): Use O_RDONLY.
10660         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
10661         <sys/stat.h>.
10662         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
10663         (main): Use these.
10665         * libbib/index.cc (S_ISREG): Define it if necessary.
10666         (index_search_item::load): Use S_ISREG.
10668         * include/driver.h: Include <errno.h>.
10670 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
10672         * eqn/box.cc (body_height): Increase default value to 85.
10673         (body_depth): Increase default value to 35.
10675 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
10677         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
10678         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
10679         protected from expansion with \E.
10681         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
10683         * Makefile (Makefile): New target.
10685         * Makefile.sub (configure, distfiles): New targets.
10687         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
10688         construct.
10690 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
10692         * eqn/box.cc (param_table): Add body_height and body_depth.
10694         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
10696 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
10698         * psbb/Makefile.sub: Don't link with libgroff.a.
10700         * acgroff.m4 (GROFF_PUTENV): New macro.
10701         * configure.in: Call GROFF_PUTENV.
10702         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
10703         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
10704         is defined.
10706         * troff/env.cc (distribute_space): Rename force_forward argument
10707         to force_reverse.  Reverse the list if force_reverse is true.
10709 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
10711         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
10713         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
10714         height or depth to be negative.  Guard against SUP_RAISE quantity
10715         being negative.
10717 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
10719         * devps/generate/textmap: Add `an' (arrowhorizex).
10720         * tmac/tmac.ps: \(an overlaps horizontally.
10721         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
10723         * devps/symbolchars: Add arrowverttp, arrowvertbt.
10724         * devps/textmap: Add arrowvertex.
10725         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
10726         updownarrow delimiters.
10727         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
10729         * tbl/table.cc (simple_entry::position_vertically,
10730         block_entry::position_vertically):  For a centered entry, perform
10731         the motion in two stages.
10733         * refer/refer.cc (split_punct): Don't call lookup_token if there
10734         is no token.
10736 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
10738         * troff/input.cc (token::next): Delete token_node after copying
10739         token.
10741         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
10742         cur_point_size.
10744         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
10746         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
10748 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
10750         * grops/ps.cc (usage): -b option takes an argument.
10752         * devps/prologue (PLG): New procedure.
10753         * grops/ps.cc (main, usage): New -g option.
10754         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
10755         length using PLG.
10757 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
10759         * include/cset.h: Include <limits.h> if we have it.
10761         * libgroff/illegal.cc: New file.
10762         * include/lib.h (illegal_input_char): Use table.
10763         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
10764         * pic/lex.cc (ARG1): Renumber to 14.
10765         * eqn/lex.cc (ARG1): Likewise.
10767         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
10768         (eg 1.05.90) correctly.
10770 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
10772         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
10773         Rename $r and $R registers to $v and $V.
10774         ($r, $R): Initialize to 0.
10775         (@v, @V): New macros.
10776         (sz): Call @v.
10777         (@M): Call @V.
10779         * troff/input.cc (main, usage): Add -R option that says not to
10780         load troffrc.
10781         * eqn/main.cc (main, usage): Rename -n to -R.
10783 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
10785         * devps/DESC.in: Leave font positions 5-9 blank.
10786         * devdvi/DESC.in: Likewise.
10788         * grog/grog.pl: Handle `.PS <file' correctly.
10790         * troff/input.cc (input_stack::push): Improve error message when
10791         input stack limit exceeded.
10793 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
10795         * refer/refer.cc (main): Fix typo in handling of `a' option.
10797         * refer/refer.cc (do_bib): In state START after a newline remain
10798         in state START.
10800         * groff/groff.sh: Deleted.
10801         * groff/Makefile.sub: Delete handling of groff.sh.
10803         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
10804         to determine whether to use \X'ps:...'.
10805         * tmac/troffrc: Set 0p register to 0.
10806         * tmac/tmac.ps: Set 0p register to 1.
10808         * groff/groff.cc: Support -X option. Give warning for -TXps and
10809         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
10810         * tmac/troffrc: Support -r.X=1.
10812         * pic/troff.cc (troff_output::dot): Don't test
10813         zero_length_line_flag.
10815 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
10817         * include/lib.h: Declare getopt() and friends unless
10818         STDLIB_H_DECLARES_GETOPT is defined.
10820         * doc/chars.tr: Delete.
10821         * man/groff_char.man: New file.
10823 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
10825         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
10826         user has changed register format.
10828 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
10830         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
10831         `postpro' command in DESC file.  Get spooler command from `print'
10832         command in DESC file.  Execute spooler command with /bin/sh.
10834         * groff/groff.cc: Split Unix-specific parts into...
10835         * groff/pipeline.c: New file.
10837         * LICENSE: Delete.
10838         * COPYING: New file.
10839         * all files: Update copyright notices.
10841         * Rearrange files.  Redo Makefiles.  Use autoconf.
10843 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
10845         * troff/input.c (charinfo_to_node_list): Interpret character
10846         definition with escape_char of `\'.
10848 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
10850         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
10851         Define INT_DIGITS as big enough for 64-bit integer.
10852         * lib/strtol.c: Don't include lib.h.
10853         * lib/lib.h: Delete ifdef __cplusplus stuff.
10855 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
10857         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
10858         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
10859         get DESC from current directory.
10861 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
10863         * tbl/main.c (main): Always reset the line number when reading
10864         from stdin.
10866         * tbl/table.c (table::print_single_hline, table::print_double_hline,
10867         table::define_bottom_macro, table::do_row, table::do_top): Round
10868         vertical spacing up to vertical resolution.
10870 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
10872         * ps/ps.h (enum resource_type): Avoid comma at end of
10873         enumerator-list.
10874         * dvi/dvi.c (class dvi_printer): Likewise.
10875         * dvi/tfmtodit.c (gf::load): Likewise.
10876         * refer/label.y (struct expression): Likewise.
10877         * refer/refer.c (class label_processing_state): Likewise.
10878         * refer/indxbib.c (do_file): Likewise.
10879         * troff/troff.c (enum warning_type): Likewise.
10880         * tbl/main.c (process_data): Likewise.
10881         * troff/charinfo.h (class charinfo):
10883 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
10885         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
10887 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
10889         * groff.c: Move to new groff subdirectory.
10890         * groff/Makefile: New file.
10891         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
10893         * man/mdate.sh: Use ls -L if supported.
10895         * Consolidate all header files produced by gendef into lib/defs.h.
10896         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
10897         Don't include path.h.
10898         * lib/Makefile (path.h): Don't generate.
10899         * troff/input.c: Include defs.h. Don't include config.h.
10900         * troff/Makefile (config.h): Don't generate.
10901         * refer/index.h: Don't include suffix.h.
10902         * refer/index.c: Include defs.h.
10903         * refer/indxbib.c: Include defs.h.
10904         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
10905         defs.h.
10906         * refer/Makefile (suffix.h, path.h): Don't generate.
10907         * groff.c: Don't include config.h. Include defs.h.
10908         * Makefile (config.h): Don't generate.
10909         (lib/defs.h): Generate.
10910         (topclean): Remove lib/defs.h.
10912 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
10914         * lib/malloc.c, lib/getpagesize.h: Deleted.
10915         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
10916         related stuff.
10917         * lib/Makefile: Delete malloc-related stuff.
10918         * lib/new.c: Workaround COOKIE_BUG if necessary.
10920         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
10921         needed header files directly.
10922         * refer/refer.h: Omit definition of DEFAULT_INDEX.
10923         * Makefile: Include definition of DEFAULT_INDEX in path.h.
10925 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
10927         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
10928         argument.
10929         * lib/font (font::load_desc, font::load): Don't split argument of
10930         unknown command.
10931         (font::handle_unknown_font_command): Change type.
10932         * ps/ps.c (ps_font::handle_unknown_font_command,
10933         handle_unknown_desc_command): Change type.
10934         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
10936 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
10938         * lib/font.h (font::handle_unknown_font_command): Add file and
10939         line arguments.
10940         * lib/font.c (font::handle_unknown_font_command):
10941         * ps/ps.c (ps_font::handle_unknown_font_command):
10942         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
10943         lineno arguments.  Use _with_file_and_line functions for error
10944         reporting.
10946         * lib/fontfile.c (font::unknown_desc_command_handler): New static
10947         data member.
10948         * lib/font.c (font::set_unknown_desc_command_handler): New
10949         function.
10950         (font::load_desc): For unknown commands, call
10951         unknown_desc_command_handler if not null.
10952         * lib/font.h (class font): Declare them.
10953         (FONT_COMMAND_HANDLER): New typedef.
10954         * ps/ps.c (handle_unknown_desc_command): New function.
10955         (main): Set bflag if we had a -b option. Call
10956         font::set_unknown_desc_command_handler.
10957         (broken.h): Don't include.
10958         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
10959         submake 
10960         * ps/devps/Makefile: Add `broken' command to DESC file using
10961         BROKEN_SPOOLER_FLAGS.
10963         * macros/tmac.e ([, ]): Add as synonyms for { and }.
10965         * macros/tmac.e ($p): Only exdent if \$3 > 0.
10967         * macros/tmac.e (@R, @S): New macros.
10968         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
10969         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
10970         Declare $H, $[0-9], .. macros with @S.
10971         Declare |0, |1, |2, |3 strings with @S.
10973         * macros/tmac.e (@S): Rename to @U.
10975         * macros/tmac.e (@z): Define @b and bp as empty instead of
10976         deleting them,
10978         * macros/tmac.e (@m): Deleted.
10979         (@h): Don't call @m.
10980         (@z): Don't set @m trap.
10982         * macros/tmac.e ($h, $f): Define |z as empty string.
10984         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
10985         (@q): Likewise.
10987         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
10988         removing them.
10989         ()f): Likewise for * register.
10991         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
10992         argument is missing, don't change $R.  Call sr with three
10993         arguments when initializing.
10995 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
10997         * macros/tmac.e (sr): New macro.
10998         Initialize $r and $R using sr.
11000         * macros/tmac.e (,): Delete \*(#[.
11002         * troff/env.c (set_tabs): Read the tab type even if the position
11003         is bad.  Allow the position of the first tab stop to be negative.
11005 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
11007         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
11008         _POSIX_VERSION.
11009         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
11010         rather than -DPATHCONF_MISSING.
11011         * Makefile: Get rid of PATHCONF_MISSING.
11013         * refer/map.c: New file.
11014         * refer/index.c: Interface to mmap through map.c.  Rename map_size
11015         to map_len.
11016         * refer/Makefile: Handle map.c.
11017         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
11019 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
11021         * Makefile: RANLIB should be `true' if there is no ranlib.
11022         * lib/Makefile (libgroff.a): Simplify.
11023         * driver/Makefile (libdriver.a): Simplify.
11025         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
11026         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
11027         defined.
11029 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
11031         * troff/env.c (compare_ranges): Declare as extern "C".
11033         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
11035         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
11037 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
11039         * pic/troff.c (troff_output::text): Merge in grops_output::text,
11040         but conditionalize use of \X based on \*(.T.
11041         (grops_output::*): Deleted.
11042         * pic/output.h: Delete declaration of make_grops_output.
11043         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
11044         by default. -n sets it to 0.
11045         (usage): Corresponding changes.
11046         * groff.c (main): Don't pass -x or -p to pic.
11047         * groff.sh: Likewise.
11049         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
11050         to be non-zero.
11052         * ps/devps/afmtodit: Change calculation of asc_boundary and
11053         desc_boundary.  Make these bounds inclusive.
11054         * ps/devps: Regenerate font files.
11056 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
11058         * macros/tmac.latin1: New file.
11059         * macros/tmac.tty-char: Use tmac.latin1.
11060         (tmac.tty-tr): Deleted.
11061         * macros/Makefile: Install tmac.latin1.
11062         * macros/tmac.dvi: Use tmac.latin1.
11063         * macros/troffrc: Translate \[char160] onto no-break space here.
11064         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
11066 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
11068         * macros/tmac.Xps: Use `do' request.
11070         * macros/tmac.ps: Use `do' request.
11072         * macros/tmac.e (@C): Use `do' request.
11074         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
11075         * macros/Makefile: Install tmac.X*.
11077         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
11078         * tty/Makefile: Don't install tmac.tty*.
11079         * macros/Makefile: Install tmac.tty*.
11081         * dvi/tmac.dvi: Move to macros.
11082         * dvi/Makefile: Don't install tmac.dvi.
11083         * macros/Makefile: Install tmac.dvi.
11085         * ps/tmac.ps*: Move to macros.
11086         * ps/Makefile: Don't install tmac.ps*.
11087         * macros/Makefile: Install tmac.ps*.
11089         * eqn/box.c: Provide draw_lines parameter corresponding to -D
11090         option.
11091         * macros/eqnrc: Set draw_lines parameter based on device.
11092         * groff.c: Don't pass -D flag to eqn.
11093         * groff.sh: Likewise.
11094         * eqn/main.c: Warn about use of -D.
11096         * troff/input.c (process_startup_file): New function.
11097         (main): Call process_startup_file().
11098         * macros/troffrc: New file.
11099         * macros/Makefile: Install troffrc.
11100         * groff.c (main): Don't pass extra -m option to troff. For a 
11101         pseudo device pass the name of the pseudo device to troff using
11102         -d.
11103         * groff.sh: Likewise.
11104         * groff.c (possible_command::prepend_arg): Deleted.
11106         * troff/input.c (do_request): New function.
11107         (init_input_requests): Bind "do" to do_request.
11109         * eqn/main.c (main): Instead of loading eqnchar from device directory,
11110         load eqnrc from macro directory.
11111         * macros/eqnrc: New file.
11112         * macros/Makefile: Install eqnrc.
11113         * ps/devps/eqnchar: Deleted.
11114         * ps/devps/Makefile: Don't install eqnchar.
11115         * dvi/devdvi/eqnchar: Deleted.
11116         * dvi/devdvi/Makefile: Don't install eqnchar.
11117         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
11118         variable optM.
11120         * lib/device.[ch]: New files.
11121         * lib/font.h (font::set_device_name, font::get_device_name):
11122         Deleted.
11123         * lib/fontfile.c: Use device.h.
11124         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
11125         * troff/input.c: Delete definition of `device'.
11126         (main): Don't initialize device.
11127         * troff/troff.h: Include device.h rather than declaring device.
11128         * troff/Makefile: No need to handle DEVICE.
11129         * driver/input.c: Include device.h. Don't use
11130         font::{set,get}_device_name.
11131         * groff.c, Makefile: Rename device.h to config.h.
11132         * groff.c: Use library device variable.
11133         * eqn/main.c: Use library device variable.
11134         * eqn/Makefile: No need to handle DEVICE.
11136         * lib/searchpath.[ch]: New files.
11137         * lib/Makefile: Handle searchpath.[ch].
11138         * troff/input.c (open_file, init_dirs): Deleted.
11139         (macro_dirs): Deleted.
11140         (open_mac_file, macro_source): Use class search_path.
11141         (add_string, struct string_list): Move definition.
11142         (main): Change -M option to use macro_path. Delete call to
11143         init_dirs().
11144         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
11145         Rewrite to use class search_path.
11146         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
11147         * lib/Makefile: fontfile.c depends on searchpath.h.
11148         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
11149         MACROPATH.
11150         * lib/macropath.[ch]: New files.
11151         * troff/Makefile: No need to handle MACROPATH.
11153         * troff/input.c: Delete DUMP code.
11154         * lib/fontfile.c, lib/font.h: Delete
11155         font::forget_command_line_font_dirs.
11157         * troff/input.c (push_token): New function.
11158         (handle_first_page_transition): Use push_token().
11159         (process_input_stack): Change handling of a space at the beginning
11160         of the line.
11162 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
11164         * troff/input.c (font_dirs): Delete unused variable.
11166         * eqn/lex.c (do_set): Correct error messages.
11168 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
11170         * troff/input.c (do_define_string): Allow the string name to be
11171         followed immediately by a tab.
11172         (define_character): Likewise.
11174 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
11176         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
11177         be negative.
11179         * troff/input.c (input_iterator::is_file): New virtual function.
11180         (file_iterator::is_file): New function.
11181         (input_stack::end_file): New function.
11182         (input_stack::next_file): Handle the situation where there is no
11183         file on the input stack correctly.  Avoid making two passes over
11184         the input stack.
11185         (next_file): Make the filename optional; in this case call
11186         input_stack::end_file().
11188 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
11190         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
11191         produce a real _ charater when the current font is CW and _
11192         otherwise.
11194         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
11195         expression to work around gcc 2.2 bug.
11197 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
11199         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
11201         * troff/env.c (environment::add_padding): New function.
11202         (environment::add_char): Use add_padding().
11203         (environment::space): Likewise.
11204         (environment::wrap_up_field): Add some padding if there is none
11205         and there's no current tab.
11206         * troff/env.h: Declare environment::add_padding.
11208 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
11210         * pic/pic.y: undef fmod and rand before declaring them.
11212 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
11214         * troff/input.c (main): If the DESC file specifies a font name of
11215         0, then leave the corresponding font position empty.
11217         * nroff.sh: New file.
11218         * Makefile (install.nobin): Install nroff.sh.
11220         * tty/devlatin1/R.proto: Add ao as synonym for de.
11221         * tty/tmac.tty-char: Define ao as o.
11223         * tty/dev{ascii,latin1}/R.proto: Add aq.
11224         * tty/tmac.tty-char: Delete definition of aq.
11226 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
11228         * troff/input.c (init_charset_table): Don't translate 0240.
11229         * ps/tmac.ps: Translate char160 to space.
11230         * dvi/tmac.dvi: Likewise.
11231         * tty/tmac.tty: Likewise.
11233 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
11235         * dvi/tmac.dvi: Add support for all Latin-1 characters.
11237         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
11238         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
11239         \(oe, \(r?, \(r!.
11241         * tty/tmac.tty-char: Add \(ah.
11243         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
11244         No need to define \(FM and \(!/. Conditionalize all character
11245         definitions.
11247         * ps/devps/lgreekmap: Add +h, +f, +p.
11249         * ps/tmac.psnew: New file.
11250         * ps/Makefile: Install tmac.psnew.
11252         * troff/input.c (charinfo_to_node_list): Don't ever interpret
11253         character definitions in compatible mode.
11255         * troff/input.c (remove_character): New function.
11256         (init_input_requests): Bind remove_character to "rchar".
11258         * ps/tmac.psold: New file.
11259         * ps/Makefile: Install tmac.psold.
11260         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
11261         characters into tmac.psold.  Make these definitions unconditional.
11263         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
11265         * ps/tmac.ps: Don't define \('c and \('C.
11267         * ps/devps/textmap: Move Greek characters to...
11268         * ps/devps/symbolchars:
11270 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
11272         * ps/devps/text.enc: Add quotesingle.
11273         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
11274         * tty/tmac.tty-char: Likewise.
11275         * dvi/devdvi/texmi.map: Add +h, +f, +p.
11276         * dvi/devdvi/texi.map: Add Fn.
11277         * dvi/devdvi/msam.map: Add lz.
11278         * dvi/tmac.dvi: Handle Bq, bq, aq.
11280         * pic/lex.c (get_token): Recognize 'th.
11281         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
11283 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
11285         * ps/devps/textmap: Move di, mu, +- to...
11286         * ps/devps/symbolchars:
11288         * macros/tmac.s (@XS): Don't call par@reset or fi.
11289         (XA): Call LP. Turn off adjustment. Reduce line length.
11291         * macros/tmac.s: Initially alias XS to LP.
11292         (XS): Rename to @XS.
11293         (cov*ab-init): Alias XS to @XS.
11295 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
11297         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
11298         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
11299         (token::is_size, token::changes_env): Deleted.
11300         * troff/number.c (parse_term): No need to process \s explicitly.
11301         Call tok.next() only after scale indicator has been processed.
11302         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
11303         \f etc explicitly.
11304         (token::next): Handle \s, \f, \S, \H immediately rather than
11305         returning them as tokens.
11306         (token::operator==, token::description, token::add_to_node_list,
11307         token::process): Remove handling of deleted tokens.
11309         * troff/env.c (environment::add_char): When adding padding
11310         indicator character, call start_line() if necessary.
11312 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
11314         * ps/devps/afmtodit: Don't output 0 kerns.
11316         * ps/devps/afmtodit: Remove directory from name of encoding in
11317         font description file.
11319         * ps/devps/afmtodit: Improve error messages.
11321         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
11323         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
11324         * ps/devps/FontMakefile: Deleted.
11325         * ps/devps/afmname: New file.
11327         * ps/devps/symbol.sed: New file.
11328         * ps/devps/symbol.diff: Deleted.
11329         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
11330         Generate zapfdr.afm from zapfd.afm.
11332         * tty/tmac.tty (tty-char): Prefix definition with ".
11334         * macros/tmac.an (TP): Don't start a diversion if one has already
11335         been started.
11337         * tty/tmac.tty-char: Add Latin-1 characters.
11339         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
11341 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
11343         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
11344         Move declaration of struct horizontal_span.
11346         * tbl/table.c (table::table): Initialize span_list.
11347         (table::~table): Delete span_list.
11349         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
11351         * ps/devps/Makefile: Avoid dependency on GNU make.
11353         * ps/tmac.ps: Check that character does not already exist before
11354         defining it.
11356         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
11357         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
11358         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
11359         files.
11361         * tty/tmac.tty-char: New file.
11362         * tty/Makefile: Install tmac.tty-char.
11363         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
11364         tmac.tty-char.
11366         * tty/tmac.tty: Fix definition of \(34.
11368         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
11369         bracket-drawing characters onto |. Add *o.
11371         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
11372         only if current_field.
11374         * troff/dictionary.c (dictionary::lookup): Free old_table after
11375         rehashing. 
11377 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
11379         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
11380         whose glyphs are identical to glyphs of some Roman character.
11382         * tty/devlatin1/R.proto (bu): Deleted.
11383         * tty/devascii/R.proto (bu): Deleted.
11384         * tty/tmac.tty: Add definition of \(bu.
11386         * eqn/main.c (do_file): Pass FILE as argument.
11387         (main): Automatically load eqnchar.  New options -F and -n.
11388         Pass do_file an opened FILE.
11389         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
11390         No need to include font.h.
11391         * groff.sh: Likewise.  Don't need to use - for standard input.
11392         Prefix files with -- if first file starts with -.
11394         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
11396         * troff/env.c (environment::possibly_break_line): Don't set line
11397         to 0 across call to output_line().  Don't call output_line() until
11398         after discarding nodes after break.
11400 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
11402         * request.h (macro::empty): Declare it.
11403         * input.c (macro::empty): New method.
11404         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
11405         macro is empty.
11407 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
11409         * troff/env.c (environment::start_field): Decrement space_total
11410         when a space is frozen.
11412 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
11414         * macros/tmac.an (R): Delete macro.
11416         * troff/input.c (get_copy, token::next): Support \# (like \" but
11417         newline is ignored).
11419         * troff/input.c (token::next): Fix error message in 'Y' case.
11421 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
11423         * eqn/delim.c (define_extensible_string): Recognize any prefix of
11424         a delimiter name.
11426 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
11428         * c++test.c: Include <osfcn.h>.
11430         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
11431         <errno.h> doesn't.
11433 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
11435         * tbl/table.c (table::divide_span): Don't count column separation
11436         if expand was specified.
11438         * tbl/main.c (process_format): Don't ignore width specs in
11439         continued format.  Give warning for changing equal widths or
11440         column separation in continued format.
11441         (process_data): Set column separation, minimum width, equal
11442         columns at end of table.
11444 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
11446         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
11447         node::add_discretionary_hyphen): Use soft_hyphen_char.
11448         (set_soft_hyphen_char): New function.
11449         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
11451         * Makefile (c++tested): Give more helpful message if test fails.
11453 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
11455         * troff/input.c (init_charset_table): Translate 0240 to
11456         an unbreakable space.
11458         * troff/token.h (token::hyphen_indicator): New function.
11459         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
11460         translation.
11461         * troff/input.c (translate): Allow translation to \%.
11462         * troff/node.c (node::add_char): Handle
11463         TRANSLATE_HYPHEN_INDICATOR.     
11464         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
11466         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
11467         for \(hy.
11469         * tty/devlatin1/R.proto: \(hy and - should print as 055.
11471 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
11473         * groff.c (run_commands): If the last command gets a SIGPIPE send
11474         a SIGPIPE to all children than haven't yet terminated.  When
11475         command terminates, set pid field to -1.
11477 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
11479         * groff.c (main): Pass an appropriate -filename option to gxditview.
11481 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
11483         * Makefile.bd (install): Remove existing program before copying.
11485         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
11486         programs which have Unix counterparts to be installed with
11487         user-specified prefix.
11489         * troff/input.c (exit_troff): Don't check if exit_started.
11490         (exit_request): Don't call exit_troff if exit_started.
11492         * Makefile.bd (install.mm): Rename to install.dwbmm.
11494 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
11496         * driver/input.c (do_file): Add missing break for '#' case.
11498 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
11500         * troff/input.c (input_stack::clear):  Clear past any boundaries and
11501         then add the boundaries back.
11503         * troff/input.c (exit_troff): Return immediately if already
11504         exiting.
11506         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
11507         end macro.
11508         (pg*end-page): If the text has ended and there are no more
11509         footnotes or keeps, exit.
11511         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
11513         * troff/input.c (init_charset_table): Make \(rq transparent by
11514         default.
11516         * macros/tmac.an: Define lq and rq strings.
11518         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
11520 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
11522         * troff/env.c (environment::final_break): New function.
11523         (environment::newline): Set prev_line_interrupted to 2 if
11524         exit_started.
11525         * troff/env.h: Declare environment::final_break.
11526         * troff/input.c (exit_troff): Call environment::final_break()
11527         instead of environment::do_break().
11529         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
11530         doesn't already exist.
11531         * macros/man.local: New file.
11532         * macros/tmac.an: Load man.local.
11533         * macros/man.ultrix: New file.
11535 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
11537         * troff/input.c (exit_groff): Rename to...
11538         (exit_troff): New function.
11540         * troff/div.c (exit_started, done_end_macro,
11541         seen_last_page_ejector): New global variables.
11542         (began_page_in_end_macro): New static variable.
11543         (exit_flag): Deleted.
11544         (top_level_diversion::top_level_diversion): Initialize
11545         last_page_count.
11546         (top_level_diversion): More elaborate test for whether
11547         cleanup_and_exit() should be called.
11548         Set began_page_in_end_macro if the end macro isn't yet finished.
11549         * troff/div.h (top_level_diversion::last_page_count): New data
11550         member.
11551         (top_level_diversion::set_last_page): New function.
11552         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
11553         * troff/env.c (do_break): Zero prev_line_interrupted.
11554         * troff/input.c (exit_flag): Delete declaration.
11555         (LAST_PAGE_EJECTOR): New magic cookie.
11556         (token::next): Handle LAST_PAGE_EJECTOR.
11557         (exit_groff): Set exit_started and done_end_macro instead of
11558         exit_flag.  Call top_level_diversion::set_last_page.  Push a
11559         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
11560         another ejection after setting seen_last_page_ejector.
11562 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
11564         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
11566         * macros/tmac.e (TH): Make sure there's room for the initial
11567         header.
11569         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
11570         Set FVS in points rather than units.
11572 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
11574         * troff/div.c (top_level_diversion::add_trap): Don't consider the
11575         position of empty slots.
11577 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
11579         * ps/devps/S: Fix height and depth of parenrightex.
11580         * ps/devps/symbol.diff: Regenerate.
11582 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
11584         * tmac.e (u): Do underlining as in -mgs.
11586 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
11588         * tty/tty.c (tty_printer::end_page): If overstriking is
11589         suppressed, still turn overstruck horizontal and vertical lines
11590         into +.
11592         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
11593         2.1.
11595         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
11597 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
11599         * Version 1.05 released.
11601 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
11603         * tty/tty.c: Instead of keeping an array of glyphs and then
11604         sorting it, keep a ordered linked list of glyphs for each line.
11606         * driver/driver.h: Include stddef.h.
11608         * tty/tty.c (compare_glyph):
11609         * refer/refer.c (rcompare):
11610         * troff/env.c (compare_ranges): Arguments of qsort comparison
11611         function should be const void *.
11613         * troff/number.c (parse_term):
11614         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
11615         switch statement.
11617         * refer/label.y (consider_authors): Don't access variables
11618         constructed under a condition outside that condition: put braces
11619         round for statement containing declaration; redeclare use of same
11620         variable later.
11622         * pic/pic.y (text_expr): Delete production that allows
11623         parenthesised text_expr.
11624         (expr): Allow a conditional_expr to appear in parentheses.
11625         (conditional_expr): Rename to any_expr.
11627         * mm: Install new version 1.01 from jh.
11629         * lib/font.c (font::get_width): Cache scaled widths.
11630         (font::font): Initialize widths_cache.
11631         (font::~font): Destroy widths_cache.
11632         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
11634 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
11636         * c++test.c, c++test.ref: New files.
11637         * Makefile: Check that the C++ compiler works.
11639         * ps/tmac.pspic (PSPIC): Do a break.
11641         * ps/tmac.ps: Move definition of PSPIC into...
11642         * ps/tmac.pspic: New file.
11643         (PSPIC): Draw box around picture, but make it invisible to grops.
11644         * ps/tmac.ps: Load tmac.pspic.
11645         * ps/Makefile: Install tmac.pspic.
11647 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
11649         * lib/font.c (scale_round): If n is negative,
11650         subtract .5 before truncating floating point result.
11652         * lib/fontfile.c: Include <errno.h>.
11654 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
11656         * driver/input.c (get_char): Inline. Don't update current_lineno.
11657         Change callers to up date current_lineno if necessary.
11658         Use get_char() instead of getc(current_file).
11660 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
11662         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
11664 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
11666         * tty/tty.c (tmac.tty): Define \(rg as (R).
11668 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
11670         * lib/lib.h: New define a_delete.
11671         * Use a_delete instead of delete when deleting an array of objects
11672         without destructors.
11674         * lib/lib.h: Rename adelete to ad_delete.
11675         * Change uses of adelete.
11677 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
11679         * eqn/eqn.y: Include lib.h.
11681         * troff/node.c (grow_font_table): Delete old_font_table.
11683         * mm: Install new version from jh.
11685 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
11687         * tbl/table.h (format_type): Make global instead of local to class
11688         entry_format.  Prefix enumerators with FORMAT_.
11689         * tbl/table.c, tbl/main.c: Corresponding changes.
11690         * refer/token.h (token_type): Make global.  Prefix enumerators
11691         with TOKEN_.
11692         * refer/token.[ch]: Corresponding changes.
11693         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
11695         * troff/div.c (node::set_vertical_size): Don't name argument.
11697 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
11699         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
11700         * lib/lib.h: Define adelete accordingly.
11701         * pic/object.c (graphic_object::graphic_object):
11702         * tbl/main.c (format::~format):
11703         * tbl/table.c (table::~table):
11704         * refer/ref.c (reference::~reference, reference::merge,
11705         reference::insert_field, reference::delete_field): Use adelete.
11707         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
11708         * refer/token.h:
11709         * tbl/table.h: Corresponding changes.
11711         * common.c (common_output::dashed_arc, common_output::dotted_arc):
11712         Ensure total_angle is positive.
11714 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
11716         * refer/ref.c (reference::merge, reference::insert_field,
11717         reference::delete_field): Avoid delete[0].
11719         * refer/token.c (init_special_chars): Move calls to cmupper
11720         outside calls to init_two_char_letter to work around bug in gcc
11721         2.0.
11723 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
11725         * lib/new.c (operator new): Use __builtin_new for g++.
11727         * pic/object.c (graphic_object::~graphic_object):  Don't use
11728         delete [] on 0.
11730         * pic/object.c (output::compute_scale): Initialize max_width and
11731         max_height.
11733 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
11735         * troff/input.c (write_request): Call fflush.
11737         * troff/node.h (class composite_node): Move declaration to node.c
11738         * troff/input.c (charinfo_to_node): Rename to ...
11739         (charinfo_to_node_list): Return node list rather than composite
11740         node.
11741         * troff/node.c (make_composite_node): New function.
11742         (make_node, add_char): Call make_composite_node instead of
11743         charinfo_to_node.
11744         (class composite_node): Add a tfont * member.  Delete font_size
11745         member.
11746         (composite_node::composite_node, composite_node::copy,
11747         composite_node::size): Corresponding changes.
11748         (composite_node::tprint): Provide constant spacing, emboldening
11749         and track kerning as specified in tfont.
11750         (composite_node::width): Change width calculation accordingly.
11751         * troff/env.h (environment::composite): New member.
11752         (environment::is_composite, environment::set_composite): New
11753         functions.
11754         * troff/env.c (environment::environment): Initialize composite.
11755         * troff/input.c (charinfo_to_node): Call
11756         environment::set_composite.
11757         * troff/node.c (make_composite_node, make_glyph_node): Use the
11758         plain version of the tfont if the environment is composite.
11760         * troff/node.c (font_info::get_space_width): Additional argument
11761         giving space_size.  Handle constant space correctly. Scale by
11762         space_size unless constant spaced.
11763         (env_sentence_space_width): New function.
11764         * troff/node.h: Declare it.
11765         * troff/env.h (environment::get_space_size,
11766         environment::get_sentence_space_size,
11767         environment::get_narrow_space_width,
11768         environment::get_half_narrow_space_width): Make inline.
11769         (environment::get_space_width): Make inline.  Just call
11770         env_space_width.
11771         * troff/env.c: Delete definitions for funtions made inline.
11772         (environment::space_newline, environment::space): Use
11773         env_sentence_space_width(). Don't scale by space_size.
11774         * troff/node.h: Move declarations of env*space_width() functions
11775         into env.h.
11777 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
11779         * macros/tmac.s (PS): Don't try to set negative indent.
11781 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
11783         * pic/pic.y: Fix min function.
11785 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
11787         * man/mdate.sh: Clear LANGUAGE.
11789 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
11791         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
11792         * pic/lex.c: New COMMAND keyword.
11793         * pic/pic.y (print_args, print_arg): New rules.
11794         (placeless_element): Use print_args for PRINT.
11795         New COMMAND element.
11797 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
11799         * troff/input.c (terminal): Handle missing argument correctly.
11801         * pic/pic.y (text_expr): New rule.
11803         * pic/pic.y: Implement := operator.
11805 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
11807         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
11808         mdoc.
11810 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
11812         * ps/devps/dingbatsrmap: Include this in the distribution.
11814         * macros/tmac.doc: Replace with new version from 2nd Networking
11815         Release. Fix loading of doc-* files.
11816         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
11817         * macros/tmac.doc.old: New file.  Apply fixes that had been
11818         applied to old tmac.doc.
11819         * macros/tmac.andoc: Check that we're running under groff.
11820         * macros/Makefile: Rework.
11822 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
11824         * tbl/table.h (format_type): 
11825         * refer/token.h (token_type): If NESTED_TYPES is defined, use
11826         typedef to make these types visible at file scope.
11827         * Makefile: Add NESTED_TYPES configuration option.
11829         * troff/div.c (mark): At the top level use the value of
11830         nl_reg_contents rather than the current vertical position.
11832 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
11834         * tty/tty.c: Implement \D for horizontal or vertical lines.
11835         (tty_printer::set_char): Use vec_used+2 as serial number.
11836         Don't allow size of vector to exceed USHRT_MAX-2.
11837         Split off part into...
11838         (tty_printer::add_char): New function.
11839         (tty_printer::draw): New function.
11840         (compare_glyph): Handle equal serial numbers.
11841         (tty_printer::end_page): Handle overstruck characters from \D.
11842         (main, usage): Implement -d option.
11844 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
11846         * tbl/main.c (process_format):
11847         * eqn/text.c (split_text):
11848         * troff/input.c (token::next): Use inner block for declarations
11849         with initializers in switch statement.
11851 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
11853         * pic/common.c (common_output::dash_line): Cope with zero-length
11854         lines.
11856 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
11858         * Version 1.04 released.
11860 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
11862         * macros/tmac.an (TH): Define a macro an-init to define variables
11863         based on command line arguments.
11864         (an-header): Call it.
11866 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
11868         * Makefile (install.mm): Rename to install.dwbmm.
11870         * Makefile: Integrate mm.
11871         * mm: New directory.
11873 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
11875         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
11876         <sys/types.h>.
11878         * pic/troff.c (troff_output::simple_spline,
11879         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
11880         shadowing parameter.
11882         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
11884         * lib/ptable.h: Add explicit casts when converting from unsigned
11885         long to unsigned.
11887         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
11888         * dvi/devdvi/Makefile: Install SA, SB.
11890         * refer/indxbib.c: Add declaration of mktemp.
11892         * refer/lookbib.c: Add declaration of isatty.
11894 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
11896         * pic/lex.c (interpolate_macro_with_args):  While collecting
11897         arguments, keep track of whether we're in a string.
11899 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
11901         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
11902         down with \v, so as to avoid problems with top of page trap
11903         setting no space mode.
11905 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
11907         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
11909 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
11911         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
11912         Improve error message.
11914 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
11916         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
11917         printf("%03o");
11919 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
11921         * groff.c (possible_command::execp): Always use _exit() after a
11922         failed exec.
11924         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
11925         NO_SYS_WAIT_H   configuration options.
11926         * groff.c: Use these options.  Use POSIX-style macros to extract
11927         fields from the status returned by wait().
11929 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
11931         * tbl/table.c (table::compute_separation_factor): Allow the
11932         separation factor to drop to 0.
11934 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
11936         * refer/search.c: Include <errno.h>.
11938 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
11940         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
11942         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
11943         C++. 
11945         * pic/lex.c (input_stack::bol): Move definition out of class body.
11947         * pic/main.c: On MSDOS munge argv[0].
11949         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
11951         * lib/ptable.c (hash_string): Use unsigned long rather than
11952         unsigned.
11953         (next_ptable_size): Use unsigned rather than int.  Give an error
11954         message if we've hit the largest table size.
11955         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
11956         table size.
11958         * pic/object.h (object_spec): Make flags unsigned long.  Declare
11959         flags as const unisgned long rather than as enums.
11961         * pic/output.c: Deleted.
11963         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
11965         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
11966         Add additional argument.
11967         (line_entry::note_double_vrule_on_{left,right}): Set value of
11968         douvle_vrule_on_{right,left} flag according to argument.
11969         (simple_line_entry::simple_print,
11970         simple_line_entry::double_line_print): If adjacent to double vrule
11971         on a corner extend rather than shorten the rule by half the double
11972         vrule sep.
11974         * troff/number.c (parse_term): In checking for overflow, handle the
11975         case where the current horizontal position is negative.
11977 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
11979         * pic/object.c (draw_arrow): Check for object having zero length.
11981 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
11983         * eqn/main.c (do_file): Split off inline equation handling into...
11984         (inline_equation): New function.  Search for starting delimiter
11985         using...
11986         (delim_search): New function. Don't recognize a delimiter that
11987         occurs in the name of an escape sequence, number register, string
11988         etc.
11990 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
11992         * eqn/delim.c (delim_box::compute_metrics): Don't call
11993         define_extensible_string if left is 0.
11994         (delim_box::output):  Don't print the left delimiter if left is 0.
11995         (delim_box::debug_print): Check for left == 0 before calling printf.
11997 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
11999         * troff/Makefile (majorminor.c): Include only digits in
12000         minor_version.
12002 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
12004         * refer/dirnamemax.c: new file.
12005         * refer/genlimits.c: Deleted.
12006         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
12007         Don't check path length.
12008         * refer/Makefile: Add dir_name_max.o; delete genlimits.
12009         * Makefile: Add PATHCONF_MISSING option.
12011         * refer/indxbib.c (get_cwd): New function.
12012         (main): Use get_cwd().
12013         * lib/getcwd.c: New file.
12014         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
12015         GETCWD in SUBFLAGS.
12016         * lib/Makefile: Compile getcwd.o.
12018         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
12019         userdict.
12021         * refer/indxbib.c (main): Check success of mktemp.
12023         * lib/tmpfile.c: New file.
12024         * lib/Makefile: Add tmpfile.c.
12025         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
12026         * ps/ps.h: Delete declaration of mktemp().
12027         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
12028         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
12029         * driver/driver.h: No need now to include errno.h.
12031         * everywhere: Set errno to 0 before calling fopen().
12033         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
12034         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
12035         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
12037 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
12039         * troff/env.h (translate_space_to_dummy): Declare it.
12040         * troff/env.c (environment::space_newline, environment::space):
12041         If translate_space_to_dummy is set then make the width of spaces 0.
12042         * troff/input.c (translate): If the second character of a
12043         translation is a space, translate to unbreakable space.  If the
12044         first character is a space, set or clear translate_space_to_dummy
12045         according to whether the second character is \&.  Weird!
12047 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
12049         * groff.c (run_commands): Don't use non-zero exit code because a
12050         command gets SIGPIPE.
12052         * groff.c, groff.sh: Use -mXps with -TXps.
12054         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
12055         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
12056         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
12057         (ps_printer::special): New specials invis and endinvis.
12058         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
12059         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
12060         (ps_printer::end_page): Check that invis_count == 0.
12061         (ps_printer::invis_count): New member.
12062         (ps_printer::ps_printer): Initialize invis_count to 0.
12064         * troff/env.c (environment::hyphenate_line): Hyphenation
12065         indicator at beginning of word inhibits splitting after -, \(em
12066         etc.
12068         * pic/pic.y (element): Allow another element to follow } without
12069         any intervening separator.
12071 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
12073         * pic/lex.c (get_delimited): Allow tabs before delimiter.
12075 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
12077         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
12078         declaration of wait() in header files.
12079         * Makefile: Get rid of -DHAVE_UNION_WAIT.
12081         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
12083         * lib/lib.h: Declare return type of strerror as char *.
12085         * man/Makefile: Add g flag to sed substitutions.
12086         * Makefile (shgroff, bindist): Likewise.
12088 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
12090         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
12091         * ps/devps/prologue (PBEGIN): Define showpage after pushing
12092         userdict.
12094 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
12096         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
12097         userdict.
12099 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
12101         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
12102         group.
12104 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
12106         * troff/input.c (define_number_reg):  If currently undefined,
12107         don't define it if the argument is an invalid expression.
12109         * Makefile: Ignore return value of `if' commands without `else'
12110         parts.
12112         * Makefile: Split up CPPDEFINES into a series of separate
12113         configuration options.
12115         * troff/input.c (init_registers): Use time_t instead of long
12116         unless LONG_FOR_TIME_T is defined.  Use returned result rather
12117         than passing pointer.
12118         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
12120         * lib/Makefile (fontpath.h): Use gendef.
12122 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
12124         * troff/input.c (input_iterator::shift): Delete argument name.
12125         * troff/node.c (suppress_output_file::really_begin_page,
12126         suppress_output_file::really_transparent_char, node::ascii_print,
12127         node::tprint): Delete names of unused arguments.
12129 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
12131         * refer/label.y (string):  Pass $4 to command_error.
12133 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
12135         * Version 1.03 released.
12137 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
12139         * Makefile: Pass definition of SHELL in SUBFLAGS.
12141         * gendef: New file.
12142         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
12143         ps/Makefile: Use gendef to construct header files that are
12144         constructed from the Makefile.
12146         * macros/Makefile: make all should build stripped version of tmac.e.
12148         * refer/Makefile (clean): Remove y.output.
12150 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
12152         * ps/pfbtops.c (main): Add -v option which prints out a version
12153         number.
12154         * ps/Makefile (pfbtops): Link with libgroff.a.
12156 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
12158         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
12159         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
12161         * refer/lkbib.c (main): Always terminate reference with blank
12162         line.
12163         * refer/lookbib.c (main): Likewise.
12165         * refer/linear.c (file_buffer::load): Check that the file is not a
12166         binary file.
12168         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
12169         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
12170         Delete second inclusion of <sys/param.h>.
12172 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
12174         * troff/token.h (token::special): Deleted.
12176         * tbl/main.c (process_format): Rework so that opt->tab_char is
12177         recognized only when appropriate.
12179         * ps/Makefile (clean): Remove pfbtops.
12181 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
12183         * lib/font.c (text_file::next): Don't return if we have got a
12184         blank line.
12186 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
12188         * refer/refer.c (store_reference): Get hash code from old_table[i]
12189         when rehashing the table.
12191 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
12193         * eqn/box.c (box::top_level): Save size and prev size using \R and
12194         restore it afterwards. Set the size to the size at the beginning
12195         of the line.
12196         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
12197         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
12199         * refer/Makefile (limits.h): Use ./genlimits.
12201 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
12203         * refer/index.c: Delete declarations of stat() and fstat().
12205 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
12207         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
12209 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
12211         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
12213 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
12215         * troff/input.c (token::get_char): Handle \e.
12217         * refer/linear.c: Delete declarations of fstat() and stat().
12219 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
12221         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
12222         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
12224 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
12226         * troff/input.c (do_define_macro): Improve error handling for end
12227         of file while defining macro.
12229 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
12231         * eqn/box.h: Fix declaration of set_gsize.
12232         * eqn/box.c (set_gsize): Make argument const char *.
12233         (gsize): Declare as char *.
12234         * eqn/main.c (main): Don't convert gsize to int.
12235         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
12237         * Version 1.02 released.
12239 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
12241         * macros/tmac.andoc: New file.
12242         * macros/Makefile: Install tmac.andoc.
12244         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
12245         operator new and delete on OP_DELETE_BROKEN not being defined.
12246         * Makefile: Mention OP_DELETE_BROKEN.
12248 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
12250         * Makefile (bindist): Pass SUBFLAGS.
12252 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
12254         * Makefile, groff.c: Pass definitions to groff.c via device.h.
12256         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
12257         parameter.
12259         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
12261         * ps/ps.h, ps/psrm.c: Make comment_table and
12262         header_comment_table local to resource_manager::process_file.
12264         * groff.sh: With -TXps pass -printCommand option to gxditview.
12266         * groff.c (possible_command::print): Implement using
12267         append_arg_to_string.
12269         * xditview: Merge in new implementation with own ChangeLog.
12271 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
12273         * groff.c (main): Implement PRINT_OPTION.
12274         (append_arg_to_string): New command.
12275         (device_table): Set PRINT_OPTION flag for Xps.
12277 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
12279         * troff/groff.h: Rename to troff.h.
12281         * pic/lex.c (lookup_keyword, docmp): New functions.
12282         (get_token): Use new lookup_keyword.
12283         Don't include key.h.
12284         * pic/key.[ch], pic/pic.gperf: Deleted.
12285         * pic/Makefile: Remove gperf stuff.
12287         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
12288         into output.h.
12289         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
12291         * troff/Makefile, troff/node.c: Move definition of
12292         STORE_WIDTH into node.c.
12294         * etc/grog.pl, etc/grog.sh: Support -mdoc.
12296 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
12298         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
12299         dvi/devdvi/texb.map: Add lq and rq.
12300         dvi/devdvi: Regenerate fonts.
12301         * ps/devps/textmap: Add lq and rq.
12302         * ps/devps: Regenerate fonts.
12303         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
12304         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
12306         * pic/object.c (position_rectangle): When checking radius
12307         cope with possiblity that width or height is negative.
12308         (box_object::box_object): Have separate xrad and yrad with
12309         signs matching signs of dim components.
12310         (box_object::{north,south}_{east,west}): Use xrad and yrad.
12311         (box_object::print): With rounded boxes use absolute values
12312         for dim and rad arguments.
12314         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
12315         in fontpath.h.
12317         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
12319         * various files: Add explicit destructors to keep Saber CC +d
12320         happy.
12322 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
12324         * eqn/box.c (box::top_level): Restore fonts correctly after
12325         font changes in line containing inline equation.  Also
12326         restore previous font as well as current font.
12327         * eqn/pbox.h: Define necessary string and register names.
12329         * troff/input.c (token::next): Case 'R' calls do_register.
12330         (do_register): New function.
12332 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
12334         * groff.c, groff.sh: Support Xps device.  Allow each device
12335         to have a pseudo_name and a real_name.
12337         * groff.c (run_commands): Don't print `Broken pipe' messages.
12339         * ps/pfbtops.c: New file.
12340         * ps/Makefile: Add pfbtops.
12342         * troff/number.c (parse_term): Improved error message.
12344 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
12346         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
12348         * Makefile: Integrate refer.
12349         * refer: New directory.
12350         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
12351         man/lkbib.man: New files.
12352         * man/Makefile: Support refer man pages.
12354         * lib/lib.h: Declare is_prime.
12355         * lib/prime.c: New file.
12357         * troff/input.c (macro_source): New function.
12358         (init_input_requests): Bind "mso" to macro_source.
12360         * troff/env.c (environment::possibly_break_line): Maintain
12361         pointer to pointer to node to be split in ndp so as to avoid
12362         using address of freed node.
12364         * troff/env.c (environment::hyphenate_line): Maintain pointer to
12365         pointer to first node to be hyphenated in startp so as to
12366         avoid using address of freed node.
12368         * troff/env.c (class trie, class hyphen_trie): Make the
12369         elements of the trie be of type char not unsigned char.
12370         Declare arguments to be const char* instead of unsigned char *.
12371         
12372         * troff/env.c (hyphenate): Initialize hbuf[0].
12374         * troff/input.c (set_string): Declare p to be char * and cast
12375         *p to unsigned char when necessary.
12377         * troff/input.c (do_define_macro): Declare s to be const
12378         char*. Cast element to unisgned char when necessary, Declare
12379         d to be an int.  Handle EOF better.
12381         * troff/Makefile, troff/input.c: Different scheme for passing
12382         definitions of MACROPATH, HYPHENFILE and DEVICE.
12384 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
12386         * tty/devascii/R.proto: Delete entry for em.
12387         * tty/devlatin1/R.proto: Likewise.
12389 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
12391         * troff/input.c (translate): Stop when we get a space. Treat eof
12392         like newline.
12394         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
12396 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
12398         * tbl/main.c (process_format): A font name following a `f'
12399         modifier that starts with a digit can be only one character long.
12400         Also deal with EOF on the second character of the font name.
12402 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
12404         * troff/input.c (token::next): Turn \~ into an
12405         unbreakable_space_node.
12406         * troff/node.c (unbreakable_space_node): New class.
12407         * troff/node.h: Declare it.
12409 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
12411         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
12412         it's >= 0, before outputting it as a single byte.
12414 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
12416         * lib/font.c: Make font_char_metric::code an int.
12417         (font::get_code): Change return type to int.
12418         (font::load): Allow code to be arbitrary integer.
12419         * lib/font.h (font::get_code): Change return type to int.
12420         (font::number_to_index): Change argument type to int.
12421         * troff/input.c (token::next):  In case 'N', allow any value.
12422         Store value in token::val.
12423         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
12424         (token::get_char, token::add_to_node_list, token::process): Get
12425         number from val.
12426         (charinfo::set_number): Change argument to int.
12427         (charinfo::get_number):  Require that NUMBERED flag be set.
12428         (get_charinfo_by_number): Store numbered characters not between 0
12429         and 255 in a dictionary.
12430         * troff/charinfo.h (get_charinfo_by_number): Change argument type
12431         to int.
12432         (charinfo::number): Change type to int.
12433         (charinfo::set_number): Change type of set_number to int.
12434         * troff/node.c (troff_output_file::put_char_width,
12435         troff_output_file::put_char): Test whether character is numbered
12436         using charinfo::numbered().
12437         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
12438         values of num.
12439         * lib/nametoindex.c: New implementation to cope with arbitrary
12440         number characters.
12442         * troff/input.c (token::operator==): Test val for
12443         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
12444         TOKEN_SIZE.
12446         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
12447         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
12449 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
12451         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
12452         variable.
12454         * all Makefiles: rm targets of cp and >.
12456         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
12457         it.
12459         * eqn/lex.c (def_table): Add dollar.
12461 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
12463         * troff/input.c (do_width): Push back newline before closing delim
12464         like do_bracket.
12466 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
12468         * groff.c (possible_command::prepend_arg): New function.
12469         (main): Prepend device -m option.
12470         * groff.sh: Put device -m options before command-line options.
12472 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
12474         * macros/tmac.an (IP): Quote argument to TP.
12476         * ps/ps.c (main): New option -b, which sets...
12477         (broken_flags): New variable.
12478         (ps_printer::~ps_printer): Incorporate the setup section in the
12479         prolog if (broken_flags & NO_SETUP_SECTION).
12480         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
12481         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
12482         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
12483         ps_printer::print_needed_font_comment,
12484         ps_printer::print_supplied_font_comment,
12485         ps_printer::print_include_font_comments,
12486         ps_printer::lookup_doc_font, ps_printer::download_fonts,
12487         ps_printer::read_download_file, read_document_fonts, add_font,
12488         skip_line, parse_fonts_arg, document_font::document_font,
12489         document_font::~document_font, document_font::download,
12490         ps_output::include_file):  Deleted.
12491         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
12492         rather than %!PS-Adobe-2.0.  Make calls to
12493         resource_manager::need_font for each font that we used. Replace
12494         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
12495         print_supplied_font_comment, print_needed_font_comment by call to
12496         resource_manager::print_header_comments. Output %%Orientation
12497         comment. Output %%Requirements: numcopies comment if ncopies > 1.
12498         Don't output the prolog directly.  Instead call
12499         resource_manager::output_prolog.  Only define #copies when ncopies
12500         > 1.  Delete calls to print_include_font_comments  and
12501         download_fonts.  Add call to resource_manager::document_setup.
12502         (ps_printer::do_file): Call resource_manager::import_file instead
12503         of including it ourselves.
12504         (ps_printer::do_import): Likewise.  Also don't call
12505         merge_import_fonts. Push userdict on the dictionary stack before
12506         and pop it afterwards.
12507         Move declaration of ps_output into ps.h.
12508         * ps/psrm.c: New file implementing resource_manager class.
12509         * ps/ps.h: New file declaring ps_output and resource_manager
12510         classes.
12511         * ps/devps/zapfdr.ps:
12512         * ps/devps/symbolsl.ps:
12513         * ps/devps/prologue:  Use 3.0 conventions.
12514         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
12515         Add default definition of BROKEN_SPOOLER_FLAGS.
12516         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
12517         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
12519 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
12521         * etc/grog.pl: New file.
12522         * Makefile (GROG): New variable.
12523         Add GROG to SUBFLAGS.
12524         * etc/Makefile (GROG): New variable.
12525         (install.nobin): Install $(GROG) rather than grog.sh.
12527 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
12529         * eqn/special.c (special_box::compute_metrics): Make the input and
12530         output strings the same.  Get the new height and depth from the
12531         predefined height and depth registers.  Also make subscript kern
12532         and skew available.
12533         (special_box::compute_subscript_kern, special_box::compute_skew):
12534         New functions.
12536         * eqn/box.c (pointer_box::compute_skew,
12537         simple_box::compute_metrics, box::top_level)
12538         * eqn/text.c (prime_box::compute_metrics,
12539         prime_box::comput_subscript_kern)
12540         * eqn/limit.c (limit_box::compute_metrics):
12541         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
12542         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
12543         negative numbers in `nr' requests with a leading 0.
12545 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
12547         * eqn/special.c: New file.
12548         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
12549         Add new rule for simple.
12550         * eqn/lex.c (token_table): Add SPECIAL.
12551         * eqn/box.h: Declare make_special_box.
12552         * eqn/Makefile: Add special.[co].
12554 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
12556         * ps/devps/prologue: Possibly set packing to true while defining.
12557         Create grops dictionary here.  Initialize local variables before
12558         defining procedures.
12559         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
12560         the dictionary stack. Set strokeadjust and overprint to false if
12561         the relevant operators are defined.
12562         (PEND): New procedure.
12563         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
12564         prologue.  Do everything else in the setup section.
12565         (ps_printer::do_import): Just call PBEGIN and PEND around the
12566         picture. Also push userdict before, and pop it afterwards.
12568 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
12570         * troff/node.c (bracket_node::tprint): Brackets were being printed
12571         1m too low.
12573         * macros/tmac.an (SH, SS): Set fill mode.
12575 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
12577         * troff/div.c (top_level_diversion::begin_page): Set
12578         high_water_mark to 0.
12580 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
12582         * man/mdate.sh: New file.
12583         * man/mdate.c: Deleted.
12584         * man/Makefile: Use mdate.sh instead of mdate.
12585         (mdate): Deleted.
12587         * eqn/lex.c (do_gsize): Supply missing argument to error message.
12589 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
12591         * man/mdate.c: New file.
12592         * man/*.man: Replace modification date by @MDATE@.
12593         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
12594         (mdate): New target.
12596         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
12597         Remove illegal input characters.
12599 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
12601         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
12603 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
12605         * troff/div.c (begin_page): Change behaviour when
12606         !first_page_begun and !break_flag.
12608         * troff/input.c (do_name_test): Return 0 if argument is empty.
12610         * troff/input.c (read_long_escape_name): Require closing ] to be
12611         at same input level as opening [.
12613         * troff/input.c (read_increment_and_escape_name): New function.
12614         (get_copy, process_input_stack): Use this for \n.
12616 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
12618         * troff/div.c (top_level_diversion::begin_page): Ignore the
12619         current value of page_number if !first_page_begun.
12621         * groff.c (main): Fix declaration of buf.
12623         * troff/input.c (do_name_test): New function.
12624         (token::next): Implement \A.
12625         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
12626         (token::description, token::add_to_node_list, token::process):
12627         Handle TOKEN_ESCAPE.
12628         * troff/token.h: New token TOKEN_ESCAPE.
12630 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
12632         * pic/main.c (do_picture): Allow space before and after filename
12633         following `<'.  Check that the filename is not empty.
12635 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
12637         * Version 1.01 released. 
12639         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
12641         * dvi/tmac.dvi: ftr HR to H.
12643         * macros/tmac.e: Round up computation of $r.
12645         * xditview/tmac.X:  Don't give up completely in compatibility mode.
12646         Use \n(.s instead of \n[.s].
12648         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
12649         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
12650         Add u to factors inside \s[...]. Rename frac to dvi-frac.
12651         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
12652         short names in the char definitions.
12654         * ps/tmac.ps: Don't give up completely in compatibility mode.
12655         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
12656         quote in front of \n(.s. Add u to factors inside \s[...].
12658 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
12660         * tty/tmac.tty: Call the nroff request.
12662         * macros/tmac.e ((x, )x):  Better definitions that work properly
12663         in a diversion.
12664         (@0, @1): Helper macros for (x.
12666         * macros/tmac.e ($s, hl): Use \l rather than \D.
12668         * tty/tmac.tty: Make it work better in compatibility mode.
12669         (pchar): Rename to tty-char.
12671         * macros/tmac.e (@E): New macro.
12672         (r, i, b, rb, bi): Use @E.
12674         * macros/tmac.e (@F): Don't use (;...) syntax.
12676         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
12677         it was modified for groff.
12679         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
12681         * macros/tmac.e (<., .>): Removed.
12682         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
12684         * macros/tmac.e: Remove check that groff is being used.
12686         * macros/tmac.e (@C): Change families only if using groff; turn
12687         compatibility mode off while changing familes. Save compatibility
12688         mode before changing families and restore it afterwards.
12690         * macros/tmac.e (@h): Remove test for offset + line length.
12692         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
12693         (lo, th, ac): Define to call @S instead of using als.
12695         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
12696         the ratio of the vertical spacing to the point size in units
12697         expressed as a percentage.  Use these instead of $10r and $10R,
12698         Delete $10r and $10R.
12700         * lib/font.c (font::load): In default computation of space_width,
12701         divide by sizescale.  Use scale_round.
12703         * macros/tmac.an (TP): Don't call `nf'.
12704         (an-do-tag): Don't call `fi'.
12706 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
12708         * troff/input.c (process_input_stack): Handle the case where
12709         spaces at the beginning of an input line are followed by a
12710         newline.
12712 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
12714         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
12715         * groff.sh: Use pic -x with the dvi device.
12717         * dvi/devdvi/FontMakefile (H): Don't use -s.
12719         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
12720         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
12721         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
12722         in FONTS.
12724 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
12726         * ps/psfig.diff: New file.
12727         * ps/tmac.psfig: New file.
12729 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
12731         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
12732         (]-): Don't call ref*do-tl.
12734         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
12736         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
12737         (fn@do-FS): Rename to fn*do-FS.
12739         * troff/input.c (transparent_translate): New function.
12740         (process_input_stack): Apply transparent_translate before calling
12741         diversion::transparent_output(unsigned char).
12743 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
12745         * troff/input.c (do_define_macro): Define the macro before calling
12746         skip_line.
12748         * xditview/Makefile: Add DEVICES variable.  Change install target
12749         to use this.
12751 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
12753         * groff.c (run_commands): Handle the possibility that there are
12754         child processes other than those forked by us.
12756 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
12758         * lib/string.c (string::append): New function.
12759         * lib/stringclass.h: Declare it.
12761 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
12763         * eqn/main.c (main): New option -N which sets
12764         no_newline_in_delim_flag. 
12765         (do_file): If no_newline_in_delim_flag is set don't allow newlines
12766         in delimiters.
12767         * groff.c (main): Pass -N on to eqn.
12768         (help, synopsis): Mention -N.
12769         * groff.sh: Implement -N.
12771 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
12773         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
12774         (]-): Call ref*do-tl if ref*need-tl is non-zero.
12775         (XP): Allow as initializer.
12777 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
12779         * troff/env.c (environment::wrap_up_field): If field_spaces are
12780         non-zero and we have a current_tab, subtract padding from
12781         tab_distance.  If this makes tab_distance <= 0, use the next tab
12782         stop instead.  If there isn't any next tab or it's a left tab,
12783         wrap up the current tab.
12784         (environment::start_field): Initialize tab_precedes_field.
12785         (environment::wrap_up_tab): If there's a current field, update
12786         pre_field_width, field_distance and tab_precedes_field.
12787         * troff/env.h (environment::tab_precedes_field): New member.
12789 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
12791         * ps/ps.c (ps_printer::do_file): New function.
12792         (ps_printer::special): Bind to `file' special.
12793         (ps_printer::do_exec): Set ndefined_styles to 0.
12795 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
12797         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
12798         Avoid stripping first character from the start of unrecognized
12799         escapes.  Use lex_error instead of error to report errors.
12800         * eqn/lex.c (get_token): Rework handling of escapes.
12801         (lex_error): Move declaration into...
12802         * eqn/eqn.h.
12804         * xditview/xditview.c (main): Make -page option work.
12806         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
12808 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
12810         * macros/tmac.s (B2): Correct size of box.
12812 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
12814         * macros/tmac.s (B2): Postpone drawing the box until in the
12815         top-level diversion.
12817         * tty/tmac.tty: Add font translations for C, CR, CW.
12819         * groff.c (synopsis, help): Document -i.
12820         * groff.sh: Implement -i.
12822         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
12823         Simplify the construction of SN.
12825         * troff/number.c (parse_term): Give `|' a higher precedence.
12826         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
12827         accordingly.
12829         * macros/tmac.s (B2): Use par@finish instead of par@reset.
12831 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
12833         * lib/string.c (string::move): New function.
12834         * lib/stringclass.h: Declare it.
12836 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
12838         * troff/env.c (distribute_space): Add optional argument
12839         `force_forward'.
12840         (environment::wrap_up_field): Call distribute_space with
12841         `force_forward' argument of 1.
12843 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
12845         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
12846         Inline it.  Move reallocation into...
12847         (string::grow1): New function.
12848         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
12849         dependencies to include library header files.
12850         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
12852 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
12854         * macros/tmac.s (@NH): Use the same number registers than -ms does
12855         for the heading level counters.  Use the same string that -ms does
12856         for the number for this heading.
12858 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
12860         * lib/new.c (operator new): Cast result of malloc to char *.
12862         * troff/input.c (spring_trap, lookup_request): Add assert that nm
12863         is not null.
12865 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
12867         * groff.c (main): Support -i.
12869 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
12871         * pic/pic.h: Include <osfcn.h>.
12873         * ps/ps.c: Add declaration of mktemp.
12875         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
12876         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
12877         argument as union wait *.
12878         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
12879         argument to union wait *.
12881 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
12883         * tty/tmac.tty: Add definition of \(co.
12885         * pic/object.c (make_arc): Only increase radius when radius
12886         strictly less than d.
12887         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
12888         more than once.
12890         * troff/env.c (environment::environment(symbol),
12891         environment::environment(const environment *)):  Initialize
12892         input_trap_count.
12894 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
12896         * tbl/main.c (main): Add exit(0).
12898         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
12900         * pic/main.c (main):
12901         * eqn/main.c (main):
12902         * tbl/main.c (main):
12903         * etc/soelim.c (main):
12904         * driver/printer.c (printer::~printer):
12905         * troff/node.c (real_output_file::~real_output_file,
12906         real_output_file::flush):  Check for errors on stdout.
12908         * most files: Add 1991 to copyright notice.
12910         * macros/tmac.s: Don't test \n(.x and \n(.y.
12912         * troff/input.c (token::next): Rename `escape_char' label to
12913         `handle_escape_char' and `normal_char' label to
12914         `handle_normal_char'.
12916 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
12918         * groff.c (main, synopsis, help): Support -a option.
12919         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
12920         to trflags while parsing options.
12922 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
12924         * troff/number.c (parse_term): With `m', `M' and `n' scale
12925         indicators, convert scale factor to hunits before scaling.
12927 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
12929         * lib/font.c (scale_round): Better test for overflow when n is
12930         negative.
12932 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
12934         * tbl/main.c (process_format): Add second argument of type
12935         options*. Change callers.  Allow opt->tab_char as well as '\t'
12936         between format items.
12938 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
12940         * macros/tmac.an (PD): With no arguments, make sure register PD is
12941         at least \n[.V].
12942         (TH): Call PD with no argument, instead of setting register PD
12943         directly.
12945 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
12947         * Version 1.00 released.
12949 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
12951         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
12953         * dvi/devdvi/DESC: Mount CW instead of CR.
12955         * dvi/tmac.dvi: Add definition of \(tm.
12957         * dvi/devdvi/texsy.map: Add lh, and rh.
12958         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
12959         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
12961         * dvi/devdvi/FontMakefile: Generate H from cmss10.
12962         * dvi/devdvi/Makefile: Install H.
12963         * dvi/devdvi/H: New file.
12965 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
12967         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
12968         be 0.
12970 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
12972         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
12974         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
12976         * macros/tmac.s (@EN): Handle the case where the equation is empty
12977         but the label is not.
12979 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
12981         * troff/groff.h: New warning category WARN_SPACE.
12982         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
12983         WARN_SPACE to warning_table.
12984         (interpolate_macro): Give a warning of type WARN_SPACE if the name
12985         is longer than two characters and is not defined, but the first
12986         two characters do make a defined name.
12988         * PROBLEMS: New file.
12990         * CHANGES: New file.
12991         * README-0.6, README-1.00: Deleted.
12993         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
12994         * xditview/devX75/Makefile: Make devX75-12.
12995         * xditview/devX100/Makefile: Make devX100-12.
12997         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
12998         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
13000 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
13002         * README-0.7: Rename to README-1.00.
13004         * macros/tmac.pic: New file.
13005         * macros/Makefile (install.nobin): Install tmac.pic.
13007 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
13009         * troff/env.c (hyphen_word): Correct the test for whether the
13010         token is a hyphen.  Reset npos to 0.
13012         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
13014 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
13016         * macros/tmac.s (ds*common-end): Call par*reset.
13017         (PE): Likewise.
13018         (par@reset-indent): Deleted.
13020         * macros/tmac.s (@IP): Divert the label.
13022 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
13024         * xditview/draw.c (setGC): Use a line width of .1m rather than
13025         .04m by default; round rather than truncate value.
13027         * tbl/table.c (class empty_entry): New class.
13028         (empty_entry::empty_entry, empty_entry::line_type): New functions.
13029         (table::add_entry): Represent empty entries by objects of type
13030         empty_entry.
13031         (table_entry::line_type): Return -1.
13032         (table::determine_row_type): Ignore entries with line_type 0.
13033         Treat type -1 as non-lines.
13035 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
13037         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
13038         macros/tmac.s: Rename \(-d to \(Sd.
13040 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
13042         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
13043         * xditview/libXdvi/DviChar.c: Likewise.
13044         * dvi/devdvi/texsy.map: Add `<<', `>>'.
13046 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
13048         * troff/div.c (top_level_diversion::begin_page): Call
13049         init_output() if the_output is 0.
13051 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
13053         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
13054         ESCAPE_c.
13055         (get_copy): Turn \E into ESCAPE_E.
13056         (token::process, asciify): Handle ESCAPE_E.
13058         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
13059         (RD): New macro.
13060         (DS): Implement `.DS R'.
13062 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
13064         * macros/tmac.s (FS): New macro.
13066         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
13068         * macros/tmac.s (cov*tl-init): Remove after first execution
13069         instead of aliasing to @nop.  Call top of page macro explicitly
13070         instead of setting trap; call @init first.  Set pg@top as top of
13071         page macro.
13072         (cov*auto-init): Deleted.  Set cov*tl-init instead of
13073         cov*auto-init as top of page trap. 
13074         (TL, LP): Do a break instead of calling cov*tl-init.
13075         (cov*print): With RP format but no TL, alias FS and FE to @FS and
13076         @FE; in this case also give a warning and always start another
13077         page. No need to set pg@top here.
13078         (cov*tl-init): Rename to cov*first-page-init.
13080         * macros/tmac.s (RP): Do `.pn 0'.
13081         (cov*tl-init): With RP format don't do `.pn 0'.
13083         * macros/tmac.s (pg@cs-top): Set no space mode.
13085         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
13086         (cov*ab-init): Alias TL, AU and AI to these.
13088 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
13090         * macros/tmac.s (@EQ): Move the space before the equation into @EN
13091         (@EN): Do nothing unless \n[dl] is > 0.
13093 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
13095         * pic/object.c (ellipse_object::radius): New function.
13097         * VERSION: Change version to 0.7.
13099         * tbl/table.c (block_entry::do_divert): Declare return type as
13100         void.
13101         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
13103 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
13105         * troff/column.c: New file.
13106         * troff/Makefile: Corresponding changes.
13108         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
13109         Friend of vunits.
13111         * troff/div.c (top_level_diversion::space): If the space causes
13112         the first-page transition and springs a trap, truncate the space
13113         to 0.
13115 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
13117         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
13118         the document.
13120         * pic/troff.c (troff_output::line_thickness,
13121         troff_output::set_fill): Do a horizontal motion to compensate for
13122         the width of the \D escape sequence.
13124 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
13126         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
13127         (not X75).
13129         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
13130         to printf.
13132         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
13133         Supply empty definition.
13134         (text_entry::simple_print, simple_text_entry::simple_print):
13135         Delete declarations.
13136         (table::add_entry): Represent empty entries by objects of type
13137         `simple_entry'.
13139 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
13141         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
13143         * tbl/table.c (left_text_entry::add_tab): New function.
13145         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
13146         initialize like LP.
13148 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
13150         * troff/env.c (environment::start_field): Give an error message if
13151         there is no next tab.
13153 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
13155         * troff/env.c (hyphenate): Skip initial elements with zero
13156         hyphenation code.
13158         * macros/tmac.s (par@init): Keep VS in points rather than units.
13160 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
13162         * pic/main.c (main): Implement `-c' option.
13163         * pic/output.h: Declare make_tpic_output().
13164         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
13165         protected.
13166         (tpic_output): New class.
13167         (tpic_output::tpic_output, tpic_output::set_pen_size,
13168         tpic_output::command, make_tpic_output): New functions.
13170 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
13172         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
13173         if they're not already defined.
13174         * tbl/table.c (init_output): Don't test \n(.g.
13176         * troff/input.c (do_if_request): Delete `g' condition. Recognize
13177         `d', `r' and `c' conditions even in compatibility mode.
13179 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
13181         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
13182         box.
13184 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
13186         * troff/env.h (environment::prev_line_interrupted): New member.
13187         (environment::get_prev_line_interrupted): New function.
13188         * troff/env.c (environment::newline): Set prev_line_interrupted.
13189         (environment::environment(const environment *),
13190         environment::environment(symbol)): Initialize
13191         prev_line_interrupted.
13192         * troff/input.c (process_input_stack): Don't give special
13193         treatment to space and newline at the beginning of the line if the
13194         previous line was interrupted.
13196 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
13198         * eqn/eqn.y: Disallow PRIME by itself.
13199         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
13200         PRIME.
13201         (def_table): Remove definition of '.  Define prime to be `.
13203         * eqn/eqn.y: Split off part of rule `script' into a new rule
13204         `nonsup'.
13206 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
13208         * macros/tmac.s ({, }): New string aliases.
13210 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
13212         * README-0.7: New file.
13214 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
13216         * macros/tmac.s: New file.
13217         * man/groff_ms.man: New file.
13218         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
13219         * Makefile.bd: Similarily.
13220         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
13221         definition of TMAC_S.
13222         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
13223         * macros/TODO: New file.
13225 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
13227         * troff/env.c (right_justify): New function.
13228         (init_env_requests): Bind this to request "rj".
13229         (center_lines): Set right_justify_lines to 0. If we get a bad
13230         integer, center 1 line.
13231         (environment::environment(symbol), environment::environment(const
13232         environment *)): Initialize right_justify_lines.
13233         (environment::get_right_justify_lines): New function.
13234         (init_env_requests): Bind this to number_register ".rj".
13236         * troff/env.c (environment::choose_breakpoint): Implement
13237         hyphenation_margin and hyphenation_space.
13238         (environment::get_hyphenation_space,
13239         environment::get_hyphenation_margin): New functions.
13240         (init_env_requests): Bind these to .hys and .hym.
13241         (hyphenation_space_request, hyphenation_margin_request): New
13242         functions
13243         (init_env_requests): Bind these to hys and hym.
13244         (environment::environment(symbol), environment::environment(const
13245         environment *)): Initialize hyphenation_margin and
13246         hyphenation_space.
13247         * troff/env.h: Corresponding changes to class environment.
13249 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
13251         * troff/div.c (blank_line): Always do a break.
13253         * eqn/box.c (do_text): Turn off escapes while appending text to
13254         string.
13256 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
13258         * troff/input.c (while_break_request, while_continue_request): New
13259         functions.
13260         (init_input_requests): Bind these to "break" and "continue".
13261         (while_depth, while_break_flag): New variables.
13262         (while_request): Update while_depth.  Break out of loop if
13263         while_break_flag is set.
13265 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
13267         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
13268         rather than 0.
13270 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
13272         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
13274         * stringify: New file.
13275         * Makefile (groff.o): Use stringify.
13277         * xditview/tmac.X: Remove definition of \(rn.
13278         * xditview/libXdvi/DviChar.c: Remove radicalex from
13279         Adobe_symbol_map.
13281 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
13283         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
13284         (alphabetic_block_entry::alphabetic_block_entry,
13285         alphabetic_block_entry::divert, alphabetic_block_entry::print):
13286         New functions.
13287         (block_entry::divert): Split off body into ...
13288         (block_entry::do_divert): If the block is alphabetic, subtract 2n
13289         from the line length; also update the span width to dl+2n, and the
13290         alphabetic span width to dl.
13292         * driver/input.c (do_file):  While reading argument to D command,
13293         when expanding buffer, multiply szp by sizeof(int) rather than 2
13294         in the argument to memcpy.
13296         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
13297         width of alphabetic columns.
13299 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
13301         * troff/node.c (lookup_family): Supply second argument to lookup.
13303         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
13304         search, return immediately if v is 0.
13306         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
13307         (troff_output::start_picture): Set this reg.
13308         (troff_output::end_picture): Remove this reg
13309         * eqn/box.c (box::extra_space): Don't produce `\x's if
13310         EQN_NO_EXTRA_SPACE_REG is defined.
13312         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
13313         * eqn/text.c (split_text): Map ' to \(fm when it's the first
13314         character.
13316 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
13318         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
13319         requests.
13321         * troff/div.c (top_level_diversion::top_level_diversion):
13322         Initialize page_number to 0.
13324 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
13326         * groff/troff (environment::environment(const environment *)):
13327         Initialize name to e->name, rather than "anonymous".
13329 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
13331         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
13332         requested_page.  Split middle part into ...
13333         (FindPage): New function.
13334         (SetValues): If we don't yet know the last page, and the requested
13335         page is greater than the current page, call FindPage.
13336         Update the font_map_string before doing this.
13338         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
13339         Translate \(lh and \(rh into left and right double arrows.
13341         * troff/node.c (class hyphen_inhibitor_node): New class.
13342         (hyphen_inhibitor_node::hyphen_inhibitor_node,
13343         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
13344         hyphen_inhibitor_node::type,
13345         hyphen_inhibitor_node::get_hyphenation_type): New functions.
13346         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
13347         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
13348         word.
13350 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
13352         * troff/node.h (dummy_node::get_hyphenation_type,
13353         transparent_dummy_node::get_hyphenation_type):  Declare them.
13354         * troff/node.c: (dummy_node::get_hyphenation_type,
13355         transparent_dummy_node::get_hyphenation_type): New functions.
13357 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
13359         * xditview/libXdvi/draw.c: If M_PI not defined after including
13360         math.h, then define it.
13362         * xditview/Makefile: Add definition of AR. Pass it to the submake
13363         in libXdvi.
13364         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
13366 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
13368         * troff/dictionary.h (object_dictionary::alias): Declare return
13369         value as int.
13370         * troff/dictionary.c (object_dictionary::alias): Return non-zero
13371         if the old name was defined.
13372         * troff/input.c (alias_macro): Give a warning if the old name was
13373         not defined.
13374         * troff/reg.c (alias_reg): Likewise.
13376 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
13378         * troff/input.c (token::next): Delete implementation of \R.
13380         * macros/Makefile: Strip comments from tmac.e while installing it.
13382         * troff/input.c: New variable `nroff_mode'.
13383         (troff_request, nroff_request): New functions.
13384         (init_input_requests): Bind `troff' and `nroff' to troff_request
13385         and nroff_request.
13386         (do_if_request): Compute results of t and n conditions from
13387         nroff_mode.
13389         * text/text.c (split_text): Fix typo in >=.
13391         * eqn/lex.c: Add definition of `==' to def_table.
13393 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
13395         * pic/tex.c (tex_output::start_picture): Change the definitions of
13396         \graph and \graphtemp so that they work properly with Plain TeX.
13398         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
13399         argument to `ar' is not less than the first.
13401         * pic/pic.y: Allow a comma between elements of the variable list
13402         in the argument to `reset'.
13404         * pic/object.c (arc_object::arc_object): Fix computation of
13405         radius.
13407         * eqn/main.c (main): Add exit(0).
13409 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
13411         * troff/div.c (begin_page): Test no_space_mode after doing the
13412         break, but still push the page ejector cookie before doing the
13413         break.  Also set the next page number after doing the break.
13414         
13415         * xditview/xditview.c (NewFile): Don't set the title and icon name
13416         if this is the first file and its name is `-'.
13417         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
13418         the X75 and X100 devices.
13419         (main): If a device has the XT_OPTION flag set and there's exactly
13420         one file argument, pass the driver -xrm and -title options to set
13421         the icon name and window title to the name of the file.
13423         * troff/env.c (environment_switch): If there was an argument but
13424         it wasn't a valid number or name, then pop an environment but
13425         don't give an error message on underflow.
13427         * troff/number.c (start_number): Correct spelling in error message.
13429         * troff/input.c (token::delimiter): Don't print an error message
13430         if err is false.
13432         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
13433         ParseDrawFunction if dw->display_enable is true.
13435 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
13437         * pic/pic.y: Parse text positioning like normal attributes, so as
13438         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
13439         positioning attribute.
13441 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
13443         * tbl/main.c (process_data): When in state START while reading a
13444         text block, don't change to state MIDDLE if c is a newline.
13446 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
13448         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
13449         so as to avoid shadowing parameter.
13451 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
13453         * tbl/table.c (trim_space): Deleted.
13454         (table::add_entry): Don't call trim_space.
13456 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
13458         * VERSION: Change version to 0.6.
13460         * troff/number.c (parse_expr): Make == work.
13462 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
13464         * man/grog.man: New file.
13465         * man/Makefile: Add grog.n to MAN1PAGES.
13466         * etc/grog.sh: New file.
13467         * etc/Makefile: Install grog.sh as grog.
13469 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
13471         * troff/input.c (token::next): Implement \E.
13473 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
13475         * xditview/tmac.X: Change font translations to match tmac.ps.
13477         * troff/input.c (non_empty_name_warning): Don't give a warning if
13478         `\{' terminates the name.
13480 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
13482         * ps/devps/symbol.diff: New file.
13483         * ps/devps/FontMakefile: Mention symbol.diff.
13485 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
13487         * troff/node.c (font_position): Use get_long_name to read the
13488         external_name.
13490         * troff/env.c (environment_switch): If we get a number that's < 0
13491         or >= NENVIRONMENTS, treat it like a name.
13492         Change NENVIRONMENTS to 10.
13494         * troff/groff.h: Remove definition of FONTS_MAX.
13495         * troff/node.h (class font_family): Make map a pointer instead of
13496         an array. Add a map_size member. Make it a class. Make nm const
13497         and public. Make invalidate_fontno a friend.
13498         * troff/node.c: Define font_table_size. Make font_info a pointer
13499         rather than an array.
13500         (class troff_output_file): Allocate font_position dynamically. Add
13501         nfont_positions member.
13502         (troff_output_file::set_font): Grow font_position if necessary.
13503         (troff_output_file::~troff_output_file): Delete font_position.
13504         (troff_output_file::troff_output_file): Allocate font_position.
13505         (grow_font_table): New function.
13506         (troff_output_file::really_begin_page,
13507         troff_output_file:really_copy_page): Use nfont_positions rather
13508         than FONTS_MAX.
13509         (mount_font_no_translate, mount_style): Call grow_font_table if
13510         necessary.
13511         (font_family::font_family): Allocate map.
13512         (font_family::make_definite): Grow map if necessary. Use
13513         font_table_size instead of FONTS_MAX.
13514         (font_family::~font_family): New function.
13515         (invalidate_fontno): Use font_family::map_size.
13516         (get_fontno, env_space_width, env_half_narrow_space_width,
13517         env_narrow_space_width, symbol_fotno, is_good_fontno,
13518         get_bold_fontno, make_glyph_node): Use font_table_size rather than
13519         FONTS_MAX.
13520         (next_available_font_position): Never return 0.
13522 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
13524         * ps/tmac.ps: Add font translations for compatibility with dpost.
13526 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
13528         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
13529         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
13530         Move definitions baseline_sep, shift_down, column_sep,
13531         matrix_side_sep into...
13532         * eqn/box.c: Add them to param_table.
13533         * eqn/pbox.h: Add declarations to pbox.h.
13535         * troff/input.c (set_string): Cast value to unsigned char *.
13537         * troff/token.h (process_input_stack): Declare it static before
13538         declaring it a friend.
13540 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
13542         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
13543         and bottom.
13544         * dvi/devdvi/EX: Regenerate.
13546         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
13547         transparent.
13549 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
13551         * eqn/lex.c: In defaults_table, make definition of `dot' call
13552         `dot_def'.  Don't explicitly make it roman.  Similarily for other
13553         accents.
13555         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
13556         argument.
13557         (for_input::get, for_input::peek): Use this.
13558         (do_for): Add by_is_multiplicative argument.
13559         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
13560         Change semantic value of optional_by to be a double plus a flag
13561         saying whethet the by clause is multiplicative.
13563         * eqn/lex.c (get_delimited_text): Remember location of start of
13564         definition.  Improve error handling when EOF is encountered.
13566         * lib/font.h: Rename handle_x_command to
13567         handle_unknown_font_command.
13568         * lib/font.c (font::load): Call handle_unknown_font_command for
13569         any unknown command in the font description file.  Don't call
13570         handle_x_command. Include the name of the command in the argv.
13571         Improve message for unknown command after kernpairs or charset
13572         command.
13573         * ps/ps.c (ps_font::handle_x_command): Rename to
13574         handle_unknown_font_command.  Remove message about `x download'
13575         command.  Give error message for wrong number of arguments.
13576         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
13577         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
13578         handle_unknown_font_command. Give an error message for wrong
13579         number of arguments.  Rename design_size to designsize.
13580         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
13581         checksum', `designsize' instead of `design_size'.
13583 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
13585         * eqn/*.[chy]: Change underaccent to uaccent.
13587         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
13588         give it the same precedence as ACCENT.
13589         * eqn/other.c (make_underaccent_box): New function.
13590         * eqn/box.h: Declare it.
13591         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
13592         def_table.
13594 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
13596         * pic/pic.y (reset_all): New function. Called in rule for RESET.
13597         (parse_init): Call reset_all.
13598         (define_variable): When defining scale reset only those
13599         pre-defined variables that are scaled.
13600         (defaults_table): Add `scale' as non-scaled value.
13602         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
13603         together with the text; allow any number of positioning words;
13604         allow center as a positioning word.
13606         * pic/object.c (output::compute_scale): Get picture maximum height
13607         and width from variables called maxpswid and maxpsht.
13608         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
13610 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
13612         * pic/object.c (object_spec::make_text): Multiply textht by number
13613         of text items.
13615         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
13616         occur.
13617         (do_sprintf): New function.
13618         (pic.gperf): Add sprintf token.
13619         (text, sprintf): New rules.
13621         * pic/pic.y: `rand()' with no arguments returns a random number
13622         in the range [0,1).
13624         * pic/pic.y: Allow a bare expression to be an attribute: change
13625         precedences to support this.  Change optional_ordinal rule to
13626         optional_ordinal_last to avoid reduce/reduce conflict.
13627         * pic/object.c (object_spec::object_spec): Initialize direction.
13629         * pic/pic.y: Implement ^ operator meaning exponentiation.
13631         * troff/node.h: Add default argument to mount_font.
13632         * troff/node.c (font_position): Read an optional third argument
13633         giving the external_name.
13634         (mount_font): Add optional argument giving the external_name.
13635         (mount_font_not_translate): Have additional argument giving
13636         external name.  Use this name to load the font.  Pass both names
13637         to font_info::font_info.
13638         (font_info::font_info): Have additional argument giving
13639         external_name.
13640         (class tfont): New member external_name.
13641         (font_info::get_tfont): Use external name to construct tfont_spec.
13643 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
13645         * eqn/lex.c (init_table): Add argument giving device.  Define
13646         name of device to be "1".
13647         (do_ifdef): Counts as true if the argument has been defined with
13648         `define'.
13649         * eqn/main.c (main): Call init_table with device argument. Make
13650         device local to main.
13651         * eqn/eqn.h: Change declaration of init_table. Remove declaration
13652         of device.
13654         * pic/lex.c (get_delimited): Allow text to be delimited by
13655         matching {}s.  Don't recognize ending delimiter within a string.
13657         * troff/input.c (get_delim_name): New function.
13658         (token::next): Implement \C.
13660         * lib/font.c (font::load): Grok ---.  Add an alias for each
13661         character based on its code.
13662         (font::get_code_width): Deleted.
13663         * lib/font.h (class font): Declare font::number_to_index().
13664         Remove declaration of font::get_code_width.
13665         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
13666         to indices of named characters.
13667         (font::number_to_index): New function.
13668         * troff/input.c (font::number_to_index): New function.
13669         (get_charinfo_by_number, charinfo::get_number,
13670         charinfo::set_number): New functions.
13671         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
13672         (token::process, token::description, token::get_char,
13673         token::add_to_node_list, token::operator==): Handle
13674         TOKEN_NUMBERED_CHAR.
13675         * troff/charinfo.h: Declare get_charinfo_by_number,
13676         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
13677         charinfo class.
13678         (charinfo::numbered): New function.
13679         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
13680         * troff/env.h (class environment): Remove declaration of ...
13681         * troff/env.c (environment::make_numbered_char_node): Deleted.
13682         * troff/node.c (make_numbered_node): Deleted.
13683         (class numbered_glyph_node): Remove.
13684         (troff_output_file::put_char_width, troff_output_file::put_char):
13685         Handle numbered chars.
13686         (troff_output_file::numbered_char): Removed.
13687         (tfont::get_code_width): Removed.
13688         (make_glyph_node): Don't search special fonts for numbered
13689         characters.
13690         * troff/node.h: Remove declaration of make_numbered_node.
13691         * driver/input.c (do_file): Handle N command.
13692         * driver/printer.h: Add declaration of ...
13693         * driver/printer.c (printer::set_numbered_char): New function.
13694         * dvi/tfmtodit.c (main): Generate unnamed entries.
13695         * ps/devps/afmtodit: Likewise.
13696         * xditview/xtotroff.c (MapFont): Likewise.
13697         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
13699         * tbl/main.c (process_format): If multiple widths are specified
13700         for a column but all the widths are the same, don't give an error
13701         message.
13703         * tbl/table.c (table::do_row): If the current row is all lines and
13704         the stuff doesn't contains a line, mark the top of the row after
13705         printing stuff before the row.  If the current row is not all
13706         lines and the stuff doesn't contain a line, don't unnecessarily
13707         mark the top of the row before printing the stuff.
13708         
13709 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
13711         * troff/groff.h: Remove MAX_PATH.
13712         * troff/input.c (open_file): Dynamically allocate space for the
13713         path.
13714         (open_mac_file, process_macro_file): Corresponding changes.
13716 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
13718         * troff/node.h (class output_file): Make copy_file pure.  Add
13719         vspace method ifdef COLUMN. Add is_printing method.
13720         * troff/node.c: Add class printing_reg. Add class
13721         real_output_file. Derive other output_file classes from
13722         real_output_file; in these classes rename begin_page to
13723         really_begin_page, print_line to really_print_line, copy_file to
13724         really_copy_file, transparent_char to really_transparent_char.
13725         Move output_file::flush to real_output_file. Add printing member
13726         to class output_file.
13727         * troff/div.h: Remove printing member from top_level_diversion.
13728         Add vspace member function to class diversion ifdef COLUMN. Add
13729         some declarations ifdef COLUMN.
13730         * troff/div.c (top_level_diversion::copy_file,
13731         top_level_diversion::transparent_output,
13732         top_level_diversion::output): Don't test printing member before
13733         output.
13734         * troff/input.c: Handle initial variable_space_request ifdef
13735         COLUMN.
13736         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
13737         but comment it out.
13739 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
13741         * troff/div.c (diversion::need): Make any space forced.  If we
13742         sprung a trap, set truncated_space to minus the distance to the
13743         trap and set needed_space to the amount that was needed.
13744         (top_level_diversion::space): A forced space turns no_space_mode
13745         off.
13746         (class constant_vunits_reg): New class.
13747         (init_div_requests): Implement number registers .trunc and .ne
13748         using constant_vunits_reg.
13749         (class truncated_space_reg): Deleted.   
13751         * troff/div.h: Don't have a no_space_mode member in diversion.
13752         Instead have it in top_level_diversion.
13753         * troff/div.c (diversion::diversion): Don't initialize
13754         no_space_mode.
13755         (top_level_diversion::top_level_diversion): Initialize
13756         no_space_mode.
13757         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
13758         (macro_diversion::output): Don't clear no_space_mode.
13760         * troff/input.c (diverted_space_node::reread): Don't call
13761         environment::do_break.  In fill mode, act like a blank line.
13762         (diverted_copy_file_node::reread): Don't call
13763         environment::do_break.
13765         * troff/div.c (blank_line): New function.
13766         * troff/div.h: Declare it.
13767         * troff/input.c (process_input_stack): Call it.
13769         * troff/div.c (truncated_space_reg::get_string): New function.
13770         (init_div_requests): Bind to .trunc.
13771         (space_request, top_level_diversion::space,
13772         top_level_diversion::output, macro_diversion::space,
13773         macro_diversion::output): Update truncated_space.
13774         (macro_diversion::output): Redo calculations when trap sprung.
13775         (macro_diversion::output, macro_diversion::space): No need for
13776         trap_flag.
13778         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
13779         after truncating post line spacing.
13781 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
13783         * ps/devps/prologue (MF, SF): Make them work even if setfont is
13784         defined as a procedure rather than as an operator.
13786 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
13788         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
13790 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
13792         * troff/div.c (top_level_diversion::output): Merge
13793         output_file::print_line and output_file::end_of_line member
13794         functions.
13795         * troff/div.h (class output_file):
13796         * troff/node.c (troff_output_file::print_line,
13797         troff_output_file::end_of_line, output_file::end_of_line,
13798         ascii_output_file::print_line, suppress_output_file::print_line):
13799         Corresponding changes.  
13801 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
13803         * troff/input.c (token::next): Don't give a warning for `\.'.
13805         * troff/env.c (environment::get_center_lines): New function.
13806         (init_env_requests): Bind number register .ce to it.
13807         * troff/env.h: Declare it.
13808         * tbl/table.c (table::init_output): Define reset macro to restore
13809         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
13810         Then do .ce 0.
13811         (table::print): If center option not given, then imply center
13812         option if SAVED_CENTER_REG > 0.
13814 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
13816         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
13817         Troff.ps from DOWNLOAD.
13818         
13819         * troff/Makefile: Change comment in DEFINES to avoid confusing
13820         System V make.
13822         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
13823         code.  Don't try to catch errors with stopped.
13824         (check_line_lengths): New function.
13825         * ps/devps/prologue (EXEC): Deleted.
13826         (EBEGIN, EEND): New procedures.
13828 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
13830         * troff/input.c: Include request.h before node.h.
13831         * troff/node.c: Likewise.
13832         * troff/env.c: Likewise.
13833         * troff/div.c: Likewise.
13834         * troff/node.h (class special_node): Store argument as a macro
13835         rather than a char *.
13836         * troff/node.c (special_node::special_node, special_node::copy):
13837         Grok this.
13838         (special_node::~special_node): Deleted.
13839         (special_node::tprint): Deleted.
13840         (special_node::tprint_start, special_node::tprint_end,
13841         special_node::tprint_char): New functions.
13842         (troff_output_file::special): Deleted.
13843         (troff_output_file::start_special, troff_output_file::end_special,
13844         troff_output_file::special_char): New functions.
13845         * troff/input.c (special_node::tprint): New function.
13846         (do_special): Use macro not char *.
13847         (do_transparent_macro): Deleted.
13848         (token::next): Don't call do_transparent_macro.
13850         * troff/input.c (token::next): Add 'Y' case.
13851         (do_transparent_macro): New function.
13852         * troff/node.c (troff_output_file::special): Handle newlines with
13853         argument using new continuation convention.
13854         * driver/input.c (get_string): Cope with continuation convention.
13855         (do_file): Don't call skip_line after calling get_string(1).
13856         * ps/ps.c (ps_printer::special, ps_printer::do_import,
13857         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
13858         arg.
13859         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
13860         with +.
13862 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
13864         * troff/input.c (asciify): By default, illegal input characters
13865         should return empty string.
13867         * troff/input.c (copy_file): Handle first page transition like title.
13868         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
13870         * troff/input.c (token::next): Improve error message for EOF after
13871         escape character.
13872         (input_char_description): New function.
13873         (get_char_for_escape_name): Use input_char_description.
13874         (token::next): Warn about unrecognized escape sequences.
13875         (warning_table): Add WARN_ESCAPE.
13876         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
13877         accordingly.
13879         * troff/token.h: Remove declaration of process_input_stack.
13881         * troff/input.c: Remove declaration of init_hyphen_requests.
13882         * troff/request.h: Correct spelling in declaration of same.
13884         * troff/input.c (token::next): Check whether escape_char is 0.
13886 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
13888         * groff.c (main, usage, help): Implement -P and -L options.
13889         * groff.sh: Likewise.
13891         * troff/input.c (token::next): Use some gotos to avoid code
13892         duplication.
13894         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
13895         Avoid calling symbol::symbol if name empty.
13897 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
13899         * troff/input.c (init_input_requests): Make \n(.x return the major
13900         version number and \n(.y return the minor version number.
13901         * troff/Makefile: Construct file majorminor.c defining
13902         major_version and minor_version automatically from ../VERSION.
13904         * troff/node.c (class glyph_node): Make operator new and operator
13905         delete public.
13906         (class ligature_node): Similarily.
13908         * troff/input.c (operator==(const macro &, const macro &)): New
13909         function.
13910         (non_interpreted_node::same): Use this.
13911         (string_iterator::string_iterator): Make macro& argument const.
13913         * troff/input.c (input_iterator::get): New function. Don't make
13914         asciify_macro or class non_interpreted_node friends of class
13915         input_iterator.
13916         (non_interpreted_node::interpret): Use input_iterator::get.
13917         (asciify_macro): Likewise.
13919         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
13920         ~non_interpreted_node): Deleted.
13921         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
13922         Deleted.
13924         * troff/symbol.h: Make all symbol member functions const.
13926         * lib/strtol.c: New file.
13927         * lib/Makefile: Add strtol.c.
13928         * Makefile: Define STRTOL as strtol.o to include strtol in
13929         libgroff.a.
13931 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
13933         * pic/troff.c (troff_output::simple_circle): Divide by scale.
13935 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
13937         * troff/input.c (do_special): Use input_level.
13939         * troff/token.h (TOKEN_BACKSPACE): New token.
13940         (token::backspace): New function.
13941         * troff/input.c (token::description, token::next, token::process):
13942         Grok TOKEN_BACKSPACE.
13943         (do_special): Turn TOKEN_BACKSPACE back into \b.
13945         * troff/token.h (token::leader): New function.
13946         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
13948         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
13950         * troff/input.c (do_special): Use token::description in error
13951         message.
13953 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
13955         * troff/input.c (decode_args): Combine quoted and
13956         quote_input_level variables. Make it a for (;;) loop.
13958         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
13960         * troff/input.c (read_long_escape_name): The test for whether to
13961         expand buffer was off by 1.
13962         (read_string): Similarily.
13964 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
13966         * troff/input.c: Use `const int' rather than `static const int'.
13968         * troff/div.h (diversion::copy_file): Declare as pure virtual.
13969         (macro_diversion::copy_file): New function.
13970         * troff/node.h: New class diverted_copy_file_node.
13971         * troff/node.c: Implement it.
13972         * troff/input.c (copy_file): Use diversion::copy_file. Handle
13973         first page transition by pushing a diverted_copy_file_node.
13974         * troff/input.c (token::next, process_input_stack): Don't handle
13975         COPY_FILE_REQUEST.
13977 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
13979         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
13980         whether space widths need adjusting.
13982         * troff/charinfo.h: Generalize translated_to_space to
13983         special_translation so as to allow translation to \&.
13984         * troff/input.c (translate): Allow translation to \&.
13985         (charinfo::*): Corresponding changes.
13986         * troff/node.c (make_node, node::add_char): Corresponding changes.
13987         * troff/node.h (dummy_node::dummy_node): Allow optional first
13988         argument.
13990         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
13991         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
13992         TOKEN_REQUEST.
13993         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
13994         TOKEN_REQUEST with an argument of TITLE_REQUEST.
13995         (token::process): Grok that.
13996         * troff/input.c (copy_file): Handle first page transition like
13997         title by pushing a COPY_FILE_REQUEST cookie.
13998         (token::next, process_input_stack): Grok that.
13999         * troff/node.h (output_file::copy_file): Add x and y arguments.
14000         Make it non-pure.
14001         * troff/div.c (top_level_diversion::copy_file): Supply them.
14002         * troff/node.c (troff_output_file::copy_file): Add x and y
14003         arguments; moveto specified position.  Invalidate font_position
14004         array after copying file.
14005         (output_file::copy_file): New function.
14006         (suppressed_output_file::copy_file, ascii_output::copy_file):
14007         Removed.
14008         * troff/input.c (transparent_file): New function.
14009         (init_input_requests): Bind to "trf".
14010         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
14011         (process_input_stack): Likewise.
14013         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
14015         * troff/node.c (init_node_requests): New number registers .kern
14016         pointing to global_kern_mode, and .lg pointing to
14017         global_ligature_mode.
14019         * troff/node.c (ligature): Don't change it if we get a bad
14020         integer.
14022         * troff/input.c (do_define_string): Don't strip tabs.
14024         * troff/input.c (asciify_macro): Make the string_iterator auto.
14026         * troff/node.c (init_font_requests): Rename to...
14027         (init_node_requests):
14028         * troff/node.h: Change declaration.
14029         * troff/input.c (main): Change call.
14031         * troff/input.c (node::reread, diverted_space_node::reread): New
14032         methods.
14033         (process_input_stack): Call reread rather than
14034         get_diverted_space_node.
14035         * troff/node.c (node::get_diverted_space_node,
14036         diverted_space_node::get_diverted_space_node): Removed.
14037         * troff/node.h: Declare reread methods instead of
14038         get_diverted_space_node methods. Make `n' member private.
14039         * troff/input.c: (token::diverted_space): Removed.
14040         * troff/token.h: Removed declaration.
14041         
14043 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
14045         * eqn/script.c (script_box::compute_metrics): Don't let
14046         SUP_RAISE_FORMAT become negative.
14048         * tbl/table.c (table::do_row): Entries that don't end in the
14049         this row shouldn't make the row non-blank.
14050         
14051         * tbl/table.c (table::make_columns_equal): Only set the width of
14052         columns which are marked as equal.
14053         
14054         * tbl/main.c (process_data): Before issuing excess data error,
14055         if last character was a newline unget it; then get it again after
14056         the error.  Also include the contents of the entry in the message.
14058         * groff.c: New file.
14059         * Makefile: Build groff from groff.c.  Make it possible to use
14060         either groff.sh or groff.c as groff.
14061         * Makefile.bd: Similarily.
14063 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
14065         * groff.sh: Don't delay expansion of $@ in assignment to files.
14066         Remove occurrences of \".
14068 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
14070         * all Makefiles: Simplify and rearrange.
14072         * Makefile: Handle fmod like malloc.
14073         * lib/Makefile: Similarily.
14074         * lib/fmod.c: Remove #ifdef NEED_FMOD.
14076         * Makefile: Rename OPTIMISE to OPTIMIZE.
14078         * groff.sh: Remove assignment to PATH.
14079         * Makefile: Remove SHPATH variable.
14080         * Makefile.bd: Similarily.
14082         * groff.sh: Add -V option to print the pipeline instead of
14083         executing it.
14085 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
14087         * lib/font.c: Split off file searching into ...
14088         * lib/fontfile.c: New file.
14090         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
14092 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
14094         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
14095         Also change misleading comment.
14096         (table::do_vspan): Change similarily misleading comment.
14097         * tbl/main.c (process_data): A format row with an explicit `s'
14098         uses up a data line, even if all the other columns are `_' or `='.
14100         * troff/input.c (token::description): Fix description of
14101         TOKEN_DUMMY and TOKEN_EMPTY.
14103 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
14105         * groff.sh: Fix description of -Z in help message.
14107 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
14109         * pic/object.c (object_spec::make_object): Allow negative and zero
14110         line thicknesses.
14111         * pic/pic.y: Give linethick default value of -1.0.
14112         * pic/troff.c (troff_output::troff_output): Initialize
14113         last_line_thickness to BAD_THICKNESS.
14114         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
14115         (troff_output::line_thickness): Canonicalize negative thicknesses
14116         to RELATIVE_THICKNESS.
14117         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
14118         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
14119         to -1.0.
14120         (tex_output::start_picture): Set pen_size to -2.0.
14122         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
14123         0, then use 0 linewidth.
14124         (ps_printer::ps_printer): Initialize line_thickness to -1.
14126         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
14128         * ps/devps/symbolchars: Remove `or'.
14129         * ps/tmac.ps: Implement \(or with .char.
14131         * ps/devps/symbolchars: Move most characters into textmap.
14132         * ps/devps/textmap: Add names for troff bracket characters. Remove
14133         ul, ru, br, bv.
14135         * ps/devps/TSymbol.ps: Removed.
14136         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
14137         * ps/tmac.ps: Do with .char what TSymbol did.
14138         * ps/devps/download: Remove TSymbol.
14140         * ps/devps/T: Removed.
14141         * ps/devps/Troff.ps: Removed.
14142         * ps/devps/Troff.afm: Removed.
14143         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
14144         * ps/devps/download: Remove Troff.
14145         * ps/devps/FontMakefile: Remove T target.
14146         * ps/devps/DESC-A4: Remove T from font list.
14147         * ps/devps/DESC-letter: Likewise.
14149         * troff/input.c (macro_to_node): Rename to ...
14150         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
14151         character's definition while processing it.
14152         * troff/node.c (node::add_char, make_node): Change calls to
14153         macro_to_node accordingly.
14155         * troff/input.c (token::next): Translate \_ to \(ul.
14157         * tty/devascii/R.proto: Add `|'.
14158         * tty/devlatin1/R.proto: Likewise.
14160 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
14162         * man: Put the version number in all the man pages.
14164 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
14166         * Makefile.bd: New file.
14167         * README.bd: New file.
14169         * VERSION: New file.
14170         * lib/version.c: Removed.
14171         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
14172         in clean target.
14174         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
14175         environment variable.
14177         * all Makefiles: Split install target into install.bin for
14178         binaries, and install.nobin for everything else.
14179         * Makefile: Add bindist target.
14181         * man/afmtodit.man: New file.
14182         * man/Makefile: Add afmtodit.n to MAN1PAGES.
14183         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
14184         in BINDIR.
14185         * ps/Makefile: Pass BINDIR to make install in devps.
14187         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
14188         the space character.
14190         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
14192 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
14194         * ps/ps.c: Redo font downloading.
14195         * ps/devps/download: New file.
14196         * ps/devps/Makefile: Add download to DEVICEFILES.
14197         * ps/devps/afmtodit: Remove -d option.
14198         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
14199         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
14200         * ps/devps/zapfdr.ps: Likewise.
14201         * ps/devps/TSymbol.ps: Likewise.
14203 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
14205         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
14207 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
14209         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
14210         then strip the first line if it starts with %.
14211         * Makefile: Add a comment about this.
14213         * man/tfmtodit.man: New file.
14214         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
14215         * dvi/Makefile: Install tfmtodit in BINDIR.
14217         * dvi/tfmtodit.c (usage): Mention -v option.
14219 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
14221         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
14222         * troff/node.c (troff_output_file::transparent_char): Don't call
14223         flush_tbuf.
14225         * eqn: Add check_tabs method to most box classes.
14226         * eqn/box.c (box::top_level): Call check_tabs.
14228         * eqn/script.c (script_box::output): Use \Z.
14229         * eqn/limit.c (limit_box::output): Use \Z.
14231         * eqn/box.c (box::top_level): Use itoa.
14233 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
14235         * dvi/tmac.dvi: Add font translations for CR, C, TT.
14236         * dvi/devdvi/Makefile: Don't make links to CW.
14238         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
14239         HX, HD.
14240         * xditview/tmac.X: Likewise.
14242         * troff/node.c: Add font translation feature.
14243         (get_font_translation): New function.
14244         (symbol_fontno): Translate the font name.
14245         (mount_font_no_translate): Rename to mount_font to this.
14246         (mount_font): New function.
14247         (font_family::make_definite): Call mount_font_no_translate instead
14248         of mount_font.
14249         (mount_style): Translate the font name.
14250         (font_translate): New function.
14251         (init_font_requests): Bind "ftr" to font_translate.
14253         * ps/devps/prologue (SN): New procedure that rounds a position to
14254         the nearest (pixel + (.25,.25)).
14255         (DL): Use SN to round endpoints.
14257         * lib/version.c: Changed version to 0.5.
14259 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
14261         * Makefile: Move definition of PAGE to the very beginning, so that
14262         people are less likely to miss it.
14264 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
14266         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
14268         * troff/env.c (environment::choose_breakpoint): Make `can't find
14269         breakpoint' error a warning of type WARN_BREAK.  Change message to
14270         `can't break line'.
14271         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
14272         code 040000.
14273         * troff/input.c: Add WARN_BREAK to warning_table.  Include
14274         WARN_BREAK in DEFAULT_WARNING_MASK.
14276         * tty/tmac.tty: Add definition of \(+-.
14278         * groff.sh: Remove `--' option to set command.
14280         * dvi/devdvi/texsy.map: Remove duplicate md entry.
14282         * ps/devps/eqnchar: Better definition of cdot using md.
14283         * dvi/devdvi/eqnchar:  Likewise.
14284         * xditview/devX100/eqnchar:  Likewise.
14285         * xditview/devX75/eqnchar: Likewise.
14286         * eqn/lex.c: Add definition of cdot.
14288 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
14290         * troff/input.c (get_optional_char): New function.
14291         * troff/input.c (set_page_character): Use get_optional_char(),
14292         rather than has_arg() and tok.get_char(1).
14293         * troff/env.c (tab_character, leader_character, hyphen_char,
14294         field_characters): Likewise.
14295         (margin_character): Likewise.  Also always delete the
14296         margin_character_node.
14298         * troff/input.c (token::get_char): Use token::description.
14300         * troff/input.c (has_arg): Don't skip over tab and \}.
14301         * troff/number.c (start_number): Give a warning if the number
14302         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
14304 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
14306         * troff/input.c (empty_name_warning, non_empty_name_warning): New
14307         functions.
14308         (get_name, get_long_name): Use these.  Rename `warn' argument to
14309         `required'.
14311         * troff/node.c (get_fontno): Test that the symbol is not null.
14313         * troff/input.c (token::description): New function.
14314         * troff/number.c (parse_term): Use token::description in `numeric
14315         expression expected' message.
14316         * troff/groff.h: Add WARN_MISSING.
14317         * troff/number.c (start_number): New function.
14318         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
14319         get_incr_number): Use start_number().
14320         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
14321         default.
14322         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
14323         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
14324         token::descripion.
14325         * troff/input.c (token::get_char): Use WARN_MISSING.
14326         * troff/input.c (token::delimiter): Use token::description.
14327         * troff/env.c (environment_switch): Back out Aug 3 change.
14328         * troff/input.c (has_arg): Skip over \}s and tabs but give a
14329         warning.
14330         * troff/token.h (token::tab): New function.
14331         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
14332         * troff/reg.c (alter_format): Likewise.
14333         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
14335 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
14337         * troff (most files): Redo warnings. Divide warnings into various
14338         categories; warning() has an additional first argument indicating
14339         the category it falls into.
14340         * troff/input.c (main): -w now takes an argument. New option -W.
14341         (enable_warning, disable_warning): New functions.
14343         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
14344         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
14346 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
14348         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
14349         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
14350         * xditview/devX75/eqnchar: Likewise.
14351         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
14353         * eqn/other.c: When bar or over applies to a single character
14354         don't produce an overline_box or an underline_box. Instead produce
14355         an accent_box or an underaccent_box, with the accent a line
14356         whose width is accent_width.  New classes underaccent_box,
14357         overline_char_box and underline_char_box.
14358         * eqn/box.h: Move overline_box, underline_box, accent_box class
14359         declarations into eqn/other.c. Add declarations of
14360         make_underline_box, make_overline_box, make_accent_box.
14361         * eqn/eqn.y: Call make_overline_box, make_underline_box
14362         make_accent_box instead of constructors.
14363         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
14365         * eqn/other.c: Add accent_box::~accent_box.
14366         * eqn/box.h: Declare it.
14368         * groff.sh: With -Tps, use eqn -D.
14370         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
14371         rather than \l.
14372         (underline_box::output): Similarily.
14373         (accent_box::output): Use \Z.
14375         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
14376         bit smaller.)
14378 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
14380         * troff/div.c (top_level_diversion::transparent_output(unsigned
14381         char)): Use asciify.
14382         * troff/input.c (asciify): Don't make it static.
14383         * troff/token.h (asciify): Declare it.
14384         
14385         * troff/input.c (get_name, get_long_name, token::get_char,
14386         token::delimiter): Add an extra default argument which says
14387         whether a warning should be printed.
14388         * troff: Pass a non-zero argument to one of these rather than
14389         printing a warning directly.
14391 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
14393         * troff: Consistently use symbol::is_null.
14395         * troff/dictionary.h: Move some inline functions into
14396         dictionary.c.
14398         * troff/request.h: Move inline functions into input.c.
14399         (request_or_macro::invoke): Make it pure.
14401         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
14402         * troff/input.c (init_input_requests): Use class constant_int_reg.
14403         (class compatible_reg): Deleted.
14404         * troff/div.c (init_div_requests): Use class constant_int_reg.
14405         (class last_post_line_extra_space_reg): Deleted.
14407         * troff/env.c (tab_character): Don't change the tab character if
14408         we get an invalid argument.
14409         (hyphen_char): Similarily.
14411         * troff/reg.c (alter_format): Check that nm is not null.
14413         * Makefile, groff.sh: Make it possible to customize the commands
14414         used for printing PostScript and dvi files. Also make it possible
14415         to customize the path used by groff.sh.
14417         * eqn/eqn.y: Make `left' right associative.
14419 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
14421         * pic/pic.h: Added definition of M_SQRT2 for those systems that
14422         don't have it.
14424         * pic/pic.h: Removed definition of INT_MAX.
14426         * troff/node.c (italic_corrected_node::vertical_extent): Omit
14427         `return'.
14429         * troff/input.c (token::next):  Handle \R like \n.
14431 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
14433         * ps/tmac.pc (PSPIC): Simplify.
14435         * troff/env.c (tab_stops::to_string):
14436         * pic/pic.y (object_type_name):
14437         * pic/troff.c (simple_output::line):
14438         * pic/tex.c (tex_output::spline):
14439         * pic/object.c (object_spec::make_object):
14440         * tbl/main.c (process_data):  Add cases to switch statements to
14441         avoid cfront warnings. (Some of these are spurious, since the
14442         switch already has a default case.)
14444         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
14445         `ps-'.  Don't test systat; instead check number of arguments to
14446         ps-bb.
14448 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
14450         * macros/tmac.e: Do not decrease the page offset by 0.5i.
14452         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
14453         Unlink the file as soon as we have opened it, so that we don't
14454         have to bother with signal handlers.
14455         (handler): Deleted.
14456         (fatal_error_exit): Deleted.
14457         (main): Don't call signal.
14459         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
14460         can be ignored.
14461         * dvi/devdvi/Makefile: Use the -k option with S and MI.
14463         * pic/pic.y:  If there is a label, or an nth construction before
14464         the first `.' in the argument to `with', ignore it and generate a
14465         warning.
14466         * pic/lex.c (lex_warning): New function.
14468         * tbl/table.c (table::init_output): In section keep and release
14469         macro, use 0 indent when diverting and the correct indent when
14470         rereading.
14472         * troff/input.c (interpolate_number_format): Do not interpolate
14473         anything if the number register is not defined.
14475         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
14477 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
14479         * ps/devps/prologue (PICTURE): Set components of graphics state to
14480         their default values.
14482         * ps/devps/text.enc: Add trademark
14483         * ps/devps/textmap: Add names for club, spade, heart, diamond,
14484         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
14485         * ps/devps/symbolchars: Add names for summation and product.
14487         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
14488         suchthat. Add pp. Add upper-case letters.
14490         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
14491         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
14492         Upsilon.
14494         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
14495         rA (right angle bracket) to ra.  Introduce names for double-headed
14496         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
14497         * ps/devps/textmap: Likewise for ps device.
14498         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
14499         * tty/devascii/R.proto: Rename lA to la and rA to ra.
14500         * tty/devascii/R.proto: Likewise.
14501         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
14502         \(uA, \(dA.
14503         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
14505         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
14507         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
14508         def_table.
14510 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
14512         * troff/div.c (when_request): Use symbol::is_null rather than
14513         has_arg to determine whether we have an argument.
14514         (change_trap): Remove the trap if we get an invalid number. Give
14515         an error if we don't get at least the macro name.
14516         (diversion_trap): Remove trap if we get an invalid name or number.
14518         * troff/env.c (environment_switch): Pop if we get an invalid
14519         symbol or numeric expression.
14521         * troff/input.c (do_define_macro):  If EOF is encoutered while
14522         defining the macro, do tok.next() before returning.
14524         * troff/token.h (has_arg): Move definition from here, to ...
14525         * troff/input.c (has_arg): ... here
14527         * troff/env.c (space_size): Do nothing if we get an invalid argument.
14528         * troff/input.c (shift): Likewise.
14530         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
14531         for `.c'.
14533         * pic/troff.c (troff_output::start_picture):  Comment out calls to
14534         `..'.
14536         * eqn/main.c (do_file): Subtract 1 from current_lineno if
14537         interpret_lf_args succeeds.
14539         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
14540         \\.  This avoids problems with \$N.
14542         * groff.sh: Pass -C to preprocessors.
14544         * lib/lf.c (interpret_lf_args):  Be more flexible.
14546         * tbl/main.c (main): Add -C option.
14547         (table_input::get): Do not recognize TE if followed by character
14548         other than a space or newline unless -C option given.
14549         (process_input_file): Likewise for lf, TS.
14550         (process_data): Likewise for lf in text blocks.
14552         * eqn/main.c (main): Add -C option.
14553         (do_file): Don't recognize EQ, EN or lf if followed by character
14554         other than space or newline unless -C option given.
14555         * eqn/lex.c (file_input::read_line): Similarily.
14556         * eqn/eqn.h: Declare compatible_flag.
14558         * etc/soelim.c (main): Add -C option.
14559         (interpret_lf_args): Use version in libgroff.
14560         (do_file):
14562         * pic/main.c (main): Add -C option, which sets compatible_flag.
14563         (top_input::get), (top_input::peek):  If -C option not given,
14564         do not recognize .PS/.PE/.PF/.lf if followed by a character
14565         other than space or newline.
14566         * pic/lex.c (file_input::read_line): Similarily.
14567         * pic/pic.h: Add declaration of compatible_flag.
14569 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
14571         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
14573         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
14574         derived from node.  New class space_char_hmotion_node.
14575         * troff/input.c (asciify_macro): New function.
14576         * troff/input.c (init_input_requests): New request `asciify' bound
14577         to asciify_macro.
14578         * macros/mm.diff: New file.
14579         * Makefile:  In install.mm target use `patch' to apply
14580         macros/mm.diff.
14582         * troff/input.c (macro::print_size): Just print the size in bytes.
14584         * troff/div.c (return_request): Correct the argument
14585         interpretation.
14587 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
14589         * troff/node.h (class composite_node): Add sz member.
14590         * troff/node.c (composite_node::size): Return sz.
14591         * troff/input.c (macro_to_node):  Use the initial size in the
14592         environment as the size of the composite_node.
14594         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
14595         default.
14597 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
14599         * troff/div.c (change_trap): If we get a bad number expression,
14600         do nothing.
14602 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
14604         * lib/matherr.c (matherr): Define this only if math.h defines
14605         TLOSS.
14607 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
14609         * troff/div.c (macro_diversion::distance_to_next_trap): If there
14610         no diversion trap return vunits(INT_MAX - vresolution).
14612 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
14614         * troff/input.c (do_zero_width): New implementation that doesn't
14615         use a temporary environment. Use instead:
14616         (token::add_to_node_list): New function.
14617         * troff/env.c (environment::get_prev_char_height),
14618         (environment::get_prev_char_height),
14619         (environment::get_prev_char_skew): New functions.
14620         (environment::get_prev_char): New function.
14621         (environment::get_prev_char_width): Change to use get_prev_char.
14622         (init_env_request): Implement new registers .cht, .cdp, .csk.
14623         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
14624         \Z being processed in a separate environment.
14626 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
14628         * tbl/table.c: Removed TABLE_BOTTOM_REG.
14630         * tbl/table.c (table::init_output): In the section release macro,
14631         give a warning message if the section won't fit on one page.
14633         * tbl/table.c (table::do_top): Emit table keep only if table is
14634         boxed.
14635         (table::do_bottom): Likewise for table release.
14636         (table::table), (table::add_vertical_rule):  Remove reference to
14637         keep member.
14638         * tbl/table.h: Remove keep member.
14640         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
14641         SECTION_RELEASE_MACRO, if there's not enough space before the next
14642         trap to output the diversion, call T# ourselves, set
14643         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
14644         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
14645         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
14646         vertical position and return to it before turning traps on again.
14647         
14648 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
14650         * troff/node.c, troff/node.h: In classes derived from node,
14651         replace prev_char_width method by last_char_node method.
14652         * troff/env.c (environment::get_prev_char_width): Use
14653         node::last_char_node rather than node::get_prev_char_width.
14655         * Makefile: Added comment about -fno-inline on 68030-based
14656         Apollos.
14658         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
14659         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
14660         expressions using sizeof to int.
14661         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
14663         * macros/tmac.e (TS):  Don't move @f back past the current
14664         position.
14666 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
14668         * ps/ps.c (main): Buffer stderr.
14669         * dvi/dvi.c (main): Likewise.
14670         * tty/tty.c (main): Likewise.
14672         * ps/ps.c (ps_printer::do_import): Improve error handling.
14674         * troff/input.c (abort_request): Use asciify.
14676         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
14677         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
14678         type of first argument int rather than char.  This works around a
14679         bug on the 68030 based Apollo using g++ 1.37.1.
14681         * tbl/table.h (class table): Add `keep' member.
14682         * tbl/table.c (table::table): Initialize `keep'.
14683         (table::add_vertical_rule): Set `keep' to 1.
14684         (table::do_top): Only emit table keep macro is `keep' is non-zero.
14685         (table::do_bottom): Likewise for table release macro.
14686         (table::do_row): Emit section keep macro even if the row is 0.
14688 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
14690         * macros/tmac.e (@C): Preserve the font family across the change
14691         in environments.
14693 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
14695         * lib/font.c: Initialize font::hor and font::vert to 1.
14696         (font::load_desc): Check the values of font::hor and font::vert.
14698         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
14699         be included in a C compilation.
14700         (iftoa): Use INT_DIGITS. Include lib.h.
14701         (itoa): Likewise.
14702         (as_string): Likewise.
14703         * tbl/table.c: Removed definition of INT_DIGITS.
14704         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
14705         * troff/input.c (input_input_requests): Likewise.
14706         * ps/ps.c (make_encoding_name): Likewise.
14707         (ps_printer::set_style): Likewise.
14708         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
14710         * tty/devascii/R.proto: Map fm onto '.
14711         * tty/devlatin1/R.proto: Likewise.
14713 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
14715         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
14716         argument to \w is at a different input level.
14718         * tbl/table.c (table::init_output): Define a new macro
14719         REPEATED_VPT_MACRO, like vpt but if in a diversion also
14720         transparently outputs itself.
14721         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
14722         vpt.
14723         (table::do_row): Likewise.
14725         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
14726         TRANSPARENT_STRING_NAME.
14728         * tbl/table.c (table::init_output): In the table release macro
14729         print an error message and don't produce any output if after
14730         issuing the need request the table still will not fit.  Also
14731         remove the diversion after bringing it back.
14733         * tbl/table.c (table::init_output): Define a new macro
14734         REPEATED_MARK_MACRO, like mk but if in a diversion also
14735         transparently outputs itself.
14736         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
14737         is necessary because .TH might not call .T#.
14738         (table::do_top): Likewise TOP_REG.
14739         (table::define_bottom_macro): If TOP_REG is no longer valid, use
14740         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
14741         table header might contain just the two top rules.
14743 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
14745         * troff/div.c: Implement new request `ptr' to print all traps.
14747         * troff/env.c (init_env_requests): Implement `.tabs' reg with
14748         init_string_env_reg.
14749         * troff/env.c (class tab_reg): Deleted.
14751 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
14753         * troff/div.c: New number register .pn returns the number of the
14754         next page as set by the pn request.
14756         * macros/tmac.an: Redid headers and footers.  Number each manual
14757         entry starting from 1 unless \nC is > 0, like Sun.  Added an
14758         optional 5th argument to .TH which specifies the manual name and
14759         appears in the center of the header.  Understand the X, P and D
14760         registers like Sun.
14762 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
14764         * troff/env.c (init_env_requests): New number register `.lt' to
14765         return the title length.
14767         * troff/node.h (class transparent_dummy_node): New class.
14768         * troff/node.c (class transparent_dummy_node): Provide member
14769         functions. 
14770         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
14771         than a dummy_node.
14773         * troff/input.c (token::next): New escape sequence \).
14774         * troff/input.c (get_copy): Recognize \) in copy mode.
14776         * troff/input.c (input_stack::clear): New function.
14777         * troff/input.c (exit_request): Use input_stack::clear.
14779         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
14780         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
14782         * troff/env.c: Move set_page_character to input.c.  Move
14783         page_character to input.c also.
14784         * troff/env.c (title): Split off the reading of the parts of the
14785         title into read_title_parts.
14786         * troff/input.c (read_title_parts): New function.  Check the
14787         input_level when testing whether a token matches the delimiter.
14789         * troff/input.c (exit_request): New function.
14790         * troff/input.c (init_input_requests): Bind ex request to
14791         exit_request rather than exit_groff.
14793         * troff/input.c (exit_groff): Call tok.next() before
14794         process_input_stack().
14796 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
14798         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
14799         * troff/env.h: ditto.
14800         * troff/input.c: ditto.
14802         * troff/env.c (environment::is_empty): Test pending_lines.
14804         * troff/env.c (environment::have_pending_lines): Removed.
14806         * troff/input.c: Add request to flush pending lines from the
14807         environment.
14809         * troff/env.c, troff/env.h: Add automatic widow control feature.
14811         * troff/input.c (exit_groff):  Do process_input_stack() after
14812         do_break() but before setting exit_flag to 2.
14814         * troff/input.c: Remove FLUSH_PENDING_LINES and
14815         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
14816         environment after END_TRAP token seen, but only if there aren't
14817         any more traps still unfinished.
14818         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
14820 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
14822         * troff/env.c: Rename the `retain_size' member of class
14823         pending_output_line to `no_fill'.
14825         * troff/env.c (title): When the line is output, make the
14826         retain_size argument !fill.
14828         * troff/node.h: Add `hyphenated' member to struct breakpoint.
14829         * troff/node.c (space_node::get_breakpoints),
14830         (dbreak_node::get_breakpoints):  Fill this in.
14831         * troff/env.c:  Allow specification of maximum number of
14832         consecutive hyphenated lines.
14834         * troff/env.c (environment::is_empty): Add test for !current_tab.
14836 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
14838         * troff/env.c (environment::hyphenate_line): Don't completely give
14839         up if the word is not to be hyphenated; continue so that breaks
14840         can be made at break_char_node's.
14842         * lib/lib.h: Only define INT_MAX if it's not already defined;
14843         undef INT_MIN if it's already defined.
14845         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
14847         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
14848         This works around a bug in AT&T C++ 2.0 used with an ANSI C
14849         compiler.
14850         
14851         * macros/tmac.an (an-header): Set no-space mode.
14853         * macros/tmac.an (TH): Start a new page if necessary.
14855         * Started using ChangeLog at version 0.4.
14857 Local Variables:
14858 version-control: never
14859 coding: latin-1
14860 End: