typo
[s-roff.git] / ChangeLog
blob2822b857acff7667022d5ae21cc97414b71a72fb
1 2004-02-17  Werner LEMBERG  <wl@gnu.org>
3         * font/devlj4/generate/special.awk: New script.
4         * font/devlj4/generate/Makefile (S): Use special.awk.
5         * font/devlj4/*: Regenerated, including the following new files:
6         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
7         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
8         * NEWS: Document new lj4 fonts and revised hpftodit.
10 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
12         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
14 2004-01-25  Werner LEMBERG  <wl@gnu.org>
16         * src/libs/libgroff/progname.cpp: Replaced with...
17         * src/libs/libgroff/progname.c: New file.
18         * src/libs/libgroff/Makefile.sub: Updated accordingly.
20 2004-01-17  Werner LEMBERG  <wl@gnu.org>
22         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
24 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
26         * font/devlj4/generate/wingdings.map,
27         font/devlj4/generate/symbol.map: Include unnamed glyphs.
28         Use groff glyph names where possible.
29         * src/devices/grolj4/lj4_font.man: Minor updates.
31 2004-01-13  Werner LEMBERG  <wl@gnu.org>
33         * tmac/www.tmac (DC): Handle TTY devices.
35         * doc/webpage.ms: Document viewCVS from ffii.org.
36         * NEWS, README: Updated.
38         * src/roff/groff/groff.man: Mention lj4_font man page.
40         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
41         variables.
42         (FONTS): Add SYMBOL and WINGDINGS.
43         (SYMBOL, WINGDINGS): New targets.
45 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
47         * src/devices/grolj4/lj4_font.man: New man page.
48         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
49         * src/devices/grolj4.man: Mention lj4_font man page.
51         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
52         * src/utils/hpftodit/hpftodit.man: Document it.
53         (CW): New macro.
54         Remove details about fonts (which are now in lj4_font.man).
56         * font/devlj4/generate/symbol.map,
57         font/devlj4/generate/wingdings.map: New files.
59 2004-01-12  Werner LEMBERG  <wl@gnu.org>
61         * README: Mention ffii's viewcvs access.
63 2004-01-09  Werner LEMBERG  <wl@gnu.org>
65         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
67 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
69         Revert most of the change from 2004-01-03 to better control used
70         symbol sets.
72         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
73         (text_symbol_sets, special_symbol_sets): New arrays.
74         (symbol_set_table): New global variable.
75         (read_symbol_sets): Use search order given in the text_symbol_sets
76         and special_symbol_sets arrays.  If command line flag -a is not
77         given, search both arrays.
78         (output_charset): Require x_height_tag only for command line flag -i.
80 2004-01-06  Werner LEMBERG  <wl@gnu.org>
82         Implement string-valued registers \n[.m] and \n[.M] to return the
83         name of the current drawing and background color, respectively.
85         * src/roff/troff/symbol.h: Moved to...
86         * src/include/symbol.h: Here.
87         Small fixes to make it work outside of the `troff' directory.
88         * src/roff/troff/symbol.cpp: Moved to...
89         * src/libs/libgroff/symbol.cpp: Here.
90         Small fixes to make it work outside of the `troff' directory.
92         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
93         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
94         Updated.
96         * src/include/color.h: Include symbol.h.
97         (color): Add new field `nm'.
98         * src/libs/libgroff/color.cpp (color::color): Updated.
100         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
101         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
102         src/roff/troff/reg.cpp: Don't include symbol.h.
104         * src/roff/troff/env.cpp: Don't include symbol.h.
105         (environment::get_glyph_color_string,
106         environment_get_fill_color_string): New member functions.
107         (init_env_requests): Handle `.m' and `.M' registers.
108         * src/roff/troff/input.cpp: Don't include symbol.h.
109         (default_symbol): Moved to symbol.cpp/symbol.h.
110         (do_glyph_color, do_fill_color, define_color): Pass symbol name
111         to color constructor.
112         * src/roff/troff/env.h: Updated.
114         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
115         Document new registers.
117 2004-01-05  Werner LEMBERG  <wl@gnu.org>
119         * src/roff/troff/nroff.cpp (space_node::get_breakpoints,
120         space_node::nbreaks): Protect against zero `next' field.
122 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
124         In hpftodit, use the symbol sets offered in the TFM.
126         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
127         (symbol_set, text_symbol_sets, special_symbol_sets,
128         symbol_set_table): Removed.
129         (get_printcode): Removed.
130         (read_symbol_sets): Initialize `symbol_set' field with
131         `NO_SYMBOL_SET'.
132         Simplify code to just use the `kind' value.
133         (output_charset): Improve output formatting.
134         (dump_symbols): Simplified.
136 2004-01-02  Werner LEMBERG  <wl@gnu.org>
138         * font/devlj4/generate/text.map: Add more MSL numbers.
140 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
142         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
143         (text_symbol_sets): Add more symbol sets.
144         (debug_flag): New static variable (moved from `main').
145         (get_printcode, show_symset): New functions.
146         (main): Remove `debug_flag'.
147         (output_charset): Use `show_symset'.
148         (dump_symbols):  Use `show_symset'.
149         Print symsets for all glyphs.
150         (read_map): Actually call `unicode_to_ucode_make' but this time
151         correctly.
153 2004-01-01  Werner LEMBERG  <wl@gnu.org>
155         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
156         Fix placement of comments.
158 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
160         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
161         option `-d' is given.
162         (output_charset): Improve warning messages to give more information.
163         (dump_symbols): Make information more precise.
164         (usage): Updated.
165         (read_map): Don't call unicode_to_ucode_name; the glyph names must
166         appear as-is and shouldn't be decomposed.
168 2003-12-31  Werner LEMBERG  <wl@gnu.org>
170         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
171         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
172         (FONTS): Add TrueType font families Arial and Times New Roman.
173         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
174         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
175         `fl'.
177 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
179         * test-groff.in (SEP): Quote value.
180         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
181         `tem' to `char*' to avoid deallocation of a pointer to a constant
182         object which some compilers don't like.
184 2003-12-31  Werner LEMBERG  <wl@gnu.org>
186         * font/devlj4/generate (text.map, special.map): Rewritten to work
187         with the new hpftodit version.
189 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
191         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
192         set and 8bit character code for all glyphs also.
194 2003-12-30  Werner LEMBERG  <wl@gnu.org>
196         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
198 2003-12-29  Werner LEMBERG  <wl@gnu.org>
200         More fixes for MSVC compiler.
202         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
203         $(SEP).
205         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
206         STDERR_FILENO) [_MSC_VER]: Define conditionally.
207         (getpid) [_MSC_VER]: Remove.
208         Include direct.h and process.h conditionally.
210         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
211         parentheses for a_delete.
213         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
215         * test-groff: Replaced with...
216         * test-groff.in: This new template to handle path separator
217         properly.
219         * configure.ac: Check for direct.h and process.h.
220         Generate test-groff script.
221         * configure, src/include/config.hin: Regenerated.
223 2003-12-28  Werner LEMBERG  <wl@gnu.org>
225         Add integral extension glyph.
226         Add new option `-x' to afmtodit to suppress use of built-in AGL.
228         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
230         * font/devps/generate/textmap: Provide entry for `integralex' to
231         override (old) PUA value of the AGL.
232         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
233         * font/devps/*: Regenerated.
235         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
236         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
238 2003-12-27  Werner LEMBERG  <wl@gnu.org>
240         Add forgotten `coproduct' symbol (already available for DVI).
242         * font/devhtml/R.proto, font/devps/generate/textmap,
243         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
244         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
245         U+2210 (\[coproduct]).
247 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
249         hpftodit has been extended to handle TrueType metric files and
250         more glyphs.  See hpftodit.man for more details.
252         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
253         ctype.h, and unicode.h.
254         s/msl/charcode/ everywhere since we now handle Unicode values also.
255         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
256         Use it where appropriate.
257         (MULTIPLIER): Replaced with...
258         (multiplier): New global static variable.
259         (scale): Updated.
260         (tag_type): Add more TFM tags.
261         (tag_name): New array.
262         (ENUM_TYPE, FLOAT_TYPE): Removed.
263         (BYTE_TYPE): New value assigned.
264         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
265         (text_symbol_sets, special_symbol_sets): Extended to cover more
266         sets.
267         (check_type): Add return value.
268         (check_units): Add parameters to get ppi and upem values.
269         Handle TrueType TFM data.
270         (output_font_name): New function.
271         (output_charset): Add parameter to handle TFM type.
272         Handle TrueType TFMs also.
273         (em_fract): New macro.
274         (dump_tags): Be much more verbose and handle more tags.
275         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
276         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
277         functions.
278         (read_map): Add parameter to handle TFM type.
279         Handle both MSL and Unicode mappings.
280         (main): Add two new command line options `-a' and `-q'.
281         Updated to make use of new functions.
282         (usage): Updated.
284         * src/utils/hpftodit/hpuni.cpp: New file.
286         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
287         Updated.
289 2003-12-25  Werner LEMBERG  <wl@gnu.org>
291         * src/include/nonposix.h (read) [_MSC_VER]: Define.
293 2003-12-24  Werner LEMBERG  <wl@gnu.org>
295         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
296         by Michail Vidiassov <master@iaas.msu.ru>.
298 2003-12-20  Werner LEMBERG  <wl@gnu.org>
300         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
301         and u0049_0307.
302         Add missing latin-2 glyphs.
303         * font/devutf8/R.proto: Add missing latin-2 glyphs.
305         * tmac/troffrc: Load `composite.tmac' earlier.
307         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
308         u00{53,73}_0327, and u0049_0307.
309         * tmac/X.tmac: Add u00{47,67}_0306.
310         * tmac/tty-char.tmac: Use composite glyph names for readability.
312         * NEWS: Updated.
314         * src/include/unicode.h: Remove `extern' keywords.
316 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
318         * tmac/latin5.tmac: New file.
320 2003-12-19  Werner LEMBERG  <wl@gnu.org>
322         Add some glyphs needed for Turkish.
324         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
325         and u0049_0307.
327         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
328         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
329         u00{53,73}_0327, and u0049_0307.
331 2003-12-18  Werner LEMBERG  <wl@gnu.org>
333         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
334         from 2001-10-04.
335         Remove trailing zeros.
337 2003-12-17  Werner LEMBERG  <wl@gnu.org>
339         Make \? transparent to end-of-sentence recognition.
341         * src/roff/troff/input.cc (non_interpreted_node): Add
342         `ends_sentence' member function.
344 2003-12-16  Werner LEMBERG  <wl@gnu.org>
346         * doc/groff.texinfo: Document `dt' request correctly.
347         Other minor typographical improvements.
349 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
351         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
353 2003-12-10  Richard Stallman  <rms@gnu.org>
355         * LICENSE: Better wording.
357 2003-12-09  Werner LEMBERG  <wl@gnu.org>
359         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
360         * configure, NEWS: Updated.
362 2003-12-08  Werner LEMBERG  <wl@gnu.org>
364         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
366 2003-12-07  Bernd Warken  <bwarken@mayn.de>
368         * LICENSE: Updated.
370 2003-12-07  Werner LEMBERG  <wl@gnu.org>
372         * INSTALL: Improved.
374 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
376         Use path separator character of target platform for compiled-in
377         default paths.
379         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
380         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
381         * configure: Regenerated.
382         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
384 2003-12-05  Werner LEMBERG  <wl@gnu.org>
386         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
387         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
389 2003-12-04  Bernd Warken  <bwarken@mayn.de>
391         * LICENSE: New file.
393 2003-12-03  Werner LEMBERG  <wl@gnu.org>
395         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
396         ligatures present in AFM files since groff currently only
397         understands some standard ligatures and nothing else.
399 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
401         * src/roff/groff/groff.cpp (main): Don't run the spooler if
402         option -v is given.
404         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
405         messages.
406         Close stdout copy.
407         Don't use Unix wait flags.
409 2003-12-02  Werner LEMBERG  <wl@gnu.org>
411         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
412         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
413         src/roff/troff/uniuni.cpp: Moved to...
414         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
415         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
416         src/libs/libgroff/uniuni.cpp: Here.
418         * src/include/Makefile.sub.old (HDRS),
419         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
420         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
422 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
424         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
425         `DEBUG_FILE'.
426         Updated all users.
428 2003-12-01  Werner LEMBERG  <wl@gnu.org>
430         * groff.texinfo: Document special behaviour of `.vs 0'.
431         Improve documentation of `cflags' request.
432         * NEWS: Updated.
434 2003-11-29  Werner LEMBERG  <wl@gnu.org>
436         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
437         * font/devlj4/CORONET: Regenerated.
439 2003-11-24  Werner LEMBERG  <wl@gnu.org>
441         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
442         if processing hyphenation patterns in traditional mode.
443         Improve error messages.
445 2003-11-20  Werner LEMBERG  <wl@gnu.org>
447         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
448         troff_output_file::put_char): Fix type of local variable `c'.
450 2003-11-19  Werner LEMBERG  <wl@gnu.org>
452         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
453         declarations.
454         (i_to_a): Removed.  libgroff already provides this function.
455         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
457 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
459         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
460         HAVE_DECL_SYS_LIST.
462 2003-11-17  Werner LEMBERG  <wl@gnu.org>
464         * COPYING: Use correct version.
466 2003-11-11  Werner LEMBERG  <wl@gnu.org>
468         LynxOS 4.0.0 doesn't declare vfprintf.
470         * configure.ac: Check for vfprintf.
471         * configure: Regenerated.
472         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
473         * src/include/config.hin: Regenerated.
475 2003-11-10  Werner LEMBERG  <wl@gnu.org>
477         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
479         * configure.ac: Check for vsnprintf.
480         * configure: Regenerated.
481         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
482         `HAVE_VSNPRINTF'.
483         * src/include/config.hin: Regenerated.
485 2003-11-09  Werner LEMBERG  <wl@gnu.org>
487         * aclocal.m4: Updated syntax to autoconf 2.59.
488         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
489         Don't check for gsos2.
490         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
491         working abs_top_srcdir and abs_top_builddir.
493         * configure.ac: Updated syntax to autoconf 2.59.
494         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
495         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
496         * configure: Regenerated.
498         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
499         s/@groff_top_builddir@/@abs_top_builddir@/.
501         * src/roff/groff/pipeline.c (xstrsignal):
502         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
504 2003-11-07  Werner LEMBERG  <wl@gnu.org>
506         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
507         make start angle smaller than end angle to circumvent a bug in tpic
508         handling of some versions of dvipdfm (and dvipdfmx).
510 2003-10-30  Werner LEMBERG  <wl@gnu.org>
512         * src/devices/grops/grops.man: Improve section on creating EPS.
514 2003-10-29  Werner LEMBERG  <wl@gnu.org>
516         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
517         -P-pletter).
519 2003-10-28  Werner LEMBERG  <wl@gnu.org>
521         * doc/groff.texinfo: Fix documentation of `.if'.
523 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
525         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
526         the form `uniXXXX' also.
528 2003-10-27  Werner LEMBERG  <wl@gnu.org>
530         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
531         contrib/pic2graph/pic2graph.sh: Implement secure management of
532         temporary files.
533         Pass `-P-pletter' to groff to avoid data outside of the converted
534         area -- some versions of `convert' (for example 5.3.8) don't check
535         the bounding box of the image but always use a fixed image size
536         (letter paper format).
537         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
538         contrib/pic2graph/pic2graph.man: Updated.
540         * src/roff/groff/groff.man: Document $TMP and $TEMP.
542 2003-10-26  Werner LEMBERG  <wl@gnu.org>
544         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
545         troff_output::simple_ellipse, troff_output::simple_arc,
546         troff_output::simple_line, troff_output::simple_spline,
547         troff_output::simple_polygon): Insert a space before arguments.
548         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
549         latter doesn't produce a node, so the following `.sp -1' would do
550         the wrong thing.
551         Don't emit `.sp -1' after \M.  This also doesn't produce a token
552         (and we don't have to care about compatibility mode).
553         (troff_output::set_color, troff_output::reset_color): Don't emit
554         `.sp -1' after \M and \m.
556         * src/roff/troff/input.cpp (old_have_input): New global variable.
557         (input_stack::get): Handle `old_have_input'.
558         (process_input_stack) <token::TOKEN_NEWLINE>: Call
559         `trapping_blank_line' depending on `old_have_input', not
560         `have_input'.
562 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
564         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
565         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
566         default directory names for temporary files.
567         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
569         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
570         [__MSDOS__] (run_pipeline): Honour environment variables.
571         Don't use `tmpnam' but `tempnam' to work around messy
572         implementation.
574         * README.MinGW: New file.
576 2003-10-16  Werner LEMBERG  <wl@gnu.org>
578         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
579         `(*t)->next' without testing validity of `*t'.
580         (usage): Make it more readable.
582 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
584         Make html device run under both MS-DOS and Win32.
586         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
587         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
588         spawn or fork+exec has to be used, and whether parent must sleep
589         until the child process terminates.  Used in
590         `char_buffer::run_output_filter'.
591         (copyofstdoutfd): Removed.
592         (char_buffer): Replace `write_file_html' and `write_file_troff'
593         member functions with `emit_troff_output' and `run_output_filter'.
594         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
595         macros.
596         (replaceFd): Replaced with...
597         (set_redirection): New auxiliary function.
598         (waitForChild): Replaced with...
599         (save_and_redirect): New auxiliary function for.
601         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
602         functions.
604 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
606         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
607         (GROFF_LIBC): New function.
608         * configure.ac: Call GROFF_LIBC.
609         Check for `kill'.
610         * configure: Regenerated.
612         * src/include/lib.h: Handle __MINGW32__.
613         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
614         Add macro for `pipe'.
615         Define P_tmpdir.
617         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
618         correctly.
620         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
621         Implement.
623 2003-10-13  Werner LEMBERG  <wl@gnu.org>
625         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
626         <chuq@chuq.com>.
628         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
629         directory.
631 2003-10-12  Werner LEMBERG  <wl@gnu.org>
633         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
634         src/roff/troff/input.cc (usage): Updated.
636         * NEWS, doc/groff.texinfo: Updated.
638 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
640         * src/libs/libgroff/searchpath.cpp
641         (search_path::open_file_cautious): New function which also handles
642         `-' as stdin and stdout depending on the access mode.
643         * src/include/searchpath.h (search_path): Updated.
645         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
646         * src/devices/grops/ps.h: Include `searchpath.h'.
647         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
648         Open resource file with `include_search_path.open_file_cautious'.
649         * src/devices/grops/grops.man: Document new `-I' switch.
651         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
652         (main), src/devices/grolj4/lj4.cpp (main),
653         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
655         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
656         Replaced with...
657         (include_search_path): New global variable.
658         (include_path_append): Removed.
659         (main): Use `include_search_path.command_line_dir' to handle `-I'.
660         (do_file): Simplify, using new
661         `include_search_path.open_file_cautious'.
663         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
664         parameter.
665         (main): Pass arguments to `-I' to both troff and devices.
666         Improve handling of `-V'.
667         * src/roff/groff/groff.man: Document changes to -I and -V.
669         * src/roff/troff/input.cpp (include_search_path): New global
670         variable.
671         (next_file, source, ps_bbox_request, transparent_file,
672         process_input_file): Use new
673         `include_search_path.open_file_cautious'.
674         (main) Handle `-I' switch.
675         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
676         Use new `include_search_path.open_file_cautious'.
677         * src/roff/troff/node.h: New extern symbol `include_search_path'.
678         * src/roff/troff/troff.man: Document new `-I' switch.
680 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
682         Support multiple calls of .Lb in LIBRARY section.
684         * tmac/doc-common (doc-in-library-section): New register.
685         (doc-section-library): New string.
686         (Sh): Set `doc-in-library-section'.
687         (Rd): Updated.
688         * tmac/doc-syms (Lb): Insert breaks before and after arguments
689         if in LIBRARY section.
690         * tmac/doc.tmac (doc-save-global-vars): Updated.
691         * NEWS, tmac/groff_mdoc.man: Updated.
693 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
695         * tmac/doc-common (doc-default-operating-system): New variable.
696         (Os): Use it.
698 2003-09-08  Werner LEMBERG  <wl@gnu.org>
700         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
702 2003-08-31  Werner LEMBERG  <wl@gnu.org>
704         * contrib/mom/Makefile.sub: Fix last change to make it really work.
705         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
706         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
707         $(DEVFILES) are not empty.
708         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
710 2003-08-26  Chuck Silvers  <chuq@chuq.com>
712         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
713         with parallel runs of `make'.
715 2003-08-23  Stephen Gildea  <gildea@stop.mail-abuse.org>
717         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
718         insert SORT_SEP.  With certain combinations of sort specifications,
719         refer sorted entries in the wrong order.  In particular, entries
720         with a missing field should be be sorted before all entries that
721         have that field, before refer looks to the next field.
723 2003-08-23  Werner LEMBERG  <wl@gnu.org>
725         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
726         g++ linker is used.  Reported by Mark J. Reed
727         <mark.reed@turner.com>.
729 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
731         Add key character `x' to tbl which makes tbl call a user-defined
732         macro on a table cell.
734         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
735         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
736         `set_modifier' after printing the compatibility request.
737         (set_modifier): Print call to `m->macro' if not empty.
738         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
739         `macro'.
740         (process_format): Implement cases `x' and `X'.
741         * src/preproc/tbl/tbl.man, NEWS: Updated.
743 2003-08-15  Werner LEMBERG  <wl@gnu.org>
745         * doc/groff.texinfo: Minor fixes.
747 2003-08-09  Werner LEMBERG  <wl@gnu.org>
749         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
751 2003-08-07  Werner LEMBERG  <wl@gnu.org>
753         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
754         argument list to nothing if there is no file to match.  Use `ls' as
755         a protection, similar to autoconf.
757         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
758         empty argument lists.
760         * doc/groff.texinfo: Improve documentation how vertical spacing
761         and line breaks interact.
762         Other minor fixes.
764         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
766 2003-08-03  Werner LEMBERG  <wl@gnu.org>
768         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
769         EPS (using eps2eps or similar programs to compute the bounding box).
771 2003-07-24  Werner LEMBERG  <wl@gnu.org>
773         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
774         * doc/texinfo.tex: Updated from texinfo 4.6.
775         * README.CVS: From now on we need texinfo 4.6.
777 2003-07-23  Werner LEMBERG  <wl@gnu.org>
779         Add requests `dei1' and `ami1' for completeness.
781         * src/roff/troff/input.cc (calling_mode): Remove
782         CALLING_DISABLE_COMP.
783         (comp_mode): New enumeration.
784         (do_define_string, define_string, define_nocomp_string,
785         append_string, append_nocomp_string): Updated.
786         (do_define_macro): Add third parameter.
787         (define_macro, define_nocomp_macro, define_indirect_macro,
788         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
789         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
790         functions.
791         (ignore): Updated.
792         (init_input_requests): Add `dei1' and `ami1'.
794         * tmac/trace.tmac: Handle de1 and am1.
795         (de): Improve tracing message.
796         (am): Add missing `do'.
797         (return): Use de1.
799         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
800         Document new requests.
802 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
804         Add option -G to .MPIMG to insert a gap between text and the image.
806         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
807         www-finish-left-ll): Updated.
808         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
809         (MPIMG): Make option -L and -R optional.
810         Implement option -G.
812 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
814         * src/devices/grohtml/post-html.cpp
815         (html_printer::do_file_components): Don't use `stdout' as lvalue
816         since it can be a macro.
818 2003-07-22  Werner LEMBERG  <wl@gnu.org>
820         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
821         the corresponding test in aclocal.m4.
823 2003-07-21  Werner LEMBERG  <wl@gnu.org>
825         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
826         names but RGB values directly.  Otherwise pnmtopng depends on
827         an external file `rgb.txt' which maps colour names to values.
829 2003-07-20  Werner LEMBERG  <wl@gnu.org>
831         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
832         * configure, src/include/config.hin: Regenerated.
834         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
836 2003-07-19  Werner LEMBERG  <wl@gnu.org>
838         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
840 2003-07-18  Werner LEMBERG  <wl@gnu.org>
842         * *.man: Switch to non-compatibility mode temporarily if GNU
843         syntax extensions are used in the particular man page.
845         * PROBLEMS: Add solutions for SGR problems.
847 2003-07-17  Werner LEMBERG  <wl@gnu.org>
849         Don't ignore grotty's command line options if \X'tty: sgr ...' is
850         used to change the drawing scheme.
852         * src/devives/grotty/tty.cpp (bold_flag_option,
853         underline_flag_option, italic_flag_option, reverse_flag_option,
854         bold_underline_mode_option): New global variables.
855         (update_options): New function.
856         (tty_printer::special): Call update_options.
857         (main): Don't set xxx_flag but xxx_flag_option, then call
858         update_options.
860 2003-07-14  Werner LEMBERG  <wl@gnu.org>
862         Make grotty emit proper Unicode box drawing characters for -Tutf8.
864         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
865         values.
866         (hline_char, vline_char): New global variables.
867         (tty_printer::tty_printer): Initialize them.
868         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
869         horizontal and vertical lines.
870         (crossings): New global array.
871         (tty_printer::end_page): Use it to determine the proper crossing
872         character for -Tutf8.
874 2003-07-12  Werner LEMBERG  <wl@gnu.org>
876         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
877         (HTMLDOCFILES): Revert to `pic.html'.
878         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
880 2003-07-11  Werner LEMBERG  <wl@gnu.org>
882         * doc/pic.ms: Improve documentation of absolute coordinates.
883         Document absolute positioning of pictures.
885         * NEWS: Add new pic capability.
887 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
889         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
890         Rewritten.
892 2003-07-07  Werner LEMBERG  <wl@gnu.org>
894         Implement support for dashed and dotted ellipses in pic.  Based on
895         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
897         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
898         common_output::dashed_ellipse, common_output::dotted_ellipse): New
899         functions.  Ellipse arcs are approximated with circle arcs.
900         * src/preproc/pic/common.h (common_output): Updated.
901         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
902         functions.
903         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
905         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
907 2003-07-06  Werner LEMBERG  <wl@gnu.org>
909         Make grotty work on platforms which have unsigned char as the
910         default for char.  Based on a patch by Thomas Klausner
911         <wiz@netbsd.org>.
913         * src/devices/grotty/tty.cpp (schar): New typedef.
914         Updated calls to declare_ptable and implement_ptable.
915         (glyph): Use schar for back_color_idx and fore_color_idx.
916         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
917         (tty_printer::tty_color, tty_printer::tty_printer,
918         tty_printer::color_to_idx, tty_printer::put_color): Updated.
920 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
922         * src/roff/nroff/nroff.sh: Add option -d for completeness.
923         * src/roff/nroff/nroff.man: Updated.
925 2003-07-05  Werner LEMBERG  <wl@gnu.org>
927         * NEWS, tmac/groff_www.man: Updated.
928         * doc/Makefile.sub: Updated.
930 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
932         Implement support for multiple HTML output files.
934         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
935         -j command line option.
937         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
938         global variables.
939         (file): New fields `new_output_file', `require_links',
940         `output_file_name'.
941         (file::file): Updated.
942         (files::set_file_name, files::set_links_required,
943         files::are_links_required, files::is_new_output_file,
944         files::file_name, files::next_file_name): New functions.
945         (header_desc): New fields `no_of_level_one_headings',
946         `header_filename'.
947         (header_desc::header_desc): Updated.
948         (header_desc::write_headings): Handle multiple files.
949         (html_printer::write_header): Save file name in which header occurs.
950         (html_printer::determine_header_level): Possibly split files on
951         level one headings.
952         (html_printer::do_links, html_printer::troff_tag): Updated.
953         (html_printer::insert_split_file, html_printer::do_job_name,
954         html_printer::emit_link, html_printer::write_navigation,
955         html_printer::do_file_components): New functions.
956         (html_printer::~html_printer): Handle multiple files.
957         (main): Handle command line option `-j'.
959         * src/devices/grohtml/grohtml.man: Updated.
961         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
962         which splits file.
964         * tmac/www.tmac (JOBNAME): New macro.
965         * tmac/s.tmac (SH-NO-TAG): New macro.
966         (@SH): Call SH-NO-TAG.
967         (@NH): Updated.
969 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
971         * tmac/groff_mdoc.man: Improve documentation of punctuation
972         characters.
974 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
976         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
978 2003-07-03  Werner LEMBERG  <wl@gnu.org>
980         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
982 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
984         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
985         after `/*' and `*/'.
986         Fix spacing.
987         (Fn, Fo): Reduce indentation in synopsis.
989         * tmac/doc-common (doc-check-depth): New macro.
990         (doc-end-macro, Sh, Ss): Use it.
991         (Cd): Fix behaviour in synopsis.
992         (In): Make it parsed and callable.
993         If not in the synopsis, represent the C header file enclosed in
994         angle brackets.
995         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
996         Use minus, not hyphen.
998         * tmc/groff_mdoc.man: Updated.
1000 2003-07-01  Werner LEMBERG  <wl@gnu.org>
1002         Integrated grap2graph, contributed by Eric S. Raymond.
1004         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
1005         New files.
1006         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
1007         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
1009 2003-07-01  Colin Watson  <cjwatson@debian.org>
1011         * src/xditview/*.c: Add prototypes, fix return types, add includes.
1012         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
1014 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
1016         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
1018 2003-06-31  Werner LEMBERG  <wl@gnu.org>
1020         * doc/Makefile.sub (CLEANADD): Remove all files created by
1021         running `make groff.{pdf,dvi}'.
1023         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
1024         src/xditview also.
1026 2003-06-30  Werner LEMBERG  <wl@gnu.org>
1028         * Makefile.in (SHELL): Define as @SHELL@.
1029         (mkinstalldirs): Use $(SHELL).
1030         (MDEFINES): Add $(SHELL).
1031         * Makefile.comm (SHELL): Removed.
1033 2003-06-29  Werner LEMBERG  <wl@gnu.org>
1035         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
1036         The X11 documentation files use them.
1037         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
1039 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
1041         * tmac/e.tmac (@C): Handle .ad also.
1043 2003-06-12  Werner LEMBERG  <wl@gnu.org>
1045         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
1047         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
1048         Assign `n' even here.  It is possible to construct a node
1049         immediately following an escape character:
1051           .di xx
1052           \?\\\?a
1053           .br
1054           .di
1055           .xx
1057 2003-06-10  Werner LEMBERG  <wl@gnu.org>
1059         * README.WIN32: Removed.
1060         * MANIFEST: Updated.
1062 2003-06-07  Werner LEMBERG  <wl@gnu.org>
1064         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
1066 2003-06-05  Werner LEMBERG  <wl@gnu.org>
1068         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
1069         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
1071 2003-06-03  Werner LEMBERG  <wl@gnu.org>
1073         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
1074         is done by the calling function.
1076 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
1078         * tmac/X.tmac: Fix definition of `em'.
1080 2003-05-22  Werner LEMBERG  <wl@gnu.org>
1082         * src/roff/troff/input.cc (return_macro_request): Fix detection of
1083         argument.
1085 2003-05-18  Werner LEMBERG  <wl@gnu.org>
1087         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
1088         to make items work which consist only of a tag.
1090 2003-05-17  Werner LEMBERG  <wl@gnu.org>
1092         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
1093         aren't stretched in a tag (this can fail with unformatted boxes).
1094         Instead, insert a break and go back one line.
1096 2003-05-16  Werner LEMBERG  <wl@gnu.org>
1098         * src/roff/troff/input.cc (return_macro_request): If called with
1099         argument pop macro twice.  We need this to trace `return'.
1101         * tmac/trace.tmac: Handle `return'.
1102         Fix typos.
1104         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1105         Document.
1107 2003-05-15  Larry Kollar  <kollar@alltel.net>
1109         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
1110         registers `FPS', `FVS', and `FPD'.
1112 2003-05-15  Werner LEMBERG  <wl@gnu.org>
1114         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
1115         correctly.
1117 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
1119         * tmac/groff_mdoc.man: Slight improvements.
1121 2003-05-03  Werner LEMBERG  <wl@gnu.org>
1123         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
1124         `doc-header-space' after header line if register `cR' is set.
1126 2003-05-02  Werner LEMBERG  <wl@gnu.org>
1128         * TODO: Updated.
1130 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
1132         * tmac/doc-common (Nd): Use \[em].
1134 2003-05-01  Werner LEMBERG  <wl@gnu.org>
1136         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
1137         doc-footer-space): Initialize to 0.5i.
1138         (doc-setup-page-layout): Don't set doc-header-space and
1139         doc-footer-space.
1141 2003-04-30  Werner LEMBERG  <wl@gnu.org>
1143         * REVISION: Set to 1.
1145         * doc/pic.ms: Document possible problems with `figname'.
1147 2003-04-29  Werner LEMBERG  <wl@gnu.org>
1149 Version 1.19 released
1150 =====================
1152         * VERSION: Set to 1.19.
1153         * REVISION: Set to 0.
1154         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
1156         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1157         Define charset as `US-ASCII' in html output.
1159         * tmac/www.tmac (ULE): Add missing scaling indicator.
1161         * win32-diffs: Removed.
1163 2003-04-28  Werner LEMBERG  <wl@gnu.org>
1165         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
1166         `.da' and `.boxa'.
1167         Document how to insert discardable whitespace with `.ss'.
1169 2003-04-27  Werner LEMBERG  <wl@gnu.org>
1171         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
1172         work with plain TeX also.
1174         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
1176 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
1178         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1179         Use a loose DTD.
1181 2003-04-24  Werner LEMBERG  <wl@gnu.org>
1183         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
1184         vbox with positive height and zero depth if in TeX mode.
1186         * NEWS: Document glyph name changes for grodvi and grolj4.
1188 2003-04-23  Werner LEMBERG  <wl@gnu.org>
1190         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
1191         * doc/pic.ms: Fixed.
1193 2003-04-21  Werner LEMBERG  <wl@gnu.org>
1195         HP-UX 10.20 has `snprintf' but it isn't declared.
1197         * configure.ac: Add declaration test for snprintf.
1198         * configure: Regenerated.
1199         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
1200         * src/include/config.hin: Regenerated.
1202 2003-04-19  Werner LEMBERG  <wl@gnu.org>
1204         Add keyword `figname' to pic, specifying the name of the picture
1205         box in TeX mode.  Based on a patch from William J Poser
1206         <wjposer@unagi.cis.upenn.edu>.
1208         * src/preproc/pic/pic.y: New token `FIGNAME'.
1209         (macro_name): New rule of type <str>.
1210         (placeless_element): Handle `FIGNAME'.
1211         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
1212         * src/preproc/pic/main.cpp (graphname): New global variable.
1213         (do_picture): Initialize `graphname'.
1214         * src/preproc/pic/pic.h: Updated.
1215         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
1216         `graphname'.
1217         Simplify TeX code.
1218         (tex_output::text): Beautify output.
1219         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
1220         `shaded' and `outlined' unconditionally.
1221         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
1222         Minor improvements.
1224         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
1225         greater is necessary.
1227 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
1229         Add option -r to soelim to avoid emission of `.lf' lines.
1230         Add option -t to produces TeX comment lines instead of `.lf' lines.
1232         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
1233         and `tex_flag'.
1234         (usage): Updated.
1235         (main): Handle `-r' and `-t'.
1236         (set_location): Handle `raw_flag' and `tex_flag'.
1237         * src/preproc/soelim/soelim.man, NEWS: Updated.
1239 2003-04-17  Werner LEMBERG  <wl@gnu.org>
1241         * tmac/hyphenex.sh: Replaced with...
1242         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
1243         nightmares.
1245         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
1246         if --quiet is used for the configure script.
1247         * configure: Regenerated.
1249 2003-04-16  Werner LEMBERG  <wl@gnu.org>
1251         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
1252         Add `const' to second argument.
1253         (html_printer::add_table_end): Add `const' to argument.
1254         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
1255         `const' to arguments.
1256         * src/devices/grohtml/html-text.h: Updated.
1258         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
1259         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
1260         argument.
1262         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
1263         cast for integer constant.
1265         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
1266         (writeNbytes): Add `const' to first argument.
1267         (writeString): Add `const' to argument.
1268         (char_buffer::can_see): Add `const' to third argument.
1269         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
1270         `const' to argument.
1271         * src/preproc/html/pushback.h: Updated.
1273         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
1274         (include_path_append): Add `const' to argument.
1275         (do_file): Updated.
1277         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
1278         for `value'.
1279         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
1280         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
1281         for `value'.
1282         (unicode_decompose_init::unicode_decompose_init): Updated.
1283         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
1284         for `value'.
1285         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
1286         * src/roff/troff/input.cc (process_startup_file): Add `const' to
1287         argument.
1289         * tmac/hyphenex.sh: Make script more portable by using a here
1290         document.
1292 2003-04-15  Werner LEMBERG  <wl@gnu.org>
1294         Renamed all `*.cc' files to `*.cpp'.
1295         Updated all configuration files, makefiles, and documentation.
1297 2003-04-14  Werner LEMBERG  <wl@gnu.org>
1299         * tmac/hyphenex.sh: Slight improvements.
1301 2003-04-13  Werner LEMBERG  <wl@gnu.org>
1303         * font/devascii/R.proto, font/devcp1037/R.proto,
1304         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
1305         character slots with unnamed glyphs.
1307         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
1308         (an-first): New global variable.
1309         (an-header): Emit vertical space between multiple man pages.
1311 2003-04-11  Werner LEMBERG  <wl@gnu.org>
1313         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
1314         values.
1316 2003-04-10  Werner LEMBERG  <wl@gnu.org>
1318         * PROBLEMS: Revised.
1320 2003-04-10  Bernd Warken  <bwarken@mayn.de>
1322         * doc/webpage.ms: Improved.
1324 2003-04-09  Werner LEMBERG  <wl@gnu.org>
1326         Add register \n[.height] which returns the value of \H.
1327         Add register \n[.slant] which returns the value of \S.
1329         * src/roff/troff/env.cc (init_env_requests): Implement.
1330         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1331         Document.
1333 2003-04-08  Werner LEMBERG  <wl@gnu.org>
1335         * tmac/html.tmac: Move some of the data into html-end.tmac.
1336         Remove most of the character translations for eqn since html fonts
1337         now cover those characters.
1338         Load www.tmac.
1339         * tmac/html-end.tmac: New file.
1340         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
1341         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
1342         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
1344 2003-04-07  Werner LEMBERG  <wl@gnu.org>
1346         * man/groff_out.man: Document negative values of `N' if -Thtml is
1347         used.
1349 2003-04-06  Werner LEMBERG  <wl@gnu.org>
1351         * Makefile.comm (depend.temp): Check location of YTABC.
1353 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1355         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
1356         binary path.
1357         (groff_bin_path): Rename to GROFF_BIN_PATH.
1358         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1359         * doc/Makefile.in (TROFFBIN): New variable for troff
1360         binary path.
1361         (GROFFBIN): New variable for groff binary path.
1362         (groff_bin_path): Rename to GROFF_BIN_PATH.
1363         (TROFF): Use TROFFBIN.
1364         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1365         * doc/Makefile.sub (GROFFBIN): New variable for groff
1366         binary path.
1367         (groff_bin_path): Rename to GROFF_BIN_PATH.
1368         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1370         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
1371         with INSTALL_SCRIPT.
1372         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
1373         * Makefile.dev (all): Depend on DEVSCRIPTS.
1374         (install_dev): Likewise.
1375         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
1376         scripts.
1377         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
1378         (DEVGENSCRIPTS): New variable to hold generated scripts.
1380 2003-04-05  Werner LEMBERG  <wl@gnu.org>
1382         * src/libs/libdriver/input.cc (IntArray::operator[],
1383         IntArray::get_data): Remove meaningless `const' in return value.
1385         * README.CVS: New file.
1387 2003-04-04  Werner LEMBERG  <wl@gnu.org>
1389         Check for stdint.h in C++, not in C.
1391         * aclocal.m4 (GROFF_STDINT_H): New function,
1392         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
1393         AC_CHECK_HEADERS.
1394         * configure, src/include/config.hin: Regenerated.
1395         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
1398         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
1399         with a negative value, representing the width of the unbreakable
1400         space (only for -Thtml).  grohtml then converts this back to
1401         &nbsp; and uses the value of N as its width.
1403         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1404         unbreakable_space_node::tprint): Emit `N-<width>'.
1405         * src/include/printer.h (printer::set_numbered_char): Make it
1406         virtual.
1407         Make members `font_table' and `nfonts' protected instead of private.
1408         * src/devices/grohtml/post-html.cc
1409         (html_printer::set_numbered_char): New member function.
1412         * src/libs/libgroff/maxfilename.cc:
1413         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
1415         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
1416         emit word marker.
1418 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
1420         * man/roff.man: Small fixes.
1422 2003-04-03  Werner LEMBERG  <wl@gnu.org>
1424         Make groff independent from locale's numeric settings.
1426         * configure.ac: Check for `setlocale'.
1427         * configure, src/include/config.hin: Regenerated.
1429         * src/include/lib.h: Handle HAVE_SETLOCALE.
1431         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
1432         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
1433         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
1436         * doc/groff.texinfo: Change dir category to `Typesetting'.
1437         (Man font macros): Mention that there is no space between arguments
1438         of .BI and friends.
1440         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
1441         (*printer::change_color, *printer::change_fill_color): Add missing
1442         `const'.
1444 2003-04-02  Werner LEMBERG  <wl@gnu.org>
1446         * src/devices/grohtml/html-table.cc (html_table::emit_col,
1447         html_table::is_gap): Compute table widths after converting border
1448         positions to avoid rounding errors.
1450 2003-04-01  Werner LEMBERG  <wl@gnu.org>
1452         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
1453         `space_emitted' properly.
1455 2003-03-31  Werner LEMBERG  <wl@gnu.org>
1457         * src/devices/grohtml/html-table.cc: Fix column width calculation.
1458         (html_table::set_linelength): Don't add 1.
1459         (html_table::add_indent): Don't subtract 1.
1461         * tmac/html.tmac: Set default page offset to zero.
1463 2003-03-30  Werner LEMBERG  <wl@gnu.org>
1465         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
1467         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1468         unbreakable_space_node::tprint): New functions.
1469         (troff_output_file): Make space_char_hmotion_mode::tprint and
1470         unbreakable_space_node::tprint to friends.
1471         * src/roff/troff/node.h: Updated.
1473         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
1474         in the HTML standard).
1476 2003-03-29  Werner LEMBERG  <wl@gnu.org>
1478         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
1479         Otherwise, the following code
1481           .di xxx
1482           .ps 10
1483           a
1484           .br
1485           .di
1486           x\*[xxx]
1488         produces `x a' instead of `xa'.  This is a temporary fix, disabling
1489         font changes in diversions for -Thtml.
1491         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
1492         `HTML-TAG'.
1493         (an-do-tag-html): Merge with ...
1494         (an-do-tag): This macro.
1495         Change code slightly to circumvent grohtml bug.
1496         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
1498         * src/devices/grohtml/html-table.cc (html_table::emit_col,
1499         html_table::is_gap): Round `width' properly.
1501         * tmac/html.tmac: Provide some default layout parameters for
1502         grohtml.
1504         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
1505         command.
1507 2003-03-28  Werner LEMBERG  <wl@gnu.org>
1509         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
1511 2003-03-27  Werner LEMBERG  <wl@gnu.org>
1513         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
1514         defined.
1516 2003-03-20  Werner LEMBERG  <wl@gnu.org>
1518         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
1519         `.vs'.
1520         * doc/groff.texinfo: Updated.
1522 2003-03-19  Werner LEMBERG  <wl@gnu.org>
1524         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
1525         TOKEN_END_TRAP>: Reset `have_input'.
1527 2003-03-18  Werner LEMBERG  <wl@gnu.org>
1529         * src/roff/groff/groff.man: Mention groff_trace man page.
1531 2003-03-16  Werner LEMBERG  <wl@gnu.org>
1533         * Makefile.in (LIBEXT): New variable to indicate the file extension
1534         of library files.  Computed heuristically from $(OBJEXT).
1535         (MDEFINES): Add $(LIBEXT).
1536         * Makefile.lib, Makefile.comm: Use it.
1538         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
1539         overlong lines into smaller chunks.
1540         (get_binary): New function.
1541         (main): Use them.
1542         * src/utils/pfbtops/pfbtops.man: Updated.
1544 2003-03-15  Colin Watson  <cjwatson@debian.org>
1546         * src/roff/groff/groff.man: Minor syntax fix.
1548 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
1550         * src/devices/grops/ps.cc (ps_printer::media_set,
1551         ps_printer::~ps_printer): Handle zero paper width and length.
1553 2003-03-13  Werner LEMBERG  <wl@gnu.org>
1555         Add options -p and -l to grodvi.
1557         * src/devices/grodvi/dvi.cc: Include paper.h.
1558         (landscape_flag, user_paper_length, user_paper_width): New global
1559         variables.
1560         (dvi_printer::begin_page): Emit `papersize' special.
1561         Set color after initialization of `cur_h' and `cur_v'.
1562         (main): Add options `-l' and `-p'.
1563         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
1564         * src/devices/grodvi/grodvi.man, NEWS: Updated.
1566         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
1568 2003-03-12  Werner LEMBERG  <wl@gnu.org>
1570         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
1571         * man/groff_tmac.man: This man page.
1572         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
1573         deprecated.
1575         * tmac/X.tmac: Don't load pspic.tmac.
1577 2003-03-11  Werner LEMBERG  <wl@gnu.org>
1579         Make variable `pr' local to libdriver/input.cc.  Based on a patch
1580         by Bernd Warken <bwarken@mayn.de>.
1582         * src/include/driver.h (pr): Removed.
1584         * src/libs/libdriver/input.cc (pr): New global variable.
1585         (do_file): Deallocate `pr'.
1586         * src/libs/libdriver/printer.cc (pr): Removed.
1588         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
1589         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1590         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1591         (main): Don't delete `pr'.
1593 2003-03-10  Werner LEMBERG  <wl@gnu.org>
1595         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
1596         * tmac/papersize.tmac: New file.
1597         * tmac/troffrc: Include `papersize.tmac'.
1598         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
1599         * tmac/an-old.tmac: Set LT to LL by default.
1601         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
1602         doc/groff.texinfo: Updated.
1604         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
1605         bug which caused all odd iso papers to have wrong dimensions.
1607         * src/devices/grops/ps.cc (user_paper_width): New global variable.
1608         (main) <'p'>: Set `user_paper_width' also.
1609         (ps_printer::media_width, ps_printer::media_height): Use values
1610         given with option `-p'.
1612 2003-03-09  Werner LEMBERG  <wl@gnu.org>
1614         * src/include/nonposix.h: Provide default for SET_BINARY.
1616         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
1617         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
1618         unconditionally.
1620         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
1621         (main): Treat \r\n as \n.
1623 2003-03-08  Werner LEMBERG  <wl@gnu.org>
1625         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
1626         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
1628 2003-03-07  Werner LEMBERG  <wl@gnu.org>
1630         Added support to access more than 256 glyphs in Type 1 fonts.
1632         * src/devices/grops/ps.cc (subencoding): New structure.
1633         (style): Add `sub' field.
1634         Updated all users.
1635         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
1636         Add `set_subencoding', `get_subfont' and `encode_subfont' member
1637         functions.
1638         Updated all users.
1639         (ps_printer::set_char): Use `set_subencoding'.
1640         (make_subencoding_name): New function.
1641         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
1642         (ps_printer::~ps_printer): Emit subencoding definitions.
1644         * src/devices/grops/psrm.cc (valid_input_table): New array to
1645         properly support EBCDIC.
1646         (white_space): Add `\f'.
1647         (ps_get_line): Change first argument to be of type `string &'.
1648         Updated all callers.
1649         This allows to get lines of arbitrary length.
1650         Use `valid_input_table'.
1651         Remove warning about non-conforming PS line length.  This seems
1652         not to be of great importance -- for example, dvips don't emit
1653         a warning either.
1654         (PS_LINE_MAX): Removed.
1655         (matches_comment): Change first argument to be of type `string &'.
1657         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
1659         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
1660         %AGL_to_unicode, %default_ligatures): New hash tables.
1661         Read all map entries.
1662         Add unencoded characters.
1663         Check for default ligatures if there are no `L' entries.
1664         Print all kern entries.
1665         Print all characters in charset.
1666         * src/utils/afmtodit/afmtodit.man: Updated.
1668         * font/devps/*: Regerated all fonts.
1670         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
1671         of characters, just use `.trin'.  Otherwise the mapping depends
1672         on the font encoding.
1673         * tmac/ps.tmac: Add `fi' and `fl'.
1674         Improve `Fi' and `Fl'.
1675         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
1676         * tmac/Xps.tmac: Fix `em'.
1678         * NEWS: Updated.
1680 2003-03-04  Werner LEMBERG  <wl@gnu.org>
1682         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
1683         `have_input'.
1685 2003-03-03  Werner LEMBERG  <wl@gnu.org>
1687         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
1689         * font/devps/generate/textmap: Remove entry `similarequal'.
1690         * font/devps/symbolmap: Updated.
1692 2003-03-02  Werner LEMBERG  <wl@gnu.org>
1694         * src/libs/libgroff/font.cc (font::load): Fix error message for
1695         bad character type.
1697         * src/devices/grops/grops.man: Improve documentation of the -b
1698         flag.
1700         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
1701         `ascii' and `cp1047'.
1703 2003-03-01  Werner LEMBERG  <wl@gnu.org>
1705         Document composite glyphs and the `composite' request.
1707         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
1709 2003-02-28  Werner LEMBERG  <wl@gnu.org>
1711         * font/devdvi/generate/ec.map: Add some more Unicode entities.
1712         * font/devdvi/*EC: Updated.
1714         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
1715         * tmac/latin1 (latin1-tr): Undo any previous mapping.
1716         * tmac/troffrc: Load `composite.tmac'.
1717         * tmac/Makefile.sub (NORMALFILES): Updated.
1719         * doc/groff.texinfo (Input Encodings): New section.
1720         * NEWS: Updated.
1722 2003-02-27  Werner LEMBERG  <wl@gnu.org>
1724         * doc/texinfo.tex: New version 2003-02-11.06.
1726         * tmac/doc-common (Dt): Don't emit warning for unknown section.
1727         * tmac/groff_mdoc.man: Fix description of `Dt'.
1729 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
1731         * font/devps/prologue.ps: Fix for included Postscript that does
1732         a setpagedevice -- which is now safely ignored.
1734         * NEWS: Updated.
1736         * src/devices/grops/ps.cc: Now sets the page size in the generated
1737         document.  This is done in two ways: Via a %%-comment for gv and
1738         the like, and via a PageSize and setpagedevice for programs that
1739         understands Postscript proper, like ps2pdf.
1741         * src/devices/grops/ps.h: New broken-flag to avoid page size
1742         definition, if required.
1744         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
1746         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
1747         Not really necessary due to the fix in prologue.ps, but cleaner:
1748         Such information does not belong in an .eps file.
1750         * doc/Makefile.sub: See doc/Makefile.in.
1752 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
1754         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
1755         instead of P1 since the latter is broken in some versions of netpbm.
1756         * configure: Updated.
1758 2003-02-26  Larry Kollar  <kollar@alltel.net>
1760         Make man pages more customizable.
1762         * tmac/an-old.tmac (FT): New register holding footer distance from
1763         bottom.
1764         (HF): New string holding the default heading font.
1765         (TH): Handle registers `IN' and `SN' set on the command line.
1766         Use `FT'.
1767         (PT, BT): New strings to customize header and footer lines.
1768         (an-header, an-footer): Use them.
1769         (SH, SS): Use `HF'.
1770         * tmac/groff_man.man: Document changes.
1772         * doc/groff.texinfo: Document man changes.
1773         Document Ultrix extensions of man.
1775 2003-02-26  Werner LEMBERG  <wl@gnu.org>
1777         * src/roff/troff/input.cc (do_width, do_if_request): Reset
1778         `have_input' after changing back to old environment.
1780         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
1781         function up to be defined before first call.  This is necessary to
1782         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
1784         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
1785         the default font directory also.  Based on a patch from James
1786         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
1787         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
1788         * src/utils/afmtodit/afmtodit.man: Document it.
1790         * NEWS: Updated.
1792         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
1794 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
1796         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
1797         (GROFF_PNMTOPS_NOSETPAGE): New macro.
1798         * configure.ac: Use it.
1799         * configure: Regenerated.
1800         * Makefile.in: Updated.
1802         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
1803         (CLEANADD): Add www.tmac-sed.
1804         (pnmtops_nosetpage): Define default.
1805         (install_data): Handle www.tmac-sed and substitute
1806         @PNMTOPS_NOSETPAGE@.
1807         (stamp-sed): Add www.tmac.
1808         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
1809         It now breaks URLs at suitable places.
1810         (www:substring_ok): New register set by...
1811         (www:@test_substring): New macro.
1812         (www:error): New alias to www-error.
1813         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
1814         New macros.
1815         (URL): Use www:url_breaks.
1816         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
1817         (CDS, CDE): New macros.
1819 2003-02-25  Werner LEMBERG  <wl@gnu.org>
1821         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
1822         buffer overflow.
1824 2003-02-24  Werner LEMBERG  <wl@gnu.org>
1826         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
1827         can be negative also.
1829         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
1830         `int16'.
1831         (read_char_table): Avoid negative ascenders.
1832         (output_charset): Add cast.
1833         * font/devlj4/*: Regenerated.
1835         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
1836         possible.
1838         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
1839         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
1840         of `<>'.
1841         * font/devdvi/*: Regenerated.
1843         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
1844         normal width, while the previously used characters (U+2329 and
1845         U+232A) are classified as wide due to canonical equivalence with the
1846         CJK punctuation characters U+3008 and U+3009.
1848         * font/devutf8/R.proto: Updated.
1849         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
1851         * man/groff_char.man: Simplify handling of table traps by
1852         introducing `start block' and `end block' macros.
1853         (Ns, Ne, 2s, 2e, Ds, De): New macros.
1854         (DL): Make it work with Unix troff also.
1855         Fix code values of `la' and `ra'.
1857         * tmac/dvi.tmac: Define `<>' for CW and CWI.
1859 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
1861         * src/devices/grohtml/post-html.cc (element_list::~element_list):
1862         New destructor, fixing a major memory leak.
1864 2003-02-22  Werner LEMBERG  <wl@gnu.org>
1866         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
1867         to be in conformance with Unicode 3.0 and newer.
1869         * font/devlj4/generate/text.map: Add `Eu'.
1870         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
1871         * font/devlj4/S: Regenerated.
1873         * man/groff_char.man: Completely rewritten.
1875         * doc/groff.texinfo: Fix description of request and macro arguments.
1877 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
1879         Valgrind fixes.
1881         * src/devices/grohtml/html-table.cc (html_table::~html_table):
1882         Deallocate `columns' list.
1883         * src/devices/grohtml/post-html.cc (char_block::~char_block):
1884         New destructor.
1885         (text_glob::text_glob_html, text_glob::text_glob_special,
1886         text_glob::text_glob_line, text_glob::text_glob_auto_image,
1887         text_glob::text_glob_tag): Avoid memory leaks.
1888         (text_glob::remember_table): Free memory before reassigning.
1890 2003-02-19  Werner LEMBERG  <wl@gnu.org>
1892         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
1893         alias `hbar'), the Planck constant over two pi.
1895         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
1896         `+e' for position 34.
1897         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
1898         `u2662' and `u2661'.
1899         * font/devdvi/{MI,S}: Regenerated.
1900         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
1901         * font/devlbp/*: Add `hbar' alias.
1902         * font/devlj4/generate/special.map: Ditto.
1903         * font/devlj4/S: Regenerated.
1904         * font/devps/generate/symbolchars: Add `+e'.
1905         * font/devps/generate/textmap: Fix PS name for `-h'.
1906         Add `hbar' alias.
1907         * font/devps/symbolmap: Regenerated.
1909         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
1911         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
1912         `-h', `hbar'.
1913         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
1914         `-h'.
1916         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
1917         `hbar'.
1918         * tmac/tty-char.tmac: Add `+e'.
1920 2003-02-17  Werner LEMBERG  <wl@gnu.org>
1922         Another round trying to really fix problems with `have_input'.
1924         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
1925         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
1927         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
1928         handling if both foreground and background colors are default.
1930         * doc/groff.texinfo (Debugging): Document .lf differences to
1931         AT&T troff.
1933 2003-02-16  Werner LEMBERG  <wl@gnu.org>
1935         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
1936         null-bytes in created string.
1938         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
1939         alias_macro, lookup_request): Improve warning messages.
1941         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
1942         not `strdup'.
1943         Free `last_image_filename'.
1945         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
1946         `buffer'.
1947         (imageList::createPage, imageList::createImage): Use `free', not
1948         `a_delete'.
1949         (imageItem::~imageItem): Free `imageName'.
1950         (addRegDef): Use `strsave', not `strdup'.
1951         (get_resolution): Free `pathp'.
1953 2003-02-15  Werner LEMBERG  <wl@gnu.org>
1955         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
1956         to `dummy'.
1958 2003-02-14  Werner LEMBERG  <wl@gnu.org>
1960         Add memory management for colors to deallocate unnamed colors
1961         properly.
1963         * src/include/color.h (color): New members `free_list' and `next'.
1964         New member functions `new' and `delete'.
1965         Add destructor.
1966         * src/libs/libgroff/color.cc: Implement it.
1968         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
1969         for array size of new operator.
1971         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
1972         redundant comparison.
1974         * src/roff/troff/input.cc (word_space_node::reread,
1975         hmotion_node::reread): Avoid warning about unused parameter.
1976         (reset_output_registers): Remove redundant parameter.
1977         (define_color): Undo change 2003-02-12.
1979         * src/roff/troff/reg.h: Updated.
1981         * src/roff/troff/node.cc (troff_output_file::really_print_line,
1982         output_file::put_filename, real_output_file::really_put_filename,
1983         ascii_output_file::really_print_line,
1984         break_char_node::get_hyphen_list): Avoid warning about unused
1985         parameter.
1986         (suppress_node::tprint): Updated.
1988         * configure.ac: Check declaration for rand() and srand().
1989         * configure: Regenerated.
1991         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
1992         conditionally.
1993         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
1994         and srand().
1996         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
1997         to avoid compiler warnings.
1999         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
2000         unused.
2002         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
2003         is unused.
2004         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
2005         (unused) parameter.
2006         Updated all callers.
2008         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
2009         is unused.
2010         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
2011         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
2013         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
2014         Parameter is unused.
2015         (html_printer::add_table_end): Define parameter conditionally.
2016         * src/devices/grohtml/output.cc (simple_output::special): Parameter
2017         is unused.
2019         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
2020         (lbp_printer::set_char): Last parameter is unused.
2022         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
2024 2003-02-13  Werner LEMBERG  <wl@gnu.org>
2026         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
2027         Make \D'f ...' move horizontally again for backwards compatibility.
2028         Replace it with \D'Fg ...' where appropriate to avoid dependency
2029         on horizontal resolution.
2031         * src/roff/troff/input.cc (do_get_long_name): New function.
2032         (get_long_name): Call it.
2034         (read_draw_node): Handle `\D'Fx ...' by calling ...
2035         (read_color_draw_node): New function.
2037         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
2038         `end'.
2039         Pass it to `do_get_long_name' which is used instead of
2040         `get_long_name'.
2042         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
2043         unnecessary value guard.
2044         (parse_D_command) <'f'>: Add horizontal shift.
2046         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
2047         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2048         (FILL_MAX): Removed.
2050         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2051         Updated.
2053 2003-02-12  Werner LEMBERG  <wl@gnu.org>
2055         * src/roff/troff/input.cc (do_name_test, do_expr_test,
2056         do_zero_width): Push `\n' if closing delimiter is missing.
2058         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
2059         <'F'>: Make \F non-transparent at the beginning of line.
2060         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
2061         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
2062         `have_input'.
2064         (define_color): Free color in case of reassignment.
2066         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
2067         @DefescListEnd): Use @Var, not @var.
2068         Fix all calls.
2070         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
2072         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
2073         `shaded' and `outlined' arrays.
2074         (object_spec::object_spec): Initialize `shaded' and `outlined'.
2075         (graphic_object::set_fill_color, graphic_object::set_outline_color):
2076         Use strsave.
2077         (closed_object::set_fill_color): Ditto.
2078         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
2079         instead of strdup.
2080         (troff_output::reset_color): Use a_delete instead of free.
2081         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
2083 2003-02-11  Werner LEMBERG  <wl@gnu.org>
2085         * doc/groff.texinfo: Improve documentation of `ad'.
2086         Document that \D'f...' is dependent on the horizontal resolution.
2087         * man/groff_diff.man: Improve documentation of \D'f...'.
2089         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
2090         compensating \h'...' for \D'f ...' since the latter no longer moves
2091         current position.
2092         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2094 2003-02-10  Werner LEMBERG  <wl@gnu.org>
2096         Improve error messages for `x F' (and `F') commands.
2098         * src/include/error.h: Add declaration for
2099         `current_source_filename'.
2100         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
2101         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
2102         parameter for source file string.
2103         Updated all callers.
2105         * src/libs/libdriver/input.cc: Add `current_source_filename'.
2106         (remember_source_filename): New function.
2107         (parse_x_command <'F'>, do_file <'F'>): Use it.
2109 2003-02-09  Werner LEMBERG  <wl@gnu.org>
2111         Make grotty not emit warnings about unknown colors more than
2112         necessary.
2114         * src/devices/grotty/tty.cc: Include `ptable.h'.
2115         (TTY_MAX_COLORS): Removed.
2116         (DEFAULT_COLOR_IDX): Defined to -1.
2117         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
2118         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
2119         Change `tty_colors' to be a ptable.
2120         First arg of `put_color' is now `char'.
2121         New functions `make_rgb_string' and `tty_color'.
2122         (tty_printer::tty_printer): Use `tty_color'.
2123         (tty_printer::color_to_idx): Return value is now `char'.
2124         Use `tty_color'.
2126         * src/include/color.h (color): Add `print_color' member function.
2127         * src/libs/libgroff/color.cc (color::print_color): Implement it.
2129 2003-02-08  Werner LEMBERG  <wl@gnu.org>
2131         Valgrind fixes.
2133         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
2134         encoding file.
2136         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
2137         assume that value has been allocated with `new[]', thus use
2138         `a_delete' for deallocation.
2140         * src/libs/libdriver/input.cc (get_integer_arg,
2141         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
2142         where appropriate.
2144         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
2145         * src/libs/libgroff/nametoindex.cc
2146         (character_indexer::named_char_index): Use `new <type>[1]'.
2148         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
2149         <type>[1]'.
2150         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
2151         (split_text): Use `a_delete'.
2153         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
2154         <type>[1]'.
2156         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
2157         harmless memory leak.
2158         (hyphen_trie::read_patterns_file): Initialize `buf'.
2159         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
2160         Initialize `current_fill_color'and `current_glyph_color'.
2161         * src/roff/troff/glyphuni.cc
2162         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
2163         * src/roff/troff/uniuni.cc
2164         (unicode_decompose_init::unicode_decompose_init): Ditto.
2165         * src/roff/troff/uniglyph.cc
2166         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
2168 2003-01-26  Werner LEMBERG  <wl@gnu.org>
2170         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
2171         `access' before calling `unlink'.
2172         (do_file): Handle __EMX__.
2174         * src/include/nonposix.h: Handle __EMX__.
2176         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
2177         (fontpath,tmacpath): Use it.
2178         (MDEFINES): Add it.
2179         Sorted alphabetically.
2181         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
2182         @SEP@.
2183         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
2184         @SEP@.
2186 2003-01-27  Werner LEMBERG  <wl@gnu.org>
2188         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
2189         New files, copied from gnulib.
2190         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
2191         * configure.ac: Updated.
2192         * configure: Regenerated.
2194         * src/include/config.hin: Regenerated.
2195         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
2196         Don't define `strcasecmp' as `strcmp'.
2197         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
2198         Dont define `strncasecmp' as `strncmp'.
2200         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
2201         Removed.
2203 2003-01-26  Werner LEMBERG  <wl@gnu.org>
2205         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
2206         s/unline/unlink/.
2208 2003-01-25  Werner LEMBERG  <wl@gnu.org>
2210         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
2212 2003-01-24  Werner LEMBERG  <wl@gnu.org>
2214         Add US-english hyphenation exceptions (converted from Barbara
2215         Beeton's hyphenation exception log reports which appear irregularly
2216         in TUGBoat).
2218         * tmac/hyphen.us: Updated to latest version.
2219         * tmac/README: Updated.
2220         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
2221         * tmac/troffrc: Load `hyphenex.us'.
2222         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
2223         * doc/groff.texinfo: Updated.
2225 2003-01-23  Werner LEMBERG  <wl@gnu.org>
2227         Improve hyphenation slightly.  This is a first step in redesigning
2228         the hyphenation algorithm to make it more flexible (e.g. allowing
2229         kerns and ligatures between the hyphenation character and the
2230         following character -- while not used normally in English, other
2231         languages like German would benefit).
2233         * src/roff/troff/env.cc (environment::hyphenate_line): Use
2234         assertion instead of if-clause.
2235         Let `get_hyphen_list' return the number of involved characters in
2236         the hyphenation pattern instead of computing it directly (which
2237         often yields too small values).
2238         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
2239         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
2240         parameter.
2242 2003-01-22  Werner LEMBERG  <wl@gnu.org>
2244         Fixing a bug which caused groff to hang if the hyphenation exception
2245         dictionary tried to grow.
2247         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
2248         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
2249         pointer to dictionary.
2251 2003-01-20  Werner LEMBERG  <wl@gnu.org>
2253         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
2254         negative left italic correction.
2255         * src/utils/afmtodit/afmtodit.man: Document it.
2257         * font/devps/generate/Makefile (RFLAG): Add `-m'.
2258         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
2259         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
2261         * NEWS: Updated.
2263 2003-01-16  Werner LEMBERG  <wl@gnu.org>
2265         * NEWS: Updated.
2267 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
2269         * src/preproc/refer/refer.man: Mention REFER environment variable.
2271 2003-01-05  Werner LEMBERG  <wl@gnu.org>
2273         Similar to \[is], the square root glyph (\[sr]) and the square root
2274         extension glyph (\[radicalex]) are now text symbols.  The new
2275         mathematical versions are called \[sqrt] and \[sqrtex],
2276         respectively.
2278         * font/devX*/S: Regenerated.
2279         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
2280         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
2281         * font/devdvi/EX, font/devdvi/S: Regenerated.
2282         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
2283         * font/devlj4/generate/special.map: Add `sqrt'.
2284         * font/devlj4/S: Regenerated.
2285         * font/devps/generate/textmap: Add `sqrt'.
2286         * font/devps/S, font/devps/symbolmap: Regenerated.
2288         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
2289         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
2290         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
2291         overlap horizontally.
2293         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
2294         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
2295         Fix `radicalex'.
2297         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
2298         and `sqrtex' are overlapping glyphs.
2300 2003-01-04  Werner LEMBERG  <wl@gnu.org>
2302         * font/devdvi/generate/texsy.map: Add `is'.
2303         * font/devps/symbolmap: Regenerated.
2304         * font/devdvi/*TC, MI, S: Regenerated.
2306         * tmac/dvi.tmac: Remove `is'.
2308 2003-01-03  Werner LEMBERG  <wl@gnu.org>
2310         `is' is now a text symbol (only relevant for dvi).  The math variant
2311         can be accessed with `integral'.
2313         * font/devX*/S: Regenerated.
2314         * font/devdvi/generate/texex.map: Remove `is'.
2315         * font/devdvi/EX: Updated.
2316         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
2317         * font/devlj4/generate/special.map: Ditto.
2318         * font/devlj4/S: Regenerated.
2319         * font/devps/generate/textmap: Add `integral'.
2320         * font/devps/S: Regenerated.
2322         * tmac/dvi.tmac: Define `is'.
2324         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
2326         * src/preproc/tbl/main.cc (process_format): Fix error message.
2328 2003-01-02  Werner LEMBERG  <wl@gnu.org>
2330         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
2331         * font/devps/textmap: Fix entries for `ne' and `nc'.
2332         * font/devps/symbolmap: Regenerated.
2334         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
2335         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
2336         `38', `58', `78', `-+', `|=', `nc', `ne'.
2338         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
2339         Use `schar' for `aq'.
2340         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
2341         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
2342         * tmac/tty.tmac: Add `ne'.
2344         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
2345         for fallback glyphs.
2347 2002-12-29  Werner LEMBERG  <wl@gnu.org>
2349         Add glyph `|='.
2351         * font/devX*/*: Regenerated.
2352         * font/devdvi/generate/ec.map: Remove `eq'.
2353         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
2354         Assign `|=' to position 39.
2355         * font/devdvi/*EC, S: Regenerated.
2356         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
2357         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
2358         Assign `|=' to position 549.
2359         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
2360         `equalmath'.
2361         Add `uni2243' for `|='.
2363         * tmac/ec.tmac: Add `eq'.
2364         * tmac/dvi.tmac: Add `=~'.
2365         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
2366         `|='.
2368 2002-12-21  Werner LEMBERG  <wl@gnu.org>
2370         * font/devdvi/generate/tc.map: Remove `**'.
2371         * font/devdvi/*TC: Regenerated.
2372         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
2373         `78', `<<', `>>'.
2374         * font/devutf8/NOTES: Updated.
2376         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
2377         Don't give default parameter to `set_macro'.
2378         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
2379         instead of `set_macro'.
2380         (charinfo::setx_macro): Implement it.
2381         (charinfo::set_macro): Don't change `mode'.
2383         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
2384         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
2385         * tmac/dvi.tmac: Define `!=' with `.schar'.
2387 2002-12-20  Werner LEMBERG  <wl@gnu.org>
2389         * font/devX*/S: Regenerated.
2390         * font/devdvi/generate/ec.map: Remove `pl'.
2391         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
2392         * font/devdvi/*{TC,EC}: Regenerated.
2393         * font/devhtml/R.proto: Add `-+'.
2394         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
2395         * font/devlbp/*: Remove `or'.
2396         * font/devlj4/generate/special.map: Remove `or'.
2397         * font/devlj4/S: Regenerated.
2398         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
2399         `seveneighths', `threeeighths'.
2400         Remove `plusmath'.
2401         Replace `minusplus' with `uni2213'.
2402         * font/devps/symbolmap: Regenerated.
2403         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
2404         Add `-+'.
2406         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
2407         function.
2408         * src/roff/troff/node.cc (troff_output_file::put_char_width):
2409         Call glyph_color and fill_color even if tcommand_flag isn't set.
2410         (make_node, node::add_char): Check not ci->is_fallback but
2411         ci->is_normal.
2413         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
2414         * tmac/ec.tmac: Add .rchar entry for `f/'.
2415         Don't remove `12', `14', `34'.
2416         Define `pl' to be always roman.
2417         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
2418         Define `18', `38', `58', `78'.
2419         * tmac/tty.tmac: Add `-+'.
2420         * tmac/dvi.tmac: Define `f/'.
2421         (dvi-frac): Use `f/'.
2422         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
2423         Define `18', `38', `58', `78'.
2425 2002-12-15  Colin Watson  <cjwatson@debian.org>
2427         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
2429 2002-12-10  Werner LEMBERG  <wl@gnu.org>
2431         Add glyph `tno', a textual variant of `no'.
2433         * font/devX*/*: Regenerated.
2434         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
2435         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
2436         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
2437         * font/devdvi/*: Regenerated.
2438         * font/devlbp/*: Add `tno'.
2439         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
2440         * font/devlj4/*: Regenerated.
2441         * font/devps/generate/textmap: Replace `no' with `tno'.
2442         * font/devps/generate/symbolchars: Add `no'.
2443         * font/devps/*: Regenerated.
2445         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
2447         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
2448         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
2450         * NEWS: Updated.
2452         * tmac/dvi.tmac: Replace most `\\' with `\E'.
2453         Add definition for `sd'.
2454         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
2456         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
2458 2002-12-08  Werner LEMBERG  <wl@gnu.org>
2460         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
2461         mode to avoid rounding errors.
2462         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
2464         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
2465         src/roff/troff/troff.man: Improve documentation of -T.
2467 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
2469         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
2470         (run_pipeline) [_WIN32]: Provide working function without `fork'.
2472 2002-12-06  Werner LEMBERG  <wl@gnu.org>
2474         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
2475         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
2476         Scaling Euro.sansserif glyphs down to have the same height as
2477         digits.
2478         Removed unnecessary points; added some extrema.
2480         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2481         Regenerated.
2483 2002-12-04  Werner LEMBERG  <wl@gnu.org>
2485         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
2486         and `Euro.symbol.bold.slanted'.
2487         Improve some glyph offsets and widths.
2488         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2489         Regenerated.
2490         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
2491         typo.
2492         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
2493         direcory.
2495         * tmac/europs.tmac: Updated to new glyph indices.
2496         Use Euro.symbol for font familiy `A'.
2498         * doc/groff.texinfo: Minor improvements.
2500 2002-12-02  Werner LEMBERG  <wl@gnu.org>
2502         * font/devdvi/generate.tc.map: s/%O/%0/.
2503         * font/devdvi/*TC: Regenerated.
2505         * src/roff/troff/div.cc (init_div_requests): Sorted.
2507         * tmac/dvi.tmac: Remove `Ye'.
2508         * tmac/ec.tmac: Remove `Ye'.
2509         Add .rchar entry for `de'.
2511         * man/groff.man, man/groff_diff.man: Document register `.pe'.
2512         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
2513         * NEWS: Updated.
2515 2002-11-30  Werner LEMBERG  <wl@gnu.org>
2517         Add PS font for various Euro glyphs.
2519         * font/devps/generate/freeeuro.sfd: New master font file for
2520         pfaedit.
2521         * font/devps/generate/sfdtopfa.pe: New conversion script for
2522         pfaedit.
2523         * font/devps/generate/Makefile (FONTS): Add `EURO'.
2524         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
2525         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
2526         `freeeuro.sfd'.
2527         * font/devps/EURO: Generated from `freeeuro.afm'.
2528         * font/devps/download: Add `freeuro.pfa'.
2529         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
2530         `freeeuro.pfa'.
2532         * tmac/europs.tmac: New file.
2533         * tmac/ps.tmac: Include `europs.tmac'.
2534         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
2536 2002-11-29  Werner LEMBERG  <wl@gnu.org>
2538         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
2539         * font/devdvi/S: Regenerated.
2540         * font/devhtml/R.proto: Fix `CR' and `ci'.
2541         Add `OK'.
2542         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
2543         Remove `bs'.
2544         * font/devps/symbolmap: Regenerated.
2545         * font/devutf8/R.proto: Fix `CR' and `ci'.
2546         Add `OK'.
2547         * font/devutf8/NOTES: Updated.
2549         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
2550         `ci'.
2551         Add `OK'.
2552         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2554         * tmac/dvi.tmac: Add `lh' and `rh'.
2555         * tmac/Xps.tmac: Fix `lh' and `rh'.
2556         * tmac/X.tmac: Add `OK'.
2557         * tmac/lj4.tmac: Ditto.
2559 2002-11-24  Werner LEMBERG  <wl@gnu.org>
2561         * font/devX*/S: Regenerated.
2562         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
2563         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
2564         * font/devdvi/generate/texsy.map: Remove `or' glyph.
2565         * font/devdvi/S: Regenerated.
2566         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
2567         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
2568         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
2569         `bracketleftbt', `bracketrighttp', `bracketrightex',
2570         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
2571         `braceex', `braceleftex', `bracerightex', `bracerighttp',
2572         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
2573         `rb', and `bv'.
2574         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
2575         * font/devutf8/NOTES: Updated.
2576         * font/devlj4/generate/special.map: Add glyph `braceex'.
2577         * font/devlj4/S: Regenerated.
2579         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
2581 2002-11-14  Werner LEMBERG  <wl@gnu.org>
2583         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
2584         and `vA'.
2585         Fix code for `an'.
2586         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2588         * doc/texinfo.tex: New version from texinfo 4.3.
2589         * doc/groff.texinfo: Updated for texinfo 4.3.
2590         Use @tie{} where appropriate.
2591         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
2592         * font/devdvi/generate/tc.map: Remove `rn'.
2593         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
2594         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
2595         Fix code for `an'.
2596         * font/devX100/*, font/devX100-12/*, font/devX75/*,
2597         font/devX75-12/*: Regenerated.
2599         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
2600         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
2601         Improve definition of `an'.
2602         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
2603         `ru'.
2604         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
2605         * tmac/X.tmac: Add definition for `or'.
2606         * tmac/Xps.tmac: Undo change 2002-11-05.
2607         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
2609 2002-11-11  Werner LEMBERG  <wl@gnu.org>
2611         * src/roff/troff/node.cc (troff_output_file::put_char): Always
2612         call flush_tbuf.
2614 2002-11-10  Werner LEMBERG  <wl@gnu.org>
2616         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
2617         defines a glyph which is searched after the check for fonts declared
2618         with `.special' (and before the check for all mounted special
2619         fonts).  `fschar' defines a glyph for a particular font which is
2620         searched after the check for fonts declared with `.fspecial' (and
2621         before the check for fonts declared with `.special').  `rfschar'
2622         removes glyphs defined with `fschar'.
2624         * src/roff/troff/token.h (char_mode): New enum.
2625         Declare do_define_character.
2626         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
2627         `mode'.
2628         (charinfo::is_fallback): Updated.
2629         (charinfo::is_special): New method.
2630         * src/roff/troff/input.cc (do_define_character): Add and use
2631         optional second parameter used as a prefix for font-specific glyph
2632         names.
2633         (define_character, define_fallback_character): Updated.
2634         (define_special_character): New function.
2635         (init_input_requests): Add `schar'.
2636         (charinfo::charinfo, charinfo::set_macro): Updated.
2637         * src/roff/troff/node.cc: Include `stringclass.h'.
2638         (make_glyph_node): Handle special glyphs defined with `.schar' and
2639         `.fschar'.
2640         (define_font_special_character, remove_font_special_character): New
2641         functions.
2642         (init_node_requests): Sorted.
2643         Add `fschar' and `rfschar'.
2644         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2645         Document new requests.
2647         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
2648         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
2650 2002-11-08  Werner LEMBERG  <wl@gnu.org>
2652         Added new font `SC' (cmtex10) to devdvi.
2654         * devdvi/generate/Makefile (FONTS): Add `SC'.
2655         (SC): New rule.
2656         * devdvi/generate/textex.map: New map file for cmtex.
2657         * devdvi/SC: New.
2658         * devdvi/Makefile.sub (DEVFILES): Updated.
2659         * tmac/dvi.tmac: Add fspecial entries for SC.
2660         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
2661         found before `S' since the font position of `SC' is lower due to the
2662         gaps in DESC's `font' line.
2663         * tmac/ec.tmac: Add a `special' call.
2664         * NEWS: Updated.
2666         * font/devhtml/R.proto: Remove double entry for `ti'.
2667         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
2668         * tmac/tty-char.tmac: Remove entry for `bq'.
2669         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
2670         * tmac/ec.tmac: Don't remove `aq' glyph.
2671         * tmac/X.tmac: Fix entry for `em'.
2672         Add entries for `fo' and `fc'.
2673         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
2675         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
2676         documentation of `special' and `fspecial' requests.
2678 2002-11-05  Werner LEMBERG  <wl@gnu.org>
2680         * font/devascii/R.proto, font/devcp1047/R.proto,
2681         font/devlatin1/R.proto: Remove entry for `.i'.
2682         * font/devdvi/generate/textt.map: Add entry for `ad'.
2683         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
2684         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
2685         We need this for getting kerning values to compose `/l' and `/L'.
2686         * font/devdvi: Regenerated font definition files for CM fonts.
2687         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
2688         * font/devutf8/R.proto: Ditto.
2689         Remove double entry for `ti'.
2691         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
2692         for (groff) ligatures, `la', and `ra'.
2693         Add "'C", "'c", `IJ', and `ij'.
2694         Remove double entry for `ti'.
2695         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
2696         double entries.
2697         Add "'C", "'c", `IJ', and `ij'.
2698         Fix entries for (groff) ligatures, `la', and `ra'.
2700         * tmac/ps.tmac (ps-achar): New macro.
2701         Define "'c" and "'C".
2702         * tmac/tty.tmac: Add entry for `.i'.
2703         * tmac/X.tmac (X-achar): New macro.
2704         Define "'c", "'C", and `:Y'.
2705         Add entries for `IJ' and `ij'.
2706         * tmac/Xps.tmac (Xps-achar): New macro.
2707         Define "'c" and "'C".
2708         Add entries for `IJ' and `ij'.
2709         * tmac/lbp.tmac (lbp-achar): New macro.
2710         Add fallback characters for all groff ligatures and many other
2711         glyphs.
2712         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
2713         Add entries for `/l' and `/L'.
2714         Define "'c" and "'C".
2715         Add entries for `IJ' and `ij'.
2717 2002-11-02  Larry Kollar  <kollar@alltel.net>
2719         * PROBLEMS: Document how to solve Mac OS X compilation problems.
2721 2002-11-02  Werner LEMBERG  <wl@gnu.org>
2723         Adding support for composite glyphs: \[xxx yyy ...] and the
2724         `composite' request.
2726         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
2727         to Unicode-based glyph names.
2728         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
2729         glyph names to groff glyph names.
2730         * src/roff/troff/uniuni.cc: New file for canonically decomposing
2731         Unicode-based glyph names.
2732         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
2733         for handling Unicode glyph names.
2734         * src/roff/troff/input.cc: Include unicode.h.
2735         (composite_glyph_name): New function.
2736         (token::next) <'['>: Handle Unicode glyph names and composite
2737         glyphs.
2738         (composite_dictionary): New dictionary for the `composite' request.
2739         (composite_request): Implement `composite' request.
2740         (init_input_requests): Add `composite'.
2741         Alphabetically sorted.
2742         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
2743         commented out).
2744         (init_env_requests): Alphabetically sorted.
2745         Removed `tas' and `tar' (already commented out).
2746         * src/roff/troff/Makefile.sub: Updated.
2748 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
2750         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
2751         of options.
2753 2002-10-29  Werner LEMBERG  <wl@gnu.org>
2755         Fix computation of .trunc register.  Additionally, its value (and
2756         the value of the .ne register) is now always set before entering the
2757         trap.
2759         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
2760         `needed_space' before calling `space'.
2761         (top_level_diversion::space): Remove special code for 'sp before the
2762         first page.
2763         Call `begin_page' with the discarded space as a parameter.
2764         (top_level_diversion::begin_page): Add optional parameter to set
2765         `truncated_space'.
2766         * src/roff/troff/div.h: Updated.
2768         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
2769         \n[.ne].
2771         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
2772         (LP): Remove superfluous call to `br'.
2773         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
2774         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2776 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2778         * tmac/doc-ditroff: Remove useless switch/variable -rC.
2779         (doc-setup-header): Don't set page register `%'.
2780         * tmac/doc-nroff: Remove variable `C'.
2781         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
2782         (doc-setup-header): Don't set page register `%'.
2783         Don't call `bp'.
2784         * tmac/doc-common (doc-header): Call `ns'.
2785         (doc-paragraph): Protect .sp with .br so that it survives traps
2786         possibly set by the user.
2787         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2789         * tmac/doc*: Replace ' with . for consistency if no effect.
2791 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2793         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
2794         so that it survives traps possibly set by the user.
2796         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
2797         (troff_output_file::set_font): Call flush_tbuf if necessary.
2798         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
2799         flush_tbuf and do_motion only if necessary.
2800         (troff_output_file::start_special,
2801         troff_output_file::put_char_width, troff_output_file::put_char,
2802         troff_output_file::draw): Updated.
2803         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2804         vmotion_node::tprint): Undo change 2002-10-23.
2806 2002-10-25  Werner LEMBERG  <wl@gnu.org>
2808         * tmac/www.tmac (DC): Fix case of overlapping images.
2810 2002-10-23  Werner LEMBERG  <wl@gnu.org>
2812         * src/roff/troff/node.cc (troff_output_file::fill_color,
2813         troff_output_file::glyph_color): Set current color before testing
2814         color_flag.
2815         (troff_output_file::put_char_width, troff_output_file::put_char,
2816         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
2817         before glyph_color.
2818         (troff_output_file::file_color, troff_output_file::glyph_color):
2819         Call do_motion.
2820         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2821         vmotion_node::tprint): Move first, then call fill_color.
2823 2002-10-20  Werner LEMBERG  <wl@gnu.org>
2825         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
2826         possible to use multiple main macro packages.
2828 2002-10-19  Werner LEMBERG  <wl@gnu.org>
2830         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
2831         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
2832         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
2833         is set.
2834         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
2835         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
2837 2002-10-16  Werner LEMBERG  <wl@gnu.org>
2839         * NEWS, doc/webpage.ms: Updated.
2841 2002-10-14  Werner LEMBERG  <wl@gnu.org>
2843         * src/roff/troff/node.cc (troff_output_file::put_char_width,
2844         troff_output_file::put_char, troff_output_file::fill_color,
2845         troff_output_file::glyph_color): Handle case where color pointer
2846         is null.
2848 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
2850         Add the new -r option to grotty.  It is similar to the -i option
2851         except it tells grotty(1) to use the "reverse video" attribute to
2852         render italic fonts.
2854         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
2855         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
2856         (tty_printer::make_underline, tty_printer::put_color,
2857         tty_printer::end_page): Use it.
2858         (main): Add -r switch.
2859         (usage): Updated.
2860         * src/devices/grotty/grotty.man: Document it.
2862 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
2864         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2865         cast to `unsigned char' to properly read patterns with 8bit
2866         characters.
2868 2002-10-08  Werner LEMBERG  <wl@gnu.org>
2870         * REVISION: Increased to 2.
2872 Version 1.18.1 released
2873 =======================
2875 2002-10-08  Werner LEMBERG  <wl@gnu.org>
2877         * doc/webpage.ms, NEWS: Updated.
2879 2002-10-07  Werner LEMBERG  <wl@gnu.org>
2881         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
2882         suppress additional whitespace after the header.
2884         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
2885         with NetBSD.
2887         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
2889 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
2891         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
2892         (Dt): Use it to improve language localization (especially Russian
2893         and French).
2895 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
2897         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
2898         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
2899         drawing commands.
2900         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
2901         curve type.
2902         Call `picurve' for BSPLINE.
2903         (HGPrintElt): Handle BSPLINE.
2904         * src/preproc/grn/README: Document it.
2906 2002-10-03  Werner LEMBERG  <wl@gnu.org>
2908         * src/roff/troff/node.cc (break_char_node::col): New variable.
2909         Updated constructor.
2910         (space_node::tprint, word_space_node::tprint): Call `fill_color'
2911         unconditionally.
2912         (space_node::space_node): Remove assertion.
2913         (break_char_node::add_self): Pass color argument to space node.
2914         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
2915         Ditto.
2916         * src/roff/troff/env.cc (environment::do_break,
2917         environment::add_padding): Ditto.
2919 2002-10-02  Werner LEMBERG  <wl@gnu.org>
2921         Redesigning color support in troff.  Colors are no longer
2922         represented as separate nodes but are now part of glyph nodes and
2923         friends.  This fixes the current formatting misbehaviour due to the
2924         changes introduced on 2002-09-20.  Some extra code is necessary for
2925         proper grotty support: Without adding color variables to
2926         space-related nodes, the background color would be changed too late.
2928         * src/roff/troff/node.h, src/roff/troff/node.cc:
2929         s/current_pagecolor/current_fill_color/.
2930         s/current_glyphcolor/current_glyph_color/.
2931         (glyph_color_node, fill_color_node): Removed.
2932         (node::get_glyph_color, node::get_fill_color): New virtual member
2933         functions.
2934         (space_node::col): New variable.
2935         Updated constructors of space_node and derived classes accordingly.
2936         (hmotion_node::col): New variable.
2937         Updated constructors of hmotion_node and space_char_hmotion_node
2938         accordingly.
2939         (vmotion_node::col): New variable.
2940         Updated constructor accordingly.
2941         (draw_node::gcol, draw_node::fcol): New variables.
2942         Updated constructor accordingly.
2943         (special_node::gcol, special_node::fcol): New variables.
2944         Updated constructors accordingly.
2945         (troff_output_file::put_char, troff_output_file::put_charwidth,
2946         troff_output_file::draw): Set glyph and fill color.
2947         (troff_output_file::start_special): Set glyph and fill color.
2948         Always set current font.
2949         (troff_output_file::fill_color, troff_output_file::glyph_color):
2950         Don't call `do_motion'.
2951         (glyph_node::gcol, glyph_node::fcol): New variables.
2952         Updated constructors of glyph_node and ligature_node accordingly.
2953         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
2954         member functions.
2955         (glyph_node::merge_glyph_node,
2956         kern_pair_node::add_discretionary_hyphen,
2957         node::add_discretionary_hyphen): Updated.
2958         (break_char_node::merge_self): Updated.
2959         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2960         vmotion_node::tprint): Handle color.
2961         (make_glyph_node, make_node, node::add_char): Updated.
2963         * src/roff/troff/env.cc (environment::space_newline,
2964         environment::space, environment::output_line, environment::do_break,
2965         environment::make_tab_node, environment::add_padding, title):
2966         Updated.
2967         (environment_switch, environment_copy): Don't add color nodes.
2969         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
2970         nothing.
2971         (token::next): Updated.
2972         \m and \M now are as transparent as \s.
2973         (process_input_stack, token::add_to_node_list, token::process,
2974         read_draw_node): Updated.
2975         (charinfo_to_node_list): Don't add color nodes.
2977         * doc/groff.texinfo: Updated.
2979 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
2981         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
2982         strings.
2984 2002-09-27  Colin Watson  <cjwatson@debian.org>
2986         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
2988 2002-09-23  Werner LEMBERG  <wl@gnu.org>
2990         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
2991         appropriate.
2992         (DEFAULT_LINEWIDTH_FACTOR): New macro.
2993         (linewidth_factor): New global variable.
2994         (lbp_printer::set_line_thickness): Fix case for size < 0, using
2995         linewidth_factor.
2996         (long_options): Add -w/--linewidth option.
2997         (usage): Updated.
2998         (main): Handle -w option to set linewidth_factor.
2999         (lbp_printer::lbp_printer): Initialize req_linethickness, not
3000         line_thickness.
3002         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
3004 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
3006         Fixed a bug in the line thickness setting code.
3008         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
3009         variable.
3010         (lbp_printer::set_line_thickness): Pass environment as second
3011         parameter.
3012         Implement it actually.
3013         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
3014         and `set_line_thickness, depending on the current font size.
3016 2002-09-21  Werner LEMBERG  <wl@gnu.org>
3018         Some Debian patches.
3020         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
3021         * src/roff/troff/node.cc (bracket_node::copy): Initialize
3022         `list->last'.
3024 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3026         * configure: Regenerated with autoconf 2.54.
3028 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3030         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
3031         glyph_color.
3032         Rename cur_fill_color to fill_color.
3033         * src/roff/troff/env.cc: Updated.
3035 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3037         * src/roff/troff/env.cc (title): Copy color status after processing
3038         title.
3039         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
3040         fill color nodes to reset colors properly.
3042         * tmac/www.tmac (DC): Fix color handling.
3044         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
3045         * doc/groff.texinfo: Fixing documentation of `tl' request.
3046         * doc/webpage.ms: Updated.
3048 2002-09-19  Werner LEMBERG  <wl@gnu.org>
3050         * src/roff/troff/env.cc (environent_switch, environment_copy):
3051         Emit glyph and fill color nodes to initialize colors properly.
3053 2002-09-17  Colin Watson  <cjwatson@debian.org>
3055         * src/roff/troff/env.cc (environment::set_glyph_color,
3056         environment::set_fill_color): Fix typo which prevented \m[] work
3057         correctly.
3059 2002-09-17  Werner LEMBERG  <wl@gnu.org>
3061         Add left and right italic correction to non-slanted PS fonts.  This
3062         is an experimental feature to improve image rendering of grohtml.
3064         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
3065         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
3066         * font/devps/*: All non-slanted fonts regenerated.
3067         * NEWS: Updated.
3069 2002-09-16  Werner LEMBERG  <wl@gnu.org>
3071         Add a site-specific font directory.
3073         * Makefile.in (localfontdir, legacyfontdir): New variables.
3074         (fontpath): Use them.
3075         (MDEFINES, uninstall_dirs): Updated.
3076         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
3077         Remove `FONTPATH' and `MACROPATH'.
3079         * src/roff/troff/troff.man, NEWS: Updated.
3080         * doc/groff.texinfo (Font Directories): New section.
3081         Other minor fixes.
3083         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
3084         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
3085         src/preproc/grn/grn.man: Minor fixes.
3087         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
3088         Remove unused variable.
3090 2002-09-11  Werner LEMBERG  <wl@gnu.org>
3092         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
3093         * man/groff_out.man: Fix documentation of 'N'.
3095 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
3097         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
3098         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
3099         set.
3100         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
3101         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
3102         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
3103         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
3104         PRE_TAG>: Call `begin' with `FALSE'.
3106 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3108         * src/libs/libgroff/string.cc (string::extract): Fix position of
3109         terminating null byte.
3111 2002-09-08  Werner LEMBERG  <wl@gnu.org>
3113         Add global option `nospaces' to tbl so that leading and trailing
3114         spaces in data items are ignored.
3116         * src/libs/libgroff/string.cc (string::remove_spaces): New member
3117         function to remove leading and trailing spaces.
3118         * src/include/stringclass.h: Updated.
3120         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
3122         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
3123         option.
3124         Fix typo in error messages.
3125         (process_data): Implement `nospaces' option.
3126         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
3128 2002-09-07  Werner LEMBERG  <wl@gnu.org>
3130         * src/include/config.hin: Add `HAVE_ISATTY'.
3131         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
3132         `fname' member.
3133         * src/libs/libgroff/tmpname.cc: Include `time.h'.
3134         * src/libs/libdriver/input.cc (Char): Add `operator==' and
3135         `operator!=' for `char'.
3136         * doc/groff.texinfo: Replace @ifnottex block for top node with
3137         @ifhtml block.
3139 2002-09-06  Werner LEMBERG  <wl@gnu.org>
3141         * doc/Makefile.in (.texinfo.html): Add -I switch.
3142         * doc/groff.texinfo: Add @ifnottex block for top node to make
3143         translation to HTML work.
3145 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
3147         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
3148         (get_papersize, determine_vertical_offset): Removed.
3149         (char_buffer::do_image): Always specify letter size.
3150         (main): Updated.
3151         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
3152         -sPAPERSIZE.
3154 2002-09-05  Werner LEMBERG  <wl@gnu.org>
3156         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
3157         default indentation.
3159 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
3161         * src/preproc/html/pre-html.cc (imageList::createPage): Use
3162         -sPAPERSIZE for gs.
3163         (generateImages): Clean up push-back buffer.
3165 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3167         * doc/groff.texinfo: Minor fixes.
3169 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3171         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
3172         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
3173         (gsPaper): Removed.
3174         (determine_vertical_offset): Use LETTER_LENGTH.
3175         (createPage): Moved to ...
3176         (imageList::createPage): This.
3177         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
3178         (imageList::getMaxX): New function.
3179         (createImage): Moved to ...
3180         (imageList::createImage): This.
3181         (imageList::createImages): New function.
3182         (generateImages): Read `maxx' directly.
3183         Updated.
3184         (scanArguments): Don't specify `gsPaper' for `-o'.
3185         (makeTempFiles): Call `xtmpfile' with the last argument set to
3186         `TRUE'.
3188 2002-08-24  Werner LEMBERG  <wl@gnu.org>
3190         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
3191         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
3192         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
3193         * src/preproc/html/pushback.cc: Include nonposix.h.
3194         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
3195         conditionally.
3197 2002-08-23  Werner LEMBERG  <wl@gnu.org>
3199         Use $(OBJEXT) for the object file extension.
3201         * Makefile.comm (.SUFFIXES): Add .obj.
3202         (.cc.obj, .c.obj): New implicit rules.
3203         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
3204         (MDEFINES): Add EXEEXT and OBJEXT.
3205         * */Makefile.sub: s/.o/.$(OBJEXT)/.
3207 2002-08-22  Werner LEMBERG  <wl@gnu.org>
3209         * INSTALL: Mention texinfo 4.2 as a prerequisite.
3211 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3213         * src/devices/grohtml/post-html.cc (colType): Make enum global to
3214         the file.
3215         (html_printer::update_min_max, html_printer::add_table_end): New
3216         methods.
3217         (html_printer::lookahead_for_tables): Use them.
3218         Reset page offset correctly.
3219         (html_printer::~html_printer): Add creation of creator comment up.
3221 2002-08-20  Werner LEMBERG  <wl@gnu.org>
3223         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
3224         * man/groff_tmac.man: Fix typos.
3225         * man/groff_font.man: Minor reordering.
3226         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
3227         * contrib/groffer/groffer.man: Fix typos.
3229 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
3231         Avoid endless loops while scanning for tables.
3233         * src/devices/grohtml/post-html.cc (list::insert): Set
3234         ptr->right->left.
3235         (html_printer::next_horiz_pos): Add `text_glob' argument; update
3236         all callers.
3237         Return immediately if that argument is NULL.
3238         (html_printer::calc_nf): Don't test if `g' is NULL.
3239         (html_printer::lookahead_for_tables): Use
3240         `glyphs.move_right_get_data'.
3241         Don't test if `g' is NULL.
3243 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
3245         A better fix, replacing fix 2002-08-15, for increasing SIZE.
3247         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
3248         a pointer.
3249         (char_block::char_block): Allocate `buffer'.
3250         (char_buffer::add_string): Use it.
3252 2002-08-15  Werner LEMBERG  <wl@gnu.org>
3254         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
3255         src/devices/grodvi/grodvi.man: Document default line thickness.
3257 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
3259         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
3260         8192.
3262 2002-08-14  Werner LEMBERG  <wl@gnu.org>
3264         * doc/webpage.ms: Updated.
3266 2002-08-09  Werner LEMBERG  <wl@gnu.org>
3268         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
3269         unbreakable space.
3271 2002-08-08  Aaron Campbell  <aaron@monkey.org>
3273         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
3274         (&& -> &).
3276 2002-08-08  Werner LEMBERG  <wl@gnu.org>
3278         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
3279         tok.next().
3280         (read_gray): Ditto.
3281         Don't push back a space but a newline onto the stack.
3283 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
3285         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
3286         inadvertently.
3288         * src/devices/grohtml/post-html.cc (html_printer::end_font,
3289         html_printer::start_font): Handle them.
3290         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
3291         reset bold and tt.
3292         (html_text::do_bold): Don't reset italic and tt.
3293         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
3294         * font/devhtml/DESC.proto: Add those fonts.
3295         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
3297 2002-08-07  Werner LEMBERG  <wl@gnu.org>
3299         * MORE.STUFF: Added gpresent.
3301         * tmac/trace.tmac: Show nesting level by a corresponding amount of
3302         whitespace before printing the logging message.
3304 2002-07-31  Colin Watson  <cjwatson@debian.org>
3306         * src/devices/grohtml/html-table.cc (html_table::finish_row):
3307         Initialize `n' to zero.  This fixes a segfault on ARM.
3309 2002-07-30  Werner LEMBERG  <wl@gnu.org>
3311         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
3313 2002-07-29  Werner LEMBERG  <wl@gnu.org>
3315         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
3316         final semicolon.
3318 2002-07-28  Colin Watson  <cjwatson@debian.org>
3320         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
3321         `.ps'.
3322         (html_printer::html_printer): Initialize `pointsize'.
3324 2002-07-26  Werner LEMBERG  <wl@gnu.org>
3326         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
3327         gnu.png.
3328         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
3329         (gnu.eps): Add -rle switch to pnmtops.
3330         (distfiles): Add gnu.eps and gnu.png.
3332 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
3334         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
3335         Add `operator!='.
3337 2002-07-24  Werner LEMBERG  <wl@gnu.org>
3339         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
3340         ' \+' but '  *' for sed.
3341         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
3343 2002-07-23  Werner LEMBERG  <wl@gnu.org>
3345         * doc/groff.texinfo: Document `papersize' keyword.
3346         * NEWS, man/groff_font.man: Updated.
3348 2002-07-23  Colin Watson  <cjwatson@debian.org>
3350         Extend papersize keyword to accept more than a single entry.  The
3351         first valid will be used.
3353         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
3354         (font::scan_papersize): Really skip final newline.
3355         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
3357 2002-07-23  Werner LEMBERG  <wl@gnu.org>
3359         * configure.ac: Test for isatty.
3360         * configure: Regenerated.
3361         * src/include/posix.h: Check HAVE_ISATTY.
3362         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
3363         * src/utils/lookbib/lookbib.cc: Include posix.h.
3364         Don't declare isatty.
3366 2002-07-21  Werner LEMBERG  <wl@gnu.org>
3368         * NEWS: Add `output' request.
3370         * REVISION: Increased to 1.
3372 Version 1.18.0 released
3373 =======================
3375 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
3377         Allow internal glyph indices > 0xFF in grohtml for input characters.
3379         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
3380         as parameter.
3381         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
3382         Updated all callers.
3383         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
3384         (html_printer): Updated.
3386 2002-07-19  Werner LEMBERG  <wl@gnu.org>
3388         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
3389         * font/devutf8/R.proto: Adding some missing glyphs.
3390         * font/devutf8/NOTES: Updated.
3392         * tmac/dvi.tmac: Add more composite glyphs.
3393         * tmac/html.tmac: Updated.
3395         * man/groff_char.man: Add `sum' and `product' entities.
3397         * NEWS: Updated.
3399 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
3401         Improved table, tab, and indenting support.
3403         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
3404         string_iterator::suppress_newline_flag): Removed.  Updated all
3405         function which have used it.
3407         * src/roff/troff/env.cc: Include `input.h'.
3408         (environment::add_node): Accept 0 as parameter.
3409         (environment::add_html_tag): Add `force' parameter.
3410         Updated all callers.
3411         (environment::add_html_tag_tabs): Ditto.
3412         For the moment, support left-aligned tabs only.
3413         (environment::make_html_tag): New function.
3414         (fill, no_fill): Set .br html tag additionally.
3415         (environment::newline): Emit `eol.ce' or `eol' tag for html.
3416         (environment::add_html_tag_eol): Removed.
3417         (tab_stops::distance_to_next_tab): Add variant for handling 
3418         nextpos'.
3419         (environment::distance_to_next_tab): Ditto.
3420         Updated all callers.
3421         (environment::handle_tab): Handle tabs for html.
3422         
3423         * src/roff/troff/env.h: Updated.
3425         * src/roff/troff/div.cc: Updated all callers of
3426         `environment::add_html_tag'.
3428         * src/devices/grohtml/html-table.cc,
3429         src/devices/grohtml/html-table.h: New files.
3431         * src/devices/grohtml/html-text.cc (html_text): New members
3432         `blank_para' and `start_space'.
3433         (html_text::issue_tag): Don't emit TABLE_TAG.
3434         Handle indentation for PRE_TAG and P_TAG.
3435         (html_text::end_tag): Updated.
3436         (html_text::table_is_void, html_text::issue_table_begin,
3437         html_text::issue_table_end): Removed.
3438         (html_text::do_push): Simplified.
3439         [DEBUGGING]: Small fix.
3440         (html_text::push_para): Add new parameter for indentation; updated
3441         all callers.
3442         Handle PRE_TAG.
3443         (html_text::do_indent, html_text::do_table, html_text::done_table,
3444         html_text::is_in_table): Removed.
3445         (html_text::do_pre): Handle P_TAG also.
3446         (html_text::shutdown): Handle p->indent.
3447         (html_text::check_emit_text): Simplified.
3448         (html_text::do_emittext): Reset `blank_para'.
3449         (html_text::do_para): Add new parameter for indentation; updated
3450         all callers.
3451         (html_text::remove_indent): New function.
3452         (html_text::do_space): Handle verbatim text properly.
3453         (html_text::ever_emitted_text, html_text::starts_with_space,
3454         html_text::remove_para_align): New functions.
3455         (html_text::dump_stack_element, html_text::dump_stack): Updated.
3457         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
3458         Updated.
3460         * src/devices/grohtml/post-html.cc: Include html-table.h.
3461         (INDENTATION): Removed.
3462         (text_glob): Added many `is_<foo>' functions.
3463         Added table description `tab'.
3464         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
3465         member functions.
3466         (list): Add `insert' and `move_to' member functions.
3467         (page): Add `insert_tag' member function.
3468         (page::dump_page) [DEBUG_TABLES]: Improved.
3469         (html_printer): Add `table' and `max_linelength' elements.
3470         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
3471         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
3472         `remove_tabs', `remove_courier_tabs'.
3473         (html_printer::emit_raw): Handle indentation.
3474         (html_printer::do_center, html_printer::write_header): Updated.
3475         (html_printer::is_courier_until_eol): Check for tag.
3476         (html_printer::do_linelength): Handle max_linelength.
3477         (html_printer::do_page_offset, html_printer::do_indentation): Handle
3478         fill_on.
3479         (html_printer::do_tempindent): Updated.
3480         (html_printer::do_indentedparagraph): Removed.
3481         (html_printer::do_indent): Simplified.
3482         (html_printer::do_eol): Use `ever_emitted_text'.
3483         (html_printer::do_flush, html_printer::do_links): Don't call
3484         done_table.
3485         (html_printer::do_break): Handle end_tempindent.
3486         (html_printer::troff_tag): Get argument.
3487         Don't handle `.ip'.
3488         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
3489         (html_printer::flush_page): Call `lookahead_for_tables'.
3490         Don't call `done_table'.
3491         (html_printer::add_to_sbuf): Always call do_indent.
3493         * src/devices/grohtml/Makefile.sub: Updated.
3495         * tmac/an-old.tmac (TP): Don't handle html device specially.
3496         (an-do-tag-html): New function which will be used instead of
3497         `an-do-tag' if html device is used.
3499         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
3501         * tmac/s.tmac (@IP): Don't handle html device specially.
3502         (@IP-html): New function which will be used instead of `@IP' if
3503         html device is used.
3505         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
3506         is a hack which will eventually vanish again.
3507         (PIMG): Handle `-C' option correctly if not html.
3508         (HR): Use HTML-NS.
3510 2002-07-17  Werner LEMBERG  <wl@gnu.org>
3512         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
3514 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
3516         * contrib/pic2graph/pic2graph.*: Use convert(1).
3517         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
3519 2002-07-14  Bernd Warken  <bwarken@mayn.de>
3521         * tmac/groff_trace.man: New file.
3522         * tmac/Makefile.sub: Updated.
3523         * NEWS: Updated.
3525 2002-07-13  Werner LEMBERG  <wl@gnu.org>
3527         * src/roff/groff/groff.man: Add some cross references.
3529 2002-07-12  Werner LEMBERG  <wl@gnu.org>
3531         * src/roff/troff/input.cc (substring_request): Add warnings for
3532         string indices out of range.
3534 2002-07-11  Werner LEMBERG  <wl@gnu.org>
3536         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
3537         * font/devdvi/*EC: Regenerated.
3539 2002-07-10  Bernd Warken  <bwarken@mayn.de>
3541         * man/groff_char.man: Updated and extended.
3543 2002-07-10  Werner LEMBERG  <wl@gnu.org>
3545         * src/roff/troff/input.cc (length_macro): Renamed to...
3546         (length_request): This.
3547         Move call of `tok.next()' to the very end, otherwise the register
3548         value hasn't been updated yet.
3549         (init_input_requests): Updated.
3551 2002-07-09  Werner LEMBERG  <wl@gnu.org>
3553         * src/roff/troff/input.cc (substring_macro): Renamed to...
3554         (substring_request): This.
3555         (init_input_requests): Updated.
3556         * src/roff/troff/request.h: Updated.
3558 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
3560         * src/roff/grog/grog.sh: Fix typo.
3562 2002-07-08  Werner LEMBERG  <wl@gnu.org>
3564         * win32-diffs: Updated.
3566         Handle `papersize' keyword properly in DESC.
3568         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
3569         type.
3570         Updated all callers.
3571         * src/libs/libgroff/paper.cc: Add four more paper formats used by
3572         grolj4.
3573         * src/include/paper.h: Updated.
3575         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
3576         Other minor C syntax fixes.
3577         (papersize, paperlength, paperwidth): Renamed to `user_*'.
3578         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
3579         members.
3580         (lbp_printer::lbp_printer): Pass three arguments.
3581         Set paper dimensions properly.
3582         (make_printer, main): Updated.
3583         (handle_unknown_desc_command): Fix error messages.
3584         (main): Handle papersize keyword in DESC properly.
3586         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
3587         `user_paper_size'.
3588         (lbp_printer::lbp_printer): Pass an argument.
3589         Set paper_size properly.
3590         (handle_unknown_desc_command): Removed.
3591         (make_printer, main): Updated.
3592         * src/devices/grolj4/grolj4.man: Minor documentation fix.
3594         * man/groff_font.man, NEWS: Updated.
3596 2002-07-07  Werner LEMBERG  <wl@gnu.org>
3598         Integrated eqn2graph, contributed by Eric S. Raymond.
3600         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
3601         files.
3602         * Makefile.in, NEWS: Updated.
3604 2002-06-04  Werner LEMBERG  <wl@gnu.org>
3606         Changing the substring request to make it fit better with other
3607         string manipulation functions in other programming languages:
3608         Index 0 is now the first character in the string, and index -1
3609         indicates the last character.  Since this request didn't work
3610         properly anyway in the last release, it doesn't harm too much to
3611         change the syntax.
3613         * src/roff/troff/input.cc (substring_macro): Use loops to get
3614         the real string length (ignoring COMPATIBLE_SAVE and
3615         COMPATIBLE_RESTORE) and offsets.
3616         Implement change described above.
3618         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
3619         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
3621         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
3623 2002-06-03  Werner LEMBERG  <wl@gnu.org>
3625         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
3626         COMPATIBLE_RESTORE are completely ignored.
3628         * src/roff/troff/input.cc (char_list::set, char_list::get): New
3629         functions.
3630         (macro): `length' field renamed to `len'.
3631         Added new field `empty_macro' (1 if macro is empty), to be used
3632         instead of checking `len'.
3633         Updated all callers.
3634         (macro::empty): Updated.
3635         (macro::length, macro::set, macro::get): New functions.
3636         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3637         Set `empty_macro'.
3638         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
3639         COMPATIBLE_RESTORE pairs.
3640         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3641         * src/roff/troff/request.h: Updated.
3643         * doc/groff.texinfo: Document .chop's behaviour better.
3645 2002-06-02  Werner LEMBERG  <wl@gnu.org>
3647         * doc/pic.ms: Fix documentation for the addition of positions.
3649         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
3651 2002-06-29  Werner LEMBERG  <wl@gnu.org>
3653         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
3655         * src/roff/troff/input.cc (have_string_arg): New global variable.
3656         (read_mode): New enumeration.
3657         (read_escape_name): Use it.  Update all calls.
3658         (read_long_escape_name): Use it.  Update all calls.
3659         Set have_string_arg if appropriate.
3660         (get_char_for_escape_name): Add parameter for handling space
3661         character.
3662         (interpolate_string_with_args, decode_string_args): New functions.
3663         (get_copy, token::next): Call it if necessary.
3664         (interpolate_string): Fix error message.
3666         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3667         Document it.
3669 2002-06-24  Bernd Warken  <bwarken@mayn.de>
3671         * man/groff_tmac.man: Updated and extended.
3673 2002-06-24  Werner LEMBERG  <wl@gnu.org>
3675         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
3677 2002-06-23  Werner LEMBERG  <wl@gnu.org>
3679         * doc/pic.ms: Improve documentation of composite block objects.
3681 2002-06-22  Werner LEMBERG  <wl@gnu.org>
3683         * src/roff/troff/input.cc (init_registers): Add three registers
3684         `seconds', `minutes', and `hours' to hold the current time.
3686         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3687         Updated.
3689 2002-06-20  Werner LEMBERG  <wl@gnu.org>
3691         Make \X accept both `\ ' and `\~', converting them to single space
3692         characters.
3694         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
3695         (token::unstretchable_space): New inline function.
3696         * src/roff/troff/input.cc (token::next, token::delimiter,
3697         token::description, token::add_to_node_list, token::process): Handle
3698         TOKEN_UNSTRETCHABLE_NODE.
3699         (encode_char): Handle tok.stretchable_space and
3700         tok.unstretchable_space.
3702         * NEWS, doc/groff.texinfo: Document it..
3704 2002-06-19  Werner LEMBERG  <wl@gnu.org>
3706         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
3708         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
3709         keyword to enable/disable SGR output.
3710         (tty_printer::change_fill_color): New function.
3711         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
3713         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
3714         call.
3716 2002-06-18  Werner LEMBERG  <wl@gnu.org>
3718         Add a `color' request and a `.color' register to control usage of
3719         colours.
3721         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
3722         (color_flag): This (which is the inverse).
3723         (activate_color): New function.
3724         (main, init_input_requests): Updated.
3725         * src/roff/troff/troff.h, src/roff/troff/node.cc
3726         (troff_output_file::fill_color, troff_output_file::glyph_color):
3727         Updated.
3729         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3730         Document the changes.
3732 2002-06-17  Colin Watson  <cjwatson@debian.org>
3734         Circumvent bug in autoconf 2.53 regarding top_builddir.
3736         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
3737         * Makefile.in, doc/Makefile.in:
3738         s/@top_builddir@/@groff_top_builddir@/.
3739         * configure: Regenerated (with autoconf 2.53).
3741 2002-06-17  Werner LEMBERG  <wl@gnu.org>
3743         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
3744         `paperwidth' and `paperlength' for the `papersize' keyword.
3746 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
3748         * src/devices/grops/grops.man: Add info about Type 42 fonts.
3750 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
3752         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
3753         html_printer::do_linelength, html_printer::do_pageoffset,
3754         html_printer::do_indentation, html_printer::do_tempindent,
3755         html_printer::do_break, html_printer::begin_page): Clear indented
3756         text.
3757         * tmac/html.tmac: Disable hyphenation.
3759 2002-06-15  Werner LEMBERG  <wl@gnu.org>
3761         Don't produce HTML files if utility programs are missing.
3763         * Makefile.in (make_html, make_install_html): New variables.
3764         (MDEFINES): Updated.
3766         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
3767         utility programs.
3768         * configure.ac: Use it.
3769         * configure: Regenerated.
3771         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
3772         (HTMLEXAMPLESFILES): This new variable.
3773         (EXAMPLESIMAGEFILES): Renamed to...
3774         (HTMLEXAMPLEIMAGEFILES): This.
3775         (CLEANADD): Add HTMLEXAMPLEFILES.
3776         (all): Use `make_html'.
3777         (html): New target.
3778         (install_data): Use `make_install_html'.
3779         Move html stuff to...
3780         (install_html): This new target.
3781         (uninstall_sub): Updated.
3783 2002-06-14  Bernd Warken  <bwarken@mayn.de>
3785         * src/roff/grog/Makefile.sub (grog): Renamed to...
3786         (grog.old): This.
3787         (grog): New rule to always install grog.sh as grog.
3789 2002-06-08  Bernd Warken  <bwarken@mayn.de>
3791         * src/roff/grog/grog.pl: Fix typo.
3793 2002-06-07  Werner LEMBERG  <wl@gnu.org>
3795         * doc/groff.texinfo: Add more info on .tr arguments.
3797 2002-06-05  Werner LEMBERG  <wl@gnu.org>
3799         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3801         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
3802         * configure: Regenerated.
3804 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3806         * src/roff/troff/symbol.cc (table_sizes): Add more values.
3808         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
3810 2002-06-04  Werner LEMBERG  <wl@gnu.org>
3812         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
3813         is not initialized at the time we need it in case `--prefix' hasn't
3814         been set.  Check for `ac_default_prefix' also.
3815         Test for `papersize' keyword also and generalize allowed whitespace.
3816         * configure: Regenerated.
3818         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
3819         `paperlength'.
3821         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
3822         with...
3823         (src_version, src_revision): New variables to avoid overwriting
3824         from parent make process.
3825         (version.cc): Updated.
3827         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
3828         (linebuf, linebufsize): New global variables.
3829         (sys_fatal): Use `fatal' to abort properly.
3830         (get_line): New function.
3831         (get_resolution): Use it.
3832         Improve error messages.
3833         (get_papersize): Check `papersize' also.
3834         Use `get_line'.
3835         Improve error messages.
3837 2002-06-03  Werner LEMBERG  <wl@gnu.org>
3839         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
3840         should be removed only if builddir is not srcdir.
3841         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
3842         (clean): Depend on `mostlyclean'.
3843         (distclean): Depend on `clean'.
3844         (realclean, extraclean): Depend on `distclean'.
3845         (.y.cc, .y.o): Simplified.  The output files are no longer written
3846         to srcdir but to builddir.
3847         * Makefile.in (MDEFINES): Add `version' and `revision'.
3848         (uninstall_dirs): Fix order of directories.
3849         * doc/Makefile.sub (version, revision): Removed.
3850         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
3851         Added `HTMLDOCFILES'.
3852         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
3853         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
3854         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
3855         as prefix.
3857         * doc/texinfo.tex (\authortt): New macro.
3858         (\shortcontt): Define.
3859         (\titlepage): Set \tt to \authortt while defining \authorfont.
3860         (\appendixbox): New macro.
3861         (\chapmacro, \appendixentry): Use \appendixbox to get even
3862         indentation for letters.
3863         (\summarycontents): Set \tt.
3864         (\internalpagesize): Add two arguments for real paper width and
3865         height as needed by pdfTeX.
3866         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
3867         Updated.
3868         (\tempdima, \tempdimb): New temporary dimensions.
3869         (\pagesizesyyy): Updated.
3871 2002-06-02  Werner LEMBERG  <wl@gnu.org>
3873         Adding a new keyword `papersize' to the DESC file format (similar
3874         but not completely identical to grolbp's extension).  grops now has
3875         a -p command line option to override `papersize'.  Finally, grolbp
3876         has been adapted to the new syntax.
3878         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
3879         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
3880         elements.
3881         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
3882         (CCSRCS): Add `paper.cc'.
3884         * src/include/font.h (font): Add `papersize' element.
3885         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
3886         (font::scan_papersize): New function.
3887         (font::load_desc): Use it for handling `papersize' keyword.
3888         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
3890         * src/devices/grops/ps.cc: Include paper.h.
3891         (user_paper_length): New global variable.
3892         (ps_printer): Use paper length as initializer.
3893         (make_printer): Updated.
3894         (main): Handle new `-p' option.
3895         * src/devices/grops/grops.man: Updated.
3897         * src/devices/grolbp/lbp.cc: Include paper.h.
3898         s/papersizes/lbp_papersizes/.
3899         (set_papersize): Use new `papersizes' array.
3900         (handle_unknown_desc_command): Don't handle `papersize'.
3901         (main): Use `font::scan_papersize' for handling `-p' option.
3902         * src/devices/grolbp/grolbp.man: Updated.
3904         * man/groff_font.man: Document `papersize'.
3905         * NEWS: Updated.
3907 2002-05-30  Werner LEMBERG  <wl@gnu.org>
3909         * src/devices/grops/TODO: Updated.
3910         * src/devices/grops/grops.man: More info on paper formats.
3911         * man/groff_font.man: Document `paperheight' and `paperwidth'.
3913 2002-05-29  Werner LEMBERG  <wl@gnu.org>
3915         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
3916         to list only if srcdir != currdir.
3917         (distfiles): New target.
3919         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
3920         (NOMAKEDIRS): New variable.
3921         (DISTDIRS): Use it.
3923 2002-05-26  Werner LEMBERG  <wl@gnu.org>
3925         Add .output request, similar to \! at top-level.
3927         * src/roff/troff/input.cc (transparent): Remove unused declaration.
3928         (output_request): New function.
3929         (init_input_requests): Add it.
3930         Sorted.
3931         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3932         Document it.
3934         * Makefile.in (MDEFINES): Add INSTALL_INFO.
3935         (prepare_examples): Fix typo.
3936         * doc/groff.texinfo (@direntry): Fix it.
3938 2002-05-25  Werner LEMBERG  <wl@gnu.org>
3940         Including the doc subdir into groff's Makefile system.
3942         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
3943         * configure.ac: Use it.
3944         Generate `doc/Makefile'.
3945         * configure: Regenerated.
3947         * Makefile.in (infodir, INSTALL_INFO): New variables.
3948         (MDEFINES, uninstall_dirs): Updated.
3949         (OTHERDIRS): Add `doc'.
3950         * Makefile.comm (CLEANDIRADD): New variable.
3951         (mostlyclean): Use it.
3953         * doc/Makefile.sub, doc/Makefile.in: New files.
3954         * doc/Makefile: Removed.
3956         * NEWS, INSTALL: Updated.
3958 2002-05-24  Werner LEMBERG  <wl@gnu.org>
3960         * doc/homepage.ms: Renamed to ...
3961         * doc/webpage.ms: This.
3962         Use `.NHR'.
3964 2002-05-23  Werner LEMBERG  <wl@gnu.org>
3966         Integrating the `mom' macro package, contributed by Peter Schaffter
3967         <df191@ncf.ca>.
3969         * contrib/mom/*: New subdirectory tree.
3970         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
3971         be used for documentation files.
3972         (MDEFINES, uninstall_dirs): Use them.
3973         (OTHERDIRS): Add contrib/mom.
3974         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
3975         @HTMLDOCDIR@.
3976         * MANIFEST, NEWS: Updated.
3978 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
3980         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
3981         if at outer level; at start-up we are at outer level.
3983         * src/roff/troff/input.cc (do_suppress): Implement it.
3984         Simplify \O[3].
3986         Add option -p to show progress information.
3987         pre-grohtml will now render only one page at a time, reducing the
3988         size of needed disk resources enormously.
3990         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
3991         (imagePageName): New global variable.
3992         (psPageName, show_progress, currentPageNo): New global variables.
3993         (html_system): Close saved stderr and stdout handles.
3994         (write_end_image): Accept a parameter to control \O escape.
3995         (write_start_image): Adapted to new \O meaning.
3996         (char_buffer::write_upto_newline): Updated.
3997         (createAllPages): Replaced with...
3998         (createPage): This new function to create a single page for images.
3999         It uses `psselect' from the psutils package.
4000         (removeAllPages): Removed.
4001         (createImage): Updated.
4002         Handle progress display.
4003         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
4004         (scanArguments): Add option -p.
4005         (makeTempFiles): Updated to create temp files for psPageName and
4006         imagePageName.
4007         (removeTempFiles): Removed.
4008         (main): Updated.
4010         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
4011         html_printer::write_header): Append `\0' to `buffer'.
4012         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
4013         (main): Handle -p.
4014         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
4015         Handle `text_emitted'.
4016         (html_text::table_is_void): Slightly rewritten.
4017         (stop): New external symbol.
4018         (html_text::do_push) [DEBUGGING]: Use it and simplify.
4019         (html_text::shutdown): Call `dump_stack'.
4020         (html_text::do_space): Rewritten.
4021         * src/devices/grohtml/grohtml.man: Document -p and the need of
4022         `psselect'.
4024         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
4025         new \O syntax.
4026         Call \O[0] if `ps4html' is active.
4027         * tmac/s.tmac (@EQ, @EN): Handle html better.
4028         (@TS, TE): Ditto.
4029         * tmac/html.tmac: Don't use black for background colour.
4031         * src/roff/troff/node.cc: Include `div.h'.
4032         (troff_output_file::really_print_line): Don't use `is_on'. 
4033         (troff_output_file::word_marker, troff_output_file::flush_tbuf
4034         troff_output_file::check_charinfo,
4035         troff_output_file::put_char_width, troff_output_file::put_char,
4036         troff_output_file::determine_line_limits, troff_output_file::draw,
4037         real_output_file::begin_page, glyph_color_node::tprintf,
4038         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
4039         Use `is_on'.
4040         (troff_output_file::really_on): Call `do_motion'.
4041         (suppress_node::tprint): Use `get_page_number' instead of `%'
4042         register.
4043         Call `reset_output_registers' conditionally on `is_on'.
4045         * doc/groff.texinfo: Document new syntax of \O.
4046         * NEWS, man/groff_diff.man: Updated.
4048 2002-05-22  Werner LEMBERG  <wl@gnu.org>
4050         * MORE.STUFF: Add info about David Frey's deroff implementation.
4051         Mention troff.org.
4053 2002-05-16  Werner LEMBERG  <wl@gnu.org>
4055         Pic's `with' attribute now accepts positions.
4057         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
4058         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
4059         conflicts.
4060         (object_spec): Add rule for `WITH' and `position'.
4061         (relative_path): Give `corner' the precedence of `CHOP'.
4062         * src/preproc/pic/object.h (path): New members `pos' and
4063         `is_position'.
4064         * src/preproc/pic/object.cc: Updated initializers of `path'.
4065         (path::follow): Handle `is_position'.
4067         * doc/pic.ms: Completely updated grammar description.
4068         Many typographical improvements.
4070 2002-05-15  Werner LEMBERG  <wl@gnu.org>
4072         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
4073         code of x in range 0-127) also.
4074         * doc/groff.texinfo, man/groff_diff.man: Updated.
4076         Added keywords `north', `south', `east', and `west' for corners
4077         in pic.
4079         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
4080         and WEST.
4081         (yylex): Handle them.
4082         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
4083         (corner): Handle them.
4085 2002-05-14  Werner LEMBERG  <wl@gnu.org>
4087         * src/devices/grops/grops.man: Clarify handling of `download' file.
4089 2002-05-11  Werner LEMBERG  <wl@gnu.org>
4091         Adding `warnscale' and `spreadwarn' requests, based on a patch from
4092         Jeffrey Friedl <jfriedl@yahoo.com>.
4094         * src/roff/troff/input.cc (spread_limit, warn_scale,
4095         warn_scaling_indicator): New global variables.
4096         (warnscale_request, spreadwarn_requests): New functions.
4097         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
4098         (init_input_requests): Updated.
4099         (error_type): Add `OUTPUT_WARNING'.
4100         (do_error): Handle it.
4101         (output_warning): New warning function which shows output location.
4102         * src/roff/troff/env.h (spread_limit): New external variable.
4103         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
4104         `output_warning'.
4105         (distribute_space): Emit warning if added space is larger than
4106         `spread_limit'.
4107         (environment::possibly_break_line): Emit warning if a line can't
4108         be adjusted on both sides.
4110         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
4112 2002-05-08  Werner LEMBERG  <wl@gnu.org>
4114         * src/roff/troff/node.cc (special_node::special_node): Use
4115         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
4116         \X''\% crashes, for example.
4118         * doc/groff.texinfo: Document \! and \? used at top-level.
4120 2002-05-06  Werner LEMBERG  <wl@gnu.org>
4122         * src/preproc/pic/pic.man: Fix some keyword syntax.
4123         Other minor typographical fixes.
4125         * src/roff/groff/groff.man: Fix typos.
4127 2002-05-04  Werner LEMBERG  <wl@gnu.org>
4129         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
4130         (ShortOpt[]): This to avoid problems with refer.
4132         * doc/pic.ms: Fix typo.
4133         Fix pic grammar description.
4135         * tmac/an-old.tmac (ne): Use de1, not de.
4137 2002-05-03  Werner LEMBERG  <wl@gnu.org>
4139         * doc/groff.texinfo: Finished separation of glyphs and characters.
4140         Don't use the string `Appendix' for appendix headers (both in
4141         the text and the table of contents).
4142         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
4143         directories.
4145         Use registers LL and LT (similar to -ms) for controlling the
4146         length of title and line, respectively, in the -man and -mdoc
4147         macro packages.
4149         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
4150         (doc-setup-page-layout): Use \n[LL] and \n[LT].
4151         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
4152         (TH): Use \n[LL].
4153         (an-header, an-p-footer): Use \n[LT].
4154         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
4155         doc/groff.texinfo: Document it.
4157 2002-05-02  Werner LEMBERG  <wl@gnu.org>
4159         * doc/fdl.texi: New file.
4160         * doc/groff.texinfo: Include it.
4161         Define and use @copying.
4162         Starting with separating glyph, symbol, and character.
4164 2002-04-27  Werner LEMBERG  <wl@gnu.org>
4166         * Makefile.in (EXEEXT): Set it.
4167         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
4168         programs.
4170         * src/include/nonposix.h: Define GS_NAME.
4171         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
4173         Some preliminary changes for EMX support under OS/2.
4175         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
4176         __EMX__ similar to __MSDOS__.
4177         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
4179 2002-04-25  Werner LEMBERG  <wl@gnu.org>
4181         * doc/groff.texinfo: Integrated groff_out.man.
4182         Some macro fixes.
4184 2002-04-23  Werner LEMBERG  <wl@gnu.org>
4186         * man/groff_out.man: Minor fixes.
4188 2002-04-23  Werner LEMBERG  <wl@gnu.org>
4190         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
4191         correct page references.
4192         Fixed many index entries.
4194 2002-04-23  Bernd Warken  <bwarken@mayn.de>
4196         * man/roff.man: Enlarged.
4198 2002-04-22  Werner LEMBERG  <wl@gnu.org>
4200         * doc/groff.texinfo: More examples, other fixes.
4202 2002-04-20  Werner LEMBERG  <wl@gnu.org>
4204         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
4205         will now form a chain, e.g.
4207           .pi foo
4208           .pi bar
4210         is now the same as
4212           .pi foo | bar
4214         This is for compatibility with plan 9's troff.
4216         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
4217         with UNIX troff.
4218         * NEWS: Updated.
4220         * doc/groff.texinfo: Add documentation of remaining requests and
4221         registers.
4223 2002-04-19  Werner LEMBERG  <wl@gnu.org>
4225         * doc/groff.texinfo: Add documentation of remaining escapes.
4227         * font/devdvi/generate/tc.map: Remove entry for `sr'.
4228         * font/devdvi/*TC: Regenerated.
4230 2002-04-18  Werner LEMBERG  <wl@gnu.org>
4232         * src/roff/troff/input.cc (token::next): Make \H behave consistently
4233         if not in compatibility mode, i.e., increment relative to the
4234         previous height.
4235         * doc/groff.texinfo: Updated accordingly.
4237 2002-04-17  Werner LEMBERG  <wl@gnu.org>
4239         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
4241 2002-04-16  Bernd Warken  <bwarken@mayn.de>
4243         * src/roff/groff/groff.man: Improve documentation of -P option.
4244         Other minor fixes.
4246 2002-04-15  Werner LEMBERG  <wl@gnu.org>
4248         Add new escape \F to switch font family.
4250         * src/roff/troff/input.cc (token::next): Handle \F.
4251         * src/roff/troff/env.cc (environment::set_family): Handle
4252         `interrupted' flag.
4253         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4254         Document it.
4256 2002-04-14  Werner LEMBERG  <wl@gnu.org>
4258         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
4259         spaces in tags.
4261 2002-04-13  Werner LEMBERG  <wl@gnu.org>
4263         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
4264         \m[] and \M[], respectively.
4266         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
4267         (symbol::symbol): Handle NULL string and empty string differently.
4268         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
4269         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
4270         Add optional parameter.
4271         Updated calling functions.
4272         (get_copy, do_glyph_color, do_fill_color, token::next): Use
4273         `symbol::is_empty'.
4274         * src/roff/troff/env.cc (environment::set_font): Ditto.
4276         * src/preproc/pic/troff.cc (troff_output::set_fill,
4277         troff_output::reset_color: Updated.
4279         * tmac/www.tmac: Updated.
4281         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
4282         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
4283         Updated.
4285         * tmac/Xps.tmac: Remove some redundant code.
4287         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
4288         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
4289         man/groff_out.man, man/groff.man, man/groff_diff.man,
4290         src/roff/groff/groff.man: Replace \f[P] with \f[].
4292 2002-04-13  Bernd Warken  <bwarken@mayn.de>
4294         * src/include/printer.h, src/libs/libdriver/printer.cc
4295         (printer::change_fill_color): New member function.
4296         * src/libs/libdriver/input.cc (parse_D_command): Use it.
4298 2002-04-12  Werner LEMBERG  <wl@gnu.org>
4300         * doc/groff.texinfo: Completed pass on gtroff reference.
4302 2002-04-11  Werner LEMBERG  <wl@gnu.org>
4304         * doc/groff.texinfo: More fixes.
4306 2002-04-11  Bernd Warken  <bwarken@mayn.de>
4308         * src/include/color.h: Decorate with `const'.
4309         Use `size_t'.
4310         Include `stddef.h'.
4311         * src/libs/libgroff.color.cc: Decorate with `const'.
4312         Use `size_t'.
4313         (color::color): Initialize members.
4314         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
4315         command according to the documentation.
4317         * man/groff_out.man: Updated.
4318         Minor fixes.
4320 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
4322         * src/preproc/html/pre-html.cc (write_start_image): Remove
4323         redundant output.
4324         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
4326         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
4327         \C'hy' caused an assertion failure.
4329         * src/roff/troff/env.cc (environment::environment): Initialize
4330         `emitted_node'.
4331         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
4333 2002-04-10  Werner LEMBERG  <wl@gnu.org>
4335         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4336         Document pvs request and .pvs register.
4338 2002-04-09  Werner LEMBERG  <wl@gnu.org>
4340         * doc/groff.texinfo: Improve and fix documentation of diversions
4341         and environments.
4343 2002-04-08  Werner LEMBERG  <wl@gnu.org>
4345         * doc/groff.texinfo: Fix documentation of drawing functions.
4346         Other minor fixes.
4348 2002-04-07  Werner LEMBERG  <wl@gnu.org>
4350         * doc/groff.texinfo: Better documentation of double quotes as
4351         arguments.
4352         Other minor fixes.
4354 2002-04-06  Werner LEMBERG  <wl@gnu.org>
4356         * man/groff_font.man: Document names of special characters better.
4357         * doc/groff.texinfo: Minor improvements.
4359         * tmac/lbp.tmac: Load latin1.tmac.
4360         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
4362         * font/devX*/*: Regenerated (all chars > 0x80 removed).
4364 2002-04-05  Werner LEMBERG  <wl@gnu.org>
4366         * tmac/tty.tmac: Don't use shc request.
4367         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
4368         * NEWS: Updated.
4370         * man/groff_diff.man: Minor fixes.
4372         * font/devlbp/*: Remove all `charXXX' entities.
4374         * src/libs/libgroff/font.cc (font::~font): Deallocate
4375         `special_device_coding'.
4376         (font::load): Use `new' for allocating `special_device_coding'.
4377         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
4378         Removed unused member.
4380 2002-04-05  Werner LEMBERG  <wl@gnu.org>
4382         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
4383         (resource_manager::do_begin_binary,
4384         resource_manager::do_begin_data): Use it.
4386         * doc/texinfo.tex: Updated to version 4.2.
4388         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
4389         (token::zero_width_break): New inline function.
4390         * src/roff/troff/input.cc (token::next): Use it.
4391         (token::description): Updated.
4392         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
4393         (token::add_to_node_list, token::process): Use it.
4394         * NEWS, doc/groff.texinfo: Updated.
4396         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
4397         * tmac/tty.tmac: Add missing backslash.
4399 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
4401         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
4402         `.ps' register instead of `.s' to handle fractional point sizes.
4403         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
4404         limit_box::output): Ditto.
4405         * src/preproc/eqn/other.cc (size_box::compute_metrics,
4406         size_box::output): Ditto.
4407         * src/preproc/eqn/over.cc (over_box::compute_metrics,
4408         over_box::output): Ditto.
4409         * src/preproc/eqn/script.cc (script_box::compute_metrics,
4410         script_box::output): Ditto.
4411         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
4412         sqrt_box::output): Ditto.
4414 2002-04-03  Michael Selway  <mas@ssl.co.uk>
4416         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
4417         Fix typo.
4419 2002-04-03  Werner LEMBERG  <wl@gnu.org>
4421         * doc/homepage.ms: Reduce title size.
4422         * doc/groff.texinfo: Fix documentation of .t register.
4423         Fix handling of colon.
4424         Fix `\' vs. `\\'.
4426         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
4427         only if page length is positive to avoid a loop.
4429         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
4430         tbl.
4432 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
4434         * src/include/nonposix.h, src/roff/groff/pipeline.c:
4435         s/__CYGWIN32__/__CYGWIN__/.
4437 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
4439         * doc/gnu.xpm: New image contributed by Emily Mulley.
4440         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
4441         (homepage.html): Be dependent on gnu.eps.
4442         * doc/homepage.ms: Updated to new image.
4444         * src/devices/grohtml/post-html.cc (html_printer): New member
4445         `sbuf_prev_hpos'.
4446         (html_printer::flush_sbuf, html_printer::set_char): Set it.
4447         (html_printer::sbuf_continuation): Use it.
4449 2002-03-28  Werner LEMBERG  <wl@gnu.org>
4451         * src/libs/libgroff/getopt.c: Updated to latest version.
4453         * tmac/README: More on hyphen.tex license.
4455 2002-03-26  Larry Kollar  <kollar@alltel.net>
4457         * doc/groff.texinfo: Add documentation of most missing requests.
4459 2002-03-25  Werner LEMBERG  <wl@gnu.org>
4461         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
4462         of `+-', `mu', and `di', respectively.
4464         * font/devascii/R.proto, font/devutf8/R.proto,
4465         font/devlatin1/R.proto, font/devhtml/R.proto,
4466         font/devcp1047/R.proto, font/devlpb/*: Add them.
4467         * font/devps/generate/textmap: Ditto.
4468         * font/devps/*: Regenerated.
4469         * font/devlj4/generate/text.map: Add them.
4470         * font/devlj4/*: Regenerated.
4471         * font/devdvi/generate/tc.map: Use them.
4472         * font/devdvi/generate/texsy.map: Add them.
4473         * font/devdvi/*: Regenerated.
4474         * font/devX*/*: Regenerated.
4476         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
4477         tmac/tty-char.tmac: Updated.
4479         * NEWS, man/groff_char.man: Updated.
4481 2002-03-24  Werner LEMBERG  <wl@gnu.org>
4483         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
4484         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
4485         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
4486         we use `.fchar' in dvi.tmac.
4487         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
4488         * tmac/Xps.tmac: Simplify some char definitions.
4489         Add definition for \[f/].
4490         * man/groff_char.man: Updated for new X.tmac.
4492         * tmac/README: New file.
4494 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
4496         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
4497         internal .y.o rule took precendence over the .y.cc rule, compiling
4498         the yacc files with gcc instead of g++.
4500 2002-03-23  Werner LEMBERG  <wl@gnu.org>
4502         * tmac/dvi.tmac: Add replacement font for `CB'.
4504         * tmac/doc.tmac: s/request/macro/ in messages.
4505         (doc-generic-macro): Improve error message.
4506         * tmac/groff_mdoc.man: Minor improvements.
4508 2002-03-22  Werner LEMBERG  <wl@gnu.org>
4510         * doc/groff.texinfo: Document possible conflict between `tr' and
4511         `char' requests.
4513 2002-03-21  Werner LEMBERG  <wl@gnu.org>
4515         Improve handling of hyphenation patterns.  It is now possible to
4516         use most of TeX's pattern files unmodified.  To make the process
4517         more flexible, a new request `hpfcode' has been added which
4518         provides a character code mapping for the `hpf' request.  See
4519         comment before hpf_getc() for more details.
4521         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
4522         functions.
4523         (read_patterns_file): Additional parameter for exception dictionary.
4524         Extended to recognize \pattern, \hyphenation, and \endinput.
4525         (do_hyphenation_patterns_file): Updated.
4526         * src/roff/troff/env.h (hpf_code_table): New extern.
4528         * src/roff/troff/input.cc (hpf_code_table): New array.
4529         (init_hpf_code_table, hyphenation_patterns_file_code): New
4530         functions.
4531         (hyphenation_code): Handle translation from `trin' correctly.
4532         (main, init_input_requests): Updated.
4533         (charinfo::set_translation): Handle hyphenation code also.
4535         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
4536         inline function.
4538         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
4539         char' is used for offsets in hyphenation exceptions.
4541         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
4543         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4545 2002-03-20  Larry Kollar  <kollar@alltel.net>
4547         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
4548         requests.
4550 2002-03-18  Werner LEMBERG  <wl@gnu.org>
4552         * tmac/html.tmac: Fix serious typo.
4554 2002-03-17  Larry Kollar  <kollar@alltel.net>
4556         * doc/groff.texinfo: Add documentation for `writec' request.
4558 2002-03-17  Werner LEMBERG  <wl@gnu.org>
4560         Added request `hpfa' to append hyphenation patterns.
4562         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4563         parameter `append'.
4564         (hyphenation_patterns_file): Renamed to...
4565         (do_hyphenation_patterns_file): This.
4566         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
4567         functions.
4568         (init_hyphen_requests): Updated.
4569         * NEWS, man/groff.man, man/groff_diff.man: Document it.
4571 2002-03-16  Werner LEMBERG  <wl@gnu.org>
4573         Added request `writec' in analogy to `tmc'.
4575         * src/roff/troff/input.cc (write_request): Renamed to...
4576         (do_write_request): This.
4577         Added one parameter.
4578         (write_request, write_request_continue): New functions.
4579         (init_input_requests): Updated.
4580         * NEWS, man/groff.man, man/groff_diff.man: Document it.
4582         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
4583         5-10000pt.
4584         * NEWS: Document it.
4586 2002-03-15  Werner LEMBERG  <wl@gnu.org>
4588         * man/groff.man: Add writem request.
4590         Add request `trin' (translate input) to make `.asciify' work
4591         correctly.  This is necessary since `charXXX' entity names are no
4592         longer hardcoded in font definition files.
4594         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
4595         `translate_input' members.
4596         (charinfo::set_asciify_code, charinfo::get_asciify_code,
4597         charinfo::set_translation_input): New methods.
4598         (charinfo::set_translation): Add third argument.
4599         * src/roff/troff/input.cc (charinfo:set_translation): Set
4600         `asciify_code'.
4601         (do_translate): Add second argument.
4602         (translate_input): New function.
4603         (init_input_requests): Updated.
4604         * src/roff/troff/node.cc (glyph_node::asciify,
4605         composite_node::asciify): Use `get_asciify_code'.
4607         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
4609         * NEWS, man/groff.man, man/groff_diff.man: Updated.
4611 2002-03-14  Larry Kollar  <kollar@alltel.net>
4613         * doc/groff.texinfo: Improve documentation of .RS and .RE.
4615 2002-03-14  Werner LEMBERG  <wl@gnu.org>
4617         Add a new request `sizes' similar to the `sizes' command in DESC
4618         files.
4620         * src/roff/troff/env.cc (override_sizes): New function.
4621         (init_env_requests): Use it.
4622         * src/roff/troff/token.h: Export `read_string'.
4623         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4625 2002-03-12  Werner LEMBERG  <wl@gnu.org>
4627         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
4629 2002-03-10  Werner LEMBERG  <wl@gnu.org>
4631         * tmac/pspic.tmac: Add support for -Tdvi.
4632         * tmac/dvi.tmac: Include pspic.tmac.
4633         * src/devices/grodvi/grodvi.man: Document it.
4634         * NEWS: Updated.
4636         * font/devlj4/generate/Makefile: Fix URL of metric files.
4638 2002-03-09  Werner LEMBERG  <wl@gnu.org>
4640         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
4642 2002-03-09  Larry Kollar  <kollar@alltel.net>
4644         * tmac/groff_ms.man: Add documentation for RS and RE macros.
4646 2002-03-08  Werner LEMBERG  <wl@gnu.org>
4648         * doc/groff.texinfo: Fixes for texinfo 4.1.
4650 2002-03-07  Werner LEMBERG  <wl@gnu.org>
4652         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
4653         included.
4654         Handle CYGWIN properly.
4656 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
4658         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
4659         * tmac/lbp.tmac: Add some font translations.
4661 2002-03-02  Werner LEMBERG  <wl@gnu.org>
4663         * font/devcp1047/R.proto, font/devlatin1/R.proto,
4664         font/devhtml/R.proto: Remove `charXXX'  entries.
4665         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
4666         where appropriate.
4668         * font/devlj4/generate/text.map: Remove `charXXX' entries.
4669         * font/devlj4/*: Regenerated all font definition files.
4670         * tmac/lj4.tmac: Load latin1.tmac.
4672         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
4673         from 2000-06-17: LJ4 metric files are *not* text files.
4675         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
4676         register to test for EBCDIC.
4678 2002-03-01  Werner LEMBERG  <wl@gnu.org>
4680         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
4681         files (as grops already does).
4682         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
4683         files.
4684         * src/devices/grops/grops.man: Document comment lines in encoding
4685         files.
4687         * tmac/cp1047.tmac: New file.
4688         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
4689         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
4690         * tmac/Makefile.sub (NORMALFILES): Updated.
4692         * tmac/ec.tmac: Don't load latin1.tmac again.
4694         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
4695         font/devps/generate/dingbats.map,
4696         font/devps/generate/dingbats.rmap, font/devps/text.enc,
4697         font/devps/generate/Makefile (symbolmap): Add header comment.
4698         * font/devps/generate/textmap: Ditto.
4699         Remove `charXXX' entries.
4700         * font/devps/symbolmap: Regenerated.
4701         * font/devps/*: Regenerated all font definition files.
4703 2002-02-28  Werner LEMBERG  <wl@gnu.org>
4705         Add color support to grodvi (for drawing colors are currently
4706         translated to gray values).
4708         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
4709         (dvi_printer): Add `cur_color' member.
4710         (dvi_printer::set_color): New function.
4711         (draw_dvi_printer): Remove `fill'.
4712         (draw_dvi_printer::fill_next): Pass environment as parameter.
4713         Update code for new color support translated to gray.
4714         (dvi_printer::set_char): Updated.
4715         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
4716         changes crossing the page border.
4717         (dvi_printer::draw): Updated.
4718         Remove cases `f' and `F'.
4719         * tmac/dvi.tmac: Add color definitions.
4720         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4722         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
4723         used incorrectly.
4725         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
4726         versions of autoconf.
4727         * configure: Updated.
4729         * doc/homepage.ms: Use `.blm'.
4730         * tmac/www.tmac (www-depth): New auxiliary variable.
4731         (www-pop-level): Don't issue HTML tag.
4732         (ULS, ULE, LI): Use absolute indentation.
4734         * src/devices/grops/ps.cc (ps_printer::begin_page,
4735         ps_printer::end_page): Switch forth and back to default color while
4736         starting a new page.
4738 2002-02-27  Werner LEMBERG  <wl@gnu.org>
4740         Add EC and TC fonts to devdvi.
4742         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
4743         * font/devdvi/generate/cork.map: Renamed to...
4744         * font/devdvi/generate/ec.map: This.
4745         Remove entry for `aq'.
4746         * font/devdvi/generate/tc.map: New file.
4747         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
4748         EC and TC fonts.
4749         (FONTS): Updated.
4750         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
4751         * font/devdvi/Makefile.sub (DEVFILES): Updated.
4752         * tmac/ec.tmac: New file.
4753         * tmac/Makefile.sub (NORMALFILES): Updated.
4754         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4755         * man/groff_char.man: Check `ECFONTS' register.
4757         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
4759 2002-02-26  Werner LEMBERG  <wl@gnu.org>
4761         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
4762         * font/devdvi/generate/cork.map: Add 'y and 'Y.
4763         * font/devdvi/*: Updated.
4764         * tmac/dvi.tmac: Formatting.
4766         Add font `HBI' for the dvi output.
4767         Add support for font families `T' and `H'.
4769         * font/devdvi/HBI: New file.
4770         * font/devdvi/B: Renamed to ...
4771         * font/devdvi/TB: This.
4772         * font/devdvi/BI: Renamed to ...
4773         * font/devdvi/TBI: This.
4774         * font/devdvi/I: Renamed to ...
4775         * font/devdvi/TI: This.
4776         * font/devdvi/R: Renamed to ...
4777         * font/devdvi/TR: This.
4778         * font/devdvi/H: Renamed to ...
4779         * font/devdvi/HR: This.
4780         * font/devdvi/Makefile.sub (DEVFILES): Updated.
4781         * font/devdvi/generate/Makefile (HBI): New rule.
4782         (FONTS): Updated.
4783         (R, I, B, BI, H): Renamed to ...
4784         (TR, TI, TB, TBI, HR): This, respectively.
4785         (srcdir): Fixed.
4786         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4787         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
4788         Add `styles' and `family' keywords.
4789         * tmac/dvi.tmac: Alias `H' to `HR'.
4790         Add some fspecial requests for italic fonts.
4791         Add TR and TI as special.
4792         Add support for `_' with font CWI.
4794         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
4795         operator `:'.  Until now, the expression `0:1' would return 2
4796         instead of 1.
4798 2002-02-25  Werner LEMBERG  <wl@gnu.org>
4800         * man/groff_char.man: Added some missing PS glyph names (from the
4801         Adobe Glyph List).
4802         * font/devps/generate/textmap, font/devps/symbolmap: Add
4803         `arrowupdn'.
4805         * doc/groff.texinfo: Minor additions and fixes.
4806         * man/groff_diff.man: Remove documentation of fp request.  This
4807         is already covered in the original troff manual.
4808         Updated to be consistent with other doc files.
4809         * NEWS: Updated.
4811 2002-02-24  Werner LEMBERG  <wl@gnu.org>
4813         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
4814         TTYDEVDIRS.
4815         Define new variable OTHERDEVDIRS (containing `font/devlj4
4816         font/devlbp' if not EBCDIC).
4817         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
4818         (OTHERDEVDIRS): New variable.
4819         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
4820         * configure: Regenerated.
4822         * NEWS, src/devices/grotty/grotty.man: Updated.
4824 2002-02-23  Werner LEMBERG  <wl@gnu.org>
4826         * src/roff/troff/input.cc (do_overstrike, do_bracket,
4827         get_line_arg): Honour input level.
4829         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
4831         * font/*/*: Implement it in all font files.
4832         * font/devps/generate/textmap, font/devps/generate/symbolchars,
4833         * font/devps/symbolmap: Updated.
4834         * font/devlj4/generate/text.map: Updated.
4835         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
4836         * font/devdvi/generate/texmi.map: Updated.
4838         * font/devutf8/R.proto: Remove all `charXXX' entries.
4839         * font/devutf8/NOTES: Updated.
4841         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
4842         version 4.1.0.
4844         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
4846         * NEWS, man/groff_char.man: Updated.
4848 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
4850         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
4852 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4854         * src/roff/grog/grog.pl: Fix computation of $refer.
4856 2002-02-19  Werner LEMBERG  <wl@gnu.org>
4858         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
4859         `snprintf' and `vsnprintf'.
4861         * src/include/htmlindicate.h: Renamed to...
4862         * src/include/htmlhint.h: This.
4863         * src/include/Makefile.sub: Updated.
4864         * src/preproc/eqn/main.cc: Updated.
4866 2002-02-18  Werner LEMBERG  <wl@gnu.org>
4868         * man/roff.man, man/groff_out.man, man/groff.man,
4869         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
4870         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
4872         * win32-diffs: Updated.
4874 2002-02-17  Werner LEMBERG  <wl@gnu.org>
4876         * doc/Makefile (clean): Add *.eps.
4877         (MEMACROS): Removed.
4878         (TFLAG): New variable.
4879         (TROFF): Use it.
4880         Add -ww.
4881         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
4882         (.me.dit): Fixed.
4883         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
4885         * tmac/www.tmac: Use dummy diversion while resetting and disabling
4886         `.tl'.
4887         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
4888         unstripped.
4889         * src/roff/troff/troff.man: Fix order of parameter description.
4891         * NEWS: Updated.
4893 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
4895         Simplify image handling for grohtml.
4896         Fix <p> bug.
4898         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
4899         comment out.
4900         (html_text::dump_stack): Don't emit newline while debugging.
4901         (html_text::do_push) [DEBUGGING]: Print more info.
4902         (html_text::check_emit_text): Fix handling of <p>.
4903         * src/devices/grohtml/html.h: Updated.
4904         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
4905         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
4906         send its data to stderr also.
4907         Update all callers.
4908         (simple_output::space_or_newline) [DEBUGGING]: Removed.
4909         * src/devices/grohtml/post-html.cc (html_printer::do_links,
4910         html_printer::html_printer): Remove `DEBUGGING' conditionals.
4912         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
4913         Removed.
4914         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
4915         is_inline_image): Removed.
4916         (html_begin_suppress, html_end_suppress): Don't take a parameter.
4917         (graphic_start, graphic_end): Removed.
4918         * src/include/htmlindicate.h: Updated.
4919         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
4920         (macroset_template): New global variable.
4921         (makeFileName): Use `macroset_template'.
4922         (write_end_image): Don't take a parameter.
4923         Don't emit newline.
4924         (write_start_image: Don't emit newline.
4925         (char_buffer::write_upto_newline): Updated.
4926         (char_buffer::skip_to_newline): Renamed to ...
4927         (char_buffer::skip_until_newline): This.
4928         Fix code.
4929         (char_buffer::write_file_troff, char_buffer::write_file_html):
4930         Simplified.
4931         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
4932         (removeAllPages): Remove `DEBUGGING' conditionals.
4933         (addRegDef, dump_args): New functions.
4934         (char_buffer::do_html, char_buffer::do_image): Handle
4935         `www-image-template' command line variable.
4936         Add more debugging code.
4937         (addps4html): Removed.
4938         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
4940         * src/preproc/eqn/main.cc: Include `ctype.h'.
4941         (suppress_html): Removed.
4942         (do_file): Updated.
4943         (inline_equation): Use `html_begin_suppress' and
4944         `html_end_suppress'.
4945         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
4946         (troff_output::start_picture, troff_output::finish_picture):
4947         Updated.
4948         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
4949         (process_input_file): Updated.
4951         * src/roff/troff/div.cc (page_number): Set page number only if the
4952         `ps4html' register isn't defined.
4953         * src/roff/troff/input.cc (image_no): New external variable.
4954         (do_suppress): Use it.
4955         * src/roff/troff/node.h (suppress_node::image_id): New member.
4956         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
4957         (suppress_node::suppress_node): Initialize `image_id' member.
4958         (suppress_node::same): Handle `image_id' also.
4959         (suppress_node::copy): Updated.
4960         (last_image_id): New global variable.
4961         (suppress_node::tprint): Use it.
4963         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
4964         HTML-IMAGE-END.
4965         * tmac/pspic.mac (PSPIC): Fix html support.
4966         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
4967         * tmac/www.tmac (www-image-template): Set up.
4968         (HTMLINDEX): Renamed to...
4969         (HX): This.
4970         (BODYCOLOR): Renamed to...
4971         (BCL): This.
4972         (BACKGROUND): Renamed to...
4973         (BGIMG): This.
4974         (URL): Change order of parameters for consistency.
4975         (MAILTO): Renamed to...
4976         (MTO): This.
4977         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
4978         (IMG, PIMG, MPIMG): This.
4979         (HTML-H-BEGIN, HTML-H-END): Renamed to...
4980         (HnS, HnE): This.
4981         (LINKS): Renamed to...
4982         (LK): This.
4983         (LINE): Renamed to...
4984         (HR): This.
4985         (NO-AUTO-RULE): Renamed to...
4986         (NHR): This.
4987         (HTML-TL): Renamed to...
4988         (HTL): This.
4989         (UL-BEGIN, UL-END): Renamed to...
4990         (ULS, ULE): This.
4991         (DROPCAP): Renamed to...
4992         (DC): This.
4993         (TS, TE, EQ, EN): Provide default definitions.
4994         (www-make-unique-name): Updated.
4995         (HTML-IMAGE-INLINE): Fix typo.
4996         * tmac/groff_www.man: Updated.
4998         * doc/Makefile (homepage.html): Add option -r to grohtml.
4999         Use shortened image name.
5000         * doc/groff.texinfo: Updated info on grohtml strings and macros.
5001         * doc/homepage.ms: Updated and extended.
5003 2002-02-14  Werner LEMBERG  <wl@gnu.org>
5005         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
5007         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
5008         SGR_BACK_DEFAULT_COLOR): Replaced with ...
5009         (tty_printer::put_color): Use it.
5010         (ttr_printer::end_page): Simplify.
5012 2002-02-13  Werner LEMBERG  <wl@gnu.org>
5014         * tmac/groff_tmac.man: Moved to...
5015         * man/groff_tmac.man: This place.
5016         * tmac/Makefile.sub, man/Makefile.sub: Updated.
5018 2002-02-12  Werner LEMBERG  <wl@gnu.org>
5020         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
5021         $(COMPILE.c) to not include groff's assert.h.
5023         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
5024         variable.
5025         * NEWS, src/drivers/grotty/grotty.man: Document it.
5027 2002-02-11  Werner LEMBERG  <wl@gnu.org>
5029         * src/libs/snprintf/snprintf.c: Updated to latest version
5030         (2002-02-11).
5032         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
5033         test whether there is `.]' also.
5034         Don't check for spaces after `.['.
5035         * src/roff/grog/grog.sh: Do the same.
5037 2002-02-10  Werner LEMBERG  <wl@gnu.org>
5039         Illegal -> Invalid.
5041         * src/libs/libgroff/illegal.cc: Renamed to ...
5042         * src/libs/libgroff/invalid.cc: This.
5043         (illegal_char_table): Renamed to ...
5044         (invalid_char_table): This.
5045         * src/libs/libgroff/Makefile.sub: Updated.
5046         * win32-diffs: Updated.
5048         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
5049         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
5050         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
5051         font::load), src/preproc/eqn/main.cc (read_line, main),
5052         src/preproc/eqn/lex.cc (file_input::read_line),
5053         src/preproc/pic/lex.cc (file_input::read_line,
5054         simple_file_input::get, simple_file_input::peek),
5055         src/preproc/pic/main.cc (top_input::get, top_input::peek),
5056         src/preproc/pic/pic.man, src/preproc/refer/main.cc
5057         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
5058         do_bib), src/preproc/tbl/main.cc (table_input::get),
5059         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
5060         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
5061         do_zero_width, read_request, encode_char, ps_get_line,
5062         transparent_file, get_char_for_escape_name, transparent_translate,
5063         asciify, input_char_description, read_string, set_string),
5064         src/roff/troff/env.cc (environment::add_html_tag),
5065         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
5067         * src/include/lib.h: Updated.
5069         * src/preproc/eqn/eqn.cc: Removed.
5071         * NEWS: Updated.
5073         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
5075 2002-02-09  Werner LEMBERG  <wl@gnu.org>
5077         * doc/gnu.xpm: New image.
5078         * doc/Makefile (DOCS): Add homepage.ps.
5079         Add rules for converting xpm->png and xpm->eps.
5080         Use `gnu.{xpm,eps}' as image names.
5081         * doc/homepage.ms: Updated.
5083 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
5085         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
5086         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
5087         Remove calls to `B1' and `B2'
5088         (PNG-IMAGE): New macro for inclusion of images in PNG format.
5089         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
5090         auxiliary variables for MARGIN-PNG-IMAGE.
5091         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
5092         auxiliary macros for MARGIN-PNG-IMAGE.
5093         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
5094         the margin.
5095         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
5096         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
5097         (DROPCAP): New macro to produce dropcap characters.
5098         (www-do-image): Renamed back to...
5099         (HTML-DO-IMAGE): This.
5100         Updated all callers.
5102         * doc/Makefile (gnubw.eps): Updated.
5103         * doc/homepage.ms: Updated.
5105 2002-02-08  Werner LEMBERG  <wl@gnu.org>
5107         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
5108         Added `linethick' to table in section `Style Variables'.
5110 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
5112         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
5114 2002-02-07  Werner LEMBERG  <wl@gnu.org>
5116         Adding options -C (compatibility mode) and -c (grotty's old output
5117         scheme) to nroff.
5119         * src/roff/nroff/nroff.sh: Implement it.
5120         Remove `-Wall'.
5121         * NEWS, src/roff/nroff/nroff.man: Updated.
5123         * PROBLEMS: Document bison 1.32 bug.
5125         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
5127         * src/roff/troff/node.cc (make_tfont): Define it earlier.
5128         * src/roff/troff/div.h: Add prototype for `end_diversions'.
5129         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
5130         * src/roff/troff/env.h: Add prototype for `title'.
5132         Adding EBCDIC support to grotty.
5134         * src/devices/grotty/tty.cc (CSI): New macro.
5135         (SGR_*, tty_printer::put_color): Use it.
5137 2002-02-06  Werner LEMBERG  <wl@gnu.org>
5139         Implementing color support in grotty.  The new switch -c activates
5140         the old drawing scheme, disabling color at the same time.  The new
5141         switch `-i' selects italic instead of underlining (SGR only).
5143         * src/devices/grotty/tty.cc (putstring): New define instead of
5144         `fputs'.  Updated all callers.
5145         (old_drawing_scheme): New global variable.
5146         (COLOR_CHANGE): New enum value.
5147         (SGR_*): New defines containing color handling escape sequences.
5148         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
5149         (glyph): New members `back_color_idx' and `fore_color_idx'.
5150         (glyph::order): Add COLOR_CHANGE.
5151         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
5152         `is_underline', `is_bold', `cu_flag', `tty_colors'.
5153         New methods `make_underline', `make_bold', `color_to_idx',
5154         `change_color', `put_color'.
5155         (cu_flag): Moved into `tty_printer' class.
5156         (tty_printer::tty_printer): Initialize colors.
5157         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
5158         tty_printer::draw, tty_printer::end_page): Handle colors also.
5159         (main): Add options `-c' and `-i'.
5160         (usage): Updated.
5161         * NEWS, src/devices/grotty/grotty.man: Updated.
5163         * src/include/errarg.h (errarg): Add support for `unsigned int'.
5164         * src/libs/libgroff/errarg.c: Implement it.
5166         * src/include/printer.h (printer): Add `change_color' method
5167         (currently used by grotty only).
5168         * src/libs/libdriver/printer.cc: Implement it.
5169         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
5170         call to `pr->change_color'.
5172         * src/roff/troff/node.cc (troff_output_file::fill_color,
5173         troff_output_file::glyph_color): Call `do_motion'.
5175         * tmac/tty.tmac: Add color definitions.
5177         * src/roff/groff/groff.man: Minor fixes.
5179 2002-02-05  Bernd Warken  <bwarken@mayn.de>
5181         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
5182         it.  This is a preparation for future changes.
5184 2002-02-05  Werner LEMBERG  <wl@gnu.org>
5186         * src/roff/troff/input.cc (process_input_stack): Fix the case
5187         where leading spaces are followed by \f or \s; previously, an
5188         incorrect space width has been used.
5190         * doc/roff.man (quoted_char): Fix argument.
5191         (comment): Define string.
5193 2002-02-04  Larry Kollar  <kollar@alltel.net>
5195         * doc/groff.texinfo: More fixes.
5197 2002-02-04  Werner LEMBERG  <wl@gnu.org>
5199         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
5200         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
5201         `restore_compatibility' before `output_string' -- the LINE_STRING
5202         register now already contains proper switches from and to
5203         compatibility mode.
5205         * man/groff_char.man: Add Euro symbol.
5206         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
5207         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
5208         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
5209         Other minor fixes.
5211         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
5212         texinfo->pdf.
5213         (.texinfo.html): Add support for texinfo->html.
5215 2002-02-03  Werner LEMBERG  <wl@gnu.org>
5217         Added three new requests `ds1', `as1', and `ami'.  The former two
5218         are equivalent to `ds' and `as' with the difference that
5219         compatibility mode is saved on entry, switched off during string
5220         expansion, and restored on exit.  The latter is the pendant to `dei'
5221         for `am'.
5223         (do_define_string): Use `define_mode' and `calling mode'.
5224         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
5225         end of string, respectively.
5226         (define_string, append_string): Use `calling_mode'.
5227         (define_nocomp_string, append_nocomp_string,
5228         define_string_indirect): New functions.
5229         (init_input_requests): Updated.
5230         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5232         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
5233         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
5234         mm macro package accesses this string register directly.
5235         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
5237         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
5238         compatibility mode.
5240 2002-02-02  Larry Kollar  <kollar@alltel.net>
5242         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
5244 2002-01-31  Werner LEMBERG  <wl@gnu.org>
5246         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
5248 2002-01-31  Bernd Warken  <bwarken@mayn.de>
5250         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
5251         * man/groff_out.man: Revised and updated.
5253 2002-01-30  Bernd Warken  <bwarken@mayn.de>
5255         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
5256         out the unused `{' and `}' commands.  Undefined by default.
5257         (IntArray): Make `data' private.
5258         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
5259         new methods instead.
5260         (skip_line_D, skip_to_end_of_line): New functions.
5261         (get_D_fixed_args): Use `skip_line_D'.
5262         Changed to handle dummy odd arguments by ...
5263         (get_D_fixed_args_odd_dummy): This new function.
5264         (get_D_variable_args): Split some code into ...
5265         (get_possibly_integer_args): This new function.
5266         (send_draw): Use more `const'.
5267         (delete_current_env): New function.
5268         (position_to_end_of_args): Use `size_t'.
5269         Updated.
5270         (send_draw): Updated.
5271         (parse_D_command): Handle `c', `C', and `t' better.
5272         Updated.
5273         (do_file): Updated.
5275 2002-01-29  Werner LEMBERG  <wl@gnu.org>
5277         * NEWS: Revised.
5278         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
5279         @Def...ListEnd which replaces @Def...x.  This is necessary to get
5280         proper HTML output -- see the comment in the file for more
5281         information.
5282         Updated all calls.
5284 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
5286         Fixes to make color changes of 2002-01-21 work with grohtml.
5288         * src/devices/grohtml/post-html.cc (style): Updated.
5289         (html_printer): Remove unused methods.
5290         (html_printer::do_font, html_printer::draw, html_printer::set_char,
5291         html_printer::special): Updated.
5292         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
5293         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
5294         Added some debugging code.
5295         (html_text::start_tag): Updated.
5296         (html_text::do_push): New method.
5297         (html_text::push_para): Call it.
5298         Add method for handling color.
5299         (html_text::do_color): Updated.
5300         (html_text::shutdown): Handle color.
5301         * src/devices/grohtml/html-text.h (tag_definition): New member
5302         `col'.
5303         Updated.
5305 2002-01-28  Werner LEMBERG  <wl@gnu.org>
5307         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
5309 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
5311         Add two switches -a and -g to control the antialiasing bits for
5312         text and graphics, respectively.
5314         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
5315         `-g'.
5316         * src/devices/grohtml/grohtml.man: Document them.
5317         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
5318         New macros.
5319         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
5320         (setupAntiAlias): New function.
5321         (createAllPages): Updated.
5322         (scanArguments): Handle `-a' and `-g'.
5323         (main): Call `setupAntiAlias'.
5324         * NEWS: Updated.
5326 2002-01-27  Werner LEMBERG  <wl@gnu.org>
5328         * doc/groff.texinfo (Def*): Call index function after deffn.
5330         * tmac/html.tmac: Call `nroff' request.
5332 2002-01-26  Larry Kollar  <kollar@alltel.net>
5334         * tmac/groff_ms.man: Add some omissions.
5336 2002-01-25  Larry Kollar  <kollar@alltel.net>
5338         * tmac/groff_ms.man: Typographical improvements.
5340 2002-01-25  Werner LEMBERG  <wl@gnu.org>
5342         * doc/groff.texinfo: Updated version and copyright.
5343         * src/devices/grops/grops.man: Updated.
5345         * tmac/groff_tmac.man: Fix `ig' macro.
5347         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
5348         nroff mode.
5349         Use `.ne' unconditionally everywhere.
5350         (TS): Only insert some vertical space.  Doing a page break is no
5351         longer necessary due to the redefinition of the `ne' request.
5353         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
5354         warning for unknown subcommands but parse and pass them to the
5355         device driver.
5357 2002-01-24  Werner LEMBERG  <wl@gnu.org>
5359         * tmac/groff_www.man, NEWS: Fix typos.
5361 2002-01-21  Werner LEMBERG  <wl@gnu.org>
5363         Complete revision of color support:
5365           Adapt programs to the new libdriver/input.cc.
5367           Color spaces are no longer converted to RGB but transferred as-is
5368           in the troff intermediate output format.
5370           Handle default color gracefully.  troff now supports a `default'
5371           color (which can't be changed).
5373           grops will now use the proper color space functions if available.
5375           Update pic.
5377         Note that currently grohtml doesn't handle colors properly.  This
5378         has to be fixed.
5380         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
5381         (ui_to_a): New function.
5382         * src/include/lib.h: Updated.
5384         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
5385         (color): Simplified; removed all `double' members and methods.
5386         A new array `components' now holds the color parameters.
5387         (color::is_default, color::get_components): New methods.
5388         (color::operator==, color:operator!=): New.
5389         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
5390         to make access to the `components' array more comprehensible.
5391         * src/libs/libgroff/color.cc: Implement new color support.
5392         (atoh): Small fixes.
5393         (color::read_encoding): Simplified for new troff intermediate color
5394         output format.
5395         (default_color): New global variable.
5397         * src/roff/troff/input.cc (default_symbol): New global variable.
5398         (lookup_color): Use it.
5399         (default_black): Removed.
5400         (do_glyph_color, do_fill_color): Simplified.
5401         (define_color): Handle default color.
5402         Improve warnings.
5403         (do_if_request): Handle default color.
5404         * src/roff/troff/env.cc (environment::environment): Initialize
5405         colors with `default_color'.
5406         * src/roff/troff/node.cc (troff_output_file::put): Add method
5407         for `unsigned int'.
5408         (troff_output_file::hex): Removed.
5409         (troff_output_file::fill_color, troff_output_file::glyph_color):
5410         Updated to include/color.h and libdriver/input.cc.
5412         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
5413         fill color properly (identically to the outline color).  \D'f...'
5414         doesn't work any more.
5415         All function calls to it updated.
5417         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
5418         Updated.
5419         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
5420         Updated.
5422         * src/devices/grops/ps.cc (ps_output::put_color): New method.
5423         (ps_printer::sbuf_color): Make a real member instead of pointer.
5424         (ps_printer::fill_color, ps_printer::output_color): Removed.
5425         (ps_printer::ps_printer): Updated.
5426         (ps_printer::set_char): Ditto.
5427         (ps_printer::set_color): Use various color schemes.
5428         Use `put_color' method.
5429         (ps_printer::flush_sbuf): Don't set color.
5430         (ps_printer::fill_path): Take `environment' as parameter.
5431         Simplify color handling.
5432         (ps_printer::set_line_thickness): Renamed to ...
5433         (ps_printer::set_line_thickness_and_color): This (and updated).
5434         (ps_printer::set_color): Change second parameter from `complete'
5435         to `fill' which better describes what it does.
5436         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
5437         and text in the right order.
5438         Updated.
5439         Remove branches for `f' and `F'; this is handled by
5440         libdriver/input.cc.
5441         * src/devices/grops/ps.h: Updated.
5442         * font/devps/prologue (FL): Redefined.
5443         ({F,C}r,k,g: New color functions (with and without filling).
5445         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
5446         * man/groff_diff.man, man/groff.man, man/groff_out.man,
5447         doc/groff.texinfo, NEWS: Updated.
5449 2002-01-20  Bernd Warken  <bwarken@mayn.de>
5451         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
5452         in this file for what has been changed.
5454 2002-01-19  Werner LEMBERG  <wl@gnu.org>
5456         * test-groff: Fix GROFF_FONT_PATH.
5457         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
5458         is read before .TH or .Dd is parsed.
5460 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
5462         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
5463         quadrant boundaries.
5465 2002-01-18  Werner LEMBERG  <wl@gnu.org>
5467         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
5468         applied last patch.
5470 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
5472         * tmac/doc.common: Initialize %I register for the %I macro to
5473         avoid (harmless) warning.
5474         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
5475         when in the SYNOPSIS section.
5477 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
5479         * src/preproc/pic/lex.cc (get_token): Fix typo.
5481 2002-01-17  Werner LEMBERG  <wl@gnu.org>
5483         * devices/grops/ps.cc: Fix incorrectly applied last patch.
5485 2002-01-17  Larry Kollar  <kollar@alltel.net>
5487         * tmac/groff_ms.man: Completely rewritten.
5489 2002-01-16  Werner LEMBERG  <wl@gnu.org>
5491         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
5493 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
5495         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
5496         fill colors.
5497         (ps_printer::draw): Ditto.
5499 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
5501         * tmac/groff_mdoc.man: Minor fixes.
5503 2002-01-13  Werner LEMBERG  <wl@gnu.org>
5505         * man/groff_out.man: Some fixes.
5507 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
5509         * doc/pic.ms: Fix typos.
5511 2002-01-12  Werner LEMBERG  <wl@gnu.org>
5513         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
5515 2002-01-10  Werner LEMBERG  <wl@gnu.org>
5517         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
5518         symbols.
5519         * NEWS: Updated.
5521 2002-01-09  Bernd Warken  <bwarken@mayn.de>
5523         * man/groff_out.man: Revised.
5524         * man/roff.man: Minor fixes.
5525         * src/roff/troff/troff.man: Some reordering.
5527 2002-01-09  Werner LEMBERG  <wl@gnu.org>
5529         * tmac/an-old.tmac: Add dummy macros for equation support.
5531 2002-01-07  Werner LEMBERG  <wl@gnu.org>
5533         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
5535         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
5536         man pages.
5537         * tmac/groff_man.man: Small improvements.
5539 2002-01-07  Bernd Warken  <bwarken@mayn.de>
5541         * man/groff_diff.man: Revised.
5543 2002-01-06  Werner LEMBERG  <wl@gnu.org>
5545         * tmac/www.tmac: Remove extraneous backslash.
5547 2002-01-06  Bernd Warken  <bwarken@mayn.de>
5549         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
5551 2002-01-05  Werner LEMBERG  <wl@gnu.org>
5553         Integrated groffer, contributed by Bernd Warken.
5555         * contrib/groffer/*: New.       
5556         * Makefile.in, NEWS: Updated.
5558 2002-01-04  Werner LEMBERG  <wl@gnu.org>
5560         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
5561         registers defined in macro packages.
5562         Revising the ms part.
5564 2002-01-04  Larry Kollar  <kollar@alltel.net>
5566         * doc/groff.texinfo: Add documentation for ms macros.
5568 2002-01-02  Werner LEMBERG  <wl@gnu.org>
5570         First step in adding PS support for the Euro symbol.  `eu' is the
5571         official Euro logo, `Eu' is a font-specific glyph variant.
5573         * font/devps/text.enc: Add `Euro' at position 9.
5574         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
5575         * font/devps/symbolmap: Regenerated.
5577         * NEWS: Updated.
5579 2002-01-02  Bernd Warken  <bwarken@mayn.de>
5581         * man/roff.man: Revised.
5583 2002-01-01  Bernd Warken  <bwarken@mayn.de>
5585         * src/roff/groff/groff.man: Completely rewritten.
5587 2001-12-31  Werner LEMBERG  <wl@gnu.org>
5589         * doc/Makefile: Updated.
5591 2001-12-30  Werner LEMBERG  <wl@gnu.org>
5593         * tmac/www.tmac: Make all names of internal macros/registers/strings
5594         lowercase, and prepend `www-'.
5595         Other minor changes.
5596         * src/roff/troff/troff.man: Add preprocessor string at BOF.
5598 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
5600         Implement option `-b' in grohtml to set the HTML background colour.
5602         * src/devices/grohtml/post-html.cc (default_background): New global
5603         variable.
5604         (html_printer::html_printer): Initialize `background' to
5605         `default_background'.
5606         (main): Implement option `-b'.
5607         (usage): Updated.
5608         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
5609         of `-b' option.
5610         * src/devices/grohtml/grohtml.man: Updated.
5611         * doc/Makefile (.ms.html): Use `-b'.
5612         * tmac/html.tmac: Don't set background color.
5614         Add new grohtml tag `.html-tl'.
5616         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
5617         member variable.
5618         (title_desc::title_desc): Updated.
5619         (html_printer::troff_tag): Handle `.html-tl'.
5620         (html_printer::write_title): Use `with_h1'.
5621         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
5622         (HTML-TL): New macro.
5624         Add support for unordered lists in HTML.
5626         * tmac/www.tmac (www-level): New auxiliary register.
5627         (www-level1, www-level2, www-level3): New auxiliary strings.
5628         (www-push-level, www-pop-level): New auxiliary macros
5629         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
5631         Miscellaneous.
5633         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
5634         (DEFAULT_VERTICAL_OFFSET): Removed.
5635         (IMAGE_BOARDER_PIXELS): Set to 0.
5636         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
5637         (vertical_offset): Initialize with 0.
5638         (gsPaper): New global variable.
5639         (get_resolution): Scan for and return unsigned int.
5640         (get_papersize): New function to get paper length from devps/DESC.
5641         (determine_vertical_offset): New function.
5642         (createAllPages): Produce gray-level images and use proper page
5643         length.
5644         (createImage): Use `-quiet' option of pnmcrop.
5645         (addZ): Fix passing of `-Z'.
5646         (scanArguments): Fix handling of `-o'.
5647         (main): Call `determine_vertical_offset'.
5648         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
5649         code for `l'.
5651         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
5652         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
5653         glyph descenders properly.
5655         * doc/homepage.ms: Include `gnubw.eps'.
5656         * doc/Makefile (gnubw.eps): New rule.
5657         (homepage.html): Depend on `gnubw.eps'.
5659 2001-12-25  Werner LEMBERG  <wl@gnu.org>
5661         * src/roff/troff/input.cc (default_black): Fix return value.
5663 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
5665         * tmac/doc-common (Dt): Change output of architecture strings.
5666         Do some syntax cleanup.
5667         * tmac/groff_mdoc.man: Updated.
5669 2001-12-23  Werner LEMBERG  <wl@gnu.org>
5671         Adding an `itc' request (input line trap accepting \c).
5673         * src/roff/troff/env.h (environment): New member
5674         `continued_input_trap'.
5675         Make `do_input_trap' a friend function instead of `input_trap'.
5676         * src/roff/troff/env.cc (environment::environment,
5677         environment::copy): Updated.
5678         (environment::newline): Implement it.
5679         (do_input_trap): New function.
5680         (input_trap): Call `do_input_trap'.
5681         (input_trap_continued): New function.
5682         (init_env_requests): Updated.
5683         * src/roff/troff/TODO: Updated.
5685         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
5686         `.it'.
5688         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
5690 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
5692         * tmac/doc-common, tmac/doc-syms: Small updates.
5694 2001-12-22  Colin Watson  <cjwatson@debian.org>
5696         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
5698 2001-12-22  Bernd Warken  <bwarken@mayn.de>
5700         * MANIFEST: New file.
5702 2001-12-22  Werner LEMBERG  <wl@gnu.org>
5704         * src/preproc/grn/grn.man: Updated.
5706 2001-12-22  Solar Designer  <solar@openwall.com>
5708         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
5709         (DBRead): Use it.
5711 2001-12-19  Werner LEMBERG  <wl@gnu.org>
5713         Implement a fallback character request `.fchar'.
5715         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
5716         (is_fallback): New inline function.
5717         * src/roff/troff/input.cc (do_define_character): New function.
5718         (define_character): Call `do_define_character'.
5719         (define_fallback_character): New function.
5720         (init_input_requests): Add `fchar'.
5721         (charinfo::charinfo): Updated.
5722         (charinfo::set_macro): New argument to set `fallback' flag.
5723         * src/roff/troff/node.cc (make_glyph_node, make_node,
5724         node::add_char): Check `fallback' flag.
5725         * NEWS, man/groff_diff.man, man/groff_man: Updated.
5727 2001-12-16  Werner LEMBERG  <wl@gnu.org>
5729         * groff.texinfo: Document exact search algorithm for glyphs.
5731 2001-12-15  Werner LEMBERG  <wl@gnu.org>
5733         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
5734         the left side of $(MANPAGES) rule to make it always non-empty.
5736 2001-12-14  Werner LEMBERG  <wl@gnu.org>
5738         * src/roff/troff/input.cc (default_black): Define default color
5739         `black' if not yet defined.
5741 2001-12-13  Werner LEMBERG  <wl@gnu.org>
5743         Implement new string-valued register `.fn' to return the current
5744         real (internal) font name.
5746         * env.cc (environment::get_font_name_string): New function.
5747         (init_env_requests): Add `.fn' register.
5748         * env.h (environment): Updated.
5749         * node.cc (font_info): Make `get_font_name' a friend.
5750         (get_font_name): New function.
5751         * node.h: Updated.
5753         * man/groff_diff.man, man/groff.man, NEWS: Updated.
5755 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5757         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
5759 2001-12-12  Werner LEMBERG  <wl@gnu.org>
5761         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
5763 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
5765         * man/groff_diff.man: Adding documentation for \O.
5767 2001-12-10  Werner LEMBERG  <wl@gnu.org>
5769         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
5770         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
5772 2001-12-09  Werner LEMBERG  <wl@gnu.org>
5774         * man/roff.man: Revised.
5775         * src/roff/groff/groff.man: Replace man page references with a
5776         pointer to roff.man.
5778 2001-12-09  Bernd Warken  <bwarken@mayn.de>
5780         * man/roff.man: Completely rewritten.
5782 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5784         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
5786 2001-12-05  Werner LEMBERG  <wl@gnu.org>
5788         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
5789         longer used.
5790         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
5791         order of initializers.
5792         * NEWS: Updated.
5794 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
5796         * doc/groff.texinfo: Fix documentation of \O.
5798         * src/devices/grohtml/html-text.cc (html_text::do_indent,
5799         html_text::do_table, html_text::do_emittext, html_text::do_para):
5800         Use `const' for first argument.
5801         (html_text::do_table): Use cast.
5802         * src/devices/grohtml/html-text.h: Updated.
5803         * src/devices/grohtml/output.cc (simple_output::put_string): Add
5804         method for `const string &s'.
5805         * src/devices/grohtml/html.h: Updated.
5806         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
5807         (ANCHOR_TEMPLATE): Modified.
5808         (manufacture_headings): New global variable to handle `-h' option.
5809         (is_subsection): Removed.
5810         (char_buffer::add_string): Add `const' to first argument.
5811         Protect against invalid string argument.
5812         Add method for `const string &s'.
5813         (text_glob): Completely redesigned.
5814         (page): Use `const' for strings and remove string length variable.
5815         (page::add_html): Removed.
5816         (page::add_end_encode): New member function.
5817         (to_unicode): Moved upwards.
5818         (title_desc, header_desc): Updated.
5819         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
5820         definition.
5821         (html_printer::is_bold, html_printer::make_bold): New member
5822         functions.
5823         (html_printer::end_of_line): Updated.
5824         (generate_img_src, html_printer::do_auto_image,
5825         html_printer::do_title, html_printer::write_header,
5826         html_printer::determine_header_level, html_printer::do_heading,
5827         html_printer::do_linelength, html_printer::do_pageoffset,
5828         html_printer::do_indentation, html_printer::do_tempindent,
5829         html_printer::do_indentedparagraph, html_printer::do_break,
5830         html_printer::flush_sbuf, get_html_translation,
5831         html_printer::begin_page, html_printer::special): Rewritten to get
5832         rid of static string length limit.
5833         (html_printer::troff_tag): Added `.no-auto-rule'.
5834         (html_printer::flush_globs): Small fix.
5835         (html_printer::determine_space): Don't compute `space_width'.
5836         (html_printer::translate_to_html): Renamed to ...
5837         (html_printer::emit_html): This (with updates).
5838         (html_printer::write_header): Implement `-h' option.
5839         (html_printer::draw): Remove commented-out code.  Handle `F'
5840         command.
5841         (html_printer::add_char_to_sbuf): Removed.
5842         (html_printer::add_to_sbuf): Rewritten.
5843         (html_printer::sbuf_continuation): Fixed.
5844         (html_printer::seen_backwards_escape, reverse,
5845         html_printer::remove_last_char_from_sbuf): Removed.
5846         (char_translate_to_html, str_translate_to_html): Removed.
5847         (html_printer::overstrike): New function member.
5848         (html_printer::set_char): Use it.
5849         (html_printer::do_body): New function member.
5850         (html_printer::~html_printer): Use it.
5851         (main): Handle `-h' option.
5852         (usage): Updated.
5853         * src/devices/grohtml/grohtml.man: Document -h switch.
5855         * src/preproc/html/pre-html.cc: Include searchpath.h
5856         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
5857         (get_resolution): New function.
5858         (checkImageDir): Use `0777' permissions in mkdir()
5859         (write_start_image): Rewritten to use `\O[5...]'.
5860         (createImage, generateImages): Updated.
5861         (main): Handle `F' and `h' options.
5862         Use `get_resolution'.
5864         * src/roff/troff/input.cc (begin, end, image): Removed.
5865         (do_suppress): Take parameter.
5866         Handle modified syntax of `\O'.
5867         (token::next): Updated.
5868         (init_markup_requests): Removed.
5869         (main): Updated.
5871         * src/roff/troff/div.h: Add declaration for begin_page().
5873         * tmac/color-html.tmac: Removed.  Contents moved to...
5874         * tmac/html.tmac: Here.  Set background color.
5875         * tmac/color.tmac: Removed.  Contents moved to...
5876         * tmac/ps.tmac: Here.
5877         * tmac/www.tmac: Remove the title command when generating images
5878         for html.
5879         (NO_AUTO_RULE): New macro.
5880         (HTML_DO_IMAGE): Use revised `\O' escapes.
5881         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
5883 2001-12-02  Werner LEMBERG  <wl@gnu.org>
5885         * tmac/groff_mdoc.man: Fix typo.
5887 2001-12-01  Colin Watson  <cjwatson@debian.org>
5889         * man/roff.man: Fix typo.
5891 2001-11-29  Werner LEMBERG  <wl@gnu.org>
5893         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
5894         stdlib.h.
5896         * src/roff/troff/input.cc (read_draw_node): Emit error message if
5897         more than one argument to \D'f ...'.
5899         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
5901 2001-11-28  Werner LEMBERG  <wl@gnu.org>
5903         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
5904         loaded only once.
5906         * tmac/groff_man.man: Minor cosmetic fix.
5908 2001-11-27  Werner LEMBERG  <wl@gnu.org>
5910         * src/roff/groff/groff.man, tmac/groff_tmac.man,
5911         tmac/groff_www.man: s/mwww/www/.
5913 2001-11-26  Werner LEMBERG  <wl@gnu.org>
5915         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
5916         * configure: Regenerated.
5917         * win32-diffs: Updated.
5919         * tmac/groff_mwww.tmac: Renamed to ...
5920         * tmac/groff_www.tmac: This.
5921         * tmac/mwww.tmac: Removed.
5922         * NEWS, tmac/Makefile.sub: Updated.
5924 2001-11-21  Werner LEMBERG  <wl@gnu.org>
5926         * doc/groff.texinfo: Improve documentation of the `\v' escape.
5927         Fix explanation of `\D' and `rt'.
5929 2001-11-20  Werner LEMBERG  <wl@gnu.org>
5931         * tmac/an-old.tmac (an-header): Set header length equal to page
5932         width.
5933         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
5934         minor fixes.
5935         * NEWS: Small fix.
5937 2001-11-19  Werner LEMBERG  <wl@gnu.org>
5939         * NEWS, man/Makefile.sub: Updated.
5941 2001-11-19  Bernd Warken  <bwarken@mayn.de>
5943         * man/ditroff.man: New file.
5945 2001-11-17  Werner LEMBERG  <wl@gnu.org>
5947         * man/groff_differences.man: Renamed to ...
5948         * man/groff_diff.man: This.  Updated.
5949         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
5951         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
5952         * src/preproc/html/pushback.cc: This.  Updated.
5953         * src/preproc/html/pushbackbuffer.h: Renamed to ...
5954         * src/preproc/html/pushback.h: This.
5955         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
5956         Updated.
5958         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
5959         * src/libs/libgroff/htmlhint.cc: This.
5960         * src/libs/libgroff/Makefile.sub: Updated.
5962         * tmac/an-old.tmac (an-end): Fix page length.
5964 2001-11-16  Werner LEMBERG  <wl@gnu.org>
5966         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
5967         * man/Makefile.sub: Include groff_differences.man.
5968         * VERSION: Set to 1.18.
5969         * REVISION: Set to 0.
5971 2001-11-16  Bernd Warken  <bwarken@mayn.de>
5973         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
5974         the second dot (or ending macro name) to end a macro.
5975         * doc/groff.texinfo: Doc fix.
5977 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
5979         * tmac/doc-common (doc-header): Handle very long document titles
5980         better.
5982 2001-11-16  Werner LEMBERG  <wl@gnu.org>
5984         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
5986 2001-11-15  Werner LEMBERG  <wl@gnu.org>
5988         * src/roff/troff/troff.man: Revised and split into troff.man and...
5989         * man/groff_differences.man: New file.
5990         * NEWS: Updated.
5992 2001-11-13  Werner LEMBERG  <wl@gnu.org>
5994         * tmac/an-old.tmac (TS, TE): New macros for table support.
5996 2001-11-12  Werner LEMBERG  <wl@gnu.org>
5998         * src/include/lib.h: Provide a fix for emx to not include
5999         groff-getopt.h.
6001 2001-10-27  Werner LEMBERG  <wl@gnu.org>
6003         * src/roff/troff/input.cc (substring_macro): Fix computation of
6004         boundary values.
6006 2001-10-20  Werner LEMBERG  <wl@gnu.org>
6008         Undo change from 2001-08-28.
6010         * src/roff/troff/input.cc (have_input): New global variable.
6011         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
6012         in compatibility mode.
6013         (process_input_stack): Use it.
6015 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
6017         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
6018         being handled as end-of-sentence characters,
6020 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
6022         * src/roff/troff/input.cc (file_iterator): New members
6023         `suppress_newline_flag' and `seen_escape'.
6024         (file_iterator::next_file): Updated.
6025         (file_iterator::fill): Use it.
6026         (string_iterator): New member `suppress_newline_flag'.
6027         (string_iterator::fill): Set it.
6028         (get_color_element): Use MAX_COLOR_VAL.
6029         * src/roff/troff/env.cc (environment): Remove `need_eol'.
6030         (no_fill): Don't set `env->ignore_next_eol'.
6031         (environment::newline): Handle `eol' tag properly.
6032         Emit `eol.ce'.
6033         (environment::add_html_tag): Set `env->ignore_next_eol'.
6034         Don't handle `.ce'.
6035         * src/roff/troff/env.h (environment): Updated.
6037         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
6038         member function.
6039         (html_printer::outstanding_eol): New member function.
6040         (html_printer::do_title): Use new functions.
6041         (html_printer::troff_tag): Test `id_eol_ce'.
6043 2001-10-10  Werner LEMBERG  <wl@gnu.org>
6045         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
6046         files work with -C also.
6048 2001-10-05  Werner LEMBERG  <wl@gnu.org>
6050         * doc/pic.ms: Minor fix.
6051         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
6052         as a valid command line switch.
6053         * src/devices/grohtml/post-html.cc (main): Ditto.
6054         (usage): Updated.
6055         * src/devices/grohtml/grohtml.man: Updated.
6056         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
6058 2001-10-04  Werner LEMBERG  <wl@gnu.org>
6060         Implementing color support in troff, pic, grops, and grohtml.  These
6061         changes are based on a major patch provided by Gaius Mulley
6062         <gaius@glam.ac.uk>.
6064         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
6065         definitions with both hex values and fractions.
6067         New escapes: \m and \M for drawing and background color,
6068         respectively.  This corresponds to the troff output commands `m'
6069         and `DF'.
6071         groff and troff accept command line switch `-c' to disable color
6072         output (which is automatically disabled in compatibility mode).
6074         New scaling indicator `f' for fractions (1f = 65536u).
6076         New conditional operator `m' to test for defined colors with `if'
6077         and `ie'.
6079         New keywords `color' (or `colour', `colored', `coloured'), `outline'
6080         (or `outlined'), and `shaded' added to pic.
6082         * src/include/color.h: New file.
6083         * src/include/driver.h: Include it.
6084         * src/include/printer.h: Include color.h.
6085         (environment): New members `col' and `fill'.
6086         (printer): Remove `adjust_arc_center' member function.
6087         * src/include/Makefile.sub: Updated.
6089         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
6090         `env.fill'.
6091         Handle `m' and `DF' troff commands.
6092         * src/libs/libgroff/color.cc: New file.
6093         * src/libs/libgroff/Makefile.sub: Updated.
6095         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
6096         (stop): Removed.
6097         (createImage): Fix computation of `y2'.
6098         Use `pnmcrop' also.
6099         (buffer::write_file_html): Remove calls to `stop'.
6101         * src/preproc/pic/common.h (common_output): New abstract function
6102         members `set_color', `reset_color', `get_last_filled', and
6103         `get_outline_color'.
6104         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
6105         (object_spec): Add members `shaded' and `outlined'.
6106         * src/preproc/pic/output.h (output): `command' is now abstract.
6107         New function members `set_color', `reset_color', `get_last_filled',
6108         and `get_outline_color'.
6109         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
6110         `outline[d]', and `shaded'.
6111         * src/preproc/pic/object.cc (output::command): Removed.
6112         (output::set_location): Moved to output.h.
6113         (graphic_object): Add protected members `outline_color' and
6114         `color_fill'.
6115         Add member functions `set_outline_color', `get_outline_color', and
6116         `set_fill_color'.
6117         (closed_object): Add member function `set_fill_color'.
6118         Add member `color_fill'.
6119         (graphic_object::print_text): Use `out->set_color' and
6120         `out->reset_color'.
6121         (box_object::print, ellipse_object::print, circle_object::print,
6122         line_object::print, spline_object::print, arc_object::print): Ditto.
6123         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
6124         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
6125         `SHADED', making them `%left'.
6126         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
6127         * src/preproc/pic/tex.cc (tex_output): New dummy function members
6128         `set_color', `reset_color', `get_last_filled', and
6129         `get_outline_color'.
6130         * src/preproc/pic/troff.cc (simple_output): New abstract function
6131         members `set_color', `reset_color', and `get_last_filled'.
6132         (simple_output::polygon, simple_output::circle,
6133         simple_output::ellipse): Use `get_last_filled'.
6134         (troff_output): New members `last_filled' and `last_outlined'.
6135         New function members `set_color', `reset_color', `get_last_filled',
6136         and `get_outline_color'.
6137         (troff_output::finish_picture): Use `reset_color'.
6138         (troff_output::set_fill): Test `last_filled'.
6139         * src/preproc/pic/pic.man: Updated.
6141         * src/roff/groff/groff.cc (main): Implement `-c' option.
6142         (synopsis, help): Updated.
6143         src/roff/groff/groff.man: Updated.
6145         * src/roff/troff/troff.h: Include color.h.
6146         (warning_type): Add WARN_COLOR.
6147         * src/roff/troff/env.h (environment): New members
6148         `{cur,prev}_{glyph,fill}_color'.
6149         New member functions `get_{prev_,}{glyph,fill}_color'.
6150         * src/roff/troff/env.cc: Initialize and implement them.
6151         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
6152         Replace `NULL' with `0' everywhere for consistency.
6153         (lookup_color, default_black, do_glyph_color, do_fill_color,
6154         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
6155         define_color): New functions.
6156         (token::next): Implement \M and \m escapes.
6157         (do_if_request): Implement `m' operator.
6158         (usage): Updated.
6159         (main): Implement `-c' option.
6160         (init_markup_requests): Add `defcolor' request.
6161         (warning_table): Add `color' warning.
6162         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
6163         classes.
6164         * src/roff/troff/node.cc (troff_output_file): New members
6165         `current_{page,glyph}color'.  New member functions `put_hex',
6166         `glyph_color', and `fill_color'.
6167         (glyph_color_node::*, fill_color_node::*): Implement it.
6168         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
6169         (parse_term): Add support for `f'.
6170         * src/roff/troff/troff.man: Updated.
6172         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
6173         entry for `F'.
6174         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
6175         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
6177         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
6178         (tag_definition): Use `void *' for arg1.
6179         (html_text): New member functions `do_color' and `done_color'.
6180         Use `void *' for second parameter of `push_para' member function.
6181         New `push_para' member function with a single parameter.
6182         Use `char *' for parameter of `issue_table_begin' member funtion.
6183         New `issue_color_begin' member function.
6184         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
6185         COLOR_TAG.
6186         (html_text::issue_color_begin): New function.
6187         (html_text::issue_table_begin): Use `char *' for parameter.
6188         (html_text::start_tag, html_text::shutdown,
6189         html_text::check_emit_text): Updated.
6190         (html_text::push_para): Use `void *' for second parameter.
6191         Add same function with only one parameter.
6192         (html_text::do_*): Updated.
6193         (html_text::do_color, html_text::done_color): New functions.
6194         * src/devices/grohtml/post-html.cc (style): New member `col'.
6195         Mew member `style' with 6 parameters.
6196         (style::style, style::operator==): Updated.
6197         (html_printer::do_font): Use it.
6198         (html_printer::draw): Add dummy entry for `F'.
6199         (html_printer::set_char): Updated.
6200         * src/devices/grohtml/grohtml.man: Updated.
6202         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
6203         trailing zeroes removed.
6204         (ps_printer): New members `sbuf_color', `fill_color', and
6205         `output_color'.
6206         Removed member `fill'.
6207         New member function `set_color'.
6208         (ps_printer::ps_printer, ps_printer::set_char): Updated.
6209         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
6210         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
6212         * tmac/color-html.tmac, tmac/color.tmac: New files.
6213         * tmac/troffrc: Include them.
6214         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
6215         * tmac/Makefile.sub: Updated.
6217         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
6218         man/groff.man: Updated.
6219         * font/devps/prologue.ps: Define FC and CO functions.
6221 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
6223         Fix incorrect cropping of images and incorrect handling of special
6224         characters.  Fix handling of file names in \O.
6226         * src/include/geometry.h: New file.
6227         * src/libs/libgroff/geometry.cc: New file.
6228         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
6229         to `geometry.cc'.
6230         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
6231         initial spaces.
6232         (do_suppress): Updated.
6233         * src/roff/troff/node.cc: Include geometry.h.
6234         (troff_output_file::flush_tbuf): Fixed parameters to
6235         `check_output_limits'.
6236         (troff_output_file::check_charinfo): Ditto.
6237         (troff_output_file::determine_line_limits): Add support for `Da'
6238         and `Dl' commands.
6240         * src/devices/grohtml/post-html.cc (str_translate_to_html):
6241         Add new parameter `is_special' to decode special characters from
6242         escape sequences.
6243         (html_printer::do_title, html_printer::do_heading,
6244         html_printer::do_indentedparagraph,
6245         html_printer::translate_to_html, html_printer::special): Updated.
6247 2001-10-03  Werner LEMBERG  <wl@gnu.org>
6249         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
6250         Fix entry for config.h.
6251         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
6252         * tmac/troffrc: Translate nonbreakable space character to `\~'.
6253         * src/preproc/eqn/eqn.man: Document -d command line option.
6255 2001-09-27  Werner LEMBERG  <wl@gnu.org>
6257         * man/groff.man: Use
6259           .ev xxx
6260           .na
6261           .nh
6262           <table>
6263           .ev
6265         instead of the old code (`.ad .hy' after the table) to suppress
6266         incorrect hyphenation for grohtml output.
6268 2001-09-22  Werner LEMBERG  <wl@gnu.org>
6270         * man/groff_font.man, man/groff_out.man: Minor fixes.
6272 2001-09-20  Werner LEMBERG  <wl@gnu.org>
6274         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
6275         Arnold Robbins <arnold@skeeve.com>).
6277 2001-09-09  Werner LEMBERG  <wl@gnu.org>
6279         * configure: Regenerated with autoconf 2.52.
6281         * doc/groff.texinfo: Complete revision of indices.
6283 2001-09-07  Werner LEMBERG  <wl@gnu.org>
6285         * doc/Makefile (clean): Updated to delete all indices.
6287 2001-09-05  Werner LEMBERG  <wl@gnu.org>
6289         * src/roff/troff/troff.man: Remove superfluous line.
6291         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
6292         given on the command line (or rather, if only the default warnings
6293         are set).
6295 2001-09-03  Werner LEMBERG  <wl@gnu.org>
6297         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
6298         use .ne for TTY devices.
6300 2001-08-31  Werner LEMBERG  <wl@gnu.org>
6302         * src/roff/troff/token.h, src/roff/troff/input.cc:
6303         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
6305 2001-08-28  Werner LEMBERG  <wl@gnu.org>
6307         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
6308         * src/roff/troff/input.cc (token::next): Return
6309         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
6310         compatibility mode.
6311         (token::description): Updated.
6312         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
6313         (token::add_to_node_list, token::process): Ignore
6314         TOKEN_TRANSPARENT_ESCAPE.
6316 2001-08-27  Werner LEMBERG  <wl@gnu.org>
6318         * tmac/an-old.tmac: Fix `S' string.
6320 2001-08-26  Werner LEMBERG  <wl@gnu.org>
6322         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
6324 2001-08-25  Werner LEMBERG  <wl@gnu.org>
6326         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
6327         backslashes).
6328         Many other minor fixes.
6330         * configure.ac: Add message at end to inform how to compile
6331         xditview.
6332         * configure: Regenerated.
6334 2001-08-24  Werner LEMBERG  <wl@gnu.org>
6336         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
6337         Updated to latest version of libc.
6339 2001-08-23  Werner LEMBERG  <wl@gnu.org>
6341         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
6342         Autoconf 2.50 and newer can handle this.
6343         * configure: Regenerated.
6345 2001-08-21  Werner LEMBERG  <wl@gnu.org>
6347         * doc/pic.ms: Fix typo.
6348         * src/preproc/tbl/tbl.man: Document case of global options.
6350 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
6352         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
6353         handling of `CR' font.
6355 2001-08-20  Werner LEMBERG  <wl@gnu.org>
6357         Use a config.h file.
6359         * src/include/lib.h: Include config.h.
6360         * All C files: Ditto (if necessary).
6361         * All C++ source and header files: Include lib.h first (if
6362         necessary).
6364         * src/include/config.hin: New file (autogenerated by autoheader).
6365         * stamp-h.in: New file.
6366         * configure.ac: Updated.
6367         * aclocal.m4: Add third parameters to AC_DEFINE macros.
6368         (GROFF_ARRAY_DELETE): Simplified.
6369         * Makefile.sub (DISTCLEANFILES): Updated.
6370         Added targets for remaking config.status, config.hin, config.h,
6371         stamp-h.in, and stamp-h.
6372         * configure: Regenerated.
6374 2001-08-19  Werner LEMBERG  <wl@gnu.org>
6376         * NEWS: Updated.
6378 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
6380         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
6381         (do_sprintf): Use snprintf().
6383 2001-08-18  Werner LEMBERG  <wl@gnu.org>
6385         * src/libs/snprintf/*: Added an snprintf module written by Mark
6386         Martinec.
6387         * src/libs/libgroff/Makefile.sub: Updated.
6388         * configure.ac: Add test for snprintf().
6389         * Makefile.in: Updated.
6390         * configure: Regenerated.
6392         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
6393         uses snprintf().
6395 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
6397         * tmac/doc.tmac (Ex): New implementation.
6398         * tmac/doc-common, tmac/groff_tmac.man: Updated.
6400 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
6402         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
6403         argument.
6404         * tmac/groff_tmac.man: Updated.
6406 2001-08-13  Werner LEMBERG  <wl@gnu.org>
6408         * src/preproc/tbl/tbl.man: Minor documentation update.
6410 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6412         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
6413         * configure.ac: Add declaration test for gettimeofday().
6414         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
6415         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
6416         * configure: Regenerated.
6418 2001-08-11  Werner LEMBERG  <wl@gnu.org>
6420         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
6421         * configure.ac: Add declaration test for strcasecmp().
6422         * Makefile.in: Updated.
6423         * configure: Regenerated.
6424         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
6425         this is necessary because groff's mkstemp.cc is C++.
6426         Add declaration conditionally for strcasecmp().
6428 2001-08-10  Werner LEMBERG  <wl@gnu.org>
6430         Integrated pic2graph, contributed by Eric S. Raymond.
6432         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
6433         files.
6434         * Makefile.in, NEWS: Updated.
6436         * src/preproc/tbl/tbl.man: Revised.
6438 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
6440         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
6442 2001-08-09  Werner LEMBERG  <wl@gnu.org>
6444         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
6445         requests.
6447 2001-08-08  Paul Eggert  <eggert@twinsun.com>
6449         * Makefile.sub (configure): Depend on configure.ac, not
6450         configure.in.
6451         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
6453 2001-08-07  Werner LEMBERG  <wl@gnu.org>
6455         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
6456         fixes.
6458 2001-08-06  Werner LEMBERG  <wl@gnu.org>
6460         * src/roff/troff/troff.man: Improve documentation of -E option.
6462 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6464         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
6465         Simplified.
6467 2001-07-27  Werner LEMBERG  <wl@gnu.org>
6469         * src/preproc/refer/refer.cc: Undo last change.
6470         * src/devices/grohtml/post-html.cc: Ditto.
6472 2001-07-26  Werner LEMBERG  <wl@gnu.org>
6474         * src/preproc/refer/refer.cc: Include `lib.h'.
6475         * src/devices/grohtml/post-html.cc: Ditto.
6477 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
6479         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
6480         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
6481         * Makefile.in: Comment updated.
6482         * configure: Regenerated.
6484 2001-07-25  Werner LEMBERG  <wl@gnu.org>
6486         * src/preproc/pic/pic.cc: Removed.
6487         * src/preproc/pic/pic_tab.h: Removed.
6488         * src/preproc/refer/label.cc: Removed.
6490         * doc/Makefile (.ms.html): Don't use a file name extension in
6491         argument to grohtml's -I option.
6492         * Makefile.in (dist): Remove CVS directories.
6493         Call `distfiles' target.
6495         * src/devices/grohtml/grohtml.man: Add information about valid
6496         versions of pnmtopng.
6497         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
6498         name instead of number.
6500 2001-07-24  Werner LEMBERG  <wl@gnu.org>
6502         * doc/groff.texinfo: Minor fixes.
6504 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
6506         * doc/Makefile (.ms.html): Put image files into a subdirectory.
6507         (clean): Updated.
6509 2001-07-20  Werner LEMBERG  <wl@gnu.org>
6511         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
6512         * src/libs/libgroff/mkstemp.cc: New file.
6513         * src/libs/libgroff/mksdir.cc: New file.
6514         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
6515         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
6516         * src/libs/libgroff/Makefile.sub: Updated.
6517         * src/include/lib.h: Add mksdir() prototype.
6518         * src/include/posix.h: Define S_IXUSR if not yet defined.
6520         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
6521         (createAllPages): Use mksdir() instead of current code.
6522         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
6523         (main): [!HAVE_MKSTEMP]: Removed.
6525         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
6526         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
6527         macros.
6528         * configure.ac: Add tests for stdint.h, sys/time.h, and
6529         gettimeofday().
6530         Call new GROFF_xxx macros.
6531         * configure: Regenerated.
6532         * Makefile.in: Comments updated.
6534 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
6536         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
6537         instead of current code.
6538         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
6539         * src/roff/groff/groff.cc (possible_command::insert_args): New
6540         function.
6541         (main): Use it for predriver handling instead of insert_arg().
6543 2001-07-19  Werner LEMBERG  <wl@gnu.org>
6545         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
6546         groff also.
6548         * src/include/posix.h: Define S_IWUSR if not yet defined.
6550 2001-07-18  Werner LEMBERG  <wl@gnu.org>
6552         * NEWS: Updated.
6554 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
6556         * tmac/groff_mdoc.man: Document new -width and -column syntax.
6557         Some other minor fixes.
6558         * tmac/an-old.tmac: Add `AT' and `UC' macros.
6560 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
6562         Replace call to `troff' with `groff -Z' to make it aware of
6563         GROFF_BIN_PATH.
6565         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
6566         (troff_command, command_prefix): Removed.
6567         (alterDeviceTo): Use groff.
6568         (addZ): New function.
6569         (char_buffer::do_html): Use it.
6570         (scanArguments): Use TROFF_COMMAND.
6571         (findPrefix): Removed.
6572         (main): Updated.
6573         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
6575 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
6577         * doc/pic.ms: Documentation fixes.
6579 2001-07-17  Werner LEMBERG  <wl@gnu.org>
6581         Replace atexit() with global destructor.
6583         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
6584         (xtmpfile_list_init): New global structure to deallocate
6585         xtmpfile_list on exit.  Its destructor inherits most code from
6586         remove_tmp_files().
6587         (remove_tmp_files): Deleted.
6588         (add_tmp_file): Simplified.
6590 2001-07-16  Werner LEMBERG  <wl@gnu.org>
6592         Replace strdup() with strsave().
6594         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
6595         (set_papersize): Use strsave() and a_delete.
6596         (main): Use strsave().
6597         * src/preproc/html/pre-html.cc (make_message, createAllPages,
6598         removeAllPages): Use strsave() and a_delete.
6600         * configure.ac: Remove test for strdup.
6601         * Makefile.in: Comment updated.
6602         * configure: Regenerated.
6604 2001-07-15  Werner LEMBERG  <wl@gnu.org>
6606         * win32-diffs: Updated.
6608 2001-07-14  Werner LEMBERG  <wl@gnu.org>
6610         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
6611         removing the old one.
6612         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
6614 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6616         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
6618 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
6620         Merge -xwidth into -width.  Add -xwidth functionality to -column
6621         also.
6623         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
6624         avoid warning.
6625         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
6626         string immediately following a leading dot starts with a valid mdoc
6627         argument.
6628         Add similar code to the -column branch.
6629         (doc-Bl-usage): Updated.
6630         * groff_mdoc.man: s/-xwidth/-width/.
6632 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
6634         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
6635         running into centered or non-formatted text.
6637 2001-07-11  Werner LEMBERG  <wl@gnu.org>
6639         Introduce short and long prefixes to have the selection at run-time
6640         whether there is a 8+3 limit for names of temporary files.
6642         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
6643         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
6644         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
6645         variables.
6646         (temp_init): New global structure to initialize above three
6647         variables.
6648         (xtmptemplate): Use two parameters for long and short prefix.
6649         Simplify code use above three variables.
6650         (xtmpfile): Use long and short prefixes as parameters.
6651         * src/include/lib.h: Updated.
6653         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
6654         with ...
6655         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
6656         (createAllPages, makeTempFiles): Updated.
6658 2001-07-09  Werner LEMBERG  <wl@gnu.org>
6660         * REVISION: Increased to 3.
6662 Version 1.17.2 released
6663 =======================
6665 2001-07-07  Werner LEMBERG  <wl@gnu.org>
6667         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
6668         to size_t.
6670 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
6672         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
6673         Fix synopsis.
6674         * tmac/groff_mdoc.man: Fix synopsis.
6676 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
6678         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
6679         Restore `doc-Pa-font'.
6681 2001-07-04  Werner LEMBERG  <wl@gnu.org>
6683         * src/utils/indxbib/dirnamemax.c: Moved to ...
6684         * src/libs/libgroff/maxfilename.cc: Here.
6685         s/dir_name_max/file_name_max/.
6686         Add copyright.
6687         * src/include/lib.h: Add file_name_max.
6688         * src/utils/indxbib/indxbib.cc: Updated.
6689         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
6690         Updated.
6692         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
6693         as empty.
6694         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
6696         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
6697         REGION_TEMPLATE): New macros.
6698         (createAllPages, makeTempFiles): Use them.
6699         Include `nonposix.h'.
6700         (html_system): New function.
6701         (createAllPages, createImage): Use it.
6702         Use EXE_EXT.
6704         * tmac/www.tmac: Fix typos.
6706 2001-07-03  Werner LEMBERG  <wl@gnu.org>
6708         * tmac/www.tmac: Disable hyphenation in normal text only if output
6709         device is html.
6710         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
6711         * tmac/groff_mwww.man, NEWS: Updated.
6713 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
6715         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
6716         image location.
6718 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
6720         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
6721         doc-display-ps-stack): Implement font and font size stack for
6722         displays.
6724 2001-07-02  Werner LEMBERG  <wl@gnu.org>
6726         * REVISION: Increased to 2.
6727         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
6729         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
6730         beginning of a line.
6731         * src/groff/grog/grog.sh: Ditto.
6733 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
6735         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
6736         make it portable.
6738 2001-06-27  Werner LEMBERG  <wl@gnu.org>
6740         Fix problems with preprocessor string for `man' program.
6742         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
6743         Updated/added copyright.
6744         Moved Emacs's local variable to identify nroff mode to the end of
6745         the file; add local variable if missing.
6747 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
6749         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
6750         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
6751         * configure: Regenerated.
6753 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
6755         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
6756         * configure: Regenerated.
6758 2001-06-24  Werner LEMBERG  <wl@gnu.org>
6760         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
6761         but www.tmac.
6762         * doc/pic.ms: Fix typos.
6764 Version 1.17.1 released
6765 =======================
6767 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
6769         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
6770         * configure: Updated.
6772 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
6774         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
6775         image names.
6776         * src/roff/troff/dic.cc (blank_line): Add html tag.
6778 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
6780         * src/roff/troff/input.cc (do_suppress): Fix typo.
6782 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
6784         Added two new options (-D and -I) to specify image names and a
6785         subdirectory to place the images in.
6787         Change syntax from \\Ox to \\O[x].
6789         * src/devices/grohtml/post-html.cc (main): Add options.
6790         (usage): Updated.
6791         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
6792         Use `NULL' instead of `0' for null string pointers.
6793         (MAX_RETRIES): New macro.
6794         (lengthOfintToStr, intToStr, make_message): New functions.
6795         (makeFileName): Make function static.
6796         Implement -D and -I options.
6797         (checkImageDir): New function.
6798         (write_end_image, write_start_image): Use new syntax of \O.
6799         (createAllPages, removeAllPages): Implement -D and -I options.  Use
6800         make_message().
6801         (createImage): Use make_message().
6802         (addps4html): Add guard for malloc().
6803         (usage, scanArguments): Updated.
6804         (makeTempFiles): Use mkstemp().
6805         (removeTempFiles): Use unlink().
6806         (findPrefix): Add guard for malloc().
6807         (main): Updated.
6808         * src/roff/troff/input.cc (get_delim_file_name): New function to
6809         parse \O.
6810         (do_suppress): Updated to parse new syntax.
6811         * src/devices/grohtml/grohtml.man: Updated.
6812         * tmac/www.tmac: Updated to new syntax.
6814         * NEWS: Updated.
6816 2001-06-15  Werner LEMBERG  <wl@gnu.org>
6818         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
6820         * src/devices/grohtml/grohtml.man: Minor improvements.
6822 2001-06-14  Werner LEMBERG  <wl@gnu.org>
6824         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
6826 2001-06-11  Werner LEMBERG  <wl@gnu.org>
6828         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
6829         line to specify preprocessor options -- mandb 2.3.1 only recognizes
6830         the former.
6831         * src/preproc/grn/grn.man: Add proper '\" string.
6833 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
6835         * test-groff: Don't use PATH but GROFF_BIN_PATH.
6837 2001-06-08  Werner LEMBERG  <wl@gnu.org>
6839         Updated to autoconf 2.50.
6841         * configure.in: Renamed to...
6842         * configure.ac: This.
6843         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
6844         (GROFF_OS390): Updated.
6845         * configure: Regenerated.
6847 2001-05-18  Werner LEMBERG  <wl@gnu.org>
6849         * src/roff/troff/env.c, src/roff/troff/env.h,
6850         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
6851         from 2000-12-21.
6853 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
6855         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
6857 2001-05-16  Werner LEMBERG  <wl@gnu.org>
6859         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
6860         less than or equal zero; set it to 1 then.
6861         * src/roff/troff/node.h (node::node): Initialize `last'.
6863 2001-05-08  Werner LEMBERG  <wl@gnu.org>
6865         * tmac/an-old.tmac: Make predefined strings work in compatibility
6866         mode.
6867         Add troff version guard.
6868         * tmac/doc.tmac: Simplify version guard.
6870 2001-05-07  Werner LEMBERG  <wl@gnu.org>
6872         The .ns and .rs requests are now honoured not only in the top-level
6873         but in all diversions (similar to UNIX troff).
6875         This change is based on a patch from Tadziu Hoffmann
6876         <hoffmann@usm.uni-muenchen.de>.
6878         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
6879         (top_level_diversion): Remove `no_space_mode' member.
6880         * src/roff/troff/div.cc (diversion::diversion,
6881         top_level_diversion::top_level_diversion): Updated.
6882         (macro_diversion::output): Reset `no_space_mode'.
6883         (no_space, restore_spacing): Use `curdiv' unconditionally.
6884         (space_request, blank_line): Check `curdiv->no_space_mode'.
6885         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
6886         `curdiv' unconditionally.
6887         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6888         Updated.
6890 2001-05-06  Werner LEMBERG  <wl@gnu.org>
6892         Added two new requests `de1' and `am1' which are similar to `de' and
6893         `am' with the difference that compatibility mode is saved on entry,
6894         switched off during macro execution, and restored on exit.
6896         * src/roff/troff/input.h: Added two new special characters
6897         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
6898         * src/roff/troff/input.cc (input_iterator): Added two member
6899         functions `save_compatible_flag' and `get_compatible_flag'.
6900         (input_stack): Ditto.
6901         (string_iterator): Ditto.  Also add private member
6902         `saved_compatible_flag'.
6903         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
6904         (calling_mode): New enumeration.
6905         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
6906         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
6907         (define_macro, define_indirect_macro, append_macro, ignore): Use
6908         `calling_mode'.
6909         (define_nocomp_macro, append_nocomp_macro): New functions.
6910         (init_input_requests): Updated.
6911         (do_request): Rename local variable `saved_compatible_flag' to
6912         `old_compatible_flag'.
6913         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6915         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
6916         public and trap-invoked macros.  As a consequence, the man macros
6917         work in compatibility mode also.
6919 2001-05-06  Solar Designer  <solar@openwall.com>
6921         * Makefile.in: Use $(mandir).
6923 2001-05-06  Alexios Zavras  <zvr@pobox.com>
6925         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
6927 2001-05-05  Werner LEMBERG  <wl@gnu.org>
6929         Added `.ns' number register: Returns 1 in no-space mode (if in
6930         top-level diversion), 0 otherwise.
6932         * src/roff/troff/div.cc (no_space_mode_reg): New class.
6933         (init_div_requests): Updated.
6934         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6935         Document it.
6937 2001-05-04  Werner LEMBERG  <wl@gnu.org>
6939         * src/roff/nroff/nroff.man: Improved documentation (especially
6940         locales).
6942 2001-05-02  Werner LEMBERG  <wl@gnu.org>
6944         Added `brp' request: This is \p as a request.
6946         * src/roff/troff/env.cc (environment::do_break): Add parameter
6947         `spread'.
6948         (do_break_request): New function (was `break_request').
6949         (break_request): Calls `do_break_request'.
6950         (break_spread_request): New; calls `do_break_request'.
6951         (init_env_requests): Updated.
6952         * src/roff/troff/env.h: Updated.
6953         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6955         * REVISION: Increased to 1.
6956         * win32-diffs: Updated.
6958 2001-05-01  Werner LEMBERG  <wl@gnu.org>
6960         * tmac/an-old.tmac: Fix minor compatibility mode issue.
6961         * tmac/troffrc-end: Make it really work in compatibility mode.
6963 2001-04-27  Werner LEMBERG  <wl@gnu.org>
6965         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
6966         stdlib.h.
6968 2001-04-22  Werner LEMBERG  <wl@gnu.org>
6970         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
6971         latest versions from glibc CVS archive.
6973         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
6974         <c.zeelenberg@hccnet.nl>.
6976 2001-04-21  Werner LEMBERG  <wl@gnu.org>
6978         * configure.in: Move check for mkstemp() to...
6979         * aclocal.m4 (GROFF_MKSTEMP): This new function.
6980         * configure: Regenerated.
6982         * src/include/groff-getopt.h: Don't use variable names in
6983         declarations.
6985         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
6986         * src/devices/grohtml/Makefile.sub,
6987         src/devices/grohtml/post-html.cc: Updated.
6989 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
6991         * configure.in: Add special check for mkstemp().
6992         * src/libs/libgroff/tmpfile.cc: Use it.
6993         * src/utils/indxbib/indxbib.cc: Ditto.
6994         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
6995         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
6996         `const'.
6998 2001-04-20  Bruce Lilly  <blilly@erols.com>
7000         `Version_string' as C++ object was not visible to linker from C
7001         object files.
7002         Add `const' to `Version_string'.
7004         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
7005         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
7006         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
7007         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
7008         (scanArguments), src/preproc/refer/refer.cc (main),
7009         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
7010         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
7011         (main), src/devices/grohtml/post-html.cc (main),
7012         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
7013         (main), src/utils/hpftodit/hpftodit.cc (main),
7014         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
7015         (main), src/utils/lkbib/lkbib.cc (main),
7016         src/utils/addftinfo/addftinfo.cc (main): Implement it.
7018         * src/roff/groff/pipeline.c: Add _UWIN.
7019         * src/include/nonposix.h: Ditto.
7021 2001-04-20  Werner LEMBERG  <wl@gnu.org>
7023         * src/include/lib.h: Use HAVE_STRERROR.
7024         * src/roff/groff/pipeline.c: Ditto.
7025         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
7026         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
7027         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
7028         * win32-diffs: Updated.
7029         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
7031 2001-04-19  Werner LEMBERG  <wl@gnu.org>
7033         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
7034         instead of hardwired `"troff"'.
7035         (char_buffer::read_file): Remove unused variables.
7036         (char_buffer::write_file_troff): Ditto.
7037         (char_buffer::write_file_html): Ditto.
7038         (generateImages): Ditto.
7039         (abs): Removed.
7040         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
7042         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
7044         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
7045         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
7046         index_search_item::search1): Ditto.
7047         * src/roff/troff/node.h (width_list): Reorder members.
7048         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
7049         (lookup_warning): Ditto.
7050         (prepend_string): Commented out.
7051         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
7052         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
7053         * src/preproc/tbl/main.cc (process_format): Ditto.
7054         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
7055         compiler warnings.
7056         * src/preproc/pic/pic.cc: Updated.
7057         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
7058         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
7059         * src/preproc/refer/command.cc (execute_command): Ditto.
7060         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
7061         * src/preproc/refer/token.cc (lookup_token): Ditto.
7062         * src/preproc/soelim/soelim.cc: Ditto.
7063         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
7064         (isHexDigit): Commented out.
7065         (pushBackBuffer::isString): Remove unused variable.
7066         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
7067         warning.
7068         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
7069         resource_manager::read_resource_arg, read_one_of, parse_extensions):
7070         Ditto.
7071         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
7072         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
7073         lookup_paper_size): Ditto.
7074         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
7075         (text_glob, element_list): Reorder members.
7076         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
7077         compiler warning.
7078         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
7079         return value to `void'.
7080         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
7081         of initializers.
7082         * src/devices/grohtml/html.h (simple_output::check_newline,
7083         simple_output::space_or_newline, simple_output::enable_newlines):
7084         Add return value.
7085         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
7086         compiler warnings.
7087         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
7088         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
7089         output_ligatures, output_charset, read_map): Ditto.
7090         * src/utils/lookbib/lookbib.cc (main): Ditto.
7091         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
7092         (do_file): Fix typo (`=' -> `==').
7093         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
7094         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
7096 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
7098         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
7099         Fix usage of GROFF_BIN_PATH.
7100         * src/roff/nroff/nroff.man: Updated.
7102 2001-04-18  Werner LEMBERG  <wl@gnu.org>
7104         * NEWS: Fixing typos.
7105         Updated.
7107 Version 1.17 released
7108 =====================
7110 2001-04-17  Werner LEMBERG  <wl@gnu.org>
7112         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
7113         directory, not in $(srcdir).
7115 2001-04-16  Werner LEMBERG  <wl@gnu.org>
7117         * doc/groff.texinfo: More info on conditionals.
7119 2001-04-15  Werner LEMBERG  <wl@gnu.org>
7121         * doc/groff.texinfo: Added some info about groff internals.
7123         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
7124         about missing special character only if the name is non-null.
7126 2001-04-14  Werner LEMBERG  <wl@gnu.org>
7128         Removing the grohtml-old device driver which is now obsolete.
7130         * src/devices/grohtml-old/*: Removed.
7131         * font/devhtml-old/*: Removed.
7132         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
7133         Remove comments.
7134         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
7135         * test-groff (PATH): Updated.
7136         * tmac/Makefile.sub (NORMALFILES): Updated.
7137         * tmac/an-old.tmac: Remove special code for html-old device.
7138         Replace `html-or-html-old' register with `an-html'.
7139         * tmac/eqnrc: Updated.
7140         * tmac/html-old.tmac: Removed.
7141         * tmac/troffrc, tmac/troffrc-end: Updated.
7142         * tmac/www.tmac: Remove special code for html-old device.
7143         Replace `html-or-html-old' register with `www-html'.
7145         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
7146         src/libs/libgroff/htmlindicate.cc (graphic_end),
7147         include/htmlindicate.h, src/preproc/grn/*.cc,
7148         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
7149         single argument for consistency with rest of source code.
7151         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
7153 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
7155         * src/roff/troff/troff.man: Fixing typos.
7157 2001-04-13  Werner LEMBERG  <wl@gnu.org>
7159         * doc/pic.ms: Fixing many font switches.
7160         * doc/groff.texinfo: Fixes, additions.
7161         * MORE.STUFF: Updated.
7163 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
7165         * src/devices/grohtml/grohtml.man: Updated manual page regarding
7166         simple anchor.
7167         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
7168         cropping of images.
7169         (removeTempFiles): New function to tidy up temporary files.
7170         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
7171         Many fixes to do with the new inline suppress node and image regions
7172         are much tighter.
7173         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
7174         (generate_img_src): New function.
7175         (html_printer::do_auto_image): Utilizes it.
7176         (do_heading, do_title): Include inline images within their contents.
7177         (html_printer::begin_page): Tidied up comments that are issued to
7178         the html output file.
7179         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
7180         than courier.
7181         (text_glob::is_br): New method used by do_heading.
7182         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
7183         equivalent diversion.
7184         * src/include/html-strings.h: Altered image tags to reflect the
7185         inline image node.
7186         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
7187         parameter.
7188         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
7189         it is already inside a pic image.  Only emit tags if the argument
7190         `-Tps:html' is present.
7191         * src/preproc/tbl/main.cc: Changes to reflect additional
7192         `html_end_suppress' parameter.
7193         * src/roff/troff/env.cc: Only emit eol tag if a node has been
7194         emitted since the last eol tag was written.
7195         * src/roff/troff/env.h: New boolean `emitted_node'.
7196         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
7197         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
7198         * src/roff/troff/node.cc (check_charinfo): New method. 
7199         (troff_output_file::determine_line_limits): Alterations to limit
7200         checking.
7201         * tmac/www.tmac: Changes to reflect new suppress nodes.
7202           
7203 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
7205         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
7206         Escape the html_glyph in the buffer.
7207         (str_translate_to_html): Output the unescaped escaped_char.
7208         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
7209         `frame=void', not `frame=none'.  Add `border=0'.
7211 2001-04-12  Werner LEMBERG  <wl@gnu.org>
7213         * PROBLEMS: Add some words on how to avoid wrapper macros.
7215 2001-04-11  Blake McBride  <blake@florida-software.com>
7217         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
7219 2001-04-11  Werner LEMBERG  <wl@gnu.org>
7221         * font/devlbp/Makefile.sub (CLEANADD): Set it.
7222         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
7223         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
7224         * Makefile.sub (DISTCLEANFILES): Here.
7226         * libs/libgroff/new.cc: Include `nonposix.h'.
7227         * win32-diffs: Updated.
7229 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
7231         Added skeleton macro for defunct macros.
7233         Updated documentation.
7235         When inside displays, an empty input line warning should be
7236         suppressed.  If another macro call is put inside a display,
7237         all subsequent empty lines found in that display caused a
7238         warning to be emitted.
7240         * tmac/doc.tmac (doc-defunct-macro): New macro.
7241         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
7242         (doc-restore-global-vars): Fixed typo.
7243         (doc-empty-line): Check the `doc-display-depth' register to
7244         determine whether we are inside display or not.
7246         * tmac/doc-common: Removed `Or' and `Sf' registers.
7247         Moved obsolete `Ds' macro to doc.tmac.
7249         * tmac/groff_mdoc.man: Bump document date.
7250         Document `.Vt' under ``Variable Types''.
7251         Removed documentation for obsolete `.Or' macro.
7253 2001-04-10  Werner LEMBERG  <wl@gnu.org>
7255         * NEWS: Updated.
7256         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
7258 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
7260         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
7261         (usage): Add stream argument. Don't exit.
7262         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
7263         Write --version output to stdout, not stderr.
7264         (usage): Add stream argument. Don't exit.
7265         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
7266         (usage): Add stream argument. Don't exit.
7267         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
7268         constants.
7269         (usage): Add stream argument. Don't exit.
7270         (main): Write --help output to stdout, not stderr.
7271         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
7272         (usage): Add stream argument. Don't exit.
7273         * src/devices/grops/ps.cc (main): Accept --help and --version.
7274         (usage): Add stream argument. Don't exit.
7275         * src/devices/grotty/tty.cc (main): Accept --help and --version.
7276         (usage): Add stream argument. Don't exit.
7277         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
7278         (main): Accept --help and --version.
7279         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
7280         (main): Accept --help and --version.
7281         * src/preproc/html/pre-html.cc (usage): Add stream argument.
7282         (scanArguments): Accept --help and --version.
7283         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
7284         (main): Accept --help and --version.
7285         * src/preproc/refer/refer.cc (main): Accept --help and --version.
7286         (usage): Add stream argument. Don't exit.
7287         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
7288         exit.
7289         (main): Accept --help and --version.
7290         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
7291         (main): Accept --help and --version.
7292         * src/roff/groff/groff.cc (main): Accept --help and --version.
7293         (synopsis): Add stream argument.
7294         (help): Write --help output to stdout, not stderr.
7295         (usage): Add stream argument. Don't exit.
7296         * src/roff/grog/grog.pl: Accept --help and --version.
7297         (help): New sub.
7298         * src/roff/grog/grog.sh: Accept --help and --version.
7299         * src/roff/nroff/nroff.sh: Accept --help and --version.
7300         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
7301         (usage): Add stream argument. Don't exit.
7302         (main): Accept --help and --version.
7303         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
7304         (usage): New function with stream argument, doesn't exit.
7305         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
7306         (usage): New function with stream argument, doesn't exit.
7307         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
7308         (usage): Add stream argument. Don't exit.
7309         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
7310         (main): Accept --help and --version.
7311         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
7312         exit.
7313         (main): Accept --help and --version.
7314         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
7315         (main): Accept --help and --version.
7316         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
7317         (usage): Add stream argument. Don't exit.
7319 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
7321         Fix indentation in SYNOPSIS.
7323         Updated to include changes of latest BSD mdoc version (basically,
7324         the only change is that `.Fn' and `.Fc' put a final semicolon after
7325         a function declaration in the SYNOPSIS section).
7327         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
7328         (doc-in-synopsis-section): New variable.  Updated all related
7329         functions.
7330         (doc-indent-synopsis-active): New register.
7331         (Nd, Fn, Fo): Use it.
7332         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
7333         `.Cd' with long argument line produces indented wrapped lines. 
7334         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
7335         undesirable line break to be output.
7336         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
7337         `.rs'.
7338         (Fn, Fc): Add final `;' to output.
7339         (doc-save-global-vars, doc-restore-global-vars): Updated.
7340         * tmac/doc-common: Remove `Ex' register.
7341         Updated.
7342         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
7343         copyright.
7345 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
7347         * tmac/doc.tmac (Cd): Simplify code.
7348         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
7350 2001-04-06  Werner LEMBERG  <wl@gnu.org>
7352         Implement continuous underlining for nroff mode.  To do that, a new
7353         request in the ditroff language has been added: `x u N' (N is 0
7354         or 1).
7356         \X and \Y are now transparent to end-of-sentence recognition.
7358         * src/include/printer.h (printer): Add `type' parameter to `special'
7359         method.
7360         * src/libs/libdriver/printer.cc (printer::special): Updated.
7361         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
7363         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
7364         specials of type `p'.
7365         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
7366         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
7367         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
7368         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
7369         (glyph::order): New method.
7370         (tty_printer::add_char): Use it.
7371         (tty_printer::special): New method.
7372         (tty_printer::end_page): Implement it.
7374         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
7375         * src/roff/troff/node.cc (special_node::special_node): Add parameter
7376         to set `no_init_string'.
7377         (special_node::tprint_start): Use it.
7378         (special_node::same, special_node::copy): Updated.
7379         (special_node::ends_sentence): New method.
7380         (troff_output_file::start_special): Add parameter to include
7381         inititialization of special conditionally.
7383         * src/roff/troff/env.h (environment): New member `underline_spaces'.
7384         * src/roff/troff/env.cc (do_underline_special): New function.
7385         (environment::set_font): Use it.
7386         (do_underline): Use it.  This was `underline()'.
7387         (underline): Call `do_underline()'.
7388         (continuous_underline): New function which calls `do_underline()'.
7389         (environment::newline): Use `do_underline_special()'.
7390         (init_env_requests): Updated.
7392         * NEWS, man/troff_out.man: Updated.
7394 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
7396         * font/devutf8/R.proto: Fix code of 'shc'.
7398 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
7400         Many fixes.  Diag lists can now be nested also; additionally,
7401         `-compact' and `-offset' are supported.
7403         * tmac/doc.tmac (doc-have-indent): Replaced with ...
7404         (doc-list-have-indent-stackXXX): A new register stack.
7405         (doc-have-diag-list): Removed.
7406         (Bl): Use `doc-list-have-indent-stackXXX'.
7407         (El): Updated.
7408         (doc-diag-list): Use `doc-compact-list-stackXXX'.
7409         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
7410         (doc-set-vertical-and-indent): Ditto.
7411         (doc-next-list-depth): Removed.
7412         (doc-increment-list-stack): Updated.
7413         (doc-decrement-list-stack): Use `doc-list-depth' instead of
7414         `doc-next-list-depth'.
7415         (doc-end-list, doc-end-column-list): Don't use
7416         `doc-increment-list-stack'.
7417         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
7418         (doc-save-global-vars, doc-restore-global-vars): Updated.
7419         * tmac/doc-common: Updated.
7420         * tmac/groff_mdoc.man: Updated.
7421         * NEWS: Fix typo.
7423 2001-04-02  Werner LEMBERG  <wl@gnu.org>
7425         * src/devices/grotty/grotty.man: Fix grammatical error.
7427 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
7429         Remove .Ld from mdoc package; replace it with special handling of
7430         `...'.
7432         * tmac/doc-common: Remove `Ld' register.
7433         Uncomment `doc-volume-ds-*' strings.
7434         Remove `doc-operating-system-default'.
7435         (Os): Updated.
7436         * tmac/doc-syms (Ld): Removed.
7437         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
7438         `...' specially.
7439         * NEWS: Updated.
7441         * tmac/groff_mdoc.man: Many fixes and updates.
7443 2001-03-29  Werner LEMBERG  <wl@gnu.org>
7445         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
7446         Bond <tkb@tkb.mpl.com>.
7447         * tmac/www.tmac: Save compatibility mode.
7449 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
7451         * tmac/groff_mdoc.man: Many fixes.
7453 2001-03-28  Werner LEMBERG  <wl@gnu.org>
7455         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
7456         isn't recognized.
7458 2001-03-27  Werner LEMBERG  <wl@gnu.org>
7460         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
7461         diversion.  This fixes overlong tags.
7463 2001-03-26  Werner LEMBERG  <wl@gnu.org>
7465         * doc/groff.texinfo: Fixed and improved documentation of fonts.
7466         * tmac/doc-syms: Fix error messages.
7467         * tmac/an-old.tmac: Remove incorrect double backslashes.
7469 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
7471         * tmac/Makefile.sub: Strip mdoc.local also
7472         * tmac/strip.sed: Fixed.
7474 2001-03-24  Werner LEMBERG  <wl@gnu.org>
7476         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
7477         selecting the font size.
7478         * tmac/groff_mdoc.man, NEWS: Document it.
7480 2001-03-23  Werner LEMBERG  <wl@gnu.org>
7482         * src/roff/troff/div.cc (save_vertical_space): Add default argument
7483         to `sv' request.
7484         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
7485         argument to restore previous font family.
7486         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
7488         * doc/groff.texinfo: More fixes and additions (mainly for font
7489         manipulating commands).
7491         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
7492         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
7493         * tmac/Makefile.sub, NEWS: Updated.
7495 2001-03-23  Werner LEMBERG  <wl@gnu.org>
7497         Replaced mdoc implementation.  The new version is `state of the
7498         art', using almost all new features of groff 1.17 -- it won't run
7499         with older versions.
7501         * tmac/doc.tmac: Completely rewritten.
7502         * tmac/doc-common: Ditto.
7503         * tmac/doc-nroff: Ditto.
7504         * tmac/doc-ditroff: Ditto.
7505         * tmac/doc-syms: Ditto.
7506         * tmac/mdoc.local: New file.
7507         * tmac/groff_mdoc.samples.man: Replaced with ...
7508         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
7509         * tmac/strip.sed: Updated.
7510         * tmac/Makefile.sub: Updated.
7511         * INSTALL: Updated.
7513         * tmac/groff_man.man: Add `man.local' to the FILES section.
7515 2001-03-22  Werner LEMBERG  <wl@gnu.org>
7517         * doc/groff.texinfo: Added many @noindent.
7518         Replaced @end_Example -> @endExample.
7519         Added info whether registers are r/o.
7520         Many other additions and fixes.
7522 2001-03-21  Werner LEMBERG  <wl@gnu.org>
7524         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
7525         in makeinfo of texinfo 4.0) to be used in @Def* macros.
7526         Improved @Def* macros: Now the exact syntax of request, register,
7527         and escapes is shown.
7528         Added macros for parentheses and brackets to be used in @Def*.
7529         Many fixes and improvements of the documentation.
7531 2001-03-20  Werner LEMBERG  <wl@gnu.org>
7533         * doc/groff.texinfo: Added new index: `st' (for strings).
7534         Added macros @Defstr(x).
7535         Added macro @Example (adding @group).
7536         Other minor improvements.
7538 2001-03-19  Werner LEMBERG  <wl@gnu.org>
7540         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
7541         `rq' for requests.  `fn' is no longer used.
7542         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
7543         Removed @Deffn(x).
7545         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
7546         number with name of man page.
7548 2001-03-19  Larry Kollar  <kollar@alltel.net>
7550         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
7551         consistency.
7553 2001-03-19  Werner LEMBERG  <wl@gnu.org>
7555         * man/groff_font.man: Document `prepro', `postpro', and `print'.
7556         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
7557         * src/devices/grohtml/grohtml.man: Fixing typos.
7559 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
7561         * tmac/s.tmac (@IP): Pass `.ip' html tag.
7562         * tmac/groff_mwww.man: Remove .LINE macro
7563         * tmac/www.tmac (LINE): Add `.ti'.
7565         * src/devices/grohtml/post-html.cc (html_printer): New member
7566         `indent'.
7567         (html_printer::emit_raw): Use it.
7568         (html_printer::do_linelength): Ditto.
7569         (html_printer::do_pageoffset): Ditto.
7570         (html_printer::do_indentation): Ditto.
7571         (html_printer::do_tempindent): Ditto.
7572         (html_printer::do_break): Ditto.
7573         (html_printer::begin_page): Ditto.
7574         (html_printer::do_indentedparagraph): New function.
7575         (html_printer::troff_tag): Handle `.ip'.
7576         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
7577         Add `<td width=...>' handling.
7578         (html_text::do_table): Add parameter.
7579         (html_text::do_indent): Updated.
7580         * src/devices/groohtml/html-text.h: Updated.
7582 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
7584         Introduced simple html tables to implement indentation.
7586         * src/devices/grohtml/html.h (word, word_list): New structures.
7587         (simple_output): Use it.
7588         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
7589         (html_printer): Improve indentation handling.
7590         (html_printer::emit_raw): Set `in_table' element.  Handle
7591         indentation if set.
7592         (html_printer::write_header): Move conditional downwards.
7593         Don't allow whitespace in tags.
7594         (html_printer::do_linelength): Handle line length and indentation
7595         conditionally.
7596         (html_printer::do_pageoffset): Handle indentation conditionally.
7597         (html_printer::do_indentation): Ditto.
7598         (html_printer::do_tempindent): New function member.
7599         (html_printer::do_fill): Take care of indentation.
7600         (html_printer::do_flush): Finish table.
7601         (html_printer::do_links): Ditto.
7602         (html_printer::do_break): New function for handling `.br' and `.ti'.
7603         (html_printer::troff_tag): Use it.
7604         Handle `.ti'.
7605         (html_printer::flush_globs): Fix.
7606         (html_printer::flush_page): Finish table.
7607         (html_printer::html_printer): Fix error message.  Set up
7608         `linelength'.
7609         (html_printer::add_to_sbuf): Remove special handling of character
7610         code 255.
7611         (to_unicode): Remove `stop()'.
7612         (html_printer::write_title): Cleanup.
7613         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
7614         (html_printer::~html_printer): Flush text and end the line.
7615         Use `put_string()'.
7616         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
7617         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
7618         emission of tags.
7619         (html_text::start_tag): Disable newlines.
7620         (html_text::table_is_void): New function.
7621         (html_text::issue_table_begin): Ditto.
7622         (html_text::issue_table_end): Ditto.
7623         (html_text::push_para): Better table handling.
7624         (html_text::do_indent): New function.
7625         (html_text::do_table): Ditto.
7626         (html_text::done_table): Ditto.
7627         (html_text::do_tt): Handle PRE_TAG.
7628         (html_text::is_in_table): New function.
7629         (html_text::check_emit_text): Handle tables.
7630         (html_text::do_emittext): Use `nl()'.
7631         (html_text::do_para): Handle table.
7632         (html_text::remove_def): New function.
7633         * src/devices/grohtml/output.cc (word, word_list): Implement
7634         methods.
7635         (simple_output::end_line): Flush last word.
7636         (simple_output::simple_comment): Ditto.
7637         (simple_output::begin_comment): Recoded.
7638         (simple_output::end_comment): Ditto.
7639         (simple_output::comment_arg): Removed.
7640         (simple_output::check_newline): Improve test and flush last word.
7641         (simple_output::space_or_newline): Improved.
7642         (simple_output::write_newline): Replaced with...
7643         (simple_output::nl): This.
7644         (simple_output::put_raw_char): Flush last word.
7645         (simple_output::check_space): Removed.
7646         (simple_output::put_translated_string): Ditto.
7647         (simple_output::put_string): Simplified.
7648         (simple_output::put_number): Updated.
7649         (simple_output::put_float): Ditto.
7650         (simple_output::put_symbol): Removed.
7651         (simple_output::enable_newlines): Add `check_newline()'.
7652         (simple_output::flush_last_word): New function.
7654         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
7655         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
7657         * tmac/s.tmac (@PP, @IP): Add html conditional code.
7658         * tmac/an-old.tmac (TP): Ditto.
7660 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
7662         * mdate.sh: Make it POSIX compliant.
7664 2001-03-09  Werner LEMBERG  <wl@gnu.org>
7666         Added the `return' request to end a macro immediately.  It simply
7667         pops iterators from the input stack until a macro iterator is found.
7669         * src/roff/troff/input.cc (input_iterator::is_macro,
7670         macro_iterator::is_macro): New member.
7671         (input_return_boundary): New class to signal an immediate return
7672         to while_request().
7673         (input_stack::add_return_boundary, input_stack::is_return_boundary):
7674         New functions.
7675         (input_stack::clear): Use it.
7676         (input_stack::pop_macro): New function.
7677         (while_request): Use `is_return_boundary()'.
7678         (return_macro_request): New function.
7679         (init_input_requests): Use it.
7681         * src/roff/troff/TODO: Updated.
7682         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7684 2001-03-08  Werner LEMBERG  <wl@gnu.org>
7686         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
7687         cleanup.
7689 2001-03-07  Werner LEMBERG  <wl@gnu.org>
7691         Make `\B' more rigid.
7693         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
7694         parameter.
7695         (get_number_rigidly): New function.
7696         * src/roff/troff/input.cc (do_expr_test): Use it.
7697         * src/roff/troff/token.h: Updated.
7699         * src/roff/troff/request.h: Fix typo (init_html_request ->
7700         init_markup_request).
7702 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
7704         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
7705         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
7706         are now `.begin', `.end', `.image'.
7708         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
7709         (html_printer::add_to_sbuf): Changing type of `code' parameter.
7710         Use add_char_to_sbuf().
7711         (to_unicode): New function.
7712         (char_translate_to_html): Changing type of `ch' parameter.
7713         Use `to_unicode()'.
7714         (html_printer::~html_printer): Comment out doctype string.
7715         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
7716         instead of `.html-end'.
7717         (write_start_image): Use `.begin' and `.image' instead of
7718         `.html-begin' and `.html-image'.
7719         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
7720         (html_begin): Renamed to ...
7721         (begin): This.
7722         (html_end): Renamed to ...
7723         (end): This.
7724         (html_image): Renamed to ...
7725         (image): This.
7726         (init_html_requests): Renamed to ...
7727         (init_markup_requests): This.
7728         * tmac/www.tmac: Updated.
7730 2001-02-28  Bram  <bram@avontuur.org>
7732         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
7733         constructor.
7735 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
7737         * doc/meref.me: Fixing some typos.
7739 2001-02-16  Werner LEMBERG  <wl@gnu.org>
7741         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
7742         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
7743         * src/roff/troff/node.h: Updated.
7745 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
7747         * tmac/groff_tmac.man: Fix typo.
7749 2001-02-16  Werner LEMBERG  <wl@gnu.org>
7751         Fixing a bug which prevented proper end-of-sentence recognition
7752         between an `unformatted' box and the following text.  As a
7753         consequence, vertical line distances are no longer preserved in
7754         boxes after a call to `.unformat' -- because boxes aren't
7755         line-oriented (contrary to diversions), this doesn't make sense
7756         anyway.
7758         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
7759         value.
7760         (vertical_size_node::set_unformat_flag): New method.
7761         * src/roff/troff/node.hh: Updated.
7762         * src/roff/troff/input.cc (word_space_node::reread,
7763         hmotion_node::reread): Reset `unformat' flag after usage.
7764         (unformat_macro): Append only if `set_unformat_flag()' returns
7765         non-zero.
7766         * src/roff/troff/troff.man: Updated.
7768 2001-02-15  Werner LEMBERG  <wl@gnu.org>
7770         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
7771         documentation of `asciify' and `unformat' requests.
7773 2001-02-13  Werner LEMBERG  <wl@gnu.org>
7775         Redesigned the `unformat' request.  It is no longer connected with
7776         `asciify' but rather uses new `reread()' methods if the `unformat'
7777         flag is set.  Additionally, the handling of space characters after
7778         unformatting has been fixed so that they retain their width.
7780         * src/roff/troff/node.h (width_list): New structure to store
7781         original widths of spaces.
7782         (node): Added `unformat' member.
7783         Replaced `num_spaces' variable with `orig_width' list.
7784         * src/roff/troff/node.cc (*node::asciify,
7785         asciify_reverse_node_list): Removed `unformat_only' flag and related
7786         code.
7787         (word_space_node::asciify, word_space_node::word_space_node): Use
7788         `orig_width'.
7789         (word_space_node::~word_space_node): New destructor.
7790         (word_space_node::copy): Updated to handle `orig_width'.
7791         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
7792         (*node::merge_space): Update `orig_width' list if necessary.
7793         (*node::set_unformat_flag): New methods to set the `unformat' flag.
7794         * src/roff/troff/enc.cc (environment::space_newline): Use
7795         `width_list'.
7796         (environment::space): Added method to handle space width and
7797         sentence space width as parameters.  Use `width_list'.
7798         (environment::make_tab_node): Updated.
7799         * src/roff/troff/env.h: Updated.
7800         * src/roff/troff/input.cc (word_space_node::reread,
7801         unbreakable_space_node::reread, hmotion_node::reread): New methods
7802         to handle nodes specially if `unformat' flag is set.
7803         (do_asciify_macro): Renamed back to ...
7804         (asciify_macro): This.
7805         (unformat_macro): New implementation to simply set the `unformat'
7806         flag.
7808         * MORE.STUFF: Added more info about deroff.
7810 2001-02-08  Werner LEMBERG  <wl@gnu.org>
7812         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7813         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
7814         and `add_self()' methods to avoid hyphenation.  For example, the
7815         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
7816         soft hyphen after `foo'.  Now the hyphen list is correctly
7817         `foo<ignore><ignore>bar'.
7819 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
7821         * tmac/groff_tmac.man: Fix `BIR' macro.
7823 2001-02-04  Werner LEMBERG  <wl@gnu.org>
7825         A new escape sequence `\:', inserting a zero-width break point.
7827         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
7828         * src/roff/troff/input.cc (get_copy, token::next, asciify):
7829         Implement it.
7830         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
7831         method.
7832         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
7833         and `asciify()' methods.
7834         * src/roff/troff/node.cc (space_node::space_node): Updated.
7835         (space_node::asciify): Handle `was_escape_colon'.
7836         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7838         Handle `\~' similar to other comparable requests.
7840         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
7841         label.
7842         (token::next): Move creation of an unbreakable_space_node to...
7843         (token::add_to_node_list): Here.
7845         Fix a bug which sometimes prevented hyphenation of words connected
7846         with `\~' or `\ ' (and other escape sequences handled as
7847         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
7848         (after a call to the `unformat' request).
7850         * src/roff/troff/env.h (environment::possibly_break_line,
7851         environment::hyphenate_line): Introducing `start_here' parameter.
7852         * src/roff/troff/env.cc (environment::space_newline,
7853         environment::space): Use it.
7854         (environment::possibly_break_line, environment::hyphenate_line):
7855         Implement it.
7856         * src/roff/troff/input.cc (process_input_stack): Use it.
7857         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7858         space_char_hmotion_node, overstrike_node): Add
7859         `get_hyphenation_type()' method.
7860         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
7861         if `unformat_only' is active.
7863 2001-01-30  Werner LEMBERG  <wl@gnu.org>
7865         Implemented new read-only number register `.linetabs' which
7866         returns 1 if in line-tabs mode, 0 otherwise.
7868         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
7869         * src/roff/troff/env.cc (get_line_tabs): New function.
7870         (init_env_requests): Use it.
7871         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7873         * VERSION, REVISION: Changing to 1.17.0.
7875 2001-01-28  Werner LEMBERG  <wl@gnu.org>
7877         Fixed a bug which prevented hyphenation of words which are finished
7878         with `\)'.
7880         * src/roff/troff/token.h (token): Add enum type
7881         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
7882         * src/roff/troff/input.cc (token::next, token::description,
7883         get_line_arg, token::add_to_node_list, token::process): Use it.
7885 2001-01-27  Werner LEMBERG  <wl@gnu.org>
7887         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
7888         * src/roff/troff/div.cc (do_divert): Use it.
7890         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
7892 2001-01-25  Werner LEMBERG  <wl@gnu.org>
7894         Adding the `linetabs' request.  If set, tab distances are not
7895         computed relative to the input line but relative to the output line.
7897         * src/roff/troff/env.h (environment): New member `line_tabs'.
7898         * src/roff/troff/env.cc (line_tabs_request): Implement request.
7899         (environment::environment, environment::copy): Updated.
7900         (environment::distance_to_next_tab): Use `line_tabs'.
7901         (init_env_requests): Register request.
7902         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
7903         fixes.
7905 2001-01-24  Werner LEMBERG  <wl@gnu.org>
7907         Introducing a new read-only register `.int' which is set to a
7908         positive value if the last output line is interrupted (i.e., if it
7909         contains `\c').
7911         * src/roff/troff/env.cc (init_env_requests): Add it.
7912         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7914 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
7916         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
7917         * src/preproc/html/pre-html.cc (findPrefix): New function which
7918         generates the troff executable name via the system prefix.
7919         * src/preproc/eqn/main.cc: Modified warning message.
7921 2001-01-23  Werner LEMBERG  <wl@gnu.org>
7923         troff's `box' and `boxa' requests didn't preserve temporary
7924         indentation.
7926         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
7927         `saved_target_text_length' members.
7928         * src/roff/troff/div.cc (do_divert): Use them.
7930         Tabs (but not yet leaders and fields) are now handled correctly by
7931         `asciify' request.
7933         * node.h (hmotion_node): Add field `was_tab'.
7934         * env.cc (environment::make_tab_node): Set it.
7935         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
7937         Added new request `unformat' which will, contrary to `asciify',
7938         preserve font information after unformatting (i.e., only nodes
7939         dealing with horizontal space are converted back to input
7940         characters).
7942         * input.cc (asciify_macro): Renamed to ...
7943         (do_asciify_macro): this, having a new parameter `unformat_only'.
7944         (asciify_macro, unformat_macro): New; using do_asciify_macro.
7945         (init_input_requests): Added `unformat'.
7946         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
7947         parameter to control asciification process.
7948         * node.h (*_node::asciify): Ditto.
7949         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7951 2001-01-20  Werner LEMBERG  <wl@gnu.org>
7953         * doc/groff.texinfo: Minor improvement of `.in' documentation.
7955 2001-01-18  Werner LEMBERG  <wl@gnu.org>
7957         * tmac/ps.tmac: Remove call of psold.tmac.
7958         * tmac/psold.tmac: Comment updated.
7959         * tmac/psnew.tmac: Removed since no longer needed.
7960         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
7962         * font/devutf8/R.proto: Adding `shc' glyph.
7963         * font/devutf8/NOTES: Updated.
7965         * test-groff: Updated.
7967 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7969         First cut of the new html device driver.  Changes to pre-html and
7970         the new grohtml are too numerous to be documented here.
7972         Stuff related to `html' has been renamed to `html-old' and `html2'
7973         stuff has been renamed to `html' (including directories).  The new
7974         html device driver is therefore invoked as `-Thtml'.
7976         Added new `\O' escape to suppress output (needed by html driver).
7978         Added functions and code to pass info about input-level commands
7979         (`.in', `.fl', etc.) to html driver.
7981         Three new functions (.html-begin, .html-end, and .html-image) for
7982         better html handling: `html-begin' will execute the remaining line
7983         if at the outermost nesting level, increasing an internal counter.
7984         `html-end' does the same but decreases the internal counter.
7985         `html_image' puts its arguments into a special node (suppress_node)
7986         to define an image region.
7988         The `output' request has been removed.
7990         * tmac/html-tags.tmac: Removed.
7991         * tmac/arkup.tmac: Updated and renamed to ...
7992         * tmac/www.tmac: New file.
7993         * tmac/markup.tmac Updated and renamed to ...
7994         * tmac/mwww.tmac: New file.
7995         * tmac/Makefile.sub: Updated.
7996         * tmac/an-old.tmac: Updated.
7997         * tmac/eqnrc: Updated.
7998         * tmac/groff_man.man
7999         * tmac/groff_markup.man: Updated and renamed to ...
8000         * tmac/groff_mwww.man: New file.
8001         * tmac/groff_tmac.man: Updated.
8002         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
8003         * tmac/html.tmac: Updated and renamed from html2.tmac.
8004         * tmac/pspic.tmac: Updated html support.
8005         * tmac/s.tmac: Added html output support.
8006         * tmac/troffrc, tmac/troffrc-end: Updated.
8008         * Makefile.in, doc/Makefile: Updated.
8009         * doc/groff.texinfo: Added info about new `\O' escape.
8010         * doc/homepage.ms: Use `MAILTO' macro.
8012         * font/devhtml/DESC.proto: Add `C' font.
8013         * font/devhtml/Makefile.sub: Updated.
8014         * font/devhtml/R.proto: Minor fixes.
8015         * font/devhtml-old/Makefile.sub: Updated.
8017         * src/devices/grohtml-old/Makefile.sub: Updated.
8019         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
8020         method.
8021         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
8022         graphic_start): Add `inline' parameter.  Update.
8023         (html_end_suppress, graphic_end): Update.
8025         * src/include/html-strings.h: New file.
8026         * src/include/htmlindicate.h: Comments updated.
8027         * src/include/printer.h: Updated.
8029         * src/preproc/eqn/main.cc (do_file, main): Updated.
8030         * src/preproc/pic/troff.cc (troff_output::start_picture,
8031         troff_output::finish_picture): Updated.
8032         * src/preproc/tbl/main.cc (process_input_file): Updated.
8034         * src/roff/groff/groff.cc (main): Updated.
8035         Pass device arguments to predrivers also.
8036         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
8037         * src/roff/troff/env.h (environment): Updated.
8038         New elements `need_eol' and `ignore_next_eol' (for html output).
8039         * src/roff/troff/env.cc (environment::environment): Add initializers
8040         for `need_eol' and `ignore_next_eol'.
8041         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
8042         functions.
8043         (point_size, fill, no_fill, center, right_justify, line_length,
8044         indent, temporary_indent, break_request, handle_tab): Use
8045         `add_html_tag()'.
8046         (set_tabs): Use `add_html_tag_tabs()'.
8047         (environment::add_html_tag): Updated.
8048         (environment::do_break): Updated.
8049         * src/roff/troff/div.cc (space_request, flush_output): Use
8050         `environment::add_html_tag()'.
8051         * src/roff/troff/input.cc: Updated.
8052         New variable `html_level' to indicate nested `html-begin' requests.
8053         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
8054         (non_interpreted_char_node, token_node, non_interpreted_node): Add
8055         `force_tprint()' method.
8056         (token::next): Handle `\O'.
8057         (do_suppress): Implement it.
8058         (html_begin, html_end, html_image): New functions.
8059         (init_output_requests): Renamed to ...
8060         (init_html_requests): this.
8061         (main): Use it.
8062         (macro::append_str, macro::append_unsigned, macro::append_int): New
8063         methods.
8064         New variable `output_low_mark_miny' to limit minimal value of y.
8065         (reset_output_registers): Use it.
8066         (output_request): Removed.
8067         (get_output_registers): New function.
8068         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
8069         (*_node): Added `force_tprint()' if necessary.
8070         (special_node): New elements `tf' and `get_tfont()'.
8071         (suppress_node): New class.
8072         * src/roff/troff/node.cc:
8073         New global variables `image_no' and `suppress_start_page'.
8074         (real_output_file): New method `is_on()'.
8075         (troff_output_file): New method `start_special(tfont)'.
8076         (troff_output_file::really_print_line): Use `tprint' conditionally.
8077         (real_output_file::print_line): Updated.
8078         (real_output_file::on): Updated.
8079         (*_node): Added `force_tprint()'.
8080         (special_node::special_node): Initializer updated.
8081         (special_node::same, special_node::copy, special_node::tprint_start):
8082         Updated.
8083         (get_reg_int, get_reg_str): New functions.
8084         (suppress_node::*): New methods.
8085         New global variables last_position, last_image_filename;
8086         (min): New inline function.
8087         * src/roff/troff/reg.h, src/roff/troff/request.h,
8088         src/roff/troff/troff.h: Updated.
8090 2001-01-13  Werner LEMBERG  <wl@gnu.org>
8092         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
8093         documentation of `asciify' request.
8095 2001-01-12  Werner LEMBERG  <wl@gnu.org>
8097         * src/roff/troff/input.cc: Move definition of special characters
8098         like `ESCAPE_TILDE' to ...
8099         * src/roff/troff/input.h: New file.
8100         * src/roff/troff/Makefile.sub (HDRS): Add it.
8102         Extending the .asciify request to `unformat' space characters also.
8104         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
8105         to count input space characters.
8106         Update constructors to take care of it.
8107         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
8108         `ESCAPE_SPACE' instead of normal space.
8109         (word_space_node::asciify): New method.
8110         (unbreakable_space_node::asciify): New method.
8111         (word_space_node::merge_space): New method.
8112         * src/roff/troff/env.cc (environment::space_newline,
8113         environment::space): Add code to initialize `num_spaces' (using the
8114         constructor of `word_space_node').
8115         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8116         Document it.
8118 2001-01-09  Werner LEMBERG  <wl@gnu.org>
8120         * man/groff_char.man: Use table header traps only conditionally.
8122 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
8124         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
8126 2001-01-08  Werner LEMBERG  <wl@gnu.org>
8128         Introducing the `box' and `boxa' requests which are similar to
8129         `di' resp. `da' but omitting a partially filled line (which is
8130         restored after ending the diversion).
8132         * src/roff/troff/div.h (diversion): Add elements to save partially
8133         filled line.
8134         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
8135         partially filled line.
8136         (divert, divert_append): Updated.
8137         (box, box_append): New functions.
8138         (init_div_requests): Use them.
8139         * src/roff/troff/env.h (environment): do_divert() is now a friend.
8140         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8142         * doc/groff.texinfo: Fix documentation of `lf' request.
8144 2000-12-25  Werner LEMBERG  <wl@gnu.org>
8146         * src/roff/troff/troff.man, NEWS: Document `writem' request.
8148 2000-12-21  Werner LEMBERG  <wl@gnu.org>
8150         Ignore `ss' request if in compatibility mode.
8152         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
8153         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
8154         * src/roff/troff/env.cc (space_size): Use it.
8156         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
8157         `ss' request in nroff mode.
8159         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
8160         changes.
8162 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
8164         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
8166 2000-12-13  Werner LEMBERG  <wl@gnu.org>
8168         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
8169         * src/preproc/eqn/neqn.man: Small fixes and additions.
8171 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
8173         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
8174         Fixing typo.
8176         * src/preproc/eqn/neqn.man: New file.
8178         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
8179         negative' warning.
8181         * tmac/e.tmac: Add `T&' macro.
8182         Fix `indent cannot be negative' warning.
8183         * tmac/s.tmac: Fix `indent cannot be negative' warning.
8185 2000-12-07  Werner LEMBERG  <wl@gnu.org>
8187         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
8189 2000-12-06  Werner LEMBERG  <wl@gnu.org>
8191         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
8192         `alloca' symbol .
8194         * MORE.STUFF: Added info about deroff for djgpp.
8196         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
8197         documentation of -rcR switch.
8199 2000-12-03  Werner LEMBERG  <wl@gnu.org>
8201         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
8202         if -rcR=1 (which is now the default in nroff mode), a single, very
8203         long page is created instead of multiple pages: All `ne' and `wh'
8204         requests are put into conditionals; a new macro `an-end' is added to
8205         be called with `em'.
8207         Some other minor cleanups.
8209         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
8211 2000-12-02  Werner LEMBERG  <wl@gnu.org>
8213         Fixing a bug which prevented hyphenation in words followed
8214         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
8216         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
8217         Adding possibly_break_line().
8218         * src/roff/troff/env.h (environment): Make possibly_break_line()
8219         public.
8221         Make `\~' usable in .tr request.
8223         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
8224         (token): Add stretchable_space().
8225         * src/roff/troff/input.cc (token::next, token::delimiter,
8226         token::description, process_input_stack, do_translate,
8227         add_to_node_list, token::process): Use it.
8228         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
8229         for adjusting the space.
8230         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
8231         for stretchable space.
8232         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
8233         (make_node): Add code for stretchable space.
8234         * src/roff/troff/env.cc (environment::add_char): Use it.
8235         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
8236         (get_copy, token::next, transparent_translate, asciify): Use it.
8238         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
8239         doc/groff.texinfo: Updated.
8240         * man/groff.man: Small reorderings.
8242 2000-11-23  Werner LEMBERG  <wl@gnu.org>
8244         * NEWS: Fixes.
8245         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
8246         option.
8247         * src/roff/troff/input.cc (main): Add `config_macro_path' and
8248         `safer_macro_path' to -M option.
8249         * src/roff/troff/troff.man: Fixes.
8251 2000-11-22  Werner LEMBERG  <wl@gnu.org>
8253         Use safer path (except for config files) if -U isn't specified.  Add
8254         a special macro path (without home and current directory) for config
8255         files.  Add home directory to unsafe path for consistency.  Don't
8256         include the home directory in the font path.
8258         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
8259         `macro_path'.
8260         * src/include/macropath.h: Add `config_macrp_path'.
8261         * src/libs/libgroff/fontfile.cc: Fix font path.
8262         * src/roff/troff/input.cc (process_startup_file): Use
8263         `config_macro_path'.
8264         (main): Select unsafe path if -U is given.
8266         * src/preproc/eqn/main.cc (main): Fixing search path for
8267         configuration file.
8268         * src/preproc/eqn/eqn.man: Updated.
8270         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
8271         Updated.
8273         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
8274         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
8275         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8276         src/devices/grotty/grotty.man: Updated.
8278         * Makefile.in: Fix comments.
8280 2000-11-17  Werner LEMBERG  <wl@gnu.org>
8282         * tmac/safer.tmac: Empty file added (again) for compatibility
8283         reasons.
8284         * tmac/Makefile.sub: Updated.
8286 2000-11-16  Werner LEMBERG  <wl@gnu.org>
8288         * src/devices/grodvi/dvi.cc (main),
8289         src/devices/grohtml2/post-html.cc (main),
8290         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8291         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8292         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8293         (main), src/preproc/html2/pre-html.cc (main),
8294         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8295         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8296         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8297         (main), src/utils/hpftodit/hpftodit.cc (main),
8298         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
8299         (main), src/utils/lookbib/lookbib.cc (main),
8300         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
8301         (main): Use stdout for -v.
8302         * src/roff/groff/groff.cc (run_commands),
8303         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
8304         to make direct printing to stdout possible.
8305         * src/roff/groff/pipeline.h: Updated.
8307         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
8308         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
8309         * src/utils/afmtodit/afmtodit.man: Updated.
8311         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
8312         (version): New function.
8313         (usage): Updated.
8314         * src/utils/addftinfo/addftinfo.man: Updated.
8316         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
8317         Fixing copyright dates.
8319         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
8320         replacing it.
8322         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
8323         version_string.
8325         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
8327 2000-11-15  Werner LEMBERG  <wl@gnu.org>
8329         In all programs, make -v return immediately with exit status 0 to
8330         be compliant with the GNU standard.
8332         * src/devices/grodvi/dvi.cc (main),
8333         src/devices/grohtml2/post-html.cc (main),
8334         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8335         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8336         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8337         (main), src/preproc/html2/pre-html.cc (main),
8338         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8339         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8340         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8341         (main): Implement it.
8342         * NEWS: Updated.
8344         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
8345         and postprocessors to the -v option.
8347         * src/roff/grog/grog.pl: Implement -v.
8348         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
8349         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8351         * src/roff/nroff/nroff.sh: Implement -v.
8352         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
8353         * src/roff/nroff/nroff.man: Updated.
8354         
8355         * src/preproc/eqn/main.cc (main): Fix comment typo.
8357         * MORE.STUFF: Added info about djgpp port of grap.
8359 2000-11-14  Werner LEMBERG  <wl@gnu.org>
8361         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
8362         mode (or rather, implemented non-compatibility mode).
8363         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8365         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
8366         replacing it -- we don't find gxditview otherwise.
8367         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
8369         * src/preproc/pic/depend: Removed.  Unnecessary.
8371         Implemented dummy keyword `solid' in pic for compatibility with
8372         AT&T pic.
8374         * lex.cc (lookup_keyword): Added `solid'.
8375         * pic.y: Added SOLID with dummy rule.
8376         * pic.cc, pic_tab.h: Regenerated.
8377         * doc/pic.ms: Updated.
8379 2000-11-13  Werner LEMBERG  <wl@gnu.org>
8381         For security reasons, don't use the current directory but the home
8382         directory while searching and scanning troffrc and troffrc-end.
8383         Similarly, replace the current directory with the home directory
8384         in the font path.
8386         * Makefile.in (fontpath, tmacpath): Remove current directory.
8388         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
8389         two parameters `add_home' and `add_current'.
8390         (search_path::~search_path, search_path::command_line_dir,
8391         search_path::open_file): Remove tests for `dirs' being zero.
8392         * src/include/searchpath.h: Adjust.
8393         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
8394         `safer_macro_path'.
8395         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
8397         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
8398         * src/roff/troff/input.cc: Use `mac_path', initialized with
8399         `macro_path'.
8400         (process_startup_file): Set `mac_path' to `safer_macro_path'.
8401         * src/roff/troff/env.cc: Use `mac_path'.
8403         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
8405         * NEWS, man/roff.man, src/roff/troff/troff.man,
8406         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
8407         Updated.
8409 2000-11-12  Werner LEMBERG  <wl@gnu.org>
8411         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
8413         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
8414         * configure.in: Fix typo in comment.
8415         * configure: Regenerated.
8417         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
8418         copyright dates.
8420 2000-11-08  Werner LEMBERG  <wl@gnu.org>
8422         Add system tmac directory (/usr/local/lib/groff/site-tmac).
8424         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
8425         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
8426         $(systemtmacdir).
8427         Use @libdir@.
8428         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
8429         * tmac/Makefile.sub (install_data): Create
8430         $(systemtmacdir) and $(localtmacdir).
8431         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
8432         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
8433         NEWS, doc/groff.texinfo: Updated and minor fixes.
8435         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
8436         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
8437         $(systemtmacdir) since the wrapper files are platform-dependent.
8439 2000-11-01  Werner LEMBERG  <wl@gnu.org>
8441         * doc/groff.texinfo: Fix typo.
8443 2000-10-26  Werner LEMBERG  <wl@gnu.org>
8445         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
8446           tmac.doc.old -> doc-old.tmac
8447           tmac.an.old  -> an-old.tmac
8449         * tmac/tmac.*: Moved to ...
8450         * tmac/*.tmac: this.
8451         * tmac/man.local: Fix comment.
8452         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
8453         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
8454         Added some `FILES' sections.  More use of @...@ directives.  Other
8455         minor updates.
8456         * arch/djgpp/README, font/devutf8/NOTES: Updated.
8457         * doc/homepage.ms, doc/groff.texinfo: Updated.
8458         * man/groff.man, man/roff.man: Updated.
8459         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
8460         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8461         src/devices/grotty/grotty.man: Updated.
8462         * src/preproc/pic/pic.man: Updated.
8463         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
8464         instead of -mdoc.old.
8465         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
8466         * src/roff/nroff/nroff.man: Updated.
8467         * NEWS: Updated.
8469         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
8471         * tmac/mm.diff: Removed -- it has no use now since the mm package
8472         is part of groff.
8474         * tmac/*: Removed trailing spaces.
8476         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
8477         the tmac subdirectory also).
8479         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
8480         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
8481         stuff since it is no longer needed.
8483         * README, PROBLEMS: Updated.
8485 2000-10-25  Werner LEMBERG  <wl@gnu.org>
8487         Invert current behaviour: Search first FOOBAR.tmac, then
8488         tmac.FOOBAR.
8490         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
8491         (open_mac_file, macro_source): Implement it.
8492         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
8493         doc/groff.texinfo, NEWS: Document it.
8495         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
8496         Small documentation improvements.
8498         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
8499         subdirectory also).
8501         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
8503 2000-10-24  Werner LEMBERG  <wl@gnu.org>
8505         Add local tmac directory (groff/site-tmac).
8507         * Makefile.in: Add $(localtmacdir).
8508         (uninstall_dirs): Add $(localtmacdir).
8509         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
8510         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
8511         in $(localtmacdir).  Create $(localtmacdir).
8512         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
8513         Updated and minor fixes.
8515         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
8517         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
8519 2000-10-23  Werner LEMBERG  <wl@gnu.org>
8521         Move hyphen.us to tmac directory.
8523         * src/roff/troff/hyphen.us: Removed.
8524         * src/tmac/hyphen.us: Added.
8525         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
8527         Change installation structure for data files from .../groff/... to
8528         .../groff/<version><revision>/... to be conform with other GNU
8529         programs.
8531         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
8532         doc/Makefile: Implement it.
8533         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
8534         * configure: Updated.
8535         * arch/djgpp/README, font/devutf8/NOTES: Use it.
8536         * NEWS: Document it.
8537         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
8538         @MACRODIR@ instead of hard-coded directories.
8540 2000-10-22  Werner LEMBERG  <wl@gnu.org>
8542         Implement $GROFF_BIN_PATH environment variable (which defaults to
8543         $bindir) used for child programs of groff and similar wrappers.
8545         * gendefs.sh: Improve documentation.
8546         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
8547         src/preproc/eqn/Makefile.sub (neqn),
8548         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
8549         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
8550         $GROFF_BIN_PATH.
8551         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
8552         $GROFF_PATH__ (the latter for communication with troff).
8553         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
8554         set.
8555         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
8556         doc/groff.texinfo: Document it.
8558         * doc/groff.texinfo: Improve documentation of troff's -a option.
8560 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
8562         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
8563         non-intrusive eol marker.
8564         (troff_output_file::determine_line_limits): New function.
8565         (troff_output_file::draw): Use it.
8566         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
8567         output_pending_lines() instead of output_line().
8568         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
8569         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
8570         createImage): Small fixes.
8571         
8572 2000-10-14  Werner LEMBERG  <wl@gnu.org>
8574         Replace tmac.safer with a real secure solution.
8576         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
8577         system_request, pipe_output): Disable requests if in safer mode.
8578         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
8579         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
8580         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
8581         doc/groff.texinfo, src/roff/groff/groff.man,
8582         src/roff/troff/troff.man, arch/djgpp/README: Updated.
8584         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
8585         (resource_manager::output_prolog): Replace setenv() with putenv().
8587 2000-10-09  Werner LEMBERG  <wl@gnu.org>
8589         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
8590         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
8591         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
8592         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
8593         compilation errors with some compilers.  It seems that this code
8594         is no longer necessary -- if yes, it is easy to add some #ifdef's
8595         for that particular old-fashioned compiler.
8597         * MORE.STUFF: Added info about Meta-tbl.
8599         * doc/groff.texinfo: Added more info about `.if "..."..."'.
8601 2000-10-07  Werner LEMBERG  <wl@gnu.org>
8603         Adding a new escape sequence \B'...': If the string between
8604         the delimiters is a valid numeric expression, return the character
8605         `1', and `0' otherwise.  This is an analogon to \A.
8607         * src/roff/troff/input.cc (do_expr_test): Implement it.
8608         (token::next): Use it.
8609         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
8611         * tmac/tmac.trace: Made independent from escape character.
8613 2000-10-06  Werner LEMBERG  <wl@gnu.org>
8615         Adding a new request .dei: define indirect.  The first and second
8616         parameter of .dei are taken from string registers instead directly;
8617         this very special request is needed to make tmac.trace independent
8618         from the escape character (which might even be disabled).
8620         * src/roff/troff/input.cc (do_define_macro): Implement it.
8621         (define_macro_indirect): New function.
8622         (init_input_requests): Use it.
8624         Adding two requests .ecs and .ecr: Save and restore the escape
8625         character.  These two requests are needed to make tmac.trace
8626         independent from the escape character (which might even be
8627         disabled).
8629         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
8630         Implement it.
8631         (init_input_requests): Use it.
8633         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8635 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
8637         Adding a new option -P and new environment variable GROPS_PROLOGUE
8638         to grops, selecting a different prologue file (minor modifications
8639         by WL).
8641         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
8642         src/devices/grops/ps.cc (main): Implement it.
8643         * src/devices/grops/grops.man, NEWS: Document it.
8645 2000-09-22  Werner LEMBERG  <wl@gnu.org>
8647         * INSTALL: Add info about selecting paper format.
8649 2000-09-21  Werner LEMBERG  <wl@gnu.org>
8651         * src/roff/troff/input.cc (main): Fixing compiler warning.
8652         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
8653         strings.h from the former to the latter.
8654         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
8655         stuff from the former to the latter.
8657 2000-09-11  Werner LEMBERG  <wl@gnu.org>
8659         Implementing two new requests .tm1 and .tmc: The former is similar
8660         to .tm but can output leading spaces; its syntax is similar to
8661         defining a string, i.e., a `"' can be used to mark the beginning of
8662         the string to be written to stderr: `.tm1 " test'.  The latter is
8663         similar to .tm1 but doesn't write out a final newline character.
8665         * src/roff/troff/input.cc (terminal1, terminal_continue,
8666         do_terminal): New functions.
8667         (init_input_requests): Use them.
8668         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8670 2000-09-09  Werner LEMBERG  <wl@gnu.org>
8672         * tmac/groff_mdoc.samples.man: Small fixes.
8674 2000-09-08  Werner LEMBERG  <wl@gnu.org>
8676         * tmac/groff_mdoc.man: Fixing typo.
8678 2000-09-02  Werner LEMBERG  <wl@gnu.org>
8680         Implementing a .nop request which does nothing.
8682         * src/roff/troff/input.cc (nop_request): New function.
8683         (init_input_requests): Use it.
8684         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8686 2000-09-01  Werner LEMBERG  <wl@gnu.org>
8688         * doc/groff.texinfo: Added some comments.
8690 2000-08-30  Werner LEMBERG  <wl@gnu.org>
8692         * src/roff/troff/TODO: Updated.
8694 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8696         * doc/groff.texinfo: Fix comment how to compile the DVI file.
8698 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
8700         * font/devps/generate/Makefile (SHELL): Define explicitly to
8701         "/bin/sh", for non-Unix platforms.
8702         (extraclean): Use a more portable "" quoting instead of a
8703         backslash (which doesn't work on DOS/Windows).
8704         
8705         * font/devlj4/generate/Makefile (extraclean): Ditto.
8707         * font/devdvi/generate/Makefile (extraclean): Ditto.
8709 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8711         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
8712         src/roff/troff/troff.man: Document Eli's latest changes.
8714 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
8716         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
8717         macro file names of the form NAME.tmac as well as tmac.NAME.
8719 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8721         * src/include/posix.h: Remove definition of FILENAME_MAX.
8723         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
8724         `sys_fatal' and `stop' function().
8726         * test-groff: Updated.
8728 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
8730         Added the new troff command .output <arg> to suppress output (while
8731         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
8732         registers (for passing the output dimensions to the output device).
8734         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
8735         parameter.
8736         * src/roff/troff/node.h, src/roff/troff/node.cc
8737         (troff_output_file::really_print_line,
8738         ascii_output_file::really_print_line,
8739         supress_output_file::really_print_line): Use `width' parameter.
8740         (troff_output_file::really_on, troff_output_file::really_off,
8741         output_file::on, output_file::off, real_output_file::on,
8742         real_output_file::off, real_output_file::really_on,
8743         real_output_file::really_off): New functions.
8744         (real_output_file:public output_file): New variable `output_on'.
8745         (real_output_file::begin_page, real_output_file::copy_file,
8746         real_output_file::transparent_char, real_output_file::print_line):
8747         Use it.
8748         (real_output_file::print_line): Use check_output_limits.
8749         * src/roff/troff/reg.h, src/roff/troff/request.h,
8750         src/roff/troff/input.cc (assign_registers): New function to remove
8751         two `goto's.
8752         (do_ps_file): Use it.
8753         (check_output_limits, reset_output_registers, output_request,
8754         init_output_requests): New functions.
8755         (init_input_requests): Updated.
8757         Added new grohtml2 device and html2 preprocessor (coding
8758         not yet finished) which will eventually replace grohtml.
8760         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
8761         Updated.
8762         * src/include/htmlindicate.h, src/include/htmlindicate
8763         (html_begin_suppress, html_end_suppress): New functions.
8764         * src/preproc/tbl/main.cc: Use it.
8765         * src/roff/groff/groff.cc: Add support for html2 device (which will
8766         automatically invoke the html2 preprocessor).
8767         * src/roff/troff/input.cc (is_html2): New variable.
8768         * src/roff/troff/troff.h, src/roff/troff/env.h,
8769         src/roff/troff/env.cc (environment::add_html_tag): New function
8770         (uses `is_html2').
8771         (environment::do_break): Use it.
8772         * font/devhtml2/*: New files.
8773         * src/devices/grohtml2: New device.
8774         * src/preproc/html2: New preprocessor.
8775         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
8777 2000-08-23  Werner LEMBERG  <wl@gnu.org>
8779         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
8781 2000-08-22  Werner LEMBERG  <wl@gnu.org>
8783         * src/include/lib.h: Provide a fix for IRIX to not include
8784         groff-getopt.h.
8786 2000-08-18  Werner LEMBERG  <wl@gnu.org>
8788         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
8789         since some non-GNU sed programs can't handle null regexps.
8790         * configure, src/preproc/eqn/Makefile.sub,
8791         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
8793         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
8794         bug (string.h and strings.h are both needed according to latest
8795         POSIX standard).
8797         * MORE.STUFF: Added info about unroff and troffcvt.
8799 2000-08-08  Werner LEMBERG  <wl@gnu.org>
8801         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
8802         used before -ms.
8804         * tmac/tmac.man.old: Remove unused number register.
8806         * tmac.doc: Minor documentation fix.
8808 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8810         * src/roff/groff/pipeline.c (is_system_shell):
8811         Fix typo: "monocased_shell" no longer exists.
8813 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8815         Remove FILENAME_MAX limits.
8817         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
8818         that the argument length is less than FILENAME_MAX.
8819         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
8820         Use struct hack to allocate and free file name.
8821         (struct xtmpfile_list): fname is now part of the structure,
8822         not a pointer to another string.
8824 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
8826         * src/include/posix.h: Add a default value for FILENAME_MAX.
8828 2000-08-06  Paul Eggert  <eggert@twinsun.com>
8830         Add support for new BSD-style man pages (with ".Dd" instead of
8831         ".TH"), so that "groff -man" understands both styles, even
8832         when running "groff -man" on a host whose system man page
8833         macros don't support ".Dd".
8835         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
8836         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
8837         in case the system man macros don't define Dd or TH.
8839         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
8840         * tmac/tmac.an: New one-line file.
8841         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
8843 2000-08-06  Werner LEMBERG  <wl@gnu.org>
8845         * src/roff/troff/troff.man: Fixing typos.
8847 Version 1.16.1 released
8848 =======================
8850 2000-07-31  Werner LEMBERG  <wl@gnu.org>
8852         Preparing release 1.16.1.
8854         * REVISION: Revision number set to 1.
8855         * MORE.STUFF: Added info about port to DOS.
8856         * NEWS, win32-diffs: Updated.
8858         * src/include/nonposix.h: Remove first line -- this file is used
8859         in C also.
8861         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
8862         link to it.
8864 2000-07-30  Werner LEMBERG  <wl@gnu.org>
8866         * doc/texinfo.tex: Update to latest version.
8868 2000-06-28  Paul Eggert  <eggert@twinsun.com>
8870         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
8871         commands that fail.  Don't assume that "export a=b" is valid shell
8872         syntax.  This is needed for Solaris 2.5.1.
8874         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
8875         comment about missing Solaris headers.
8877         * PROBLEMS: Add section about problems with Sun Make and VPATH.
8879 2000-06-25  Werner LEMBERG  <wl@gnu.org>
8881         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
8882         SET_BINARY().
8884         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
8886         * win32-diffs: Updated.
8887         * README.WIN32: Added CRs to make all Windows editors happy.
8889         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
8890         src/roff/groff/pipeline.c).
8892 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
8894         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
8895         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
8897 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
8899         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
8900         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
8901         are binary files.
8902         (main): Support non-Posix systems with several different styles of
8903         slash characters in file names.
8905         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
8906         (main) [SET_BINARY]: Switch stdin into binary mode.
8908         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
8909         (main): Support file names with several possible slash-type
8910         characters, as given by DIR_SEPS[] in nonposix.h.
8911         (main) [__MSDOS__]: If renaming the temporary index file fails
8912         because it has more than one dot in its trunk, replace the dot
8913         with an underscore and try again.
8914         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
8915         Newline.
8916         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
8918         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
8919         (File::File): Open the input file in binary mode.  Strip CR
8920         characters from each CR-LF pair.
8921         (xbasename): Support file names with several possible slash-type
8922         characters, as given by DIR_SEPS[] in nonposix.h.
8924         * src/include/Makefile.sub (HDRS): Add nonposix.h.
8926         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
8927         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
8928         [!_POSIX_VERSION]: Define for traditional Unix systems.
8929         (real_output_file::real_output_file): Remove the MSVC-specific
8930         call to popen, use instead POPEN_WT, appropriately defined on
8931         nonposix.h.  #include nonposix.h.
8932         (real_output_file::~real_output_file): Remove the MSVC-specific
8933         call to pclose, a suitable macro is now defined on nonposix.h.
8934         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
8935         and WEXITSTATUS instead of assuming traditional Unix
8936         interpretation of the status returned by pclose.
8938         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
8939         call to popen, use POPEN_RT instead (appropriately defined on
8940         nonposix.h).  #include nonposix.h.
8941         (ps_bbox_request): Open the PostScript file in binary mode.
8942         Close the file after processing it.
8943         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
8944         nonposix.h.
8946         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
8947         A version of run_pipeline that doesn't use `fork'.
8948         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
8949         (system_shell_name, system_shell_dash_c)
8950         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
8951         the ugliness of testing DOS/Windows file names for equality, and
8952         support both stock shells and ports of Unix shells.
8954         * src/roff/groff/groff.cc: #include nonposix.h.
8955         (BSHELL): Definition moved to nonposix.h.
8956         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
8957         instead of a literal "-c".
8958         (xbasename): Support file names with several possible slash-type
8959         characters, as given by DIR_SEPS[] in nonposix.h.
8960         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
8961         of literal strings.
8963         * src/preproc/soelim/soelim.cc: #include nonposix.h.
8964         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
8966         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
8967         pic_tab.h.
8969         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
8971         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
8972         eqn_tab.h.
8974         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
8976         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
8977         P_tmpdir is defined, use it instead of the literal "/tmp".
8978         (remove_tmp_files, add_tmp_file): New functions.
8979         (xtmpfile): Record temporary files and register an atexit function
8980         to delete them explicitly, instead of relying on the OS to do
8981         that, which doesn't work on non-Unix systems.
8983         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
8984         (search_path::search_path): Use PATH_SEP instead of a literal
8985         colon.
8986         (search_path::command_line_dir): Ditto.
8987         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
8988         to support non-Posix systems.
8990         * src/libs/libbib/search.cc: #include nonposix.h.
8991         (search_list::add_file): Open the file in binary mode.
8993         * src/libs/libbib/linear.cc: #include nonposix.h.
8994         (file_buffer::load): Remove \r characters preceding \n from the
8995         loaded buffer.
8997         * src/libs/libbib/index.cc: #include nonposix.h.
8998         (make_index_search_item): Open index_filename in O_BINARY mode.
8999         (index_search_item_iterator::get_tag): Ditto.  Remove \r
9000         characters before \n characters.
9001         (index_search_item::check_files): Open files in binary mode.
9002         (index_search_item::munge_filename): Support DOS-style file names
9003         with backslashes and drive letters, use IS_ABSOLUTE.
9005         * src/devices/grops/ps.cc: #include nonposix.h.
9006         (main) [SET_BINARY]: Switch stdout to binary mode.
9008         * src/devices/grolj4/lj4.cc: #include nonposix.h.
9009         (main) [SET_BINARY]: Switch stdout to binary mode.
9011         * src/devices/grolbp/lbp.cc: #include nonposix.h
9012         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
9014         * src/devices/grodvi/dvi.cc: #include nonposix.h.
9015         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
9016         nonposix.h).
9017         (main) [SET_BINARY]: Switch stdout to binary mode.
9018         [_MSC_VER]: Remove an explicit call to _setmode.
9020         * src/include/nonposix.h: New file.
9022         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
9023         operation when building with DJGPP.
9024         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
9025         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
9026         ENVSETUP.
9028         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
9029         MS-DOS.
9030         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
9031         etc. can include a semi-colon on DOS/Windows.
9032         (depend.temp): Use depend1.temp instead of depend.temp1, to
9033         prevent files from overerwiting each other on 8+3 filesystems.
9035         * gendef.sh (t): Change definition to work with DOS/Windows.
9037         doc/groff.texinfo: Apart of some typo corrections, I also changed
9038         some index entris, to make them more non-ambiguous, and also put
9039         @ignore around some parts that are not yet written, to allow the
9040         Info output be readable.
9042 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
9044         Replaced specific checks for function declarations with a generic
9045         routine taken from GNU bfd.
9047         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
9048         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
9049         * configure.in: Use it.
9050         * src/devices/grolbp/lbp.cc, src/include/lib.h,
9051         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
9052         src/roff/groff/groff.cc: Use it.
9053         * Makefile.in, configure: Updated.
9055 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
9057         * src/devides/grolbp/lbp.h: Removed unused variables.
9059 2000-05-31  Keith Thompson  <kst@sdsc.edu>
9061         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
9062         strncasecmp().
9064 2000-05-31  Werner LEMBERG  <wl@gnu.org>
9066         * aclocal.m4 (GROFF_SRAND): New function to test the return value
9067         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
9068         * configure.in: Use it.
9069         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
9070         * configure, Makefile.in: Updated.
9072         * configure.in: Add test for strncasecmp().
9073         * src/include/lib.h: Use it.
9075 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
9077         * src/preproc/grn/Makefile.sub: Add MLIB.
9079 2000-05-29  Nix  <nix@esperi.demon.co.uk>
9081         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
9083 2000-05-29  Werner LEMBERG  <wl@gnu.org>
9085         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
9087         * PROBLEMS: Small update.
9089         * src/devices/grolbp/lbp.cc: Various small fixes.
9091 2000-05-28  Keith Thompson  <kst@sdsc.edu>
9093         * src/roff/nroff/nroff.sh: Fix main loop syntax.
9095         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
9097 2000-05-25  Werner LEMBERG  <wl@gnu.org>
9099         * man/roff.man: Removed unused macro.
9101 2000-05-24  Werner LEMBERG  <wl@gnu.org>
9103         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
9104         This is needed e.g. if you do
9105         `make distclean; ./configure; make dist'.
9107 Version 1.16 released
9108 =====================
9110 2000-05-23  Werner LEMBERG  <wl@gnu.org>
9112         Adding font CWI (constant width italic) to devdvi.
9114         * font/devdvi/CWI: New file.
9115         * font/devdvi/generate/Makefile: Add generating rule.
9116         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
9117         tmac/tmac.dvi: Use it.
9118         * NEWS: Announce it.
9120         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
9121         * font/devlj4/generate/Makefile: Cosmetic changes only.
9123         * man/groff.man: Removed most of the redundant description of
9124         special characters (which is in groff_char.man).  Added font
9125         translation CB->CR for devdvi.  Other minor fixes.
9127         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
9128         (registered) symbols.
9130 2000-05-22  Werner LEMBERG  <wl@gnu.org>
9132         * doc/Makefile: Added rule for creating info files.
9134         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
9135         AMS font metrics.
9136         * font/devdvi/generate/Makefile: Fixed dependencies.
9138         * font/devps/*: Regenerated.  Heavy changes for Bookman and
9139         NewCentury Schoolbook!
9140         * font/devps/generate/afmname: Will now run with GNU awk.
9141         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
9142         * font/devps/generate/Makefile: Cosmetic changes only.
9144 2000-05-21  Werner LEMBERG  <wl@gnu.org>
9146         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
9147         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
9148         `.SS' now produces a heading with a smaller size than `.SH'. 
9149         Completely formatted.
9150         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
9152         * man/groff.man: Improved table appearance.  Use of `eo' request
9153         to reduce number of doubled backslashes in macro definitions.
9154         Replacing `\e' with `\(rs'.  Other minor fixes.
9156         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
9157         to have correct line number.
9159         * INSTALL: Small improvement.
9161 2000-05-20  Bernd Warken  <bwarken@mayn.de>
9163         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
9164         WL).
9166 2000-05-19  Bernd Warken  <bwarken@mayn.de>
9168         * man/groff.man: Complete update (with a lot of corrections by WL).
9170 2000-05-18  Werner LEMBERG  <wl@gnu.org>
9172         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
9174         * font/*/*: Implement it.
9175         * man/groff_char.man, NEWS: Document it.
9177         * src/include/unix.h: Removed.  It isn't used.
9179         * doc/groff.texinfo: Slight improvements.
9181 2000-05-17  Werner LEMBERG  <wl@gnu.org>
9183         * README, win32-diffs: Small fixes and improvements.
9185 2000-05-16  Werner LEMBERG  <wl@gnu.org>
9187         * FDL: New file (the Free Documentation License version 1.1).
9189         * doc/groff.texinfo: Added many start-up values for gtroff.
9190         Some structural improvements of the source code.
9192 2000-05-15  Werner LEMBERG  <wl@gnu.org>
9194         * src/roff/troff/input.cc: Added small comment about troffrc-end.
9195         * src/roff/troff/troff.man: Added info about troffrc-end.
9197 2000-05-14  Werner LEMBERG  <wl@gnu.org>
9199         * Makefile.in (EXTRADIRS): Fix typos.
9200         (dist): Handle deletion of old .tar.gz file correctly.
9201         (DISTDIRS): Include all tty output devices.
9203         * doc/groff.texinfo: Adding more cross references; countless other
9204         fixes.
9206 2000-05-13  Werner LEMBERG  <wl@gnu.org>
9208         * MORE.STUFF: Added Robert Marks's utilities.
9210 2000-05-12  Werner LEMBERG  <wl@gnu.org>
9212         Added win32 port contributed by Blake McBride
9213         <blake@florida-software.com>.
9215         * README.WIN32, win32-diffs: New files.
9216         * NEWS: Updated.
9218         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
9219         (tmove, tmove2): Added parentheses to avoid compiler warnings.
9220         (change): Removed unused variables.
9222         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
9223         (savebounds): Changed return value from `int' to `void'.
9224         * src/preproc/grn/hdb.cc: Ditto.
9226         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
9227         final backslash in comment to avoid compiler warning.
9229         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
9231         * doc/groff.texinfo: More fixes.
9233 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
9235         * tmac/tmac.doc: Documentation fix.
9237 2000-05-11  Werner LEMBERG  <wl@gnu.org>
9239         * doc/groff.texinfo: Reading the source code shows up a lot of
9240         omissions and incorrect data...  More conversion to @Deffn macros.
9242 2000-05-10  Werner LEMBERG  <wl@gnu.org>
9244         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
9245         dependency.
9247         * src/roff/troff/request.h: Removing unused `no_break_flag'.
9249 2000-05-09  Werner LEMBERG  <wl@gnu.org>
9251         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
9252         improvements.
9254         * doc/groff.texinfo: Extended history section.  More conversion to
9255         @Deffn macros.  More .tr documentation.
9257 2000-05-07  Werner LEMBERG  <wl@gnu.org>
9259         * doc/groff.texinfo: Completed tab section.  Added info about
9260         fields.
9262 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
9264         * PROBLEMS: Describe configure script fix for OS/390 Unix.
9266 2000-05-05  Werner LEMBERG  <wl@gnu.org>
9268         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
9269         LaTeX 2e).
9270         * NEWS: Document it.
9272         * man/troff.man: Minor optical improvements.
9274 2000-05-03  Werner LEMBERG  <wl@gnu.org>
9276         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
9278         * font/*/*: Implement it.
9279         * man/groff_char.man, NEWS: Document it.
9281 2000-05-02  Werner LEMBERG  <wl@gnu.org>
9283         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
9284         expansion.
9285         * NEWS: Document the three new man pages.
9287         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
9288         * configure: Updated.
9290         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
9292 2000-05-01  Werner LEMBERG  <wl@gnu.org>
9294         Added grap support to grog.
9296         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
9297         * src/roff/grog/grog.man: Document it.
9299         * doc/groff.texinfo, NEWS: Add info about grap support.
9301         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
9302         (with slight fixes by me).
9304         * tmac/groff_tmac.man: New file documenting tmac mechanism.
9305         * tmac/Makefile.sub: Add groff_tmac.man.
9306         * man/roff.man: New file giving overview of roff system.
9307         * man/troff.man: A short reference of troff.
9308         * man/Makefile.sub: Add roff.man and troff.man.
9310 2000-04-30  Werner LEMBERG  <wl@gnu.org>
9312         Added grap support to groff.
9314         * src/roff/groff/groff.cc: Implement it.
9315         * src/roff/groff/groff.man: Document it.
9317         * src/devices/grotty/grotty.man: Add cp1047 device.
9318         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
9319         Ditto.
9320         * src/roff/groff/groff.man: Ditto.
9321         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
9322         * doc/groff.texinfo: Ditto.
9324         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
9325         for cp1047.
9327 2000-04-29  Werner LEMBERG  <wl@gnu.org>
9329         * man/groff_char.man: Add `pc' glyph.
9330         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
9331         * tmac/tmac.tty: Add `pc' glyph.
9332         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
9333         we use cp1047 output device.
9335         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
9336         there are still hardcoded latin1->unicode values in utf8's font
9337         definition files.
9338         * configure: Updated.
9339         * NEWS: Minor clarification.  Updated.
9341         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
9342         Unix.
9344 2000-04-28  Werner LEMBERG  <wl@gnu.org>
9346         Adding EBCDIC code page 1047.
9348         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
9349         font/devcp1047/DESC.proto: New files.
9351         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
9352         either ascii/latin1 or cp1047.
9353         * Makefile.in: Use it.
9354         * configure: Updated.
9356         Replacing and/or adding `md' (mathdot) glyph with `pc'
9357         (periodcentered) in all text fonts.
9359         * font/*/*: Change it.
9361 2000-04-27  Werner LEMBERG  <wl@gnu.org>
9363         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
9365         * configure.in: Add check for strings.h.
9366         * src/include/driver.h: Use HAVE_STRINGS_H.
9367         * src/devices/grolbp/lpb.cc: Remove string.h.
9369         * src/include/groff-getopt.h: New file.  It will be used instead of
9370         getopt.h (to be included in lib.h) to avoid endless problems with
9371         picky C++ compilers.
9372         * src/include/lib.h: Use groff-getopt.h.
9373         * src/include/Makefile.sub: Updated.
9375         * configure: Updated.
9376         * Makefile.in: Updated.
9378         * NEWS: Mention EBCDIC support.
9380 2000-04-26  Werner LEMBERG  <wl@gnu.org>
9382         * TODO: Some additions.
9384 2000-04-25  Werner LEMBERG  <wl@gnu.org>
9386         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
9387         of mso request.
9389 2000-04-23  Werner LEMBERG  <wl@gnu.org>
9391         * src/roff/troff/troff.man: Minor fixes.
9393 2000-04-22  Werner LEMBERG  <wl@gnu.org>
9395         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
9396         `.T' string register and the incompatible definition of the `.T'
9397         number register (compared to Unix troff).
9399         * man/groff_char.man: Add some missing characters.
9400         * font/devutf8/NOTES: Update.
9402 2000-04-21  Werner LEMBERG  <wl@gnu.org>
9404         * src/include/htmlindicate.h, src/include/lib.h,
9405         src/include/posix.h: Fix copyright.
9407         * src/include/Makefile.sub: Update.
9409 2000-04-20  Werner LEMBERG  <wl@gnu.org>
9411         * src/roff/troff/input.cc (input_char_description): Removing
9412         superfluous space char.
9414         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
9416         * doc/groff.texinfo: Document EBCDIC.
9418 2000-04-19  Werner LEMBERG  <wl@gnu.org>
9420         Introducing `shc' as the glyph name for the soft hyphen character.
9422         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
9423         font/devlatin1/R.proto: Use it.
9425         * NEWS: Updated.
9427 2000-04-18  Werner LEMBERG  <wl@gnu.org>
9429         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
9430         dependency on ASCII order.
9432 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
9434         * src/libs/libgroff/illegal.c: Added EBCDIC table.
9435         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
9437         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
9438         to increase portability.
9440 2000-04-15  Werner LEMBERG  <wl@gnu.org>
9442         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
9443         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
9444         the generic `\n' if under OS/390 Unix.
9446         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
9448         * configure: Regenerated.
9450 2000-04-14  Werner LEMBERG  <wl@gnu.org>
9452         * doc/groff.texinfo: More conversions to @Deffn.
9454 2000-04-12  Werner LEMBERG  <wl@gnu.org>
9456         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
9457         with `:'.
9459         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
9461 2000-04-10  Werner LEMBERG  <wl@gnu.org>
9463         * doc/groff.texinfo: More conversions to @Deffn.
9465 2000-04-08  Werner LEMBERG  <wl@gnu.org>
9467         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
9468         Updated to latest version (glibc 2.1.3).
9470 2000-04-07  Werner LEMBERG  <wl@gnu.org>
9472         * doc/Makefile (clean): Include more index files.
9473         Add rule texinfo->dvi.
9475 2000-04-05  Werner LEMBERG  <wl@gnu.org>
9477         * doc/groff.texinfo: Added new index `op' for operators.  More
9478         info on end of sentence characters.  More use of @Deffn.
9480 2000-03-30  Werner LEMBERG  <wl@gnu.org>
9482         * */*.man: Adding a note that a whitespace can be inserted between
9483         a command line option and its parameter -- we are using GNU getopt.
9485         * src/roff/groff/groff.man: Add example of `-m mandoc'.
9487 2000-03-28  Werner LEMBERG  <wl@gnu.org>
9489         Correct anachronism of calling the man macro file with `-man'
9490         instead of `-m man' etc.
9492         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
9493         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
9494         load tmac.<package>.
9496         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
9498         * NEWS: Updated.
9500         * doc/groff.texinfo: Updated.
9502         * tmac/groff_man.man: Copyright added.
9504 2000-03-27  Werner LEMBERG  <wl@gnu.org>
9506         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
9507         typeset the request resp. escape name with a tt font -- due to a
9508         bug in texinfo.tex it is necessary to use the `-e' switch with
9509         texi2dvi.
9511         Improving info about usage of groff units.
9513         Other minor fixes.
9515 2000-03-20  Werner LEMBERG  <wl@gnu.org>
9517         * doc/groff.texinfo: Added section about man macro package
9518         (I've basically taken groff_man.man).  Introducing new indices `ma'
9519         for macros/strings and `gl' for glyph names.  Other minor fixes.
9521         * tmac/groff_man.man: Fixed some typos.
9523 2000-03-19  Werner LEMBERG  <wl@gnu.org>
9525         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
9526         Other minor fixes.
9528         * doc/texinfo.tex: New file.
9530 2000-03-18  Werner LEMBERG  <wl@gnu.org>
9532         * doc/groff.texinfo: Improved section on number registers.  Other
9533         minor updates.
9535 2000-03-16  Werner LEMBERG  <wl@gnu.org>
9537         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
9538         synopsis.
9540         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
9541         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
9542         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
9543         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
9545         * src/preproc/grn/grn.man: Better synopsis; added copyright.
9547         * src/roff/grog/grog.man: Updated copyright date.
9549 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
9551         * configure.in: Added test for strdup.
9553         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
9554         is available.
9556         Replaced dynamic allocation of arrays `[...]' with `new' operator.
9558         Other minor fixes.
9560 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
9562         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
9564 2000-03-11  Werner LEMBERG  <wl@gnu.org>
9566         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
9567         compilers silent.
9568         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
9569         * src/include/lib.h: Remove some spaces.
9571 2000-03-10  Werner LEMBERG  <wl@gnu.org>
9573         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
9574         initializers from arguments (some compilers don't like this).
9576 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
9578         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
9579         used by pic and eqn to tell grohtml where the graphic regions start
9580         and end.
9581         * src/libs/libgroff/Makefile.sub: Use it.
9582         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
9583         graphic_start() and graphic_end() from htmlindicate.cc.
9585 2000-03-09  Werner LEMBERG  <wl@gnu.org>
9587         * tmac/tmac.safer: Will now work correctly in compatibility mode.
9588         * tmac/groff_man.man: More fixes.
9590 2000-03-08  Werner LEMBERG  <wl@gnu.org>
9592         * doc/Makefile: Added texput.log to the `clean' target.
9593         * doc/groff.texinfo: Added info about delimiters for escapes.
9595 2000-03-08  Bernd Warken  <bwarken@mayn.de>
9597         * src/preproc/pic/pic.man: Add info on conversion of pic images to
9598         other graphic formats.
9600 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
9602         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
9603         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
9604         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
9605         files.
9607 2000-03-07  Werner LEMBERG  <wl@gnu.org>
9609         * doc/groff.texinfo: Spelling fixes.
9611 2000-03-06  Werner LEMBERG  <wl@gnu.org>
9613         * tmac/groff_man.man: Completely revised to cover everything in
9614         tmac.an.
9616         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
9617         Other minor fixings.
9618         * src/roff/troff/env.cc (environment_copy): Improve error message and
9619         fix itoa->i_to_a.
9620         * src/roff/troff/TODO: Updated.
9622         * doc/Makefile: Bug fixes -- this is still provisional, though...
9624         * tmac/eqnrc: Small fixes.
9626 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
9628         Adding a request `evc' to copy environments.
9630         * src/roff/troff/env.cc (environment::copy, environment_copy):
9631         Implement it.
9632         * src/roff/troff/env.h: Add prototype.
9634 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
9636         Adding strsep() -- Solaris 8 doesn't have it.
9638         * configure.in: Test it.
9639         * src/devices/grolbp/lbp.cc: Add code.
9641 2000-03-05  Werner LEMBERG  <wl@gnu.org>
9643         * src/roff/troff/div.cc (macro_diversion::output,
9644         top_level_diversion::output): Fixing an incompatibility with
9645         original troff: \x'0' updates the .a register also.  Thanks to
9646         <Andries.Brouwer@cwi.nl> for pointing this out.
9647         * doc/groff.texinfo: Document it.
9649         * Makefile.in: Create Makefile.dep if necessary before calling the
9650         submake process to avoid warning about nonexistent file.
9652         * NEWS, PROJECTS: Updated.
9654 2000-03-04  Werner LEMBERG  <wl@gnu.org>
9656         * tmac/troffrc: Add tmac.lbp.
9658 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
9660         * tmac/tmac.lbp: New file.
9661         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
9662         command.
9664 2000-03-03  Werner LEMBERG  <wl@gnu.org>
9666         * Makefile.in: Fixing $(subdir).
9668         * README, NEWS: Small fixes.
9670         * test-groff: Adding path to grolbp.
9672         * configure.in: The (new) file src/xditview/Imakefile.in will be
9673         also configured -- it is now possible to build gxditview in a
9674         directory different from $srcdir.
9676 2000-03-02  Blake McBride  <blake@florida-software.com>
9678         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
9680         * MORE.STUFF: Added website of bell labs and info about plot2dev.
9682 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
9684         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
9685         files.
9687 2000-02-29  Werner LEMBERG  <wl@gnu.org>
9689         Adding GNU getopt to the groff distribution.
9691         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
9692         New files.
9693         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
9694         * aclocal.a4: Remove GROFF_GETOPT function.
9695         * configure.in, Makefile.in, PROBLEMS: Update.
9696         * src/include/lib.h: Replace getopt tests with getopt.h.
9697         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
9699         * doc/groff.texinfo: Further checking/updating.  Adding more index
9700         entries.
9702         * man/groff_out.man: Fix nroff mode activation (for emacs).
9703         * man/groff_font.man: Add missing ligature.
9705 2000-02-28  Werner LEMBERG  <wl@gnu.org>
9707         * doc/groff.texinfo: Further checking/updating.  Adding more index
9708         entries.
9710         * src/devices/grolbp/grolbp.man: Added a comment line at the
9711         beginning of the file (similar to shell scripts) which indicates
9712         that `tbl' should be used as a preprocessor.
9714 2000-02-27  Blake McBride  <blake@florida-software.com>
9716         Adapting groff to MS Visual C++ 6.0 compiler (tested with
9717         Windows NT 4.0).  Uses _MSC_VER define where necessary.
9719         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
9720         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
9721         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
9722         src/include/lib.h, src/libs/libgroff/errarg.cc,
9723         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
9724         src/preproc/refer/label.y, src/preproc/refer/label.cc,
9725         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
9726         src/roff/troff/div.cc, src/roff/troff/env.cc,
9727         src/roff/troff/input.cc, src/roff/troff/node.cc,
9728         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
9729         if_to_a() to avoid name clashes.
9730         * src/include/posix.h: Don't use unistd.h.
9731         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
9732         clause for integrating non-Unix xtmpfile() code.
9733         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
9734         structure; use "rt" for popen() in pipe_source(); add getpid()
9735         dummy function.
9736         * src/roff/troff/node.cc: Use special versions of popen() in
9737         real_output_file() and pclose() in ~real_output_file().
9739 2000-02-27  Werner LEMBERG  <wl@gnu.org>
9741         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
9742         LBP-8 series laser printers).  This code has been contributed by
9743         Francisco Andrés Verdú <pandres@dragonet.es>.
9745         * src/devices/grolbp/*: The grolbp output device.
9746         * font/devlpb/*: The font description files.
9747         * Makefile.in: Add grolpb and devlbp subdirectories.
9749         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
9750         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
9751         typographic fixes.
9753         * doc/groff.texinfo: Further checking/updating.  Adding more index
9754         entries.
9756         * NEWS: Updated.
9758         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
9760         * man/groff_font.man: Adding info about obsolete DESC keywords.
9761         * src/devices/grolj4/grolj4.man: Documenting additional DESC
9762         keywords.
9764 2000-02-26  Werner LEMBERG  <wl@gnu.org>
9766         * src/preproc/grn/grn.man: Added info about the gremlin file format
9767         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
9769 2000-02-25  Werner LEMBERG  <wl@gnu.org>
9771         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
9772         friends to be non-integer.
9774         * src/preproc/grn/grn.man: Document it.
9776         * doc/groff.texinfo: Further checking/updating.  Adding more index
9777         entries.
9779 2000-02-24  Werner LEMBERG  <wl@gnu.org>
9781         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
9782         line thicknesses to be integer multiples of this value.
9784         * src/preproc/grn/grn.man: Commenting out the -s option -- the
9785         corresponding code doesn't work (yet).
9787         * doc/groff.texinfo: Further checking/updating.  Adding more index
9788         entries.
9790 2000-02-23  Werner LEMBERG  <wl@gnu.org>
9792         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
9793         specify line thickness instead of base units.  The new default
9794         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
9795         thick lines respectively.
9797         Removed unused variable `prevval'.
9799         * src/preproc/grn/grn.man: Updated.
9801 2000-02-22  Werner LEMBERG  <wl@gnu.org>
9803         * src/preproc/grn/main.cc: Slight formatting.
9805         * src/roff/groff/groff.man: Formatting fix.
9806         * src/preproc/grn/grn.man: Ditto.
9808         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
9810         * doc/groff.texinfo: Further checking/updating.
9812 2000-02-21  Werner LEMBERG  <wl@gnu.org>
9814         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
9816         * test-groff: Added grn subdir to path.
9818         * doc/groff.texinfo: Some restructing and other small improvements.
9820         * src/roff/groff/groff.cc (help): Fixed info string.
9822 2000-02-20  Werner LEMBERG  <wl@gnu.org>
9824         * doc/meref.me: Fix description of .GS request.
9826         * src/roff/troff/troff.man: Fixing typo.
9828         Adding the `grn' preprocessor for gremlin graphic files.
9830         * src/preproc/grn/*: This is the Berkeley distribution written by
9831         David Slattengren and Barry Roitblat, adapted to groff by Daniel
9832         Senderowicz and Werner Lemberg.
9834         * doc/grnexampl.{me,g}: A sample for grn.
9836         * Makefile.in: Added subdirectory entry for grn.
9838         * src/roff/groff/groff.cc: Added support for grn.  It can be now
9839         called with the switch `-g'.
9841         * src/roff/groff/groff.man: Updated.
9843         * src/roff/grog/grog.{man,pl,sh}: Updated.
9845         * NEWS: Updated.
9847 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
9849         * src/include/lib.h: Added xtmptemplate and made xtmpfile
9850         parametrically polymorphic.
9852         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
9853         and the alterations to xtmpfile.
9854         xtmpfile can be requested to return the filename created
9855         and asked not to unlink the temp file.  The default behaviour
9856         if parameters are absent is exactly the same as before.
9858 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
9860         A new request `length' is available which returns the length of a
9861         string in a number register:
9863         * src/roff/troff/input.cc (length_macro): Implement it.
9864         * src/roff/troff/input.cc (init_input_requests): Register it.
9866 2000-02-11  Werner LEMBERG  <wl@gnu.org>
9868         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
9869         of the `substring' request.
9871         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
9872         request.
9874         * src/roff/troff/TODO, NEWS: Updated.
9876 2000-02-09  Werner LEMBERG  <wl@gnu.org>
9878         * src/roff/groff/groff.man: Added an example.
9880 2000-02-06  Werner LEMBERG  <wl@gnu.org>
9882         I've considerably modified the directory structure of the
9883         distribution to get a more vertical layout.  For example, the number
9884         of top level directories has been reduced from 42 to 6.
9886         As a consequence, many changes, especially to the makefiles, were
9887         necessary:
9889         * The makefile variables `top_builddir' and `top_srcdir' have been
9890         introduced.  Virtually all relative paths have been replaced with
9891         absolute ones using these two variables.
9893         * Dependencies (in the files `Makefile.dep') are no longer part of
9894         the distribution.  Instead, they are created during a `make install'
9895         in the build directory.
9897         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
9898         make `top_srcdir' and `top_builddir' absolute.
9900         Some other changes:
9902         * Man pages now depend on the files `VERSION' and `REVISION'.
9904         * The added shell script `mkinstalldirs' will replace `mkdir' in
9905         almost all cases.
9907         * VERSION: Version number increased to 1.16.
9909 2000-02-04  Werner LEMBERG  <wl@gnu.org>
9911         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
9913         * Makefile.in: Removed $(tmac_m) since it is no longer needed
9914         (after an update of the mm stuff).
9916         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
9918 2000-02-03  Werner LEMBERG  <wl@gnu.org>
9920         The .psbb request will now also accept Mac PS images (i.e. using LF
9921         as the EOL character).
9923         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
9924         (with slight modifications).
9925         * troff/input.cc (do_ps_file): Use it.
9927         * test-groff: Add grohtml and grolj4 output devices to PATH.
9929 2000-01-30  Werner LEMBERG  <wl@gnu.org>
9931         * NEWS, MORE.STUFF: Updated.
9933 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
9935         Add the `srand' command to pic.
9937         * pic/lex.cc, pic/pic.y: Implement it.
9938         * pic/pic.man: Document it.
9939         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
9941 2000-01-30  Werner LEMBERG  <wl@gnu.org>
9943         Add a new request `.psbb'.  This does exactly what the external
9944         program psbb did.  It scans a PostScript image file for a
9945         %%BoundingBox comment and extracts the bounding box values (in
9946         PostScript units) which are then stored in the four new (read-only)
9947         number registers `llx', `lly', `urx', and `ury'.
9949         This will allow the usage of the .PSPIC macro without worrying
9950         about unsafe behaviour of groff, i.e., it will work without the
9951         `-U' switch of groff.
9953         * troff/input.cc: Implement it.
9954         * tmac/tmac.pspic: Use it.
9955         * troff/troff.man, grops/grops.man, NEWS: Document it.
9956         * psbb/*, Makefile.in: Remove it since it is no longer needed.
9958         This is bloody C code simply adapted from psbb.c!  Any improvements
9959         welcome.
9961 2000-01-29  Werner LEMBERG  <wl@gnu.org>
9963         * man/groff_font.man: Minor clarifications.
9965         * NEWS: Updated.
9967 2000-01-28  Werner LEMBERG  <wl@gnu.org>
9969         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
9971 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
9973         * man/groff_font.man: Brought up to date regarding tcommand
9974         extensions.
9975         * libgroff/font.cc: Handle everything after `--' as a comment
9976         in the font files.
9977         * devps/*: Added comment delimiter inside devps font files.
9979 2000-01-28  Werner LEMBERG  <wl@gnu.org>
9981         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
9982         \fC...\fP (which now works as expected).
9984         * troff/troff.man: Fix typo.
9986 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
9988         Completed the pass_filenames implementation in troff.
9990         * libdriver/input.cc: Will read the new `F' tcommand.
9991         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
9992         * troff/input.cc: Use it.
9994 2000-01-26  Werner LEMBERG  <wl@gnu.org>
9996         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
9997         font will now be updated even if an invalid font is selected.
9999 2000-01-24  Werner LEMBERG  <wl@gnu.org>
10001         * doc/homepage.ms: Updated for new tmac.arkup.
10003         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
10005         * tmac/tmac.arkup: Cleanup.
10007         Added `\&' to .HTML macro to `leave vertical mode', so to say.
10009         Removed obsolete .LINK macro completely.
10011         The macros .URL, .FTP, and .MAILTO now accept a third argument which
10012         will be immediately appended to the second argument (to be used with
10013         punctuation, for example).
10015         Disabled .CDFTP macro temporarily for security reasons.
10017         * tmac/groff_markup.man: Complete revision for latest changes in
10018         tmac.arkup -- note that it does not yet format correctly with
10019         grohtml :-(
10021 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
10023         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
10024         * devutf8/R.proto: Add mappings for wp, lh, rh.
10025         * devutf8/NOTES: Updated.
10027 2000-01-23  Werner LEMBERG  <wl@gnu.org>
10029         * doc/groff.texinfo: Updated version/copyright info.
10031 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
10033         Added support for two new directives in device descriptions:
10034         `pass_filenames' (to pass the input file name to the output device)
10035         and `use_charnames_in_special' (to support e.g. accented characters
10036         in the `X' request).
10038         * include/font.h, troff/charinfo.h: Declare it.
10040         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
10042         * devhtml/DESC: Use it.
10044         * troff/input.cc: New function encoded_char.
10046         * troff/token.h: Add test for `specialness'.
10048 2000-01-21  Werner LEMBERG  <wl@gnu.org>
10050         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
10051         mistake from the list of files to be installed.
10053 2000-01-18  Werner LEMBERG  <wl@gnu.org>
10055         * README: Added info how to apply patches.
10057 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
10059         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
10061 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
10063         * troff/input.cc: Add support for troffrc-end.
10065         * tbl/main.cc: Altered to issue table-start and table-end special
10066         characters if using the html device.
10068         * devhtml/*: Modified font files to incorporate html encoding of
10069         characters.
10071         * tmac/groff_markup.man: New file documenting tmac.arkup.
10073         * tmac/troffrc-end: New file.  This is invoked after all user
10074         specified macros.  Currently used by the html device to include
10075         tmac.html.  Thus no need for users to specify -mhtml anymore.
10077         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
10078         (MAN7): Add groff_markup.man.
10080         * tmac/tmac.an, tmac/tmac.html: Small html updates.
10082         * tmac/troffrc: tmac.arkup will now be called for the html device.
10084         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
10085         extra device specific information about fonts.
10087         * doc/homepage.ms: New file.  It is an example how an HTML home page
10088         could look like with grohtml.
10090         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
10092 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
10094         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
10095         of Im, Re.
10097         * devutf8/NOTES: Updated.
10099 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
10101         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
10102         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
10103         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10104         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
10105         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
10106         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
10107         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
10108         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
10109         warnings.
10111         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
10113 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
10115         grolj4: Paper size will be searched case-insensitively.
10117         * include/lib.h: Add check for strcasecmp().
10118         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
10119         * configure.in: Check for strcasecmp().
10121 2000-01-11  Werner LEMBERG  <wl@gnu.org>
10123         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
10124         `REVISION'.
10126 2000-01-10  Werner LEMBERG  <wl@gnu.org>
10128         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
10129         revision scheme.
10131         Add a new read-only register, `.Y', which contains the groff
10132         revision.
10134         * troff/input.cc (init_input_requests): Define it.
10135         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
10136         * doc/groff.texinfo, troff/troff.man: Document it.
10138         * libgroff/Makefile.sub (version.cc): Add definition of
10139         `Version_string[]', consisting of `<major>.<minor>.<revision>'
10140         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
10141         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
10142         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
10143         troff/input.cc, pfbtops/pfbtops.c: Use it.
10145 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
10147         Add a revision scheme to the groff package.
10149         * REVISION: New file.
10150         * libgroff/Makefile.sub (version.cc): Use it to define
10151         `revision_string[]'.
10152         * grops/psrm.cc: Use revision_string (converted to an unsigned
10153         integer) in constructor of resource_manager.
10155 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
10157         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
10158         files.
10159         * Makefile.in (DEVDIRS): Add devutf8.
10160         * grotty/tty.cc: Include device.h.
10161         (glyph): Change type of `code' to `unsigned int'.
10162         (tty_printer): New field is_utf8.  Constructor takes device argument.
10163         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
10164         (tty_printer::add_char): Change type of first arg to `unsigned int'.
10165         (tty_printer::put_char): New function.
10166         (tty_printer::end_page): Use put_char() instead of ::putchar().
10167         (make_printer): Pass device to tty_printer constructor.
10168         * nroff.sh: Determine default device by calling 'locale'.  As a
10169         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
10170         Recognize UTF-8 locales.
10171         * tmac/eqnrc: Recognize utf8 like latin1.
10172         * tmac/troffrc: Device utf8 needs tmac.tty.
10174 2000-01-07  Werner LEMBERG  <wl@gnu.org>
10176         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
10178 2000-01-07  Paul Eggert  <eggert@twinsun.com>
10180         Add a new predefined writeable number register, `year',
10181         which contains the current year.
10183         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
10184         * tmac/tmac.s: Use it.
10185         * troff/input.cc (init_registers): Initialize it.
10187 2000-01-06  Werner LEMBERG  <wl@gnu.org>
10189         * PROBLEMS: Fixed typo.
10191 2000-01-04  Paul Eggert  <eggert@twinsun.com>
10193         * PROBLEMS: Add Y2k advice for the yr number register.
10195 2000-01-03  Paul Eggert  <eggert@twinsun.com>
10197         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
10199 2000-01-02  Werner LEMBERG  <wl@gnu.org>
10201         * tmac/tmac.arkup: Slight modification of macros to provide better
10202         appearance for non-HTML formats.
10204 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
10206         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
10207         does not automatically translate to malloc(n) on all OSes
10208         (e.g., SunOS) so do it explicitly.  Also, check the returned
10209         value.
10211 2000-01-01  Werner LEMBERG  <wl@gnu.org>
10213         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
10215         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
10216         expects this variable
10218 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
10220         * doc/Makefile: Added instructions to create HTML and text
10221         versions of some files.
10223 1999-12-31  Werner LEMBERG  <wl@gnu.org>
10225         * Updated INSTALL.gen.
10227         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
10228         better resp. correctly with non-HTML devices.
10230 Version 1.15 released
10231 =====================
10233 1999-12-28  Werner LEMBERG  <wl@gnu.org>
10235         * NEWS, VERSION: Changed to 1.15
10237 1999-12-27  Paul Eggert  <eggert@twinsun.com>
10239         * nroff/nroff.man: -S is safer, not safe.
10241         * groff/groff.cc (main): Use `safer', not `safe', in variable
10242         names.  This does not change the behavior.
10244         * troff/input.cc (main): Likewise.
10246         * nroff/nroff.sh: Likewise.
10248         * troff/input.cc (prepend_string): New function.
10249         (main): Prepend -msafer, so that we check macro libraries for
10250         safety.
10252         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
10254 Version 1.14 released
10255 =====================
10257 1999-12-26  Werner LEMBERG  <wl@gnu.org>
10259         * NEWS, VERSION: Changed to 1.14.
10261 1999-12-24  Werner LEMBERG  <wl@gnu.org>
10263         * refer/refer.cc: Fixing the last fix.
10265 Version 1.13 released
10266 =====================
10268 1999-12-23  Werner LEMBERG  <wl@gnu.org>
10270         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
10271         number disappear.
10273         * NEWS: Updated.
10275         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
10277         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
10278         document conventions, the version number must be a real.
10280 Version 1.12.1 released
10281 =======================
10283 1999-12-22  Werner LEMBERG  <wl@gnu.org>
10285         * VERSION: Changed to 1.12.1.
10287 1999-12-22  Alan Rooks  <arooks@istar.ca>
10289         * refer/refer.cc (do_file): Slight modification to satisfy the
10290         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
10291         UnixWare 7.1.
10293 1999-12-20  Werner LEMBERG  <wl@gnu.org>
10295         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
10296         notices.
10298         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
10299         list of unsafe requests.
10301         * pic/pic.man: Fixed a typo.
10303         * man/groff_out.man: Fixed a typo.
10305 1999-12-18  Werner LEMBERG  <wl@gnu.org>
10307         * Makefile.in: Doc fixes.
10309 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
10311         * groff/groff.cc: Missing `U' option added to getopt().
10313         * troff/troff.man: Missing `U' option added to synopsis.
10315 Version 1.12 released
10316 =====================
10318 1999-12-14  Werner LEMBERG  <wl@gnu.org>
10320         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
10321         to the synopsis.
10323         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
10324         with the more appropriate terms `safer' and `unsafe'.
10326         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
10327         sys_nerr and sys_errlist[].
10329         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
10331         * pic/pic.y, pic/pic.cc: Added check for fmod().
10333 1999-12-13  Werner LEMBERG  <wl@gnu.org>
10335         * VERSION: Changed to 1.12.
10337         Here some patches from various sources; most of them taken from
10338         the Debian distribution.
10340         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
10341         tmac/Makefile.sub: New files copied directly from the NetBSD
10342         distribution.  Probably, some additional adaptation later on is
10343         necessary...
10345         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
10346         of unsafe requests.
10348         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
10349         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
10350         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
10351         (`-S') is now the default.
10353         * README, NEWS: Updated.
10355 1999-12-09  Werner LEMBERG  <wl@gnu.org>
10357         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
10359         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
10361 1999-12-06  Werner LEMBERG  <wl@gnu.org>
10363         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
10364         grief than relief today.  Additionally, it is against the GNU
10365         coding standards.
10367         * configure: Recreated.
10369 1999-12-05  Werner LEMBERG  <wl@gnu.org>
10371         * configure.in: Added GROFF_LIBM.
10373         * configure: Recreated.
10375         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
10376         necessary.
10378         * Makefile.in: Added definition of $(LIBM).
10380         * Makefile.comm (LIBM): Removed.
10382         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
10384 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
10386         * doc/Makefile: Added rule for generation pic.html.
10388         (clean): Files produced by grohtml will be removed also.
10390         * doc/pic.ms: Small fix.
10392         * tmac/tmac.html: Fixed suppression of headers.
10394 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
10396         * tmac/tmac.html: Fixing horizontal arrows.
10398         Turning off hyphenation.
10400         * tmac/tmac.an: Improved support for grohtml; better indentation,
10401         no footers/headers.
10403 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
10405         * tmac/tmac.arkup: Added CDFTP macro
10407         * tmac/tmac.html: All headers are turned off for ms, me, and mm
10408         macros.
10410         * tmac/troffrc: Some additions for HTML stuff.
10412 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
10414         * tmac/tmac.html: Small changes.
10416 1999-09-26  Werner LEMBERG  <wl@gnu.org>
10418         * doc/groff.texinfo: Minor fixes.
10420 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
10422         * devhtml/TR: Changed spacewidth to 3.
10424         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
10426         * tmac/tmac.html: Moved markup macros to tmap.arkup.
10428         * tmac/tmac.arkup: New file.
10430         * grohtml/ChangeLog: New file.
10432 1999-09-16  Werner LEMBERG  <wl@gnu.org>
10434         * doc/groff.texinfo (Common Features): Added Copying chapter.
10435         Changed format to @smallbook.
10437 1999-09-15  Werner LEMBERG  <wl@gnu.org>
10439         * NEWS: Added info about groff.texinfo.
10441         * doc/groff.texinfo: Will now compile (using texi2dvi) without
10442         warning messages.
10444 1999-09-14  Werner LEMBERG  <wl@gnu.org>
10446         * groff/groff.man: More updates.
10448 1999-09-13  Werner LEMBERG  <wl@gnu.org>
10450         * doc/groff.texinfo: New file.  This manual is still very
10451         rudimentary.  It has been originally contributed by Trent
10452         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
10453         additions by me.
10455         * INSTALL: Added information about the `doc' subdir
10457         * troff/troff.man: Minor fixes.
10459         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
10460         reordered options.
10462         * troff/input.cc (usage): Added missing `-ffam' to usage message.
10464         * Makefile.in (dist): groff-$(version).tar.gz must be removed
10465         also, otherwise it is included itself in another call of `make
10466         dist'.
10468         * groff/groff.cc (synopsis): Removed superfluous space.
10470         * PROJECTS, PROBLEMS, NEWS: Updated.
10472         * VERSION: Updated to 1.12beta.
10474         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
10476         * README: Updated: Included documentation about CVS repository,
10477         mailing lists, and daily snapshots.
10479         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
10481 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
10483         * tmac/tmac.an: If the tag didn't fit into the space that the
10484         macro `TP' specifies, the rest of the tag went into the space for
10485         the next line.
10487 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
10489         * grolj4/lj4.cc: Added duplex printing (option `-d').
10491         * grolj4/grolj4.man: Document duplex printing.
10493 1999-09-12  Werner LEMBERG  <wl@gnu.org>
10495         * doc/Makefile (pic.ps): Fixed rule which caused problems with
10496         non-GNUish sed programs.
10498         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
10499         definition.
10501         * configure.in (LIBS): Added `-lc'
10503         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
10505         * pic/tex.cc (solid_arc): Casting M_PI to double.
10507         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
10509         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
10510         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
10511         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
10513         * groff/groff_man.man: New file.  This manual page was originally
10514         written for the Debian GNU/Linux system by Susan G. Kleinmann
10515         <sgk@debian.org>.
10517         * eqn/list.cc (list_box::compute_metrics,
10518         list_box::compute_sublist_width): Removed variable declaration to
10519         avoid shadowing warnings.
10521         * grops/psrm.cc (resource_manager::process_file): Ditto.
10523         * tfmtodit/tfmtodit.cc (main): Ditto.
10525         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
10526         to avoid shadowing warnings.
10528         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
10529         shadowing loop variable.
10531         * groff/groff.man, troff/troff.man: Added doc about grohtml.
10533 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
10535         New grohtml frontend to convert groff input to html.
10537         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
10539         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
10541         * tmac/eqnrc: Added html device.
10543         * tmac/tmac.html: New file.
10545         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
10546         (troff_output::start_picture, troff_output::finish_picture),
10547         tbl/main.cc (process_input_file):
10548         Surrounded output with `graphics_start' and `graphics_end' so that
10549         the html driver can identify non-text portions.
10551         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
10552         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
10553         grotty/tty.ps (tty_printer::set_char): Additional parameter
10554         `name'.
10556         * include/printer.h: Class printer: New function
10557         set_char_and_width; new variables (is_char_named, is_named_set,
10558         named_command, named_char_s, named_char_n) to hold information
10559         about named characters -- needed by the html driver.
10561         * libdriver/printer.cc (printer::set_ascii_char,
10562         printer::set_special_char): Use set_char_and_width.
10564         * devhtml/*: New device files for html driver.
10566         * grohtml/*: New driver grohtml.
10568 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
10570         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
10571         default strings.
10573 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
10575         * libgroff/string.cc (search): Small fix to test against NULL
10576         pointer.
10578 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
10580         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
10581         \b'abc') were stacked in reverse order when processed in a
10582         diversion.
10584         * troff/node.h: Added `*last' to struct `node' to make the above
10585         fix work.
10587         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
10588         The default scale for the 'f' and 't' graphics functions were 'm'
10589         rather than 'u' (i.e., no scaling).
10591 1999-09-11  Peter Miller  <peterm@jna.com.au>
10593         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
10594         do_file), soelim/soelim.man: Added `-I file' option to soelim,
10595         defining include paths.
10597         * soelim/soelim.cc (include_path_append): New function.
10599 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
10601         * tbl/main.cc (process_options): Unix (at least Documenter's
10602         Workbench) tbl allows arbitrary non-alpha characters between
10603         options.
10605 1999-09-11  Paul Eggert  <eggert@twinsun.com>
10607         Y2k fixes.  Don't assume that the current year precedes 2000.
10609         * doc/meref.me: Add \n(y2, \n(y4.
10611         * tmac/doc-common (Yr): New number register.
10612         (Dd): Don't assume current year precedes 2000.
10614         * tmac/tmac.e (td): Likewise.
10615         (y2, y4): New number registers.
10617         * pic/pic.man: Update reference for pic paper to May, 1991
10618         version.
10620 1999-09-11  Werner LEMBERG  <wl@gnu.org>
10622         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10623         Removed quotation marks which prevented correct expansion of
10624         $(tmac_wrap).
10626         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
10628 1999-09-10  Werner LEMBERG  <wl@gnu.org>
10630         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
10631         `config.cache'.
10633         * Removed configure.old.
10635 1999-08-31  Werner LEMBERG  <wl@gnu.org>
10637         * VERSION: Updated to 1.11.1
10639 1999-05-27  Werner LEMBERG  <wl@gnu.org>
10641         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
10643         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10644         added quotations around $(tmac_wrap) to avoid syntax error if
10645         variable is empty.
10647         * configure: Newly generated using autoconf 2.13.
10649         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
10651 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
10653         * README, PROJECTS, NEWS, INSTALL, VERSION, 
10654         doc/Makefile. doc/pic.ms, groff/groff.man:
10655         Prepare for 1.11 release.  No code changes.
10656         Documentation for pic added (doc/pic.ms).
10658 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
10660         * Version 1.10 released.
10662 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
10664         * afmtodit/afmtodit.pl: Avoid comment on first line.
10666 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
10668         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
10669         * configure.in: Call it.
10671         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
10672         (distfiles): Doesn't depend on config.log or config.cache.
10674 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
10676         * grog/grog.sh: Use print "" rather than print in END rule.
10678 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
10680         * tbl/main.cc (process_data): Don't give error for excess data
10681         entries that are comments.
10683 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
10685         * tbl/main.cc (process_data): Fix case where new for-scope rules
10686         silently change meaning of code.
10688 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
10690         * troff/env.cc (hyphenate): Loop over all consecutive sequences
10691         of non-zero hyphenation codes.
10693 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
10695         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
10697 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
10699         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
10701 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
10703         * tmac/tmac.andoc: Make it work in compatibility mode.
10705         * refer/token.h (token_info::is_range_sep): New function.
10706         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
10707         * refer/ref.cc (reference::output): More sophisticated check for
10708         multiple pages.
10710         * devps/prologue.ps (MANUAL): New procedure.
10711         * grops/ps.cc (main): New -m option.
10712         (usage): Include -m.
10713         (ps_printer::~ps_printer): Implement -m.
10715         * aclocal.m4 (GROFF_G): New macro.
10716         * configure.in: Call it.
10717         * Makefile.in (g): Provided by configure.
10719         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
10721         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
10722         translations.
10724         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
10725         (tmac_m, tmac_s): Deleted.
10726         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
10727         tmac_s_prefix): New variables.
10728         (MDEFINES): Change accordingly.
10729         * Makefile.comm (.man.n): Use new TMAC_* variables.
10730         * configure.in (GROFF_TMAC): Call.
10731         * aclocal.m4 (GROFF_TMAC): Define.
10732         * tmac/Makefile.sub (stamp_wrap): New target.
10733         (install_data, uninstall_sub): Handle macro wrapping.
10735 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
10737         * tbl/main.cc (main): Ignore -T option.
10739 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
10741         * devlj4/generate/special.map: Add definition of \(nb.
10743         * tmac/tmac.dvi: Add definition of \(nb.
10745         * troff/dictionary.c (dictionary::dictionary): association::v gets
10746         initialized by association::association.
10748         * tmac/Makefile.sub: Avoid using temporary files when installing.
10750         * troff/env.cc (environment::set_font): Make bad font number a
10751         warning.
10753         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
10755         * Makefile.in (datadir): Use share rather than lib.
10757         * groff/groff.cc (basename): Rename to xbasename.
10759 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
10761         * Makefile (CCLIBS): Don't use.
10762         * Makefile.ccpg: Likewise.
10764         * acgroff.m4: Rename to...
10765         * aclocal.m4: Modify extensively for autoconf 2.
10766         * configure.in: Likewise.
10767         * Makefile.in: Likewise.
10769         * groff/pipeline.c (const): Declare as empty if __STDC__ not
10770         defined.
10771         (xstrsignal): Check for definition of NSIG. Conditionalize
10772         on SYS_SIGLIST_DECLARED.  Make return type const.
10774 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
10776         * troff/input.cc (interpolate_macro): Rephrase missing space
10777         warning.
10779 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
10781         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
10782         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
10783         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
10784         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10785         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
10786         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
10787         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
10788         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
10789         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
10790         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
10791         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
10792         Fix 'for' scoping.
10794 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
10796         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
10797         string_iterator.
10798         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
10799         file.
10800         (macro_iterator::macro_iterator): Add additional argument.
10802 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
10804         * troff/div.cc (vertical_size::vertical_size): In place of integer
10805         specifying line spacing use cunits specifying post vertical
10806         space.
10807         (macro_diversion::output, top_level_diversion::output): Likewise.
10808         * troff/div.h: Change declarations accordingly.
10809         * troff/env.cc (pending_output_line): Replace ls field by post_vs
10810         field.
10811         (pending_output_line::pending_output_line,
10812         pending_output_line::output, environment::output,
10813         environment::output_line, environment::output_title,
10814         environment::hyphenate_line):  In place of
10815         integer specifying line spacing use cunits specifying post vertical
10816         space.
10817         (environment::environment): Add post_vertical_spacing and
10818         prev_post_vertical_spacing arguments.
10819         (environment::get_post_vertical_spacing): New function.
10820         (environment::total_post_vertical_spacing): New function.
10821         (environment::post_vertical_spacing): New function.
10822         (init_env_requests): Initialize pvs request and .pvs register.
10823         * troff/env.h: Change declarations.
10825 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
10827         * tmac/tmac.pspic: Immediately remove the temporary file.
10829 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
10831         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
10832         height is specified.
10834 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
10836         * tbl/table.c (struct vertical rule, class table_entry): Use int
10837         not short for start_row and end_row.
10839 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
10841         * troff/input.cc (trapping_blank_line, blank_line_macro): New
10842         functions.
10843         (diverted_space_node::reread, process_input_stack): Call
10844         trapping_blank_line() rather than blank_line().
10845         (init_input_requests): Bind "blm" to blank_line_macro().
10847         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
10849 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
10851         * troff/env.cc (environment::possibly_break_line): Require that
10852         width total excluding width of final space node be greater than
10853         the target text length.
10855 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
10857         * troff/node.cc (kern_pair_node::vertical_extent): New function.
10859 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
10861         * troff/node.cc (charinfo_node): New class.
10862         (glyph_node, composite_node): Derive from charinfo_node.  Change
10863         member functions accordingly.
10865 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
10867         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
10869 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
10871         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
10873         * devps/generate/textmap (notsubset): Add.
10875         * tmac/tmac.a4: New file.
10877 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
10879         * pic/main.cc (had_parse_error): New variable.
10880         (do_picture, do_whole_file): Set had_parse_error if yyparse()
10881         returns non-zero.
10882         (main): Return 1 if had_parse_error is true.
10884 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
10886         * grolj4/lj4.cc (main): Avoid use of strtoul.
10888 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
10890         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
10891         iso_8859_1 or $LESSCHARSET is latin1.
10893 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
10895         * hpftodit: New directory.
10896         * Makefile.in (CCPROGDIRS): Add hpftodit.
10897         * devlj4/generate: New directory.
10899 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
10901         * configure.in: Don't use AC_VFORK.
10902         * groff/pipeline.c (run_pipeline): Use fork() always.
10904 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
10906         * grops/ps.cc (main): Use %1 not %s in error message for -w.
10908         * Makefile.in (CCPROGDIRS): Add grolj4.
10909         (DEVDIRS): Add devlj4.
10910         * grolj4, devlj4: New directories.
10911         * tmac/troffrc: Handle lj4.
10912         * tmac/tmac.lj4: New file.
10914 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
10916         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
10918 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
10920         * troff/input.cc (do_if_request): At end of second string, switch
10921         environments before getting next token.
10923 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
10925         * devps/psstrip.sed: Split rule that strips whitespace on either
10926         side of delimiters.
10928 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
10930         * troff/node.h (font_family::make_definition): Add return value to
10931         declaration.  * troff/symbol.h (symbol::operator==,
10932         symbol::operator!=): Likewise.
10934 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
10936         * groff/groff.cc (main, help, synopsis): Handle -S.
10937         (possible_command::insert_arg): New function.
10939         * tmac/tmac.safer: New file.
10940         * tmac/msafer.man: New file.
10941         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
10943 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
10945         * pic/pic.h, pic/main.cc (safer_flag): New variable.
10946         * pic/pic.y (placeless_element): Avoid unsafe operations if
10947         `safer_flag' is set.
10948         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
10950 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
10952         * eqn/lex.cc (get_token): Put call to add_context() in block to
10953         work around Sun C++ 4.0 bug.
10955         * include/stringclass.h (operator +): Use ?: instead of `if' to
10956         work around Sun C++ 4.0 bug.
10958 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
10960         * tbl/main.cc (process_format): Accept - as a synonym for the _
10961         key letter.
10963         * libbib/index.cc (minus_one): Don't declare as const.
10965 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
10967         * troff/input.cc (get_char_for_escape_name): Push back a newline.
10969 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
10971         * troff/input.cc (write_macro_request): New function.
10972         (init_input_requests): Bind write_macro_request to writem.
10974 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
10976         * tmac/tmac.s (@EN): Turn filling back on even if there was no
10977         equation.
10979         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
10981         * tmac/tmac.s (@TS): Renamed from TS.
10982         (TS): Call LP then TS again.
10983         (cov*ab-init): Alias @TS to TS.
10985         * tmac/tmac.s: Allow QP or RS to initialize.
10987         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
10988         Move initializations of PS and LL here.
10989         (par@init): Don't initialize HY.  Avoid changing environment 0.
10990         (par*env-init): Don't all par@reset.
10992 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
10994         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
10996 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
10998         * Makefile.in (MDEFINES): Add LDFLAGS.
10999         (LDFLAGS): Add definition line.
11001 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
11003         * troff/input.cc (get_optional_char): Split off error check into...
11004         (check_missing_character): New function.
11005         * troff/token.h: Declare it.
11006         * troff/env.cc (margin_character): Don't call get_optional_char.
11007         Only call tok.next() after making the node.
11009         * include/lib.h (getopt): Make 2nd argument char *const *.
11011 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
11013         * nroff/conftest.sh: Deleted.
11015 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
11017         * pic/make-dos-dist: Deleted.
11019 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
11021         * devps/psstrip.sed: Strip comments before stripping trailing
11022         white space.
11024 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
11026         * Version 1.09 released.
11028 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
11030         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
11032 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
11034         * libgroff/font.cc (font::load_desc): Fix typo in error message.
11036 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
11038         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
11039         about returning without a value.
11041         * troff/charinfo.h (charinfo::get_special_translation): Cast
11042         TRANSLATE_NONE to int.
11044         * refer/token.cc (lookup_token, store_token): Remove bogus loop
11045         test.  Fix test so that it works with n unsigned.
11047         * pic/pic.y (defaults_table): Fully bracket initializer.
11048         * pic/lex.cc (lookup_keyword): Likewise.
11049         * eqn/lex.cc (token_table, def_table): Likewise.
11050         * eqn/box.cc (param_table): Likewise.
11051         * troff/input.cc (warning_table): Likewise.
11052         * libgroff/font.cc (table): Likewise.
11053         * grops/ps.cc (ps_printer::special): Likewise.
11054         * grops/psrm.cc (resource_manager::process_file): Likewise.
11055         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
11056         * refer/command.cc (command_table): Likewise.
11057         * addftinfo/addftinfo.cc (param_table): Likewise.
11059         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
11060         about temp's being unused.
11061         (unused): New function.
11063         * groff/pipeline.cc: Declare c_fatal.
11065         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
11066         uchar.
11068         * libbib/index.cc (index_search_item::load): Prevent compiler
11069         warnings about fd_closer's being unused.
11070         (unused): New function.
11072 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
11074         * troff/input.cc (copy_mode_error): Make `prefix' static.
11075         Fix typo.
11077         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
11078         defined.
11079         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
11080         HAVE_CC_OSFCN_H and modify accordingly.
11082         * troff/input.cc (init_charset_table): radicalex overlaps
11083         horizontally.
11085         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
11086         udodo!hans@relay.NL.net).
11087         * groff/configure.in: Call it.
11089         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
11090         * groff/configure.in: Call it.
11091         * include/lib.h: Conditionalize declaration of pclose.
11093         * troff/div.cc (last_page_number): New global variable.
11094         (top_level_diversion::begin_page): Exit if we just printed the
11095         last page.
11096         * troff/div.h (last_page_number): Declare it.
11097         * troff/input.cc (parse_output_page_list): Set last_page_number.
11099         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
11100         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
11101         tmac/tmac.X: Likewise.
11102         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
11103         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
11105 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
11107         * tmac/doc-ditroff (hK): Remove groff specific code which
11108         prevented page-breaks between separate manual entries.  If this is
11109         the first page, don't set the page number to 1.
11111         * acgroff.m4 (GROFF_POSIX): New macro.
11112         * configure.in: Use it.
11114         * troff/node.cc (class real_output_file,
11115         real_output_file::real_output_file,
11116         real_output_file::~real_output_file): Conditionalize use of
11117         popen/pclose on POPEN_MISSING.
11118         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
11119         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
11120         (pipe_source): Similarily.
11122         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
11124         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
11125         presence of declarations by trying to compile example with
11126         conflicting declarations.  (gcc only gives a warning for missing
11127         declarations.)
11129 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
11131         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
11132         (from Ulrich Lauther).
11134 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
11136         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
11138 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
11140         * indxbib/indxbib.cc (write_hash_table): Add code for case where
11141         pointers and ints have different sizes.
11143 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
11145         * tmac/tmac.s (par*env-init): Call par@reset.
11147 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
11149         * tmac/tmac.s (@IP): Switch to a new environment when diverting
11150         tag.
11151         (par*push-tag-env, par*pop-tag-env): New macros.
11153 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
11155         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
11156         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
11158         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
11159         comment.  Include <time.h>.
11161 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
11163         * grops/ps.cc (is_small_h, is_small_v): Deleted.
11164         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
11165         lines.
11167 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
11169         * troff/input.cc (read_request): Only print a prompt if reading
11170         from the terminal.  Also clearerr on EOF if reading from the
11171         terminal.  Declare isatty.
11173 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
11175         * refer/label.y: Rename map_t to map_func and extractor_t to
11176         extractor_func.
11178 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
11180         * include/assert.h: Don't use volatile.
11181         * libgroff/assert.cc: Likewise.
11183 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
11185         * troff/input.cc (abort_request): Look at character in tok before
11186         calling get_copy().
11188 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
11190         * troff/troff.h (NO_RETURN): Deleted.
11191         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
11192         * troff/input.cc (exit_troff): Likewise
11194         * Makefile.in: Remove `Making ...' messages since GNU make now
11195         gives these. 
11197         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
11199 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
11201         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
11202         to constant 1 inch.
11204 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
11206         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
11208 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
11210         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
11211         MARK_REG if there was no left delimiter.
11213 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
11215         * pic/troff.cc (troff_output::text): Set line thickness to
11216         relative before outputting text.
11218         * tmac/tmac.e (@k): Don't zero ?T.
11219         ((z): Likewise.
11221 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
11223         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
11225 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
11227         * troff/input.cc (decode_args): Warn about unquoted tabs (from
11228         Paul Eggert).
11230 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
11232         * troff/input.cc (ignoring): New variable.
11233         (ignore): Set ignoring during call to do_define_macro.
11234         (do_define_macro): Clear ignoring before interpolating terminating
11235         macro.
11236         (copy_mode_error): New function.
11237         (get_char_for_escape_name, read_long_escape_name,
11238         interpolate_arg): Use copy_mode_error.
11239         (warning_table): Add WARN_IG.
11240         * troff/troff.h (WARN_IG): Declare.
11241         (WARN_TOTAL): Change accordingly.
11243         * groff/pipeline.c (strsignal): Rename to xstrsignal.
11244         * groff/groff.cc (strsignal): Delete declaration.
11246 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
11248         * troff/div.cc (page_offset): Use 'm' as default scaling.
11250 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
11252         * nroff/nroff.sh: Ignore -u.
11254 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
11256         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
11258 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
11260         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
11261         drawing box.
11262         (B2): With -Tascii, leave additional vertical space before
11263         and after. Ensure that the left and right indent is restored to
11264         what it was even if the point size changes.  Don't call
11265         par@finish. Change the indent, line length and title length
11266         directly.  With -Tascii, make the width of the box 1n less.
11267         (B1): Remember 1n at the current point size.  Don't call
11268         par@reset.  Change the indent, line length and title length
11269         directly.  Ensure that the temporary indent is preserved.
11270         (par*box-mark-top): Turn off no spacing mode.
11272 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
11274         * Makefile.in (dist): Use .gz suffix.
11276 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
11278         * troff/input.cc (main): Add return 0.
11279         * pic/main.cc (main): Use return instead of exit.
11280         * tbl/main.cc (main): Likewise.
11281         * eqn/main.cc (main): Likewise.
11282         * grops/ps.cc (main): Likewise.
11283         * grotty/tty.cc (main): Likewise.
11284         * groff/groff.cc (main): Likewise.
11285         * grodvi/dvi.cc (main): Likewise.
11286         * refer/refer.cc (main): Likewise.
11287         * indxbib/indxbib.cc (main): Likewise.
11288         * lkbib/lkbib.cc (main): Likewise.
11289         * soelim/soelim.cc (main): Likewise.
11290         * addftinfo/addftinfo.cc (main): Likewise.
11291         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
11292         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
11294         * troff/token.h (process_input_stack): Don't declare as static.
11295         * troff/input.cc: Likewise.
11297         * troff/node.c (invalidate_fontno): Make it a static member of
11298         class font_family.  Change callers.
11299         * troff/node.c: Change declaration.
11301         * tbl/main.cc (struct input_entry_format): Add explicit public
11302         specifier.
11303         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
11304         struct double_hline_stuff): Likewise.
11305         * tbl/table.h (struct entry_format): Likewise.
11306         * pic/object.h (struct saved_state): Likewise.
11308         * include/stringclass.h: Add forward declarations of friend
11309         functions that are later declared as inline.  Don't include inline
11310         specifier in friend declaration.
11312         * libgroff/lib.h: Declare popen and pclose.
11313         * acgroff.m4 (GROFF_POPEN): New macro.
11314         * configure.in: Call it.
11316         * include/lib.h (PI): New constant. Undef first if necessary.
11317         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
11318         * grops/ps.cc (degrees, radians): Likewise.
11319         * libgroff/font.cc (font::get_skew): Likewise.
11321         * grops/ps.cc (is_ascii): New function.
11322         (ps_output::put_string): Use is_ascii.  Use csprint rather than
11323         isprint.
11324         (ps_printer::define_encoding): Use csspace.
11325         * libgroff/strtol.c (ISASCII): New macro.
11326         (strtol): Cast arguments to is*() and tolower() to unsigned char.
11327         Use ISASCII rather than isascii.
11328         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
11329         * libgroff/cset.cc: Likewise.
11330         * libdriver/input.cc: Include cset.h.
11331         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
11332         than isdigit().
11334         * refer/refer.cc (main): Use %ld rather than %d for longs.
11336         * libbib/index.cc (index_search_item_iterator::get_tag): Use
11337         S_ISREG macro.
11339         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
11341 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
11343         * troff/input.cc (hyphenation_code): Skip white space between
11344         char/code pairs.
11346 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
11348         * tbl/table.h (table::entry_list_tailp): New member.
11349         (table::table): Initialize it.
11350         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
11351         behaviour.
11353 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
11355         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
11356         with negative horizontal positions. Remove casts of glyph::hpos to
11357         int.
11358         (USHRT_MAX): Delete definition.
11359         (SHRT_MAX, SHRT_MIN): New definitions.
11360         (glyph::hpos): Change type to short.
11361         (tty_printer::end_page): Output multiple backspaces if necessary.
11362          Remove casts of glyph::hpos to int.
11363         
11364 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
11366         * tmac/tmac.s (@RT): New definition.
11368 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
11370         * refer/refer.cc (do_file): Make sure current_filename is set when
11371         filename is "-".
11373         * pic/common.cc (common_output::dot_line): Handle zero length
11374         lines.
11376 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
11378         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
11379         (par@init): Initialize \n[HY].
11381 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
11383         * troff/dictionary.cc (dictionary::remove): Continue when
11384         r < j < i.
11386 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
11388         * Makefile.com (.y.cc): Avoid ending up with two versions of
11389         $(YTABH).
11391 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
11393         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
11394         (\(,C): Likewise.  Also fix typo.
11396 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
11398         * lib.h: Delete extraneous semi-colon.
11400         * Add pso request: `so' from a pipe.
11401         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
11402         (file_iterator::close): New function.
11403         (file_iterator::~file_iterator, file_iterator::next_file): Use
11404         file_iterator::close.
11405         (file_iterator::backtrace): Say `process' rather than `file' when
11406         the stream is popened.
11407         (pipe_source): New function.
11408         (init_input_requests): Bind ".pso" to pipe_source.
11410 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
11412         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
11414         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
11415         digits in lower case.
11417 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
11419         * Version 1.08 released.
11421         * Makefile.in (dist): Insert || true after ln -s commands that
11422         might fail.
11424         * mm: Update to mm 1.16.
11426         * acgroff.m4 (GROFF_CSH_HACK): New macro.
11427         * configure.in: Call GROFF_CSH_HACK.  Substitute for
11428         SH_SCRIPT_SED_CMD.
11429         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
11430         MDEFINES.
11431         * nroff/Makefile.sub (nroff): New target.
11432         (install_data): Install nroff.
11433         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
11434         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
11436 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
11438         * eqn/Makefile.sub (neqn): Add chmod +x.
11440         * grog/Makefile.sub (grog): Remove spurious semi-colon.
11442 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
11444         * troff/input.cc (string_iterator::string_iterator()): Initialize
11445         lineno and count.
11447 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
11449         * troff/div.cc (macro_diversion::space,
11450         top_level_diversion::space): Don't set high_water_mark.
11451         (macro_diversion::output, top_level_diversion::output): Don't
11452         include post line space in high water mark.
11454 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
11456         * eqn/eqn.y: Don't define YYDEBUG.
11457         * pic/pic.y: Likewise.
11459 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
11461         * tmac/tmac.e ([3): Add space after comma following editors.
11462         Change double spaces to single spaces.
11463         ([4): Change double spaces to single spaces.
11465         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
11466         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
11467         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
11468         after %!PS-Adobe- (for Newsprint).
11470         * troff/div.cc (top_level_diversion::begin_page): When
11471         before_first_page is 1, set page_number to 1.
11473 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
11475         * eqn/box.cc (box::top_level): Protect equation with \&.
11477 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
11479         * groff/groff.cc (possible_command::set_name): Delete old name.
11481         * groff/groff.cc (possible_command::~possible_command): Use
11482         a_delete.
11484         * troff/node.cc (troff_output_file::begun_page): New member.
11485         (troff_output_file::troff_output_file): Initialize it.
11486         (troff_output_file::really_begin_page): Only output V command if a
11487         page has been begun.
11489         * pic/pic.y (placeless_element): Delete argument to PRINT after
11490         use.
11492 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
11494         * Make wrapman work.
11495         * troff/div.h (class top_level_diversion): Replace
11496         first_page_begun by before_first_page (with opposite sense).
11497         * Change first_page_begun to before_first_page inverting sense.
11498         * troff/div.cc (class nl_reg): New class.
11499         (init_div_requests): Use class nl_reg for \n(nl.
11500         (top_level_diversion::begin_page): Don't call
11501         output_file::begin_page if before_first_page is 2;
11502         reset before_first_page afterwards.  If have_next_page_number is
11503         false, then always increment page_number.
11504         * tmac/tmac.an: Set traps within TH rather than at the top-level.
11505         Restore compatibility mode after loading, and then disable
11506         compatibility mode in TH.
11508 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
11510         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
11511         past last line.
11512         * troff/node.h (output_file::trailer): Declare.
11513         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
11514         * troff/node.cc (output_file::trailer): New function.
11515         (troff_output_file::~troff_output_file): Move most code into...
11516         (troff_output_file::trailer): New function.
11517         (class troff_output_file): Delete page_length member. Declare
11518         trailer().
11519         (troff_output_file::really_begin_page): Use current page length
11520         for final V command.
11522         * tbl/main.cc (struct options): New decimal_point_char member.
11523         (options::options): Initialize this.
11524         (process_options): Implement decimalpoint option.
11525         (process_data): Pass decimal_point_char option to table::table.
11526         * tbl/table.h (class table): New decimal_point_char member.
11527         (table::table): Add additional argument.
11528         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
11529         second argument specifying decimal point character.  Use this
11530         instead of '.'.
11531         (table::table): Initialize decimal_point_char.
11532         (table::add_entry): Change call to find_dot.
11534         * troff/input.cc (get_copy, token::next): Implement \V.
11535         (interpolate_environment_variable): New function.
11537 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
11539         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
11540         * pic/pic.y: Likewise.
11542         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
11543         Add casts to int.
11544         * refer/ref.cc (reference::insert_field, reference::delete_field):
11545         Likewise.
11546         * troff/number.cc (parse_term): Likewise.
11548         * acgroff.m4 (GROFF_PROG_YACC): New macro.
11549         * configure.in: Use GROFF_PROG_YACC.
11551         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
11552         and g++.
11553         * Makefile.in (OPTIMIZE): New define.
11554         (DEBUG): Empty by default.
11555         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
11557         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
11558         (GROFF_ARRAY_DELETE): Likewise.
11559         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
11561         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
11563         * devps/psstrip.sed: Use different delimiter on last line (so that
11564         it works with BSD 4.4 sed.)
11566 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
11568         * devps/psstrip.sed: Delete comments.
11570         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
11571         optind, opterr, optarg.
11572         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
11573         opterr, optarg.
11575 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
11577         * Makefile.in (check): Dummy target.
11579 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
11581         * Version 1.07 released.
11583         * Integrate mm 1.11.
11585         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
11586         where start_col was meant.
11588 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
11590         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
11592 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
11594         * troff/input.cc (token::next): Make \z\o'...' and similar things
11595         work.
11597         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
11598         constants.
11599         (environment): Add margin_character_flags member.
11600         * env.cc (environment::environment(symbol),
11601         environment::environment(const environment *): Initialize
11602         margin_character_flags.
11603         (margin_character): Rewrite.
11604         (environment::output_line): Add a margin character if
11605         margin_character_flags is non-zero.  Turn off the
11606         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
11607         zero, use margin_character_node without copying and then set
11608         margin_character_node to 0.
11610         * devps/DESC.in: Change minimum size to 1000.
11612 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
11614         * troff/symbol.h (symbol::hash): Change return type to unsigned
11615         long.
11616         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
11617         Add casts to int.
11619         * test-groff: Use -r rather than -x.
11621         * grops/psfig.diff: Include in distribution again.
11623 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
11625         * Makefile.in (dist): Use gzip.
11627 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
11629         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
11630         unistd.h as well as in stdlib.h.
11631         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
11632         defined; otherwise include <sys/types.h> and <unistd.h> if
11633         UNISTD_H_DECLARES_GETOPT is defined.
11635         * configure.in: use builtin(include, ... rather than include(...
11636         * configure: Regenerate with autoconf 1.3.
11638         * libdriver/print.cc (printer::adjust_arc_center): Use new
11639         algorithm suggested by Andy Fyfe.
11641         * libdriver/printer.cc (printer::adjust_arc_center): New function.
11642         * include/printer.h: Declare this.
11643         * grops/ps.cc (ps_printer::draw): Use it.
11644         * grodvi/dvi.cc (dvi_printer::draw): Use it.
11646 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
11648         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
11650 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
11652         * eqn/main.cc (main): Handle "eqn -".
11654 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
11656         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
11658         * mm: Integrate version 1.08.
11660         * pic/troff.cc (troff_output::finish_picture): Set
11661         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
11662         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
11663         if it's not defined. Check whether the register is non-zero rather
11664         than whether it's not defined.
11665         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
11667         * indxbib/indxbib.cc: Move all signal handling into...
11668         * indxbib/signal.c: New file.
11669         * configure.in: Call AC_RETSIGTYPE.
11671         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
11672         * configure.in: Call GROFF_STRUCT_EXCEPTION.
11673         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
11675         * troff/input.cc (token::token, token::operator=): Work round SGI
11676         C++ bug.
11677         * pic/object.cc (position::position): Likewise.
11679 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
11681         * pic/pic.h: Move declaration of hypot().
11683 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
11685         * pic/pic.h: Declare hypot().
11687         * pic/pic.h: Define M_PI if necessary.
11689 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
11691         * tmac/tmac.e (re): Add alternative version that doesn't use groff
11692         `.ta T' feature.
11694         * devps/prologue.ps (RE): Handle the possibility that the old font
11695         doesn't have a FontName entry.
11697 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
11699         * tmac/tmac.e (fam): Redefine to set family in environment 2.
11700         (@C): Use @fam not fam.
11702 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
11704         * lookbib/lookbib.cc (main): Change type of start to const char *.
11705         * lkbib/lkbib.cc (main): Likewise.
11707         * eqn/lex.cc (definition::definition): Don't use member
11708         initializer syntax for members of anonymous unions.
11710         * troff/input.cc (input_stack::backtrace): Change type of to const
11711         char *.
11713 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
11715         * include/stringclass.h (class string): Declare inline friend
11716         functions as inline in class declaration.
11717         * troff/hvunits.h (class hunits, class vunits): Likewise.
11718         * include/refid.h (class reference_id): Likewise
11719         * troff/troff.h (points_to_units(units), scale(units, double)):
11720         Delete declarations.
11721         * libdriver/input.cc (get_char): Delete declaration.
11722         * include/lib.h: Change 2nd argument of getopt from const char **
11723         to char **.
11724         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
11725         char **' before assigning to a `const char **'.
11726         * tbl/table.cc: Delete extra declarations of prints().
11728 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
11730         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
11731         char **' before assigning to a `const char **'.
11733         * libgroff/errarg.cc (errarg::errarg): Don't use member
11734         initializer syntax for members of anonymous unions.
11736 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
11738         * mm: Integrate version 1.07.
11740 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
11742         * troff/input.c (translate2): Rename to
11743         (translate_no_transparent).
11744         (init_input_requests): Rename tr2 to trnt.
11746 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
11748         * troff/charinfo.h (class charinfo): Add transparent_translate field.
11749         (charinfo::set_translation, charinfo::set_special_translation):
11750         Add second argument that specifies value for
11751         transparent_translate.
11752         (charinfo::get_translation, charinfo::get_special_translation):
11753         Add optional second argument that specifies whether translation is
11754         being used for transparent throughput.
11755         * troff/input.cc (charinfo::set_translation,
11756         charinfo::set_special_translation): Handle second argument.
11757         (charinfo::charinfo): Initialize transparent_translate.
11758         (translate): Split main part off into
11759         (do_translate): New function.  Pass argument saying whether
11760         translation applies to transparent throughput.
11761         (translate2): New request.
11762         (init_input_requests): Bind translate2 to `tr2'.
11764 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
11766         * tbl/table.h (class table): Add `nokeep' flag.
11767         * tbl/main.cc (process_options): Handle `nokeep' option.
11768         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
11769         table::do_bottom): Don't output keep/release macro definitions or
11770         calls when `nokeep' option has been specified.
11772 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
11774         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
11776 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
11778         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
11779         block_entry::divert, alphabetic_block_entry::divert): Add extra
11780         argument giving column separation.
11781         (table::compute_widths): Pass column separation to
11782         table_entry::divert().
11783         (block_entry::do_divert): If an entry spans multiple columns and a
11784         minimumum width has been specified for each column, then set the
11785         line length to the sum of the widths (plus possibly the column
11786         separations).
11788         * troff/input.cc (set_escape_char): Don't set the escape_char
11789         until after calling has_arg().
11791 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
11793         * tbl/table.cc (table::do_top): Add missing \s0 for double box
11794         case.
11796         * tbl/table.cc (table::print_double_hline): Avoid extra new line
11797         in case where r > nrows - 1.
11799         * tbl/table.cc (BODY_HEIGHT): Deleted.
11800         (LINE_SEP): New definition.
11801         (table::print_single_hline, table::print_double_hline,
11802         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
11803         table::do_row, table::do_top): Use LINE_SEP space before a line
11804         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
11806         * tbl/table.cc (text_entry::print_contents): New function.
11807         (text_string_name, right_text_string_name): Deleted.
11808         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
11809         (simple_text_entry::do_width, numeric_text_entry::do_width,
11810         alphabetic_text_entry::do_width): Don't store the contents of the
11811         entry in a string.
11812         (left_text_entry::simple_print, right_text_entry::simple_print,
11813         center_text_entry::simple_print,
11814         alphabetic_text_entry::simple_print,
11815         numeric_text_entry::simple_print): Print the entry directly
11816         instead of using the stored string.
11818 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
11820         * devps/Makefile: Strip PostScript files.
11821         * devps/prologue: Rename to...
11822         * devps/prologue.ps.
11823         * devps/psstrip.sed: New file.
11824         * devps/download: Use .pfa rather than .ps for installed versions
11825         of fonts.
11827 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
11829         * troff/env.cc (input_trap): Give a warning if the argument is out
11830         of range.
11832         * troff/env.cc (adjust): Treat negative argument as missing. Round
11833         argument > 5 down to 5.
11835         * troff/env.cc (center, right_justify): Make negative argument zero.
11837         * troff/div.cc (page_offset, vertical_position_traps): Treat
11838         invalid argument as missing.
11839         * troff/env.cc (line_spacing, line_length, title_length, indent,
11840         underline, hyphen_line_max_request, control_char,
11841         no_break_control_char, widow_control_request, adjust, input_trap,
11842         point_size): Likewise.
11843         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
11844         constant_space): Likewise.
11845         * troff/input.cc (compatible, shift, warn_request,
11846         set_escape_char): Likewise.
11848         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
11849         * tbl/table.cc (table::table): Likewise.
11851         * Makefile.dev (install_dev): depends on $(DEVFILES).
11853 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
11855         * devX75, devX75-12, devX100, devX100-12: New directories.
11856         * Makefile.in: Add these to DEVDIRS.
11858         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
11859         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
11860         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
11861         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
11862         targets.
11863         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
11864         (uninstall): New target.
11865         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
11866         uninstall_prog, uninstall_dev): New targets.
11868         * troff/div.cc (return_request): Treat an invalid argument as
11869         missing.
11871 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
11873         * tmac/tmac.e ((f): Set up the environment even when there's a
11874         current diversion.  Transperently throughput a call to @N.
11875         (@N): New macro.
11877 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
11879         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
11880         up to vertical resolution.
11882         * tbl/table.cc (table::do_row): Change row number after printing
11883         stuff list.
11885         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
11887 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
11889         * Rename CHANGES to NEWS.
11891 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
11893         * libgroff/new.cc (operator new): Avoid calling malloc(0).
11895 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
11897         * man.ultrix: Removed.
11899 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
11901         * Makefile.comm (extraclean): Delete files whose names begin with
11902         `='.
11904         * pic/troff.cc (troff_output::text): Fix typo in implementation of
11905         aligned text.
11907 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
11909         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
11910         * troff/div.cc (page_length, need_space, space_request): Treat
11911         invalid optional argument as missing.
11912         * troff/env.cc (number_lines): If the first argument is present
11913         but not a number, turn on line numbering, don't change the next
11914         line number and parse the remaining arguments.
11916         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
11918 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
11920         * eqn/box.h: Change declaration accordingly.
11921         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
11922         the specified size was bad but don't give an error.  Check for
11923         overflow.
11924         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
11925         * eqn/lex (do_size): Likewise.
11927 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
11929         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
11930         compatible headers.
11932 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
11934         * tbl/table.cc (table::init_output): Improve error message when
11935         table won't fit on one page.
11937 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
11939         * pic/troff.cc (troff_output::start_picture): Generate line
11940         containing a horizontal motion equal to the width of the picture.
11942         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
11943         using GROFF_COMMAND_PREFIX environment variable.
11945 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
11947         * mdate.sh: Use $NF rather than $(NF).
11949 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
11951         * pic/main.cc (main):  Use %1 not %c in argument to warning.
11953         * eqn/main.cc (main): Output code to check that geqn was given the
11954         correct -T option.
11956 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
11958         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
11959         `ln -s ../Makefile .; make; rm -f Makefile'.
11961         * troff/hyphen: Rename to...
11962         * troff/hyphen.us:
11963         * troff/input.cc (main): Delete -H option. Don't call
11964         read_hyphen_file().
11965         * troff/env.cc: Include searchpath.h and macropath.h.
11966         (exception_dictionary): Deleted.
11967         (ht): Deleted.
11968         (read_hyphen_file): Deleted.
11969         (hyphenation_language): New struct.
11970         (class trie, class hyphen_trie): Move declarations up.
11971         (trie_node::~trie_node): Deleted.
11972         (trie::delete_trie_node): New function.
11973         (trie::do_delete): New pure virtual function.
11974         (hyphen_trie::do_delete): New function.
11975         (trie::~trie): New function.
11976         (hyphen_trie::~hyphen_trie): New function.
11977         (trie::clear): No need to chcek that tp is not 0.
11978         (current_language, language_dictionary): New variables.
11979         (hyphen_word): Give an error if no current language.  Use
11980         exceptions dictionary in current language.
11981         (hyphen_trie::read_patterns_file): Find file using macro_path.
11982         Allow comments (starting with %) in patterns file.  Don't make it
11983         a fatal error if the file can't be found.
11984         (hyphenate): Return if no current language.  Get the exceptions
11985         dictionary and the hyphenation patterns from the current language.
11986         (set_hyphenation_language): New variable.
11987         (hyphenation_patterns_file): New function.
11988         (hyphenation_language_reg): New class.
11989         (hyphenation_language_reg::get_string): New function.
11990         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
11991         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
11992         register.
11993         * groff/groff.cc (main, help, synopsis): Delete -H option.
11994         * include/Makefile.sub: Don't define HYPHENFILE.
11995         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
11996         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
11997         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
11998         hyphenation patterns.
12000 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
12002         * eqn/neqn.sh: New file.
12003         * eqn/Makefile.sub: Handle neqn.sh.
12005         * eqn/eqn.h: Declare `nroff' variable.
12006         * eqn/box.cc (param_table): Add `nroff' param.
12007         (nroff): Define it.
12008         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
12009         variable.
12010         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
12012         * troff/troff.h (WARN_FONT): New warning.
12013         (WARN_TOTAL): Change accordingly.
12014         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
12015         (warning_table): Add WARN_FONT.
12016         * troff/node.cc (mount_font_no_translate): Pass argument to
12017         font::load_font.  If this is non-zero, give a warning.
12018         Don't give an error message when accessing a font that has already
12019         been found to be invalid.
12020         * include/font.h (font::load, font::load_font): Add additional
12021         optional argument which suppresses error message if the font is
12022         not found.
12023         * libgroff/font.cc (font::load_font): Handle additional argument.
12024         (font::load): Add additional argument. If this is non-null, set it
12025         to 1 and don't give error message.
12027         * include/printer.h (printer::end_page): Add argument giving
12028         length of page.
12029         * libdriver/input.cc (do_file): Pass this.
12030         * grops/ps.cc (ps_printer::end_page): Add argument.
12031         * grodvi/dvi.cc (dvi_printer::end_page,
12032         draw_dvi_printer::end_page): Add argument.
12033         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
12034         columns_per_page members. New member nlines.
12035         (DEFAULT_LINES_PER_PAGE): Deleted.
12036         (tty_printer::tty_printer): Don't compute lines_per_page from
12037         font::paperlength. Don't compute columns_per_page from
12038         font::paperwidth.
12039         (tty_printer::add_char): Don't check horizontal position against
12040         columns_per_page. Grow glyphs vector if neccessary.
12041         (tty_printer::end_page): Add argument giving page_length in units.
12042         Discard lines past end of page.
12044 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
12046         * tmac/tmac.tty-char: Fix definition of \(/l.
12048         * tmac/tmac.X: Define \(en.
12050 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
12052         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
12053         lpq, then use lp rather than lpr.
12055         * tmac/tmac.s (par@reset): Don't call `ad'.
12056         (par*env-init): Call `ad'.
12058 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
12060         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
12061         date.
12063         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
12064         * indxbib/indxbib.cc: Likewise.
12066 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
12068         * libgroff/putenv.c: New file.
12069         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
12070         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
12071         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
12072         stdlib.h with AC_HAVE_HEADERS.
12074 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
12076         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
12077         does not exist.
12079 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
12081         * eqn/box.cc (gsize): Make it an int.
12082         (set_gsize): Parse argument handling increment or decrement.
12083         (box::top_level): Convert gsize to a string.
12085         * troff/input.cc (exit_troff): Make buf unsigned char [].
12086         Call to make_temp_iterator casts buf to char*.
12088         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
12090         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
12091         * Makefile.cpg (depend.temp): Likewise.
12093         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
12095         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
12097 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
12099         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
12101 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
12103         * Version 1.06 released.
12105         * Integrate mm 1.04.
12107 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
12109         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
12111 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
12113         * afmtodit/afmtodit.pl: Add -n option that disables generation of
12114         ligatures command.
12115         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
12116         afmtodit. Regenerate.
12118         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
12119         @f back past the current position.
12121         * tmac/tmac.e: Change calls to @R so that comments are not part of
12122         arguments.
12124 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
12126         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
12128         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
12129         check that we can link a call to a function declared in <stdio.h>.
12130         (GROFF_UNISTD_H): New macro.
12131         * configure.in: Call it.
12132         * Makefile.in: Document it.
12133         * include/posix.h: New file.
12134         * troff/troff.h: Don't include <osfcn.h>
12135         * troff/input.cc: Include posix.h.
12136         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
12137         osfcn.h.
12138         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
12139         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
12140         <fcntl.h>.
12141         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
12142         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
12143         * libbib/search.cc (O_RDONLY): Delete definition.
12144         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
12145         Don't include <osfcn.h>.
12147         * acgroff.m4 (GROFF_TIME_T): New macro.
12148         * configure.in: Call it.
12149         * Makefile.in: Document it.
12151         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
12152         * configure.in: Call it.
12153         * Makefile.in: Document -DTRADITIONAL_CPP.
12154         * include/ptable.h: Don't include generic.h.
12155         (name2): Define it.
12157         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
12158         Afterwards remove [T1 and [T2.
12159         (ref*spec!0, ref*spec!2): Use T1 rather than T.
12160         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
12161         (ref*add-T2): Renamed from ref*add-T.
12162         (ref*add-T1): New macro.
12164 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
12166         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
12168         * libbib/index.cc: Include <fcntl.h>.
12169         (O_RDONLY): Define if necessary.
12170         (make_index_search_item, index_search_item_iterator::get_tag,
12171         index_search_item::check_files): Use O_RDONLY.
12172         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
12173         (O_RDONLY): Define if necessary.
12174         (search_list::add_file): Use O_RDONLY.
12175         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
12176         <sys/stat.h>.
12177         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
12178         (main): Use these.
12180         * libbib/index.cc (S_ISREG): Define it if necessary.
12181         (index_search_item::load): Use S_ISREG.
12183         * include/driver.h: Include <errno.h>.
12185 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
12187         * eqn/box.cc (body_height): Increase default value to 85.
12188         (body_depth): Increase default value to 35.
12190 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
12192         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
12193         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
12194         protected from expansion with \E.
12196         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
12198         * Makefile (Makefile): New target.
12200         * Makefile.sub (configure, distfiles): New targets.
12202         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
12203         construct.
12205 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
12207         * eqn/box.cc (param_table): Add body_height and body_depth.
12209         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
12211 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
12213         * psbb/Makefile.sub: Don't link with libgroff.a.
12215         * acgroff.m4 (GROFF_PUTENV): New macro.
12216         * configure.in: Call GROFF_PUTENV.
12217         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
12218         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
12219         is defined.
12221         * troff/env.cc (distribute_space): Rename force_forward argument
12222         to force_reverse.  Reverse the list if force_reverse is true.
12224 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
12226         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
12228         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
12229         height or depth to be negative.  Guard against SUP_RAISE quantity
12230         being negative.
12232 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
12234         * devps/generate/textmap: Add `an' (arrowhorizex).
12235         * tmac/tmac.ps: \(an overlaps horizontally.
12236         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
12238         * devps/symbolchars: Add arrowverttp, arrowvertbt.
12239         * devps/textmap: Add arrowvertex.
12240         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
12241         updownarrow delimiters.
12242         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
12244         * tbl/table.cc (simple_entry::position_vertically,
12245         block_entry::position_vertically):  For a centered entry, perform
12246         the motion in two stages.
12248         * refer/refer.cc (split_punct): Don't call lookup_token if there
12249         is no token.
12251 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
12253         * troff/input.cc (token::next): Delete token_node after copying
12254         token.
12256         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
12257         cur_point_size.
12259         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
12261         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
12263 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
12265         * grops/ps.cc (usage): -b option takes an argument.
12267         * devps/prologue (PLG): New procedure.
12268         * grops/ps.cc (main, usage): New -g option.
12269         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
12270         length using PLG.
12272 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
12274         * include/cset.h: Include <limits.h> if we have it.
12276         * libgroff/illegal.cc: New file.
12277         * include/lib.h (illegal_input_char): Use table.
12278         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
12279         * pic/lex.cc (ARG1): Renumber to 14.
12280         * eqn/lex.cc (ARG1): Likewise.
12282         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
12283         (eg 1.05.90) correctly.
12285 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
12287         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
12288         Rename $r and $R registers to $v and $V.
12289         ($r, $R): Initialize to 0.
12290         (@v, @V): New macros.
12291         (sz): Call @v.
12292         (@M): Call @V.
12294         * troff/input.cc (main, usage): Add -R option that says not to
12295         load troffrc.
12296         * eqn/main.cc (main, usage): Rename -n to -R.
12298 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
12300         * devps/DESC.in: Leave font positions 5-9 blank.
12301         * devdvi/DESC.in: Likewise.
12303         * grog/grog.pl: Handle `.PS <file' correctly.
12305         * troff/input.cc (input_stack::push): Improve error message when
12306         input stack limit exceeded.
12308 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
12310         * refer/refer.cc (main): Fix typo in handling of `a' option.
12312         * refer/refer.cc (do_bib): In state START after a newline remain
12313         in state START.
12315         * groff/groff.sh: Deleted.
12316         * groff/Makefile.sub: Delete handling of groff.sh.
12318         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
12319         to determine whether to use \X'ps:...'.
12320         * tmac/troffrc: Set 0p register to 0.
12321         * tmac/tmac.ps: Set 0p register to 1.
12323         * groff/groff.cc: Support -X option. Give warning for -TXps and
12324         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
12325         * tmac/troffrc: Support -r.X=1.
12327         * pic/troff.cc (troff_output::dot): Don't test
12328         zero_length_line_flag.
12330 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
12332         * include/lib.h: Declare getopt() and friends unless
12333         STDLIB_H_DECLARES_GETOPT is defined.
12335         * doc/chars.tr: Delete.
12336         * man/groff_char.man: New file.
12338 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
12340         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
12341         user has changed register format.
12343 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
12345         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
12346         `postpro' command in DESC file.  Get spooler command from `print'
12347         command in DESC file.  Execute spooler command with /bin/sh.
12349         * groff/groff.cc: Split Unix-specific parts into...
12350         * groff/pipeline.c: New file.
12352         * LICENSE: Delete.
12353         * COPYING: New file.
12354         * all files: Update copyright notices.
12356         * Rearrange files.  Redo Makefiles.  Use autoconf.
12358 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
12360         * troff/input.c (charinfo_to_node_list): Interpret character
12361         definition with escape_char of `\'.
12363 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
12365         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
12366         Define INT_DIGITS as big enough for 64-bit integer.
12367         * lib/strtol.c: Don't include lib.h.
12368         * lib/lib.h: Delete ifdef __cplusplus stuff.
12370 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
12372         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
12373         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
12374         get DESC from current directory.
12376 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
12378         * tbl/main.c (main): Always reset the line number when reading
12379         from stdin.
12381         * tbl/table.c (table::print_single_hline, table::print_double_hline,
12382         table::define_bottom_macro, table::do_row, table::do_top): Round
12383         vertical spacing up to vertical resolution.
12385 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
12387         * ps/ps.h (enum resource_type): Avoid comma at end of
12388         enumerator-list.
12389         * dvi/dvi.c (class dvi_printer): Likewise.
12390         * dvi/tfmtodit.c (gf::load): Likewise.
12391         * refer/label.y (struct expression): Likewise.
12392         * refer/refer.c (class label_processing_state): Likewise.
12393         * refer/indxbib.c (do_file): Likewise.
12394         * troff/troff.c (enum warning_type): Likewise.
12395         * tbl/main.c (process_data): Likewise.
12396         * troff/charinfo.h (class charinfo):
12398 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
12400         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
12402 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
12404         * groff.c: Move to new groff subdirectory.
12405         * groff/Makefile: New file.
12406         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
12408         * man/mdate.sh: Use ls -L if supported.
12410         * Consolidate all header files produced by gendef into lib/defs.h.
12411         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
12412         Don't include path.h.
12413         * lib/Makefile (path.h): Don't generate.
12414         * troff/input.c: Include defs.h. Don't include config.h.
12415         * troff/Makefile (config.h): Don't generate.
12416         * refer/index.h: Don't include suffix.h.
12417         * refer/index.c: Include defs.h.
12418         * refer/indxbib.c: Include defs.h.
12419         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
12420         defs.h.
12421         * refer/Makefile (suffix.h, path.h): Don't generate.
12422         * groff.c: Don't include config.h. Include defs.h.
12423         * Makefile (config.h): Don't generate.
12424         (lib/defs.h): Generate.
12425         (topclean): Remove lib/defs.h.
12427 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
12429         * lib/malloc.c, lib/getpagesize.h: Deleted.
12430         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
12431         related stuff.
12432         * lib/Makefile: Delete malloc-related stuff.
12433         * lib/new.c: Workaround COOKIE_BUG if necessary.
12435         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
12436         needed header files directly.
12437         * refer/refer.h: Omit definition of DEFAULT_INDEX.
12438         * Makefile: Include definition of DEFAULT_INDEX in path.h.
12440 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
12442         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
12443         argument.
12444         * lib/font (font::load_desc, font::load): Don't split argument of
12445         unknown command.
12446         (font::handle_unknown_font_command): Change type.
12447         * ps/ps.c (ps_font::handle_unknown_font_command,
12448         handle_unknown_desc_command): Change type.
12449         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
12451 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
12453         * lib/font.h (font::handle_unknown_font_command): Add file and
12454         line arguments.
12455         * lib/font.c (font::handle_unknown_font_command):
12456         * ps/ps.c (ps_font::handle_unknown_font_command):
12457         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
12458         lineno arguments.  Use _with_file_and_line functions for error
12459         reporting.
12461         * lib/fontfile.c (font::unknown_desc_command_handler): New static
12462         data member.
12463         * lib/font.c (font::set_unknown_desc_command_handler): New
12464         function.
12465         (font::load_desc): For unknown commands, call
12466         unknown_desc_command_handler if not null.
12467         * lib/font.h (class font): Declare them.
12468         (FONT_COMMAND_HANDLER): New typedef.
12469         * ps/ps.c (handle_unknown_desc_command): New function.
12470         (main): Set bflag if we had a -b option. Call
12471         font::set_unknown_desc_command_handler.
12472         (broken.h): Don't include.
12473         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
12474         submake 
12475         * ps/devps/Makefile: Add `broken' command to DESC file using
12476         BROKEN_SPOOLER_FLAGS.
12478         * macros/tmac.e ([, ]): Add as synonyms for { and }.
12480         * macros/tmac.e ($p): Only exdent if \$3 > 0.
12482         * macros/tmac.e (@R, @S): New macros.
12483         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
12484         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
12485         Declare $H, $[0-9], .. macros with @S.
12486         Declare |0, |1, |2, |3 strings with @S.
12488         * macros/tmac.e (@S): Rename to @U.
12490         * macros/tmac.e (@z): Define @b and bp as empty instead of
12491         deleting them,
12493         * macros/tmac.e (@m): Deleted.
12494         (@h): Don't call @m.
12495         (@z): Don't set @m trap.
12497         * macros/tmac.e ($h, $f): Define |z as empty string.
12499         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
12500         (@q): Likewise.
12502         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
12503         removing them.
12504         ()f): Likewise for * register.
12506         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
12507         argument is missing, don't change $R.  Call sr with three
12508         arguments when initializing.
12510 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
12512         * macros/tmac.e (sr): New macro.
12513         Initialize $r and $R using sr.
12515         * macros/tmac.e (,): Delete \*(#[.
12517         * troff/env.c (set_tabs): Read the tab type even if the position
12518         is bad.  Allow the position of the first tab stop to be negative.
12520 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
12522         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
12523         _POSIX_VERSION.
12524         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
12525         rather than -DPATHCONF_MISSING.
12526         * Makefile: Get rid of PATHCONF_MISSING.
12528         * refer/map.c: New file.
12529         * refer/index.c: Interface to mmap through map.c.  Rename map_size
12530         to map_len.
12531         * refer/Makefile: Handle map.c.
12532         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
12534 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
12536         * Makefile: RANLIB should be `true' if there is no ranlib.
12537         * lib/Makefile (libgroff.a): Simplify.
12538         * driver/Makefile (libdriver.a): Simplify.
12540         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
12541         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
12542         defined.
12544 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
12546         * troff/env.c (compare_ranges): Declare as extern "C".
12548         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
12550         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
12552 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
12554         * pic/troff.c (troff_output::text): Merge in grops_output::text,
12555         but conditionalize use of \X based on \*(.T.
12556         (grops_output::*): Deleted.
12557         * pic/output.h: Delete declaration of make_grops_output.
12558         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
12559         by default. -n sets it to 0.
12560         (usage): Corresponding changes.
12561         * groff.c (main): Don't pass -x or -p to pic.
12562         * groff.sh: Likewise.
12564         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
12565         to be non-zero.
12567         * ps/devps/afmtodit: Change calculation of asc_boundary and
12568         desc_boundary.  Make these bounds inclusive.
12569         * ps/devps: Regenerate font files.
12571 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
12573         * macros/tmac.latin1: New file.
12574         * macros/tmac.tty-char: Use tmac.latin1.
12575         (tmac.tty-tr): Deleted.
12576         * macros/Makefile: Install tmac.latin1.
12577         * macros/tmac.dvi: Use tmac.latin1.
12578         * macros/troffrc: Translate \[char160] onto no-break space here.
12579         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
12581 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
12583         * macros/tmac.Xps: Use `do' request.
12585         * macros/tmac.ps: Use `do' request.
12587         * macros/tmac.e (@C): Use `do' request.
12589         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
12590         * macros/Makefile: Install tmac.X*.
12592         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
12593         * tty/Makefile: Don't install tmac.tty*.
12594         * macros/Makefile: Install tmac.tty*.
12596         * dvi/tmac.dvi: Move to macros.
12597         * dvi/Makefile: Don't install tmac.dvi.
12598         * macros/Makefile: Install tmac.dvi.
12600         * ps/tmac.ps*: Move to macros.
12601         * ps/Makefile: Don't install tmac.ps*.
12602         * macros/Makefile: Install tmac.ps*.
12604         * eqn/box.c: Provide draw_lines parameter corresponding to -D
12605         option.
12606         * macros/eqnrc: Set draw_lines parameter based on device.
12607         * groff.c: Don't pass -D flag to eqn.
12608         * groff.sh: Likewise.
12609         * eqn/main.c: Warn about use of -D.
12611         * troff/input.c (process_startup_file): New function.
12612         (main): Call process_startup_file().
12613         * macros/troffrc: New file.
12614         * macros/Makefile: Install troffrc.
12615         * groff.c (main): Don't pass extra -m option to troff. For a 
12616         pseudo device pass the name of the pseudo device to troff using
12617         -d.
12618         * groff.sh: Likewise.
12619         * groff.c (possible_command::prepend_arg): Deleted.
12621         * troff/input.c (do_request): New function.
12622         (init_input_requests): Bind "do" to do_request.
12624         * eqn/main.c (main): Instead of loading eqnchar from device directory,
12625         load eqnrc from macro directory.
12626         * macros/eqnrc: New file.
12627         * macros/Makefile: Install eqnrc.
12628         * ps/devps/eqnchar: Deleted.
12629         * ps/devps/Makefile: Don't install eqnchar.
12630         * dvi/devdvi/eqnchar: Deleted.
12631         * dvi/devdvi/Makefile: Don't install eqnchar.
12632         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
12633         variable optM.
12635         * lib/device.[ch]: New files.
12636         * lib/font.h (font::set_device_name, font::get_device_name):
12637         Deleted.
12638         * lib/fontfile.c: Use device.h.
12639         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
12640         * troff/input.c: Delete definition of `device'.
12641         (main): Don't initialize device.
12642         * troff/troff.h: Include device.h rather than declaring device.
12643         * troff/Makefile: No need to handle DEVICE.
12644         * driver/input.c: Include device.h. Don't use
12645         font::{set,get}_device_name.
12646         * groff.c, Makefile: Rename device.h to config.h.
12647         * groff.c: Use library device variable.
12648         * eqn/main.c: Use library device variable.
12649         * eqn/Makefile: No need to handle DEVICE.
12651         * lib/searchpath.[ch]: New files.
12652         * lib/Makefile: Handle searchpath.[ch].
12653         * troff/input.c (open_file, init_dirs): Deleted.
12654         (macro_dirs): Deleted.
12655         (open_mac_file, macro_source): Use class search_path.
12656         (add_string, struct string_list): Move definition.
12657         (main): Change -M option to use macro_path. Delete call to
12658         init_dirs().
12659         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
12660         Rewrite to use class search_path.
12661         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
12662         * lib/Makefile: fontfile.c depends on searchpath.h.
12663         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
12664         MACROPATH.
12665         * lib/macropath.[ch]: New files.
12666         * troff/Makefile: No need to handle MACROPATH.
12668         * troff/input.c: Delete DUMP code.
12669         * lib/fontfile.c, lib/font.h: Delete
12670         font::forget_command_line_font_dirs.
12672         * troff/input.c (push_token): New function.
12673         (handle_first_page_transition): Use push_token().
12674         (process_input_stack): Change handling of a space at the beginning
12675         of the line.
12677 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
12679         * troff/input.c (font_dirs): Delete unused variable.
12681         * eqn/lex.c (do_set): Correct error messages.
12683 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
12685         * troff/input.c (do_define_string): Allow the string name to be
12686         followed immediately by a tab.
12687         (define_character): Likewise.
12689 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
12691         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
12692         be negative.
12694         * troff/input.c (input_iterator::is_file): New virtual function.
12695         (file_iterator::is_file): New function.
12696         (input_stack::end_file): New function.
12697         (input_stack::next_file): Handle the situation where there is no
12698         file on the input stack correctly.  Avoid making two passes over
12699         the input stack.
12700         (next_file): Make the filename optional; in this case call
12701         input_stack::end_file().
12703 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
12705         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
12706         produce a real _ charater when the current font is CW and _
12707         otherwise.
12709         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
12710         expression to work around gcc 2.2 bug.
12712 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
12714         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
12716         * troff/env.c (environment::add_padding): New function.
12717         (environment::add_char): Use add_padding().
12718         (environment::space): Likewise.
12719         (environment::wrap_up_field): Add some padding if there is none
12720         and there's no current tab.
12721         * troff/env.h: Declare environment::add_padding.
12723 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
12725         * pic/pic.y: undef fmod and rand before declaring them.
12727 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
12729         * troff/input.c (main): If the DESC file specifies a font name of
12730         0, then leave the corresponding font position empty.
12732         * nroff.sh: New file.
12733         * Makefile (install.nobin): Install nroff.sh.
12735         * tty/devlatin1/R.proto: Add ao as synonym for de.
12736         * tty/tmac.tty-char: Define ao as o.
12738         * tty/dev{ascii,latin1}/R.proto: Add aq.
12739         * tty/tmac.tty-char: Delete definition of aq.
12741 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
12743         * troff/input.c (init_charset_table): Don't translate 0240.
12744         * ps/tmac.ps: Translate char160 to space.
12745         * dvi/tmac.dvi: Likewise.
12746         * tty/tmac.tty: Likewise.
12748 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
12750         * dvi/tmac.dvi: Add support for all Latin-1 characters.
12752         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
12753         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
12754         \(oe, \(r?, \(r!.
12756         * tty/tmac.tty-char: Add \(ah.
12758         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
12759         No need to define \(FM and \(!/. Conditionalize all character
12760         definitions.
12762         * ps/devps/lgreekmap: Add +h, +f, +p.
12764         * ps/tmac.psnew: New file.
12765         * ps/Makefile: Install tmac.psnew.
12767         * troff/input.c (charinfo_to_node_list): Don't ever interpret
12768         character definitions in compatible mode.
12770         * troff/input.c (remove_character): New function.
12771         (init_input_requests): Bind remove_character to "rchar".
12773         * ps/tmac.psold: New file.
12774         * ps/Makefile: Install tmac.psold.
12775         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
12776         characters into tmac.psold.  Make these definitions unconditional.
12778         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
12780         * ps/tmac.ps: Don't define \('c and \('C.
12782         * ps/devps/textmap: Move Greek characters to...
12783         * ps/devps/symbolchars:
12785 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
12787         * ps/devps/text.enc: Add quotesingle.
12788         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
12789         * tty/tmac.tty-char: Likewise.
12790         * dvi/devdvi/texmi.map: Add +h, +f, +p.
12791         * dvi/devdvi/texi.map: Add Fn.
12792         * dvi/devdvi/msam.map: Add lz.
12793         * dvi/tmac.dvi: Handle Bq, bq, aq.
12795         * pic/lex.c (get_token): Recognize 'th.
12796         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
12798 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
12800         * ps/devps/textmap: Move di, mu, +- to...
12801         * ps/devps/symbolchars:
12803         * macros/tmac.s (@XS): Don't call par@reset or fi.
12804         (XA): Call LP. Turn off adjustment. Reduce line length.
12806         * macros/tmac.s: Initially alias XS to LP.
12807         (XS): Rename to @XS.
12808         (cov*ab-init): Alias XS to @XS.
12810 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
12812         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
12813         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
12814         (token::is_size, token::changes_env): Deleted.
12815         * troff/number.c (parse_term): No need to process \s explicitly.
12816         Call tok.next() only after scale indicator has been processed.
12817         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
12818         \f etc explicitly.
12819         (token::next): Handle \s, \f, \S, \H immediately rather than
12820         returning them as tokens.
12821         (token::operator==, token::description, token::add_to_node_list,
12822         token::process): Remove handling of deleted tokens.
12824         * troff/env.c (environment::add_char): When adding padding
12825         indicator character, call start_line() if necessary.
12827 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
12829         * ps/devps/afmtodit: Don't output 0 kerns.
12831         * ps/devps/afmtodit: Remove directory from name of encoding in
12832         font description file.
12834         * ps/devps/afmtodit: Improve error messages.
12836         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
12838         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
12839         * ps/devps/FontMakefile: Deleted.
12840         * ps/devps/afmname: New file.
12842         * ps/devps/symbol.sed: New file.
12843         * ps/devps/symbol.diff: Deleted.
12844         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
12845         Generate zapfdr.afm from zapfd.afm.
12847         * tty/tmac.tty (tty-char): Prefix definition with ".
12849         * macros/tmac.an (TP): Don't start a diversion if one has already
12850         been started.
12852         * tty/tmac.tty-char: Add Latin-1 characters.
12854         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
12856 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
12858         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
12859         Move declaration of struct horizontal_span.
12861         * tbl/table.c (table::table): Initialize span_list.
12862         (table::~table): Delete span_list.
12864         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
12866         * ps/devps/Makefile: Avoid dependency on GNU make.
12868         * ps/tmac.ps: Check that character does not already exist before
12869         defining it.
12871         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
12872         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
12873         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
12874         files.
12876         * tty/tmac.tty-char: New file.
12877         * tty/Makefile: Install tmac.tty-char.
12878         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
12879         tmac.tty-char.
12881         * tty/tmac.tty: Fix definition of \(34.
12883         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
12884         bracket-drawing characters onto |. Add *o.
12886         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
12887         only if current_field.
12889         * troff/dictionary.c (dictionary::lookup): Free old_table after
12890         rehashing. 
12892 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
12894         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
12895         whose glyphs are identical to glyphs of some Roman character.
12897         * tty/devlatin1/R.proto (bu): Deleted.
12898         * tty/devascii/R.proto (bu): Deleted.
12899         * tty/tmac.tty: Add definition of \(bu.
12901         * eqn/main.c (do_file): Pass FILE as argument.
12902         (main): Automatically load eqnchar.  New options -F and -n.
12903         Pass do_file an opened FILE.
12904         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
12905         No need to include font.h.
12906         * groff.sh: Likewise.  Don't need to use - for standard input.
12907         Prefix files with -- if first file starts with -.
12909         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
12911         * troff/env.c (environment::possibly_break_line): Don't set line
12912         to 0 across call to output_line().  Don't call output_line() until
12913         after discarding nodes after break.
12915 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
12917         * request.h (macro::empty): Declare it.
12918         * input.c (macro::empty): New method.
12919         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
12920         macro is empty.
12922 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
12924         * troff/env.c (environment::start_field): Decrement space_total
12925         when a space is frozen.
12927 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
12929         * macros/tmac.an (R): Delete macro.
12931         * troff/input.c (get_copy, token::next): Support \# (like \" but
12932         newline is ignored).
12934         * troff/input.c (token::next): Fix error message in 'Y' case.
12936 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
12938         * eqn/delim.c (define_extensible_string): Recognize any prefix of
12939         a delimiter name.
12941 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
12943         * c++test.c: Include <osfcn.h>.
12945         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
12946         <errno.h> doesn't.
12948 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
12950         * tbl/table.c (table::divide_span): Don't count column separation
12951         if expand was specified.
12953         * tbl/main.c (process_format): Don't ignore width specs in
12954         continued format.  Give warning for changing equal widths or
12955         column separation in continued format.
12956         (process_data): Set column separation, minimum width, equal
12957         columns at end of table.
12959 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
12961         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
12962         node::add_discretionary_hyphen): Use soft_hyphen_char.
12963         (set_soft_hyphen_char): New function.
12964         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
12966         * Makefile (c++tested): Give more helpful message if test fails.
12968 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
12970         * troff/input.c (init_charset_table): Translate 0240 to
12971         an unbreakable space.
12973         * troff/token.h (token::hyphen_indicator): New function.
12974         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
12975         translation.
12976         * troff/input.c (translate): Allow translation to \%.
12977         * troff/node.c (node::add_char): Handle
12978         TRANSLATE_HYPHEN_INDICATOR.     
12979         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
12981         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
12982         for \(hy.
12984         * tty/devlatin1/R.proto: \(hy and - should print as 055.
12986 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
12988         * groff.c (run_commands): If the last command gets a SIGPIPE send
12989         a SIGPIPE to all children than haven't yet terminated.  When
12990         command terminates, set pid field to -1.
12992 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
12994         * groff.c (main): Pass an appropriate -filename option to gxditview.
12996 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
12998         * Makefile.bd (install): Remove existing program before copying.
13000         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
13001         programs which have Unix counterparts to be installed with
13002         user-specified prefix.
13004         * troff/input.c (exit_troff): Don't check if exit_started.
13005         (exit_request): Don't call exit_troff if exit_started.
13007         * Makefile.bd (install.mm): Rename to install.dwbmm.
13009 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
13011         * driver/input.c (do_file): Add missing break for '#' case.
13013 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
13015         * troff/input.c (input_stack::clear):  Clear past any boundaries and
13016         then add the boundaries back.
13018         * troff/input.c (exit_troff): Return immediately if already
13019         exiting.
13021         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
13022         end macro.
13023         (pg*end-page): If the text has ended and there are no more
13024         footnotes or keeps, exit.
13026         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
13028         * troff/input.c (init_charset_table): Make \(rq transparent by
13029         default.
13031         * macros/tmac.an: Define lq and rq strings.
13033         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
13035 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
13037         * troff/env.c (environment::final_break): New function.
13038         (environment::newline): Set prev_line_interrupted to 2 if
13039         exit_started.
13040         * troff/env.h: Declare environment::final_break.
13041         * troff/input.c (exit_troff): Call environment::final_break()
13042         instead of environment::do_break().
13044         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
13045         doesn't already exist.
13046         * macros/man.local: New file.
13047         * macros/tmac.an: Load man.local.
13048         * macros/man.ultrix: New file.
13050 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
13052         * troff/input.c (exit_groff): Rename to...
13053         (exit_troff): New function.
13055         * troff/div.c (exit_started, done_end_macro,
13056         seen_last_page_ejector): New global variables.
13057         (began_page_in_end_macro): New static variable.
13058         (exit_flag): Deleted.
13059         (top_level_diversion::top_level_diversion): Initialize
13060         last_page_count.
13061         (top_level_diversion): More elaborate test for whether
13062         cleanup_and_exit() should be called.
13063         Set began_page_in_end_macro if the end macro isn't yet finished.
13064         * troff/div.h (top_level_diversion::last_page_count): New data
13065         member.
13066         (top_level_diversion::set_last_page): New function.
13067         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
13068         * troff/env.c (do_break): Zero prev_line_interrupted.
13069         * troff/input.c (exit_flag): Delete declaration.
13070         (LAST_PAGE_EJECTOR): New magic cookie.
13071         (token::next): Handle LAST_PAGE_EJECTOR.
13072         (exit_groff): Set exit_started and done_end_macro instead of
13073         exit_flag.  Call top_level_diversion::set_last_page.  Push a
13074         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
13075         another ejection after setting seen_last_page_ejector.
13077 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
13079         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
13081         * macros/tmac.e (TH): Make sure there's room for the initial
13082         header.
13084         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
13085         Set FVS in points rather than units.
13087 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
13089         * troff/div.c (top_level_diversion::add_trap): Don't consider the
13090         position of empty slots.
13092 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
13094         * ps/devps/S: Fix height and depth of parenrightex.
13095         * ps/devps/symbol.diff: Regenerate.
13097 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
13099         * tmac.e (u): Do underlining as in -mgs.
13101 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
13103         * tty/tty.c (tty_printer::end_page): If overstriking is
13104         suppressed, still turn overstruck horizontal and vertical lines
13105         into +.
13107         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
13108         2.1.
13110         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
13112 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
13114         * Version 1.05 released.
13116 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
13118         * tty/tty.c: Instead of keeping an array of glyphs and then
13119         sorting it, keep a ordered linked list of glyphs for each line.
13121         * driver/driver.h: Include stddef.h.
13123         * tty/tty.c (compare_glyph):
13124         * refer/refer.c (rcompare):
13125         * troff/env.c (compare_ranges): Arguments of qsort comparison
13126         function should be const void *.
13128         * troff/number.c (parse_term):
13129         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
13130         switch statement.
13132         * refer/label.y (consider_authors): Don't access variables
13133         constructed under a condition outside that condition: put braces
13134         round for statement containing declaration; redeclare use of same
13135         variable later.
13137         * pic/pic.y (text_expr): Delete production that allows
13138         parenthesised text_expr.
13139         (expr): Allow a conditional_expr to appear in parentheses.
13140         (conditional_expr): Rename to any_expr.
13142         * mm: Install new version 1.01 from jh.
13144         * lib/font.c (font::get_width): Cache scaled widths.
13145         (font::font): Initialize widths_cache.
13146         (font::~font): Destroy widths_cache.
13147         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
13149 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
13151         * c++test.c, c++test.ref: New files.
13152         * Makefile: Check that the C++ compiler works.
13154         * ps/tmac.pspic (PSPIC): Do a break.
13156         * ps/tmac.ps: Move definition of PSPIC into...
13157         * ps/tmac.pspic: New file.
13158         (PSPIC): Draw box around picture, but make it invisible to grops.
13159         * ps/tmac.ps: Load tmac.pspic.
13160         * ps/Makefile: Install tmac.pspic.
13162 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
13164         * lib/font.c (scale_round): If n is negative,
13165         subtract .5 before truncating floating point result.
13167         * lib/fontfile.c: Include <errno.h>.
13169 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
13171         * driver/input.c (get_char): Inline. Don't update current_lineno.
13172         Change callers to up date current_lineno if necessary.
13173         Use get_char() instead of getc(current_file).
13175 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
13177         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
13179 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
13181         * tty/tty.c (tmac.tty): Define \(rg as (R).
13183 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
13185         * lib/lib.h: New define a_delete.
13186         * Use a_delete instead of delete when deleting an array of objects
13187         without destructors.
13189         * lib/lib.h: Rename adelete to ad_delete.
13190         * Change uses of adelete.
13192 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
13194         * eqn/eqn.y: Include lib.h.
13196         * troff/node.c (grow_font_table): Delete old_font_table.
13198         * mm: Install new version from jh.
13200 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
13202         * tbl/table.h (format_type): Make global instead of local to class
13203         entry_format.  Prefix enumerators with FORMAT_.
13204         * tbl/table.c, tbl/main.c: Corresponding changes.
13205         * refer/token.h (token_type): Make global.  Prefix enumerators
13206         with TOKEN_.
13207         * refer/token.[ch]: Corresponding changes.
13208         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
13210         * troff/div.c (node::set_vertical_size): Don't name argument.
13212 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
13214         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
13215         * lib/lib.h: Define adelete accordingly.
13216         * pic/object.c (graphic_object::graphic_object):
13217         * tbl/main.c (format::~format):
13218         * tbl/table.c (table::~table):
13219         * refer/ref.c (reference::~reference, reference::merge,
13220         reference::insert_field, reference::delete_field): Use adelete.
13222         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
13223         * refer/token.h:
13224         * tbl/table.h: Corresponding changes.
13226         * common.c (common_output::dashed_arc, common_output::dotted_arc):
13227         Ensure total_angle is positive.
13229 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
13231         * refer/ref.c (reference::merge, reference::insert_field,
13232         reference::delete_field): Avoid delete[0].
13234         * refer/token.c (init_special_chars): Move calls to cmupper
13235         outside calls to init_two_char_letter to work around bug in gcc
13236         2.0.
13238 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
13240         * lib/new.c (operator new): Use __builtin_new for g++.
13242         * pic/object.c (graphic_object::~graphic_object):  Don't use
13243         delete [] on 0.
13245         * pic/object.c (output::compute_scale): Initialize max_width and
13246         max_height.
13248 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
13250         * troff/input.c (write_request): Call fflush.
13252         * troff/node.h (class composite_node): Move declaration to node.c
13253         * troff/input.c (charinfo_to_node): Rename to ...
13254         (charinfo_to_node_list): Return node list rather than composite
13255         node.
13256         * troff/node.c (make_composite_node): New function.
13257         (make_node, add_char): Call make_composite_node instead of
13258         charinfo_to_node.
13259         (class composite_node): Add a tfont * member.  Delete font_size
13260         member.
13261         (composite_node::composite_node, composite_node::copy,
13262         composite_node::size): Corresponding changes.
13263         (composite_node::tprint): Provide constant spacing, emboldening
13264         and track kerning as specified in tfont.
13265         (composite_node::width): Change width calculation accordingly.
13266         * troff/env.h (environment::composite): New member.
13267         (environment::is_composite, environment::set_composite): New
13268         functions.
13269         * troff/env.c (environment::environment): Initialize composite.
13270         * troff/input.c (charinfo_to_node): Call
13271         environment::set_composite.
13272         * troff/node.c (make_composite_node, make_glyph_node): Use the
13273         plain version of the tfont if the environment is composite.
13275         * troff/node.c (font_info::get_space_width): Additional argument
13276         giving space_size.  Handle constant space correctly. Scale by
13277         space_size unless constant spaced.
13278         (env_sentence_space_width): New function.
13279         * troff/node.h: Declare it.
13280         * troff/env.h (environment::get_space_size,
13281         environment::get_sentence_space_size,
13282         environment::get_narrow_space_width,
13283         environment::get_half_narrow_space_width): Make inline.
13284         (environment::get_space_width): Make inline.  Just call
13285         env_space_width.
13286         * troff/env.c: Delete definitions for funtions made inline.
13287         (environment::space_newline, environment::space): Use
13288         env_sentence_space_width(). Don't scale by space_size.
13289         * troff/node.h: Move declarations of env*space_width() functions
13290         into env.h.
13292 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
13294         * macros/tmac.s (PS): Don't try to set negative indent.
13296 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
13298         * pic/pic.y: Fix min function.
13300 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
13302         * man/mdate.sh: Clear LANGUAGE.
13304 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
13306         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
13307         * pic/lex.c: New COMMAND keyword.
13308         * pic/pic.y (print_args, print_arg): New rules.
13309         (placeless_element): Use print_args for PRINT.
13310         New COMMAND element.
13312 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
13314         * troff/input.c (terminal): Handle missing argument correctly.
13316         * pic/pic.y (text_expr): New rule.
13318         * pic/pic.y: Implement := operator.
13320 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
13322         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
13323         mdoc.
13325 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
13327         * ps/devps/dingbatsrmap: Include this in the distribution.
13329         * macros/tmac.doc: Replace with new version from 2nd Networking
13330         Release. Fix loading of doc-* files.
13331         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
13332         * macros/tmac.doc.old: New file.  Apply fixes that had been
13333         applied to old tmac.doc.
13334         * macros/tmac.andoc: Check that we're running under groff.
13335         * macros/Makefile: Rework.
13337 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
13339         * tbl/table.h (format_type): 
13340         * refer/token.h (token_type): If NESTED_TYPES is defined, use
13341         typedef to make these types visible at file scope.
13342         * Makefile: Add NESTED_TYPES configuration option.
13344         * troff/div.c (mark): At the top level use the value of
13345         nl_reg_contents rather than the current vertical position.
13347 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
13349         * tty/tty.c: Implement \D for horizontal or vertical lines.
13350         (tty_printer::set_char): Use vec_used+2 as serial number.
13351         Don't allow size of vector to exceed USHRT_MAX-2.
13352         Split off part into...
13353         (tty_printer::add_char): New function.
13354         (tty_printer::draw): New function.
13355         (compare_glyph): Handle equal serial numbers.
13356         (tty_printer::end_page): Handle overstruck characters from \D.
13357         (main, usage): Implement -d option.
13359 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
13361         * tbl/main.c (process_format):
13362         * eqn/text.c (split_text):
13363         * troff/input.c (token::next): Use inner block for declarations
13364         with initializers in switch statement.
13366 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
13368         * pic/common.c (common_output::dash_line): Cope with zero-length
13369         lines.
13371 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
13373         * Version 1.04 released.
13375 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
13377         * macros/tmac.an (TH): Define a macro an-init to define variables
13378         based on command line arguments.
13379         (an-header): Call it.
13381 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
13383         * Makefile (install.mm): Rename to install.dwbmm.
13385         * Makefile: Integrate mm.
13386         * mm: New directory.
13388 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
13390         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
13391         <sys/types.h>.
13393         * pic/troff.c (troff_output::simple_spline,
13394         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
13395         shadowing parameter.
13397         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
13399         * lib/ptable.h: Add explicit casts when converting from unsigned
13400         long to unsigned.
13402         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
13403         * dvi/devdvi/Makefile: Install SA, SB.
13405         * refer/indxbib.c: Add declaration of mktemp.
13407         * refer/lookbib.c: Add declaration of isatty.
13409 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
13411         * pic/lex.c (interpolate_macro_with_args):  While collecting
13412         arguments, keep track of whether we're in a string.
13414 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
13416         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
13417         down with \v, so as to avoid problems with top of page trap
13418         setting no space mode.
13420 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
13422         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
13424 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
13426         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
13427         Improve error message.
13429 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
13431         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
13432         printf("%03o");
13434 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
13436         * groff.c (possible_command::execp): Always use _exit() after a
13437         failed exec.
13439         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
13440         NO_SYS_WAIT_H   configuration options.
13441         * groff.c: Use these options.  Use POSIX-style macros to extract
13442         fields from the status returned by wait().
13444 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
13446         * tbl/table.c (table::compute_separation_factor): Allow the
13447         separation factor to drop to 0.
13449 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
13451         * refer/search.c: Include <errno.h>.
13453 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
13455         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
13457         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
13458         C++. 
13460         * pic/lex.c (input_stack::bol): Move definition out of class body.
13462         * pic/main.c: On MSDOS munge argv[0].
13464         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
13466         * lib/ptable.c (hash_string): Use unsigned long rather than
13467         unsigned.
13468         (next_ptable_size): Use unsigned rather than int.  Give an error
13469         message if we've hit the largest table size.
13470         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
13471         table size.
13473         * pic/object.h (object_spec): Make flags unsigned long.  Declare
13474         flags as const unisgned long rather than as enums.
13476         * pic/output.c: Deleted.
13478         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
13480         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
13481         Add additional argument.
13482         (line_entry::note_double_vrule_on_{left,right}): Set value of
13483         douvle_vrule_on_{right,left} flag according to argument.
13484         (simple_line_entry::simple_print,
13485         simple_line_entry::double_line_print): If adjacent to double vrule
13486         on a corner extend rather than shorten the rule by half the double
13487         vrule sep.
13489         * troff/number.c (parse_term): In checking for overflow, handle the
13490         case where the current horizontal position is negative.
13492 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
13494         * pic/object.c (draw_arrow): Check for object having zero length.
13496 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
13498         * eqn/main.c (do_file): Split off inline equation handling into...
13499         (inline_equation): New function.  Search for starting delimiter
13500         using...
13501         (delim_search): New function. Don't recognize a delimiter that
13502         occurs in the name of an escape sequence, number register, string
13503         etc.
13505 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
13507         * eqn/delim.c (delim_box::compute_metrics): Don't call
13508         define_extensible_string if left is 0.
13509         (delim_box::output):  Don't print the left delimiter if left is 0.
13510         (delim_box::debug_print): Check for left == 0 before calling printf.
13512 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
13514         * troff/Makefile (majorminor.c): Include only digits in
13515         minor_version.
13517 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
13519         * refer/dirnamemax.c: new file.
13520         * refer/genlimits.c: Deleted.
13521         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
13522         Don't check path length.
13523         * refer/Makefile: Add dir_name_max.o; delete genlimits.
13524         * Makefile: Add PATHCONF_MISSING option.
13526         * refer/indxbib.c (get_cwd): New function.
13527         (main): Use get_cwd().
13528         * lib/getcwd.c: New file.
13529         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
13530         GETCWD in SUBFLAGS.
13531         * lib/Makefile: Compile getcwd.o.
13533         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
13534         userdict.
13536         * refer/indxbib.c (main): Check success of mktemp.
13538         * lib/tmpfile.c: New file.
13539         * lib/Makefile: Add tmpfile.c.
13540         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
13541         * ps/ps.h: Delete declaration of mktemp().
13542         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
13543         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
13544         * driver/driver.h: No need now to include errno.h.
13546         * everywhere: Set errno to 0 before calling fopen().
13548         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
13549         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
13550         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
13552 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
13554         * troff/env.h (translate_space_to_dummy): Declare it.
13555         * troff/env.c (environment::space_newline, environment::space):
13556         If translate_space_to_dummy is set then make the width of spaces 0.
13557         * troff/input.c (translate): If the second character of a
13558         translation is a space, translate to unbreakable space.  If the
13559         first character is a space, set or clear translate_space_to_dummy
13560         according to whether the second character is \&.  Weird!
13562 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
13564         * groff.c (run_commands): Don't use non-zero exit code because a
13565         command gets SIGPIPE.
13567         * groff.c, groff.sh: Use -mXps with -TXps.
13569         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
13570         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
13571         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
13572         (ps_printer::special): New specials invis and endinvis.
13573         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
13574         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
13575         (ps_printer::end_page): Check that invis_count == 0.
13576         (ps_printer::invis_count): New member.
13577         (ps_printer::ps_printer): Initialize invis_count to 0.
13579         * troff/env.c (environment::hyphenate_line): Hyphenation
13580         indicator at beginning of word inhibits splitting after -, \(em
13581         etc.
13583         * pic/pic.y (element): Allow another element to follow } without
13584         any intervening separator.
13586 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
13588         * pic/lex.c (get_delimited): Allow tabs before delimiter.
13590 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
13592         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
13593         declaration of wait() in header files.
13594         * Makefile: Get rid of -DHAVE_UNION_WAIT.
13596         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
13598         * lib/lib.h: Declare return type of strerror as char *.
13600         * man/Makefile: Add g flag to sed substitutions.
13601         * Makefile (shgroff, bindist): Likewise.
13603 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
13605         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
13606         * ps/devps/prologue (PBEGIN): Define showpage after pushing
13607         userdict.
13609 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
13611         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
13612         userdict.
13614 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
13616         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
13617         group.
13619 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
13621         * troff/input.c (define_number_reg):  If currently undefined,
13622         don't define it if the argument is an invalid expression.
13624         * Makefile: Ignore return value of `if' commands without `else'
13625         parts.
13627         * Makefile: Split up CPPDEFINES into a series of separate
13628         configuration options.
13630         * troff/input.c (init_registers): Use time_t instead of long
13631         unless LONG_FOR_TIME_T is defined.  Use returned result rather
13632         than passing pointer.
13633         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
13635         * lib/Makefile (fontpath.h): Use gendef.
13637 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
13639         * troff/input.c (input_iterator::shift): Delete argument name.
13640         * troff/node.c (suppress_output_file::really_begin_page,
13641         suppress_output_file::really_transparent_char, node::ascii_print,
13642         node::tprint): Delete names of unused arguments.
13644 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
13646         * refer/label.y (string):  Pass $4 to command_error.
13648 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
13650         * Version 1.03 released.
13652 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
13654         * Makefile: Pass definition of SHELL in SUBFLAGS.
13656         * gendef: New file.
13657         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
13658         ps/Makefile: Use gendef to construct header files that are
13659         constructed from the Makefile.
13661         * macros/Makefile: make all should build stripped version of tmac.e.
13663         * refer/Makefile (clean): Remove y.output.
13665 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
13667         * ps/pfbtops.c (main): Add -v option which prints out a version
13668         number.
13669         * ps/Makefile (pfbtops): Link with libgroff.a.
13671 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
13673         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
13674         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
13676         * refer/lkbib.c (main): Always terminate reference with blank
13677         line.
13678         * refer/lookbib.c (main): Likewise.
13680         * refer/linear.c (file_buffer::load): Check that the file is not a
13681         binary file.
13683         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
13684         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
13685         Delete second inclusion of <sys/param.h>.
13687 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
13689         * troff/token.h (token::special): Deleted.
13691         * tbl/main.c (process_format): Rework so that opt->tab_char is
13692         recognized only when appropriate.
13694         * ps/Makefile (clean): Remove pfbtops.
13696 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
13698         * lib/font.c (text_file::next): Don't return if we have got a
13699         blank line.
13701 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
13703         * refer/refer.c (store_reference): Get hash code from old_table[i]
13704         when rehashing the table.
13706 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
13708         * eqn/box.c (box::top_level): Save size and prev size using \R and
13709         restore it afterwards. Set the size to the size at the beginning
13710         of the line.
13711         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
13712         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
13714         * refer/Makefile (limits.h): Use ./genlimits.
13716 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
13718         * refer/index.c: Delete declarations of stat() and fstat().
13720 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
13722         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
13724 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
13726         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
13728 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
13730         * troff/input.c (token::get_char): Handle \e.
13732         * refer/linear.c: Delete declarations of fstat() and stat().
13734 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
13736         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
13737         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
13739 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
13741         * troff/input.c (do_define_macro): Improve error handling for end
13742         of file while defining macro.
13744 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
13746         * eqn/box.h: Fix declaration of set_gsize.
13747         * eqn/box.c (set_gsize): Make argument const char *.
13748         (gsize): Declare as char *.
13749         * eqn/main.c (main): Don't convert gsize to int.
13750         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
13752         * Version 1.02 released.
13754 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
13756         * macros/tmac.andoc: New file.
13757         * macros/Makefile: Install tmac.andoc.
13759         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
13760         operator new and delete on OP_DELETE_BROKEN not being defined.
13761         * Makefile: Mention OP_DELETE_BROKEN.
13763 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
13765         * Makefile (bindist): Pass SUBFLAGS.
13767 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
13769         * Makefile, groff.c: Pass definitions to groff.c via device.h.
13771         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
13772         parameter.
13774         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
13776         * ps/ps.h, ps/psrm.c: Make comment_table and
13777         header_comment_table local to resource_manager::process_file.
13779         * groff.sh: With -TXps pass -printCommand option to gxditview.
13781         * groff.c (possible_command::print): Implement using
13782         append_arg_to_string.
13784         * xditview: Merge in new implementation with own ChangeLog.
13786 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
13788         * groff.c (main): Implement PRINT_OPTION.
13789         (append_arg_to_string): New command.
13790         (device_table): Set PRINT_OPTION flag for Xps.
13792 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
13794         * troff/groff.h: Rename to troff.h.
13796         * pic/lex.c (lookup_keyword, docmp): New functions.
13797         (get_token): Use new lookup_keyword.
13798         Don't include key.h.
13799         * pic/key.[ch], pic/pic.gperf: Deleted.
13800         * pic/Makefile: Remove gperf stuff.
13802         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
13803         into output.h.
13804         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
13806         * troff/Makefile, troff/node.c: Move definition of
13807         STORE_WIDTH into node.c.
13809         * etc/grog.pl, etc/grog.sh: Support -mdoc.
13811 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
13813         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
13814         dvi/devdvi/texb.map: Add lq and rq.
13815         dvi/devdvi: Regenerate fonts.
13816         * ps/devps/textmap: Add lq and rq.
13817         * ps/devps: Regenerate fonts.
13818         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
13819         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
13821         * pic/object.c (position_rectangle): When checking radius
13822         cope with possiblity that width or height is negative.
13823         (box_object::box_object): Have separate xrad and yrad with
13824         signs matching signs of dim components.
13825         (box_object::{north,south}_{east,west}): Use xrad and yrad.
13826         (box_object::print): With rounded boxes use absolute values
13827         for dim and rad arguments.
13829         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
13830         in fontpath.h.
13832         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
13834         * various files: Add explicit destructors to keep Saber CC +d
13835         happy.
13837 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
13839         * eqn/box.c (box::top_level): Restore fonts correctly after
13840         font changes in line containing inline equation.  Also
13841         restore previous font as well as current font.
13842         * eqn/pbox.h: Define necessary string and register names.
13844         * troff/input.c (token::next): Case 'R' calls do_register.
13845         (do_register): New function.
13847 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
13849         * groff.c, groff.sh: Support Xps device.  Allow each device
13850         to have a pseudo_name and a real_name.
13852         * groff.c (run_commands): Don't print `Broken pipe' messages.
13854         * ps/pfbtops.c: New file.
13855         * ps/Makefile: Add pfbtops.
13857         * troff/number.c (parse_term): Improved error message.
13859 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
13861         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
13863         * Makefile: Integrate refer.
13864         * refer: New directory.
13865         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
13866         man/lkbib.man: New files.
13867         * man/Makefile: Support refer man pages.
13869         * lib/lib.h: Declare is_prime.
13870         * lib/prime.c: New file.
13872         * troff/input.c (macro_source): New function.
13873         (init_input_requests): Bind "mso" to macro_source.
13875         * troff/env.c (environment::possibly_break_line): Maintain
13876         pointer to pointer to node to be split in ndp so as to avoid
13877         using address of freed node.
13879         * troff/env.c (environment::hyphenate_line): Maintain pointer to
13880         pointer to first node to be hyphenated in startp so as to
13881         avoid using address of freed node.
13883         * troff/env.c (class trie, class hyphen_trie): Make the
13884         elements of the trie be of type char not unsigned char.
13885         Declare arguments to be const char* instead of unsigned char *.
13886         
13887         * troff/env.c (hyphenate): Initialize hbuf[0].
13889         * troff/input.c (set_string): Declare p to be char * and cast
13890         *p to unsigned char when necessary.
13892         * troff/input.c (do_define_macro): Declare s to be const
13893         char*. Cast element to unisgned char when necessary, Declare
13894         d to be an int.  Handle EOF better.
13896         * troff/Makefile, troff/input.c: Different scheme for passing
13897         definitions of MACROPATH, HYPHENFILE and DEVICE.
13899 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
13901         * tty/devascii/R.proto: Delete entry for em.
13902         * tty/devlatin1/R.proto: Likewise.
13904 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
13906         * troff/input.c (translate): Stop when we get a space. Treat eof
13907         like newline.
13909         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
13911 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
13913         * tbl/main.c (process_format): A font name following a `f'
13914         modifier that starts with a digit can be only one character long.
13915         Also deal with EOF on the second character of the font name.
13917 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
13919         * troff/input.c (token::next): Turn \~ into an
13920         unbreakable_space_node.
13921         * troff/node.c (unbreakable_space_node): New class.
13922         * troff/node.h: Declare it.
13924 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
13926         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
13927         it's >= 0, before outputting it as a single byte.
13929 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
13931         * lib/font.c: Make font_char_metric::code an int.
13932         (font::get_code): Change return type to int.
13933         (font::load): Allow code to be arbitrary integer.
13934         * lib/font.h (font::get_code): Change return type to int.
13935         (font::number_to_index): Change argument type to int.
13936         * troff/input.c (token::next):  In case 'N', allow any value.
13937         Store value in token::val.
13938         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
13939         (token::get_char, token::add_to_node_list, token::process): Get
13940         number from val.
13941         (charinfo::set_number): Change argument to int.
13942         (charinfo::get_number):  Require that NUMBERED flag be set.
13943         (get_charinfo_by_number): Store numbered characters not between 0
13944         and 255 in a dictionary.
13945         * troff/charinfo.h (get_charinfo_by_number): Change argument type
13946         to int.
13947         (charinfo::number): Change type to int.
13948         (charinfo::set_number): Change type of set_number to int.
13949         * troff/node.c (troff_output_file::put_char_width,
13950         troff_output_file::put_char): Test whether character is numbered
13951         using charinfo::numbered().
13952         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
13953         values of num.
13954         * lib/nametoindex.c: New implementation to cope with arbitrary
13955         number characters.
13957         * troff/input.c (token::operator==): Test val for
13958         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
13959         TOKEN_SIZE.
13961         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
13962         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
13964 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
13966         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
13967         variable.
13969         * all Makefiles: rm targets of cp and >.
13971         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
13972         it.
13974         * eqn/lex.c (def_table): Add dollar.
13976 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
13978         * troff/input.c (do_width): Push back newline before closing delim
13979         like do_bracket.
13981 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
13983         * groff.c (possible_command::prepend_arg): New function.
13984         (main): Prepend device -m option.
13985         * groff.sh: Put device -m options before command-line options.
13987 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
13989         * macros/tmac.an (IP): Quote argument to TP.
13991         * ps/ps.c (main): New option -b, which sets...
13992         (broken_flags): New variable.
13993         (ps_printer::~ps_printer): Incorporate the setup section in the
13994         prolog if (broken_flags & NO_SETUP_SECTION).
13995         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
13996         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
13997         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
13998         ps_printer::print_needed_font_comment,
13999         ps_printer::print_supplied_font_comment,
14000         ps_printer::print_include_font_comments,
14001         ps_printer::lookup_doc_font, ps_printer::download_fonts,
14002         ps_printer::read_download_file, read_document_fonts, add_font,
14003         skip_line, parse_fonts_arg, document_font::document_font,
14004         document_font::~document_font, document_font::download,
14005         ps_output::include_file):  Deleted.
14006         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
14007         rather than %!PS-Adobe-2.0.  Make calls to
14008         resource_manager::need_font for each font that we used. Replace
14009         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
14010         print_supplied_font_comment, print_needed_font_comment by call to
14011         resource_manager::print_header_comments. Output %%Orientation
14012         comment. Output %%Requirements: numcopies comment if ncopies > 1.
14013         Don't output the prolog directly.  Instead call
14014         resource_manager::output_prolog.  Only define #copies when ncopies
14015         > 1.  Delete calls to print_include_font_comments  and
14016         download_fonts.  Add call to resource_manager::document_setup.
14017         (ps_printer::do_file): Call resource_manager::import_file instead
14018         of including it ourselves.
14019         (ps_printer::do_import): Likewise.  Also don't call
14020         merge_import_fonts. Push userdict on the dictionary stack before
14021         and pop it afterwards.
14022         Move declaration of ps_output into ps.h.
14023         * ps/psrm.c: New file implementing resource_manager class.
14024         * ps/ps.h: New file declaring ps_output and resource_manager
14025         classes.
14026         * ps/devps/zapfdr.ps:
14027         * ps/devps/symbolsl.ps:
14028         * ps/devps/prologue:  Use 3.0 conventions.
14029         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
14030         Add default definition of BROKEN_SPOOLER_FLAGS.
14031         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
14032         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
14034 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
14036         * etc/grog.pl: New file.
14037         * Makefile (GROG): New variable.
14038         Add GROG to SUBFLAGS.
14039         * etc/Makefile (GROG): New variable.
14040         (install.nobin): Install $(GROG) rather than grog.sh.
14042 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
14044         * eqn/special.c (special_box::compute_metrics): Make the input and
14045         output strings the same.  Get the new height and depth from the
14046         predefined height and depth registers.  Also make subscript kern
14047         and skew available.
14048         (special_box::compute_subscript_kern, special_box::compute_skew):
14049         New functions.
14051         * eqn/box.c (pointer_box::compute_skew,
14052         simple_box::compute_metrics, box::top_level)
14053         * eqn/text.c (prime_box::compute_metrics,
14054         prime_box::comput_subscript_kern)
14055         * eqn/limit.c (limit_box::compute_metrics):
14056         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
14057         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
14058         negative numbers in `nr' requests with a leading 0.
14060 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
14062         * eqn/special.c: New file.
14063         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
14064         Add new rule for simple.
14065         * eqn/lex.c (token_table): Add SPECIAL.
14066         * eqn/box.h: Declare make_special_box.
14067         * eqn/Makefile: Add special.[co].
14069 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
14071         * ps/devps/prologue: Possibly set packing to true while defining.
14072         Create grops dictionary here.  Initialize local variables before
14073         defining procedures.
14074         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
14075         the dictionary stack. Set strokeadjust and overprint to false if
14076         the relevant operators are defined.
14077         (PEND): New procedure.
14078         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
14079         prologue.  Do everything else in the setup section.
14080         (ps_printer::do_import): Just call PBEGIN and PEND around the
14081         picture. Also push userdict before, and pop it afterwards.
14083 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
14085         * troff/node.c (bracket_node::tprint): Brackets were being printed
14086         1m too low.
14088         * macros/tmac.an (SH, SS): Set fill mode.
14090 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
14092         * troff/div.c (top_level_diversion::begin_page): Set
14093         high_water_mark to 0.
14095 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
14097         * man/mdate.sh: New file.
14098         * man/mdate.c: Deleted.
14099         * man/Makefile: Use mdate.sh instead of mdate.
14100         (mdate): Deleted.
14102         * eqn/lex.c (do_gsize): Supply missing argument to error message.
14104 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
14106         * man/mdate.c: New file.
14107         * man/*.man: Replace modification date by @MDATE@.
14108         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
14109         (mdate): New target.
14111         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
14112         Remove illegal input characters.
14114 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
14116         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
14118 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
14120         * troff/div.c (begin_page): Change behaviour when
14121         !first_page_begun and !break_flag.
14123         * troff/input.c (do_name_test): Return 0 if argument is empty.
14125         * troff/input.c (read_long_escape_name): Require closing ] to be
14126         at same input level as opening [.
14128         * troff/input.c (read_increment_and_escape_name): New function.
14129         (get_copy, process_input_stack): Use this for \n.
14131 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
14133         * troff/div.c (top_level_diversion::begin_page): Ignore the
14134         current value of page_number if !first_page_begun.
14136         * groff.c (main): Fix declaration of buf.
14138         * troff/input.c (do_name_test): New function.
14139         (token::next): Implement \A.
14140         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
14141         (token::description, token::add_to_node_list, token::process):
14142         Handle TOKEN_ESCAPE.
14143         * troff/token.h: New token TOKEN_ESCAPE.
14145 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
14147         * pic/main.c (do_picture): Allow space before and after filename
14148         following `<'.  Check that the filename is not empty.
14150 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
14152         * Version 1.01 released. 
14154         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
14156         * dvi/tmac.dvi: ftr HR to H.
14158         * macros/tmac.e: Round up computation of $r.
14160         * xditview/tmac.X:  Don't give up completely in compatibility mode.
14161         Use \n(.s instead of \n[.s].
14163         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
14164         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
14165         Add u to factors inside \s[...]. Rename frac to dvi-frac.
14166         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
14167         short names in the char definitions.
14169         * ps/tmac.ps: Don't give up completely in compatibility mode.
14170         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
14171         quote in front of \n(.s. Add u to factors inside \s[...].
14173 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
14175         * tty/tmac.tty: Call the nroff request.
14177         * macros/tmac.e ((x, )x):  Better definitions that work properly
14178         in a diversion.
14179         (@0, @1): Helper macros for (x.
14181         * macros/tmac.e ($s, hl): Use \l rather than \D.
14183         * tty/tmac.tty: Make it work better in compatibility mode.
14184         (pchar): Rename to tty-char.
14186         * macros/tmac.e (@E): New macro.
14187         (r, i, b, rb, bi): Use @E.
14189         * macros/tmac.e (@F): Don't use (;...) syntax.
14191         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
14192         it was modified for groff.
14194         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
14196         * macros/tmac.e (<., .>): Removed.
14197         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
14199         * macros/tmac.e: Remove check that groff is being used.
14201         * macros/tmac.e (@C): Change families only if using groff; turn
14202         compatibility mode off while changing familes. Save compatibility
14203         mode before changing families and restore it afterwards.
14205         * macros/tmac.e (@h): Remove test for offset + line length.
14207         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
14208         (lo, th, ac): Define to call @S instead of using als.
14210         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
14211         the ratio of the vertical spacing to the point size in units
14212         expressed as a percentage.  Use these instead of $10r and $10R,
14213         Delete $10r and $10R.
14215         * lib/font.c (font::load): In default computation of space_width,
14216         divide by sizescale.  Use scale_round.
14218         * macros/tmac.an (TP): Don't call `nf'.
14219         (an-do-tag): Don't call `fi'.
14221 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
14223         * troff/input.c (process_input_stack): Handle the case where
14224         spaces at the beginning of an input line are followed by a
14225         newline.
14227 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
14229         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
14230         * groff.sh: Use pic -x with the dvi device.
14232         * dvi/devdvi/FontMakefile (H): Don't use -s.
14234         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
14235         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
14236         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
14237         in FONTS.
14239 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
14241         * ps/psfig.diff: New file.
14242         * ps/tmac.psfig: New file.
14244 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
14246         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
14247         (]-): Don't call ref*do-tl.
14249         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
14251         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
14252         (fn@do-FS): Rename to fn*do-FS.
14254         * troff/input.c (transparent_translate): New function.
14255         (process_input_stack): Apply transparent_translate before calling
14256         diversion::transparent_output(unsigned char).
14258 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
14260         * troff/input.c (do_define_macro): Define the macro before calling
14261         skip_line.
14263         * xditview/Makefile: Add DEVICES variable.  Change install target
14264         to use this.
14266 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
14268         * groff.c (run_commands): Handle the possibility that there are
14269         child processes other than those forked by us.
14271 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
14273         * lib/string.c (string::append): New function.
14274         * lib/stringclass.h: Declare it.
14276 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
14278         * eqn/main.c (main): New option -N which sets
14279         no_newline_in_delim_flag. 
14280         (do_file): If no_newline_in_delim_flag is set don't allow newlines
14281         in delimiters.
14282         * groff.c (main): Pass -N on to eqn.
14283         (help, synopsis): Mention -N.
14284         * groff.sh: Implement -N.
14286 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
14288         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
14289         (]-): Call ref*do-tl if ref*need-tl is non-zero.
14290         (XP): Allow as initializer.
14292 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
14294         * troff/env.c (environment::wrap_up_field): If field_spaces are
14295         non-zero and we have a current_tab, subtract padding from
14296         tab_distance.  If this makes tab_distance <= 0, use the next tab
14297         stop instead.  If there isn't any next tab or it's a left tab,
14298         wrap up the current tab.
14299         (environment::start_field): Initialize tab_precedes_field.
14300         (environment::wrap_up_tab): If there's a current field, update
14301         pre_field_width, field_distance and tab_precedes_field.
14302         * troff/env.h (environment::tab_precedes_field): New member.
14304 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
14306         * ps/ps.c (ps_printer::do_file): New function.
14307         (ps_printer::special): Bind to `file' special.
14308         (ps_printer::do_exec): Set ndefined_styles to 0.
14310 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
14312         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
14313         Avoid stripping first character from the start of unrecognized
14314         escapes.  Use lex_error instead of error to report errors.
14315         * eqn/lex.c (get_token): Rework handling of escapes.
14316         (lex_error): Move declaration into...
14317         * eqn/eqn.h.
14319         * xditview/xditview.c (main): Make -page option work.
14321         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
14323 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
14325         * macros/tmac.s (B2): Correct size of box.
14327 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
14329         * macros/tmac.s (B2): Postpone drawing the box until in the
14330         top-level diversion.
14332         * tty/tmac.tty: Add font translations for C, CR, CW.
14334         * groff.c (synopsis, help): Document -i.
14335         * groff.sh: Implement -i.
14337         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
14338         Simplify the construction of SN.
14340         * troff/number.c (parse_term): Give `|' a higher precedence.
14341         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
14342         accordingly.
14344         * macros/tmac.s (B2): Use par@finish instead of par@reset.
14346 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
14348         * lib/string.c (string::move): New function.
14349         * lib/stringclass.h: Declare it.
14351 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
14353         * troff/env.c (distribute_space): Add optional argument
14354         `force_forward'.
14355         (environment::wrap_up_field): Call distribute_space with
14356         `force_forward' argument of 1.
14358 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
14360         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
14361         Inline it.  Move reallocation into...
14362         (string::grow1): New function.
14363         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
14364         dependencies to include library header files.
14365         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
14367 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
14369         * macros/tmac.s (@NH): Use the same number registers than -ms does
14370         for the heading level counters.  Use the same string that -ms does
14371         for the number for this heading.
14373 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
14375         * lib/new.c (operator new): Cast result of malloc to char *.
14377         * troff/input.c (spring_trap, lookup_request): Add assert that nm
14378         is not null.
14380 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
14382         * groff.c (main): Support -i.
14384 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
14386         * pic/pic.h: Include <osfcn.h>.
14388         * ps/ps.c: Add declaration of mktemp.
14390         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
14391         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
14392         argument as union wait *.
14393         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
14394         argument to union wait *.
14396 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
14398         * tty/tmac.tty: Add definition of \(co.
14400         * pic/object.c (make_arc): Only increase radius when radius
14401         strictly less than d.
14402         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
14403         more than once.
14405         * troff/env.c (environment::environment(symbol),
14406         environment::environment(const environment *)):  Initialize
14407         input_trap_count.
14409 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
14411         * tbl/main.c (main): Add exit(0).
14413         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
14415         * pic/main.c (main):
14416         * eqn/main.c (main):
14417         * tbl/main.c (main):
14418         * etc/soelim.c (main):
14419         * driver/printer.c (printer::~printer):
14420         * troff/node.c (real_output_file::~real_output_file,
14421         real_output_file::flush):  Check for errors on stdout.
14423         * most files: Add 1991 to copyright notice.
14425         * macros/tmac.s: Don't test \n(.x and \n(.y.
14427         * troff/input.c (token::next): Rename `escape_char' label to
14428         `handle_escape_char' and `normal_char' label to
14429         `handle_normal_char'.
14431 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
14433         * groff.c (main, synopsis, help): Support -a option.
14434         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
14435         to trflags while parsing options.
14437 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
14439         * troff/number.c (parse_term): With `m', `M' and `n' scale
14440         indicators, convert scale factor to hunits before scaling.
14442 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
14444         * lib/font.c (scale_round): Better test for overflow when n is
14445         negative.
14447 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
14449         * tbl/main.c (process_format): Add second argument of type
14450         options*. Change callers.  Allow opt->tab_char as well as '\t'
14451         between format items.
14453 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
14455         * macros/tmac.an (PD): With no arguments, make sure register PD is
14456         at least \n[.V].
14457         (TH): Call PD with no argument, instead of setting register PD
14458         directly.
14460 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
14462         * Version 1.00 released.
14464 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
14466         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
14468         * dvi/devdvi/DESC: Mount CW instead of CR.
14470         * dvi/tmac.dvi: Add definition of \(tm.
14472         * dvi/devdvi/texsy.map: Add lh, and rh.
14473         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
14474         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
14476         * dvi/devdvi/FontMakefile: Generate H from cmss10.
14477         * dvi/devdvi/Makefile: Install H.
14478         * dvi/devdvi/H: New file.
14480 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
14482         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
14483         be 0.
14485 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
14487         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
14489         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
14491         * macros/tmac.s (@EN): Handle the case where the equation is empty
14492         but the label is not.
14494 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
14496         * troff/groff.h: New warning category WARN_SPACE.
14497         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
14498         WARN_SPACE to warning_table.
14499         (interpolate_macro): Give a warning of type WARN_SPACE if the name
14500         is longer than two characters and is not defined, but the first
14501         two characters do make a defined name.
14503         * PROBLEMS: New file.
14505         * CHANGES: New file.
14506         * README-0.6, README-1.00: Deleted.
14508         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
14509         * xditview/devX75/Makefile: Make devX75-12.
14510         * xditview/devX100/Makefile: Make devX100-12.
14512         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
14513         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
14515 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
14517         * README-0.7: Rename to README-1.00.
14519         * macros/tmac.pic: New file.
14520         * macros/Makefile (install.nobin): Install tmac.pic.
14522 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
14524         * troff/env.c (hyphen_word): Correct the test for whether the
14525         token is a hyphen.  Reset npos to 0.
14527         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
14529 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
14531         * macros/tmac.s (ds*common-end): Call par*reset.
14532         (PE): Likewise.
14533         (par@reset-indent): Deleted.
14535         * macros/tmac.s (@IP): Divert the label.
14537 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
14539         * xditview/draw.c (setGC): Use a line width of .1m rather than
14540         .04m by default; round rather than truncate value.
14542         * tbl/table.c (class empty_entry): New class.
14543         (empty_entry::empty_entry, empty_entry::line_type): New functions.
14544         (table::add_entry): Represent empty entries by objects of type
14545         empty_entry.
14546         (table_entry::line_type): Return -1.
14547         (table::determine_row_type): Ignore entries with line_type 0.
14548         Treat type -1 as non-lines.
14550 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
14552         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
14553         macros/tmac.s: Rename \(-d to \(Sd.
14555 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
14557         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
14558         * xditview/libXdvi/DviChar.c: Likewise.
14559         * dvi/devdvi/texsy.map: Add `<<', `>>'.
14561 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
14563         * troff/div.c (top_level_diversion::begin_page): Call
14564         init_output() if the_output is 0.
14566 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
14568         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
14569         ESCAPE_c.
14570         (get_copy): Turn \E into ESCAPE_E.
14571         (token::process, asciify): Handle ESCAPE_E.
14573         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
14574         (RD): New macro.
14575         (DS): Implement `.DS R'.
14577 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
14579         * macros/tmac.s (FS): New macro.
14581         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
14583         * macros/tmac.s (cov*tl-init): Remove after first execution
14584         instead of aliasing to @nop.  Call top of page macro explicitly
14585         instead of setting trap; call @init first.  Set pg@top as top of
14586         page macro.
14587         (cov*auto-init): Deleted.  Set cov*tl-init instead of
14588         cov*auto-init as top of page trap. 
14589         (TL, LP): Do a break instead of calling cov*tl-init.
14590         (cov*print): With RP format but no TL, alias FS and FE to @FS and
14591         @FE; in this case also give a warning and always start another
14592         page. No need to set pg@top here.
14593         (cov*tl-init): Rename to cov*first-page-init.
14595         * macros/tmac.s (RP): Do `.pn 0'.
14596         (cov*tl-init): With RP format don't do `.pn 0'.
14598         * macros/tmac.s (pg@cs-top): Set no space mode.
14600         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
14601         (cov*ab-init): Alias TL, AU and AI to these.
14603 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
14605         * macros/tmac.s (@EQ): Move the space before the equation into @EN
14606         (@EN): Do nothing unless \n[dl] is > 0.
14608 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
14610         * pic/object.c (ellipse_object::radius): New function.
14612         * VERSION: Change version to 0.7.
14614         * tbl/table.c (block_entry::do_divert): Declare return type as
14615         void.
14616         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
14618 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
14620         * troff/column.c: New file.
14621         * troff/Makefile: Corresponding changes.
14623         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
14624         Friend of vunits.
14626         * troff/div.c (top_level_diversion::space): If the space causes
14627         the first-page transition and springs a trap, truncate the space
14628         to 0.
14630 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
14632         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
14633         the document.
14635         * pic/troff.c (troff_output::line_thickness,
14636         troff_output::set_fill): Do a horizontal motion to compensate for
14637         the width of the \D escape sequence.
14639 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
14641         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
14642         (not X75).
14644         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
14645         to printf.
14647         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
14648         Supply empty definition.
14649         (text_entry::simple_print, simple_text_entry::simple_print):
14650         Delete declarations.
14651         (table::add_entry): Represent empty entries by objects of type
14652         `simple_entry'.
14654 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
14656         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
14658         * tbl/table.c (left_text_entry::add_tab): New function.
14660         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
14661         initialize like LP.
14663 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
14665         * troff/env.c (environment::start_field): Give an error message if
14666         there is no next tab.
14668 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
14670         * troff/env.c (hyphenate): Skip initial elements with zero
14671         hyphenation code.
14673         * macros/tmac.s (par@init): Keep VS in points rather than units.
14675 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
14677         * pic/main.c (main): Implement `-c' option.
14678         * pic/output.h: Declare make_tpic_output().
14679         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
14680         protected.
14681         (tpic_output): New class.
14682         (tpic_output::tpic_output, tpic_output::set_pen_size,
14683         tpic_output::command, make_tpic_output): New functions.
14685 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
14687         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
14688         if they're not already defined.
14689         * tbl/table.c (init_output): Don't test \n(.g.
14691         * troff/input.c (do_if_request): Delete `g' condition. Recognize
14692         `d', `r' and `c' conditions even in compatibility mode.
14694 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
14696         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
14697         box.
14699 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
14701         * troff/env.h (environment::prev_line_interrupted): New member.
14702         (environment::get_prev_line_interrupted): New function.
14703         * troff/env.c (environment::newline): Set prev_line_interrupted.
14704         (environment::environment(const environment *),
14705         environment::environment(symbol)): Initialize
14706         prev_line_interrupted.
14707         * troff/input.c (process_input_stack): Don't give special
14708         treatment to space and newline at the beginning of the line if the
14709         previous line was interrupted.
14711 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
14713         * eqn/eqn.y: Disallow PRIME by itself.
14714         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
14715         PRIME.
14716         (def_table): Remove definition of '.  Define prime to be `.
14718         * eqn/eqn.y: Split off part of rule `script' into a new rule
14719         `nonsup'.
14721 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
14723         * macros/tmac.s ({, }): New string aliases.
14725 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
14727         * README-0.7: New file.
14729 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
14731         * macros/tmac.s: New file.
14732         * man/groff_ms.man: New file.
14733         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
14734         * Makefile.bd: Similarily.
14735         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
14736         definition of TMAC_S.
14737         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
14738         * macros/TODO: New file.
14740 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
14742         * troff/env.c (right_justify): New function.
14743         (init_env_requests): Bind this to request "rj".
14744         (center_lines): Set right_justify_lines to 0. If we get a bad
14745         integer, center 1 line.
14746         (environment::environment(symbol), environment::environment(const
14747         environment *)): Initialize right_justify_lines.
14748         (environment::get_right_justify_lines): New function.
14749         (init_env_requests): Bind this to number_register ".rj".
14751         * troff/env.c (environment::choose_breakpoint): Implement
14752         hyphenation_margin and hyphenation_space.
14753         (environment::get_hyphenation_space,
14754         environment::get_hyphenation_margin): New functions.
14755         (init_env_requests): Bind these to .hys and .hym.
14756         (hyphenation_space_request, hyphenation_margin_request): New
14757         functions
14758         (init_env_requests): Bind these to hys and hym.
14759         (environment::environment(symbol), environment::environment(const
14760         environment *)): Initialize hyphenation_margin and
14761         hyphenation_space.
14762         * troff/env.h: Corresponding changes to class environment.
14764 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
14766         * troff/div.c (blank_line): Always do a break.
14768         * eqn/box.c (do_text): Turn off escapes while appending text to
14769         string.
14771 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
14773         * troff/input.c (while_break_request, while_continue_request): New
14774         functions.
14775         (init_input_requests): Bind these to "break" and "continue".
14776         (while_depth, while_break_flag): New variables.
14777         (while_request): Update while_depth.  Break out of loop if
14778         while_break_flag is set.
14780 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
14782         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
14783         rather than 0.
14785 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
14787         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
14789         * stringify: New file.
14790         * Makefile (groff.o): Use stringify.
14792         * xditview/tmac.X: Remove definition of \(rn.
14793         * xditview/libXdvi/DviChar.c: Remove radicalex from
14794         Adobe_symbol_map.
14796 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
14798         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
14799         (alphabetic_block_entry::alphabetic_block_entry,
14800         alphabetic_block_entry::divert, alphabetic_block_entry::print):
14801         New functions.
14802         (block_entry::divert): Split off body into ...
14803         (block_entry::do_divert): If the block is alphabetic, subtract 2n
14804         from the line length; also update the span width to dl+2n, and the
14805         alphabetic span width to dl.
14807         * driver/input.c (do_file):  While reading argument to D command,
14808         when expanding buffer, multiply szp by sizeof(int) rather than 2
14809         in the argument to memcpy.
14811         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
14812         width of alphabetic columns.
14814 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
14816         * troff/node.c (lookup_family): Supply second argument to lookup.
14818         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
14819         search, return immediately if v is 0.
14821         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
14822         (troff_output::start_picture): Set this reg.
14823         (troff_output::end_picture): Remove this reg
14824         * eqn/box.c (box::extra_space): Don't produce `\x's if
14825         EQN_NO_EXTRA_SPACE_REG is defined.
14827         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
14828         * eqn/text.c (split_text): Map ' to \(fm when it's the first
14829         character.
14831 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
14833         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
14834         requests.
14836         * troff/div.c (top_level_diversion::top_level_diversion):
14837         Initialize page_number to 0.
14839 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
14841         * groff/troff (environment::environment(const environment *)):
14842         Initialize name to e->name, rather than "anonymous".
14844 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
14846         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
14847         requested_page.  Split middle part into ...
14848         (FindPage): New function.
14849         (SetValues): If we don't yet know the last page, and the requested
14850         page is greater than the current page, call FindPage.
14851         Update the font_map_string before doing this.
14853         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
14854         Translate \(lh and \(rh into left and right double arrows.
14856         * troff/node.c (class hyphen_inhibitor_node): New class.
14857         (hyphen_inhibitor_node::hyphen_inhibitor_node,
14858         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
14859         hyphen_inhibitor_node::type,
14860         hyphen_inhibitor_node::get_hyphenation_type): New functions.
14861         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
14862         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
14863         word.
14865 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
14867         * troff/node.h (dummy_node::get_hyphenation_type,
14868         transparent_dummy_node::get_hyphenation_type):  Declare them.
14869         * troff/node.c: (dummy_node::get_hyphenation_type,
14870         transparent_dummy_node::get_hyphenation_type): New functions.
14872 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
14874         * xditview/libXdvi/draw.c: If M_PI not defined after including
14875         math.h, then define it.
14877         * xditview/Makefile: Add definition of AR. Pass it to the submake
14878         in libXdvi.
14879         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
14881 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
14883         * troff/dictionary.h (object_dictionary::alias): Declare return
14884         value as int.
14885         * troff/dictionary.c (object_dictionary::alias): Return non-zero
14886         if the old name was defined.
14887         * troff/input.c (alias_macro): Give a warning if the old name was
14888         not defined.
14889         * troff/reg.c (alias_reg): Likewise.
14891 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
14893         * troff/input.c (token::next): Delete implementation of \R.
14895         * macros/Makefile: Strip comments from tmac.e while installing it.
14897         * troff/input.c: New variable `nroff_mode'.
14898         (troff_request, nroff_request): New functions.
14899         (init_input_requests): Bind `troff' and `nroff' to troff_request
14900         and nroff_request.
14901         (do_if_request): Compute results of t and n conditions from
14902         nroff_mode.
14904         * text/text.c (split_text): Fix typo in >=.
14906         * eqn/lex.c: Add definition of `==' to def_table.
14908 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
14910         * pic/tex.c (tex_output::start_picture): Change the definitions of
14911         \graph and \graphtemp so that they work properly with Plain TeX.
14913         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
14914         argument to `ar' is not less than the first.
14916         * pic/pic.y: Allow a comma between elements of the variable list
14917         in the argument to `reset'.
14919         * pic/object.c (arc_object::arc_object): Fix computation of
14920         radius.
14922         * eqn/main.c (main): Add exit(0).
14924 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
14926         * troff/div.c (begin_page): Test no_space_mode after doing the
14927         break, but still push the page ejector cookie before doing the
14928         break.  Also set the next page number after doing the break.
14929         
14930         * xditview/xditview.c (NewFile): Don't set the title and icon name
14931         if this is the first file and its name is `-'.
14932         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
14933         the X75 and X100 devices.
14934         (main): If a device has the XT_OPTION flag set and there's exactly
14935         one file argument, pass the driver -xrm and -title options to set
14936         the icon name and window title to the name of the file.
14938         * troff/env.c (environment_switch): If there was an argument but
14939         it wasn't a valid number or name, then pop an environment but
14940         don't give an error message on underflow.
14942         * troff/number.c (start_number): Correct spelling in error message.
14944         * troff/input.c (token::delimiter): Don't print an error message
14945         if err is false.
14947         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
14948         ParseDrawFunction if dw->display_enable is true.
14950 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
14952         * pic/pic.y: Parse text positioning like normal attributes, so as
14953         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
14954         positioning attribute.
14956 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
14958         * tbl/main.c (process_data): When in state START while reading a
14959         text block, don't change to state MIDDLE if c is a newline.
14961 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
14963         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
14964         so as to avoid shadowing parameter.
14966 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
14968         * tbl/table.c (trim_space): Deleted.
14969         (table::add_entry): Don't call trim_space.
14971 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
14973         * VERSION: Change version to 0.6.
14975         * troff/number.c (parse_expr): Make == work.
14977 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
14979         * man/grog.man: New file.
14980         * man/Makefile: Add grog.n to MAN1PAGES.
14981         * etc/grog.sh: New file.
14982         * etc/Makefile: Install grog.sh as grog.
14984 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
14986         * troff/input.c (token::next): Implement \E.
14988 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
14990         * xditview/tmac.X: Change font translations to match tmac.ps.
14992         * troff/input.c (non_empty_name_warning): Don't give a warning if
14993         `\{' terminates the name.
14995 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
14997         * ps/devps/symbol.diff: New file.
14998         * ps/devps/FontMakefile: Mention symbol.diff.
15000 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
15002         * troff/node.c (font_position): Use get_long_name to read the
15003         external_name.
15005         * troff/env.c (environment_switch): If we get a number that's < 0
15006         or >= NENVIRONMENTS, treat it like a name.
15007         Change NENVIRONMENTS to 10.
15009         * troff/groff.h: Remove definition of FONTS_MAX.
15010         * troff/node.h (class font_family): Make map a pointer instead of
15011         an array. Add a map_size member. Make it a class. Make nm const
15012         and public. Make invalidate_fontno a friend.
15013         * troff/node.c: Define font_table_size. Make font_info a pointer
15014         rather than an array.
15015         (class troff_output_file): Allocate font_position dynamically. Add
15016         nfont_positions member.
15017         (troff_output_file::set_font): Grow font_position if necessary.
15018         (troff_output_file::~troff_output_file): Delete font_position.
15019         (troff_output_file::troff_output_file): Allocate font_position.
15020         (grow_font_table): New function.
15021         (troff_output_file::really_begin_page,
15022         troff_output_file:really_copy_page): Use nfont_positions rather
15023         than FONTS_MAX.
15024         (mount_font_no_translate, mount_style): Call grow_font_table if
15025         necessary.
15026         (font_family::font_family): Allocate map.
15027         (font_family::make_definite): Grow map if necessary. Use
15028         font_table_size instead of FONTS_MAX.
15029         (font_family::~font_family): New function.
15030         (invalidate_fontno): Use font_family::map_size.
15031         (get_fontno, env_space_width, env_half_narrow_space_width,
15032         env_narrow_space_width, symbol_fotno, is_good_fontno,
15033         get_bold_fontno, make_glyph_node): Use font_table_size rather than
15034         FONTS_MAX.
15035         (next_available_font_position): Never return 0.
15037 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
15039         * ps/tmac.ps: Add font translations for compatibility with dpost.
15041 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
15043         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
15044         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
15045         Move definitions baseline_sep, shift_down, column_sep,
15046         matrix_side_sep into...
15047         * eqn/box.c: Add them to param_table.
15048         * eqn/pbox.h: Add declarations to pbox.h.
15050         * troff/input.c (set_string): Cast value to unsigned char *.
15052         * troff/token.h (process_input_stack): Declare it static before
15053         declaring it a friend.
15055 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
15057         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
15058         and bottom.
15059         * dvi/devdvi/EX: Regenerate.
15061         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
15062         transparent.
15064 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
15066         * eqn/lex.c: In defaults_table, make definition of `dot' call
15067         `dot_def'.  Don't explicitly make it roman.  Similarily for other
15068         accents.
15070         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
15071         argument.
15072         (for_input::get, for_input::peek): Use this.
15073         (do_for): Add by_is_multiplicative argument.
15074         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
15075         Change semantic value of optional_by to be a double plus a flag
15076         saying whethet the by clause is multiplicative.
15078         * eqn/lex.c (get_delimited_text): Remember location of start of
15079         definition.  Improve error handling when EOF is encountered.
15081         * lib/font.h: Rename handle_x_command to
15082         handle_unknown_font_command.
15083         * lib/font.c (font::load): Call handle_unknown_font_command for
15084         any unknown command in the font description file.  Don't call
15085         handle_x_command. Include the name of the command in the argv.
15086         Improve message for unknown command after kernpairs or charset
15087         command.
15088         * ps/ps.c (ps_font::handle_x_command): Rename to
15089         handle_unknown_font_command.  Remove message about `x download'
15090         command.  Give error message for wrong number of arguments.
15091         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
15092         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
15093         handle_unknown_font_command. Give an error message for wrong
15094         number of arguments.  Rename design_size to designsize.
15095         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
15096         checksum', `designsize' instead of `design_size'.
15098 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
15100         * eqn/*.[chy]: Change underaccent to uaccent.
15102         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
15103         give it the same precedence as ACCENT.
15104         * eqn/other.c (make_underaccent_box): New function.
15105         * eqn/box.h: Declare it.
15106         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
15107         def_table.
15109 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
15111         * pic/pic.y (reset_all): New function. Called in rule for RESET.
15112         (parse_init): Call reset_all.
15113         (define_variable): When defining scale reset only those
15114         pre-defined variables that are scaled.
15115         (defaults_table): Add `scale' as non-scaled value.
15117         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
15118         together with the text; allow any number of positioning words;
15119         allow center as a positioning word.
15121         * pic/object.c (output::compute_scale): Get picture maximum height
15122         and width from variables called maxpswid and maxpsht.
15123         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
15125 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
15127         * pic/object.c (object_spec::make_text): Multiply textht by number
15128         of text items.
15130         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
15131         occur.
15132         (do_sprintf): New function.
15133         (pic.gperf): Add sprintf token.
15134         (text, sprintf): New rules.
15136         * pic/pic.y: `rand()' with no arguments returns a random number
15137         in the range [0,1).
15139         * pic/pic.y: Allow a bare expression to be an attribute: change
15140         precedences to support this.  Change optional_ordinal rule to
15141         optional_ordinal_last to avoid reduce/reduce conflict.
15142         * pic/object.c (object_spec::object_spec): Initialize direction.
15144         * pic/pic.y: Implement ^ operator meaning exponentiation.
15146         * troff/node.h: Add default argument to mount_font.
15147         * troff/node.c (font_position): Read an optional third argument
15148         giving the external_name.
15149         (mount_font): Add optional argument giving the external_name.
15150         (mount_font_not_translate): Have additional argument giving
15151         external name.  Use this name to load the font.  Pass both names
15152         to font_info::font_info.
15153         (font_info::font_info): Have additional argument giving
15154         external_name.
15155         (class tfont): New member external_name.
15156         (font_info::get_tfont): Use external name to construct tfont_spec.
15158 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
15160         * eqn/lex.c (init_table): Add argument giving device.  Define
15161         name of device to be "1".
15162         (do_ifdef): Counts as true if the argument has been defined with
15163         `define'.
15164         * eqn/main.c (main): Call init_table with device argument. Make
15165         device local to main.
15166         * eqn/eqn.h: Change declaration of init_table. Remove declaration
15167         of device.
15169         * pic/lex.c (get_delimited): Allow text to be delimited by
15170         matching {}s.  Don't recognize ending delimiter within a string.
15172         * troff/input.c (get_delim_name): New function.
15173         (token::next): Implement \C.
15175         * lib/font.c (font::load): Grok ---.  Add an alias for each
15176         character based on its code.
15177         (font::get_code_width): Deleted.
15178         * lib/font.h (class font): Declare font::number_to_index().
15179         Remove declaration of font::get_code_width.
15180         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
15181         to indices of named characters.
15182         (font::number_to_index): New function.
15183         * troff/input.c (font::number_to_index): New function.
15184         (get_charinfo_by_number, charinfo::get_number,
15185         charinfo::set_number): New functions.
15186         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
15187         (token::process, token::description, token::get_char,
15188         token::add_to_node_list, token::operator==): Handle
15189         TOKEN_NUMBERED_CHAR.
15190         * troff/charinfo.h: Declare get_charinfo_by_number,
15191         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
15192         charinfo class.
15193         (charinfo::numbered): New function.
15194         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
15195         * troff/env.h (class environment): Remove declaration of ...
15196         * troff/env.c (environment::make_numbered_char_node): Deleted.
15197         * troff/node.c (make_numbered_node): Deleted.
15198         (class numbered_glyph_node): Remove.
15199         (troff_output_file::put_char_width, troff_output_file::put_char):
15200         Handle numbered chars.
15201         (troff_output_file::numbered_char): Removed.
15202         (tfont::get_code_width): Removed.
15203         (make_glyph_node): Don't search special fonts for numbered
15204         characters.
15205         * troff/node.h: Remove declaration of make_numbered_node.
15206         * driver/input.c (do_file): Handle N command.
15207         * driver/printer.h: Add declaration of ...
15208         * driver/printer.c (printer::set_numbered_char): New function.
15209         * dvi/tfmtodit.c (main): Generate unnamed entries.
15210         * ps/devps/afmtodit: Likewise.
15211         * xditview/xtotroff.c (MapFont): Likewise.
15212         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
15214         * tbl/main.c (process_format): If multiple widths are specified
15215         for a column but all the widths are the same, don't give an error
15216         message.
15218         * tbl/table.c (table::do_row): If the current row is all lines and
15219         the stuff doesn't contains a line, mark the top of the row after
15220         printing stuff before the row.  If the current row is not all
15221         lines and the stuff doesn't contain a line, don't unnecessarily
15222         mark the top of the row before printing the stuff.
15223         
15224 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
15226         * troff/groff.h: Remove MAX_PATH.
15227         * troff/input.c (open_file): Dynamically allocate space for the
15228         path.
15229         (open_mac_file, process_macro_file): Corresponding changes.
15231 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
15233         * troff/node.h (class output_file): Make copy_file pure.  Add
15234         vspace method ifdef COLUMN. Add is_printing method.
15235         * troff/node.c: Add class printing_reg. Add class
15236         real_output_file. Derive other output_file classes from
15237         real_output_file; in these classes rename begin_page to
15238         really_begin_page, print_line to really_print_line, copy_file to
15239         really_copy_file, transparent_char to really_transparent_char.
15240         Move output_file::flush to real_output_file. Add printing member
15241         to class output_file.
15242         * troff/div.h: Remove printing member from top_level_diversion.
15243         Add vspace member function to class diversion ifdef COLUMN. Add
15244         some declarations ifdef COLUMN.
15245         * troff/div.c (top_level_diversion::copy_file,
15246         top_level_diversion::transparent_output,
15247         top_level_diversion::output): Don't test printing member before
15248         output.
15249         * troff/input.c: Handle initial variable_space_request ifdef
15250         COLUMN.
15251         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
15252         but comment it out.
15254 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
15256         * troff/div.c (diversion::need): Make any space forced.  If we
15257         sprung a trap, set truncated_space to minus the distance to the
15258         trap and set needed_space to the amount that was needed.
15259         (top_level_diversion::space): A forced space turns no_space_mode
15260         off.
15261         (class constant_vunits_reg): New class.
15262         (init_div_requests): Implement number registers .trunc and .ne
15263         using constant_vunits_reg.
15264         (class truncated_space_reg): Deleted.   
15266         * troff/div.h: Don't have a no_space_mode member in diversion.
15267         Instead have it in top_level_diversion.
15268         * troff/div.c (diversion::diversion): Don't initialize
15269         no_space_mode.
15270         (top_level_diversion::top_level_diversion): Initialize
15271         no_space_mode.
15272         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
15273         (macro_diversion::output): Don't clear no_space_mode.
15275         * troff/input.c (diverted_space_node::reread): Don't call
15276         environment::do_break.  In fill mode, act like a blank line.
15277         (diverted_copy_file_node::reread): Don't call
15278         environment::do_break.
15280         * troff/div.c (blank_line): New function.
15281         * troff/div.h: Declare it.
15282         * troff/input.c (process_input_stack): Call it.
15284         * troff/div.c (truncated_space_reg::get_string): New function.
15285         (init_div_requests): Bind to .trunc.
15286         (space_request, top_level_diversion::space,
15287         top_level_diversion::output, macro_diversion::space,
15288         macro_diversion::output): Update truncated_space.
15289         (macro_diversion::output): Redo calculations when trap sprung.
15290         (macro_diversion::output, macro_diversion::space): No need for
15291         trap_flag.
15293         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
15294         after truncating post line spacing.
15296 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
15298         * ps/devps/prologue (MF, SF): Make them work even if setfont is
15299         defined as a procedure rather than as an operator.
15301 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
15303         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
15305 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
15307         * troff/div.c (top_level_diversion::output): Merge
15308         output_file::print_line and output_file::end_of_line member
15309         functions.
15310         * troff/div.h (class output_file):
15311         * troff/node.c (troff_output_file::print_line,
15312         troff_output_file::end_of_line, output_file::end_of_line,
15313         ascii_output_file::print_line, suppress_output_file::print_line):
15314         Corresponding changes.  
15316 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
15318         * troff/input.c (token::next): Don't give a warning for `\.'.
15320         * troff/env.c (environment::get_center_lines): New function.
15321         (init_env_requests): Bind number register .ce to it.
15322         * troff/env.h: Declare it.
15323         * tbl/table.c (table::init_output): Define reset macro to restore
15324         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
15325         Then do .ce 0.
15326         (table::print): If center option not given, then imply center
15327         option if SAVED_CENTER_REG > 0.
15329 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
15331         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
15332         Troff.ps from DOWNLOAD.
15333         
15334         * troff/Makefile: Change comment in DEFINES to avoid confusing
15335         System V make.
15337         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
15338         code.  Don't try to catch errors with stopped.
15339         (check_line_lengths): New function.
15340         * ps/devps/prologue (EXEC): Deleted.
15341         (EBEGIN, EEND): New procedures.
15343 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
15345         * troff/input.c: Include request.h before node.h.
15346         * troff/node.c: Likewise.
15347         * troff/env.c: Likewise.
15348         * troff/div.c: Likewise.
15349         * troff/node.h (class special_node): Store argument as a macro
15350         rather than a char *.
15351         * troff/node.c (special_node::special_node, special_node::copy):
15352         Grok this.
15353         (special_node::~special_node): Deleted.
15354         (special_node::tprint): Deleted.
15355         (special_node::tprint_start, special_node::tprint_end,
15356         special_node::tprint_char): New functions.
15357         (troff_output_file::special): Deleted.
15358         (troff_output_file::start_special, troff_output_file::end_special,
15359         troff_output_file::special_char): New functions.
15360         * troff/input.c (special_node::tprint): New function.
15361         (do_special): Use macro not char *.
15362         (do_transparent_macro): Deleted.
15363         (token::next): Don't call do_transparent_macro.
15365         * troff/input.c (token::next): Add 'Y' case.
15366         (do_transparent_macro): New function.
15367         * troff/node.c (troff_output_file::special): Handle newlines with
15368         argument using new continuation convention.
15369         * driver/input.c (get_string): Cope with continuation convention.
15370         (do_file): Don't call skip_line after calling get_string(1).
15371         * ps/ps.c (ps_printer::special, ps_printer::do_import,
15372         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
15373         arg.
15374         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
15375         with +.
15377 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
15379         * troff/input.c (asciify): By default, illegal input characters
15380         should return empty string.
15382         * troff/input.c (copy_file): Handle first page transition like title.
15383         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
15385         * troff/input.c (token::next): Improve error message for EOF after
15386         escape character.
15387         (input_char_description): New function.
15388         (get_char_for_escape_name): Use input_char_description.
15389         (token::next): Warn about unrecognized escape sequences.
15390         (warning_table): Add WARN_ESCAPE.
15391         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
15392         accordingly.
15394         * troff/token.h: Remove declaration of process_input_stack.
15396         * troff/input.c: Remove declaration of init_hyphen_requests.
15397         * troff/request.h: Correct spelling in declaration of same.
15399         * troff/input.c (token::next): Check whether escape_char is 0.
15401 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
15403         * groff.c (main, usage, help): Implement -P and -L options.
15404         * groff.sh: Likewise.
15406         * troff/input.c (token::next): Use some gotos to avoid code
15407         duplication.
15409         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
15410         Avoid calling symbol::symbol if name empty.
15412 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
15414         * troff/input.c (init_input_requests): Make \n(.x return the major
15415         version number and \n(.y return the minor version number.
15416         * troff/Makefile: Construct file majorminor.c defining
15417         major_version and minor_version automatically from ../VERSION.
15419         * troff/node.c (class glyph_node): Make operator new and operator
15420         delete public.
15421         (class ligature_node): Similarily.
15423         * troff/input.c (operator==(const macro &, const macro &)): New
15424         function.
15425         (non_interpreted_node::same): Use this.
15426         (string_iterator::string_iterator): Make macro& argument const.
15428         * troff/input.c (input_iterator::get): New function. Don't make
15429         asciify_macro or class non_interpreted_node friends of class
15430         input_iterator.
15431         (non_interpreted_node::interpret): Use input_iterator::get.
15432         (asciify_macro): Likewise.
15434         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
15435         ~non_interpreted_node): Deleted.
15436         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
15437         Deleted.
15439         * troff/symbol.h: Make all symbol member functions const.
15441         * lib/strtol.c: New file.
15442         * lib/Makefile: Add strtol.c.
15443         * Makefile: Define STRTOL as strtol.o to include strtol in
15444         libgroff.a.
15446 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
15448         * pic/troff.c (troff_output::simple_circle): Divide by scale.
15450 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
15452         * troff/input.c (do_special): Use input_level.
15454         * troff/token.h (TOKEN_BACKSPACE): New token.
15455         (token::backspace): New function.
15456         * troff/input.c (token::description, token::next, token::process):
15457         Grok TOKEN_BACKSPACE.
15458         (do_special): Turn TOKEN_BACKSPACE back into \b.
15460         * troff/token.h (token::leader): New function.
15461         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
15463         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
15465         * troff/input.c (do_special): Use token::description in error
15466         message.
15468 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
15470         * troff/input.c (decode_args): Combine quoted and
15471         quote_input_level variables. Make it a for (;;) loop.
15473         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
15475         * troff/input.c (read_long_escape_name): The test for whether to
15476         expand buffer was off by 1.
15477         (read_string): Similarily.
15479 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
15481         * troff/input.c: Use `const int' rather than `static const int'.
15483         * troff/div.h (diversion::copy_file): Declare as pure virtual.
15484         (macro_diversion::copy_file): New function.
15485         * troff/node.h: New class diverted_copy_file_node.
15486         * troff/node.c: Implement it.
15487         * troff/input.c (copy_file): Use diversion::copy_file. Handle
15488         first page transition by pushing a diverted_copy_file_node.
15489         * troff/input.c (token::next, process_input_stack): Don't handle
15490         COPY_FILE_REQUEST.
15492 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
15494         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
15495         whether space widths need adjusting.
15497         * troff/charinfo.h: Generalize translated_to_space to
15498         special_translation so as to allow translation to \&.
15499         * troff/input.c (translate): Allow translation to \&.
15500         (charinfo::*): Corresponding changes.
15501         * troff/node.c (make_node, node::add_char): Corresponding changes.
15502         * troff/node.h (dummy_node::dummy_node): Allow optional first
15503         argument.
15505         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
15506         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
15507         TOKEN_REQUEST.
15508         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
15509         TOKEN_REQUEST with an argument of TITLE_REQUEST.
15510         (token::process): Grok that.
15511         * troff/input.c (copy_file): Handle first page transition like
15512         title by pushing a COPY_FILE_REQUEST cookie.
15513         (token::next, process_input_stack): Grok that.
15514         * troff/node.h (output_file::copy_file): Add x and y arguments.
15515         Make it non-pure.
15516         * troff/div.c (top_level_diversion::copy_file): Supply them.
15517         * troff/node.c (troff_output_file::copy_file): Add x and y
15518         arguments; moveto specified position.  Invalidate font_position
15519         array after copying file.
15520         (output_file::copy_file): New function.
15521         (suppressed_output_file::copy_file, ascii_output::copy_file):
15522         Removed.
15523         * troff/input.c (transparent_file): New function.
15524         (init_input_requests): Bind to "trf".
15525         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
15526         (process_input_stack): Likewise.
15528         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
15530         * troff/node.c (init_node_requests): New number registers .kern
15531         pointing to global_kern_mode, and .lg pointing to
15532         global_ligature_mode.
15534         * troff/node.c (ligature): Don't change it if we get a bad
15535         integer.
15537         * troff/input.c (do_define_string): Don't strip tabs.
15539         * troff/input.c (asciify_macro): Make the string_iterator auto.
15541         * troff/node.c (init_font_requests): Rename to...
15542         (init_node_requests):
15543         * troff/node.h: Change declaration.
15544         * troff/input.c (main): Change call.
15546         * troff/input.c (node::reread, diverted_space_node::reread): New
15547         methods.
15548         (process_input_stack): Call reread rather than
15549         get_diverted_space_node.
15550         * troff/node.c (node::get_diverted_space_node,
15551         diverted_space_node::get_diverted_space_node): Removed.
15552         * troff/node.h: Declare reread methods instead of
15553         get_diverted_space_node methods. Make `n' member private.
15554         * troff/input.c: (token::diverted_space): Removed.
15555         * troff/token.h: Removed declaration.
15556         
15558 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
15560         * eqn/script.c (script_box::compute_metrics): Don't let
15561         SUP_RAISE_FORMAT become negative.
15563         * tbl/table.c (table::do_row): Entries that don't end in the
15564         this row shouldn't make the row non-blank.
15565         
15566         * tbl/table.c (table::make_columns_equal): Only set the width of
15567         columns which are marked as equal.
15568         
15569         * tbl/main.c (process_data): Before issuing excess data error,
15570         if last character was a newline unget it; then get it again after
15571         the error.  Also include the contents of the entry in the message.
15573         * groff.c: New file.
15574         * Makefile: Build groff from groff.c.  Make it possible to use
15575         either groff.sh or groff.c as groff.
15576         * Makefile.bd: Similarily.
15578 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
15580         * groff.sh: Don't delay expansion of $@ in assignment to files.
15581         Remove occurrences of \".
15583 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
15585         * all Makefiles: Simplify and rearrange.
15587         * Makefile: Handle fmod like malloc.
15588         * lib/Makefile: Similarily.
15589         * lib/fmod.c: Remove #ifdef NEED_FMOD.
15591         * Makefile: Rename OPTIMISE to OPTIMIZE.
15593         * groff.sh: Remove assignment to PATH.
15594         * Makefile: Remove SHPATH variable.
15595         * Makefile.bd: Similarily.
15597         * groff.sh: Add -V option to print the pipeline instead of
15598         executing it.
15600 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
15602         * lib/font.c: Split off file searching into ...
15603         * lib/fontfile.c: New file.
15605         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
15607 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
15609         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
15610         Also change misleading comment.
15611         (table::do_vspan): Change similarily misleading comment.
15612         * tbl/main.c (process_data): A format row with an explicit `s'
15613         uses up a data line, even if all the other columns are `_' or `='.
15615         * troff/input.c (token::description): Fix description of
15616         TOKEN_DUMMY and TOKEN_EMPTY.
15618 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
15620         * groff.sh: Fix description of -Z in help message.
15622 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
15624         * pic/object.c (object_spec::make_object): Allow negative and zero
15625         line thicknesses.
15626         * pic/pic.y: Give linethick default value of -1.0.
15627         * pic/troff.c (troff_output::troff_output): Initialize
15628         last_line_thickness to BAD_THICKNESS.
15629         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
15630         (troff_output::line_thickness): Canonicalize negative thicknesses
15631         to RELATIVE_THICKNESS.
15632         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
15633         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
15634         to -1.0.
15635         (tex_output::start_picture): Set pen_size to -2.0.
15637         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
15638         0, then use 0 linewidth.
15639         (ps_printer::ps_printer): Initialize line_thickness to -1.
15641         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
15643         * ps/devps/symbolchars: Remove `or'.
15644         * ps/tmac.ps: Implement \(or with .char.
15646         * ps/devps/symbolchars: Move most characters into textmap.
15647         * ps/devps/textmap: Add names for troff bracket characters. Remove
15648         ul, ru, br, bv.
15650         * ps/devps/TSymbol.ps: Removed.
15651         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
15652         * ps/tmac.ps: Do with .char what TSymbol did.
15653         * ps/devps/download: Remove TSymbol.
15655         * ps/devps/T: Removed.
15656         * ps/devps/Troff.ps: Removed.
15657         * ps/devps/Troff.afm: Removed.
15658         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
15659         * ps/devps/download: Remove Troff.
15660         * ps/devps/FontMakefile: Remove T target.
15661         * ps/devps/DESC-A4: Remove T from font list.
15662         * ps/devps/DESC-letter: Likewise.
15664         * troff/input.c (macro_to_node): Rename to ...
15665         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
15666         character's definition while processing it.
15667         * troff/node.c (node::add_char, make_node): Change calls to
15668         macro_to_node accordingly.
15670         * troff/input.c (token::next): Translate \_ to \(ul.
15672         * tty/devascii/R.proto: Add `|'.
15673         * tty/devlatin1/R.proto: Likewise.
15675 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
15677         * man: Put the version number in all the man pages.
15679 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
15681         * Makefile.bd: New file.
15682         * README.bd: New file.
15684         * VERSION: New file.
15685         * lib/version.c: Removed.
15686         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
15687         in clean target.
15689         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
15690         environment variable.
15692         * all Makefiles: Split install target into install.bin for
15693         binaries, and install.nobin for everything else.
15694         * Makefile: Add bindist target.
15696         * man/afmtodit.man: New file.
15697         * man/Makefile: Add afmtodit.n to MAN1PAGES.
15698         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
15699         in BINDIR.
15700         * ps/Makefile: Pass BINDIR to make install in devps.
15702         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
15703         the space character.
15705         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
15707 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
15709         * ps/ps.c: Redo font downloading.
15710         * ps/devps/download: New file.
15711         * ps/devps/Makefile: Add download to DEVICEFILES.
15712         * ps/devps/afmtodit: Remove -d option.
15713         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
15714         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
15715         * ps/devps/zapfdr.ps: Likewise.
15716         * ps/devps/TSymbol.ps: Likewise.
15718 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
15720         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
15722 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
15724         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
15725         then strip the first line if it starts with %.
15726         * Makefile: Add a comment about this.
15728         * man/tfmtodit.man: New file.
15729         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
15730         * dvi/Makefile: Install tfmtodit in BINDIR.
15732         * dvi/tfmtodit.c (usage): Mention -v option.
15734 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
15736         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
15737         * troff/node.c (troff_output_file::transparent_char): Don't call
15738         flush_tbuf.
15740         * eqn: Add check_tabs method to most box classes.
15741         * eqn/box.c (box::top_level): Call check_tabs.
15743         * eqn/script.c (script_box::output): Use \Z.
15744         * eqn/limit.c (limit_box::output): Use \Z.
15746         * eqn/box.c (box::top_level): Use itoa.
15748 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
15750         * dvi/tmac.dvi: Add font translations for CR, C, TT.
15751         * dvi/devdvi/Makefile: Don't make links to CW.
15753         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
15754         HX, HD.
15755         * xditview/tmac.X: Likewise.
15757         * troff/node.c: Add font translation feature.
15758         (get_font_translation): New function.
15759         (symbol_fontno): Translate the font name.
15760         (mount_font_no_translate): Rename to mount_font to this.
15761         (mount_font): New function.
15762         (font_family::make_definite): Call mount_font_no_translate instead
15763         of mount_font.
15764         (mount_style): Translate the font name.
15765         (font_translate): New function.
15766         (init_font_requests): Bind "ftr" to font_translate.
15768         * ps/devps/prologue (SN): New procedure that rounds a position to
15769         the nearest (pixel + (.25,.25)).
15770         (DL): Use SN to round endpoints.
15772         * lib/version.c: Changed version to 0.5.
15774 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
15776         * Makefile: Move definition of PAGE to the very beginning, so that
15777         people are less likely to miss it.
15779 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
15781         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
15783         * troff/env.c (environment::choose_breakpoint): Make `can't find
15784         breakpoint' error a warning of type WARN_BREAK.  Change message to
15785         `can't break line'.
15786         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
15787         code 040000.
15788         * troff/input.c: Add WARN_BREAK to warning_table.  Include
15789         WARN_BREAK in DEFAULT_WARNING_MASK.
15791         * tty/tmac.tty: Add definition of \(+-.
15793         * groff.sh: Remove `--' option to set command.
15795         * dvi/devdvi/texsy.map: Remove duplicate md entry.
15797         * ps/devps/eqnchar: Better definition of cdot using md.
15798         * dvi/devdvi/eqnchar:  Likewise.
15799         * xditview/devX100/eqnchar:  Likewise.
15800         * xditview/devX75/eqnchar: Likewise.
15801         * eqn/lex.c: Add definition of cdot.
15803 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
15805         * troff/input.c (get_optional_char): New function.
15806         * troff/input.c (set_page_character): Use get_optional_char(),
15807         rather than has_arg() and tok.get_char(1).
15808         * troff/env.c (tab_character, leader_character, hyphen_char,
15809         field_characters): Likewise.
15810         (margin_character): Likewise.  Also always delete the
15811         margin_character_node.
15813         * troff/input.c (token::get_char): Use token::description.
15815         * troff/input.c (has_arg): Don't skip over tab and \}.
15816         * troff/number.c (start_number): Give a warning if the number
15817         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
15819 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
15821         * troff/input.c (empty_name_warning, non_empty_name_warning): New
15822         functions.
15823         (get_name, get_long_name): Use these.  Rename `warn' argument to
15824         `required'.
15826         * troff/node.c (get_fontno): Test that the symbol is not null.
15828         * troff/input.c (token::description): New function.
15829         * troff/number.c (parse_term): Use token::description in `numeric
15830         expression expected' message.
15831         * troff/groff.h: Add WARN_MISSING.
15832         * troff/number.c (start_number): New function.
15833         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
15834         get_incr_number): Use start_number().
15835         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
15836         default.
15837         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
15838         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
15839         token::descripion.
15840         * troff/input.c (token::get_char): Use WARN_MISSING.
15841         * troff/input.c (token::delimiter): Use token::description.
15842         * troff/env.c (environment_switch): Back out Aug 3 change.
15843         * troff/input.c (has_arg): Skip over \}s and tabs but give a
15844         warning.
15845         * troff/token.h (token::tab): New function.
15846         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
15847         * troff/reg.c (alter_format): Likewise.
15848         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
15850 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
15852         * troff (most files): Redo warnings. Divide warnings into various
15853         categories; warning() has an additional first argument indicating
15854         the category it falls into.
15855         * troff/input.c (main): -w now takes an argument. New option -W.
15856         (enable_warning, disable_warning): New functions.
15858         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
15859         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
15861 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
15863         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
15864         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
15865         * xditview/devX75/eqnchar: Likewise.
15866         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
15868         * eqn/other.c: When bar or over applies to a single character
15869         don't produce an overline_box or an underline_box. Instead produce
15870         an accent_box or an underaccent_box, with the accent a line
15871         whose width is accent_width.  New classes underaccent_box,
15872         overline_char_box and underline_char_box.
15873         * eqn/box.h: Move overline_box, underline_box, accent_box class
15874         declarations into eqn/other.c. Add declarations of
15875         make_underline_box, make_overline_box, make_accent_box.
15876         * eqn/eqn.y: Call make_overline_box, make_underline_box
15877         make_accent_box instead of constructors.
15878         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
15880         * eqn/other.c: Add accent_box::~accent_box.
15881         * eqn/box.h: Declare it.
15883         * groff.sh: With -Tps, use eqn -D.
15885         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
15886         rather than \l.
15887         (underline_box::output): Similarily.
15888         (accent_box::output): Use \Z.
15890         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
15891         bit smaller.)
15893 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
15895         * troff/div.c (top_level_diversion::transparent_output(unsigned
15896         char)): Use asciify.
15897         * troff/input.c (asciify): Don't make it static.
15898         * troff/token.h (asciify): Declare it.
15899         
15900         * troff/input.c (get_name, get_long_name, token::get_char,
15901         token::delimiter): Add an extra default argument which says
15902         whether a warning should be printed.
15903         * troff: Pass a non-zero argument to one of these rather than
15904         printing a warning directly.
15906 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
15908         * troff: Consistently use symbol::is_null.
15910         * troff/dictionary.h: Move some inline functions into
15911         dictionary.c.
15913         * troff/request.h: Move inline functions into input.c.
15914         (request_or_macro::invoke): Make it pure.
15916         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
15917         * troff/input.c (init_input_requests): Use class constant_int_reg.
15918         (class compatible_reg): Deleted.
15919         * troff/div.c (init_div_requests): Use class constant_int_reg.
15920         (class last_post_line_extra_space_reg): Deleted.
15922         * troff/env.c (tab_character): Don't change the tab character if
15923         we get an invalid argument.
15924         (hyphen_char): Similarily.
15926         * troff/reg.c (alter_format): Check that nm is not null.
15928         * Makefile, groff.sh: Make it possible to customize the commands
15929         used for printing PostScript and dvi files. Also make it possible
15930         to customize the path used by groff.sh.
15932         * eqn/eqn.y: Make `left' right associative.
15934 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
15936         * pic/pic.h: Added definition of M_SQRT2 for those systems that
15937         don't have it.
15939         * pic/pic.h: Removed definition of INT_MAX.
15941         * troff/node.c (italic_corrected_node::vertical_extent): Omit
15942         `return'.
15944         * troff/input.c (token::next):  Handle \R like \n.
15946 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
15948         * ps/tmac.pc (PSPIC): Simplify.
15950         * troff/env.c (tab_stops::to_string):
15951         * pic/pic.y (object_type_name):
15952         * pic/troff.c (simple_output::line):
15953         * pic/tex.c (tex_output::spline):
15954         * pic/object.c (object_spec::make_object):
15955         * tbl/main.c (process_data):  Add cases to switch statements to
15956         avoid cfront warnings. (Some of these are spurious, since the
15957         switch already has a default case.)
15959         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
15960         `ps-'.  Don't test systat; instead check number of arguments to
15961         ps-bb.
15963 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
15965         * macros/tmac.e: Do not decrease the page offset by 0.5i.
15967         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
15968         Unlink the file as soon as we have opened it, so that we don't
15969         have to bother with signal handlers.
15970         (handler): Deleted.
15971         (fatal_error_exit): Deleted.
15972         (main): Don't call signal.
15974         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
15975         can be ignored.
15976         * dvi/devdvi/Makefile: Use the -k option with S and MI.
15978         * pic/pic.y:  If there is a label, or an nth construction before
15979         the first `.' in the argument to `with', ignore it and generate a
15980         warning.
15981         * pic/lex.c (lex_warning): New function.
15983         * tbl/table.c (table::init_output): In section keep and release
15984         macro, use 0 indent when diverting and the correct indent when
15985         rereading.
15987         * troff/input.c (interpolate_number_format): Do not interpolate
15988         anything if the number register is not defined.
15990         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
15992 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
15994         * ps/devps/prologue (PICTURE): Set components of graphics state to
15995         their default values.
15997         * ps/devps/text.enc: Add trademark
15998         * ps/devps/textmap: Add names for club, spade, heart, diamond,
15999         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
16000         * ps/devps/symbolchars: Add names for summation and product.
16002         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
16003         suchthat. Add pp. Add upper-case letters.
16005         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
16006         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
16007         Upsilon.
16009         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
16010         rA (right angle bracket) to ra.  Introduce names for double-headed
16011         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
16012         * ps/devps/textmap: Likewise for ps device.
16013         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
16014         * tty/devascii/R.proto: Rename lA to la and rA to ra.
16015         * tty/devascii/R.proto: Likewise.
16016         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
16017         \(uA, \(dA.
16018         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
16020         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
16022         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
16023         def_table.
16025 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
16027         * troff/div.c (when_request): Use symbol::is_null rather than
16028         has_arg to determine whether we have an argument.
16029         (change_trap): Remove the trap if we get an invalid number. Give
16030         an error if we don't get at least the macro name.
16031         (diversion_trap): Remove trap if we get an invalid name or number.
16033         * troff/env.c (environment_switch): Pop if we get an invalid
16034         symbol or numeric expression.
16036         * troff/input.c (do_define_macro):  If EOF is encoutered while
16037         defining the macro, do tok.next() before returning.
16039         * troff/token.h (has_arg): Move definition from here, to ...
16040         * troff/input.c (has_arg): ... here
16042         * troff/env.c (space_size): Do nothing if we get an invalid argument.
16043         * troff/input.c (shift): Likewise.
16045         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
16046         for `.c'.
16048         * pic/troff.c (troff_output::start_picture):  Comment out calls to
16049         `..'.
16051         * eqn/main.c (do_file): Subtract 1 from current_lineno if
16052         interpret_lf_args succeeds.
16054         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
16055         \\.  This avoids problems with \$N.
16057         * groff.sh: Pass -C to preprocessors.
16059         * lib/lf.c (interpret_lf_args):  Be more flexible.
16061         * tbl/main.c (main): Add -C option.
16062         (table_input::get): Do not recognize TE if followed by character
16063         other than a space or newline unless -C option given.
16064         (process_input_file): Likewise for lf, TS.
16065         (process_data): Likewise for lf in text blocks.
16067         * eqn/main.c (main): Add -C option.
16068         (do_file): Don't recognize EQ, EN or lf if followed by character
16069         other than space or newline unless -C option given.
16070         * eqn/lex.c (file_input::read_line): Similarily.
16071         * eqn/eqn.h: Declare compatible_flag.
16073         * etc/soelim.c (main): Add -C option.
16074         (interpret_lf_args): Use version in libgroff.
16075         (do_file):
16077         * pic/main.c (main): Add -C option, which sets compatible_flag.
16078         (top_input::get), (top_input::peek):  If -C option not given,
16079         do not recognize .PS/.PE/.PF/.lf if followed by a character
16080         other than space or newline.
16081         * pic/lex.c (file_input::read_line): Similarily.
16082         * pic/pic.h: Add declaration of compatible_flag.
16084 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
16086         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
16088         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
16089         derived from node.  New class space_char_hmotion_node.
16090         * troff/input.c (asciify_macro): New function.
16091         * troff/input.c (init_input_requests): New request `asciify' bound
16092         to asciify_macro.
16093         * macros/mm.diff: New file.
16094         * Makefile:  In install.mm target use `patch' to apply
16095         macros/mm.diff.
16097         * troff/input.c (macro::print_size): Just print the size in bytes.
16099         * troff/div.c (return_request): Correct the argument
16100         interpretation.
16102 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
16104         * troff/node.h (class composite_node): Add sz member.
16105         * troff/node.c (composite_node::size): Return sz.
16106         * troff/input.c (macro_to_node):  Use the initial size in the
16107         environment as the size of the composite_node.
16109         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
16110         default.
16112 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
16114         * troff/div.c (change_trap): If we get a bad number expression,
16115         do nothing.
16117 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
16119         * lib/matherr.c (matherr): Define this only if math.h defines
16120         TLOSS.
16122 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
16124         * troff/div.c (macro_diversion::distance_to_next_trap): If there
16125         no diversion trap return vunits(INT_MAX - vresolution).
16127 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
16129         * troff/input.c (do_zero_width): New implementation that doesn't
16130         use a temporary environment. Use instead:
16131         (token::add_to_node_list): New function.
16132         * troff/env.c (environment::get_prev_char_height),
16133         (environment::get_prev_char_height),
16134         (environment::get_prev_char_skew): New functions.
16135         (environment::get_prev_char): New function.
16136         (environment::get_prev_char_width): Change to use get_prev_char.
16137         (init_env_request): Implement new registers .cht, .cdp, .csk.
16138         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
16139         \Z being processed in a separate environment.
16141 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
16143         * tbl/table.c: Removed TABLE_BOTTOM_REG.
16145         * tbl/table.c (table::init_output): In the section release macro,
16146         give a warning message if the section won't fit on one page.
16148         * tbl/table.c (table::do_top): Emit table keep only if table is
16149         boxed.
16150         (table::do_bottom): Likewise for table release.
16151         (table::table), (table::add_vertical_rule):  Remove reference to
16152         keep member.
16153         * tbl/table.h: Remove keep member.
16155         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
16156         SECTION_RELEASE_MACRO, if there's not enough space before the next
16157         trap to output the diversion, call T# ourselves, set
16158         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
16159         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
16160         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
16161         vertical position and return to it before turning traps on again.
16162         
16163 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
16165         * troff/node.c, troff/node.h: In classes derived from node,
16166         replace prev_char_width method by last_char_node method.
16167         * troff/env.c (environment::get_prev_char_width): Use
16168         node::last_char_node rather than node::get_prev_char_width.
16170         * Makefile: Added comment about -fno-inline on 68030-based
16171         Apollos.
16173         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
16174         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
16175         expressions using sizeof to int.
16176         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
16178         * macros/tmac.e (TS):  Don't move @f back past the current
16179         position.
16181 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
16183         * ps/ps.c (main): Buffer stderr.
16184         * dvi/dvi.c (main): Likewise.
16185         * tty/tty.c (main): Likewise.
16187         * ps/ps.c (ps_printer::do_import): Improve error handling.
16189         * troff/input.c (abort_request): Use asciify.
16191         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
16192         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
16193         type of first argument int rather than char.  This works around a
16194         bug on the 68030 based Apollo using g++ 1.37.1.
16196         * tbl/table.h (class table): Add `keep' member.
16197         * tbl/table.c (table::table): Initialize `keep'.
16198         (table::add_vertical_rule): Set `keep' to 1.
16199         (table::do_top): Only emit table keep macro is `keep' is non-zero.
16200         (table::do_bottom): Likewise for table release macro.
16201         (table::do_row): Emit section keep macro even if the row is 0.
16203 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
16205         * macros/tmac.e (@C): Preserve the font family across the change
16206         in environments.
16208 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
16210         * lib/font.c: Initialize font::hor and font::vert to 1.
16211         (font::load_desc): Check the values of font::hor and font::vert.
16213         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
16214         be included in a C compilation.
16215         (iftoa): Use INT_DIGITS. Include lib.h.
16216         (itoa): Likewise.
16217         (as_string): Likewise.
16218         * tbl/table.c: Removed definition of INT_DIGITS.
16219         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
16220         * troff/input.c (input_input_requests): Likewise.
16221         * ps/ps.c (make_encoding_name): Likewise.
16222         (ps_printer::set_style): Likewise.
16223         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
16225         * tty/devascii/R.proto: Map fm onto '.
16226         * tty/devlatin1/R.proto: Likewise.
16228 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
16230         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
16231         argument to \w is at a different input level.
16233         * tbl/table.c (table::init_output): Define a new macro
16234         REPEATED_VPT_MACRO, like vpt but if in a diversion also
16235         transparently outputs itself.
16236         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
16237         vpt.
16238         (table::do_row): Likewise.
16240         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
16241         TRANSPARENT_STRING_NAME.
16243         * tbl/table.c (table::init_output): In the table release macro
16244         print an error message and don't produce any output if after
16245         issuing the need request the table still will not fit.  Also
16246         remove the diversion after bringing it back.
16248         * tbl/table.c (table::init_output): Define a new macro
16249         REPEATED_MARK_MACRO, like mk but if in a diversion also
16250         transparently outputs itself.
16251         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
16252         is necessary because .TH might not call .T#.
16253         (table::do_top): Likewise TOP_REG.
16254         (table::define_bottom_macro): If TOP_REG is no longer valid, use
16255         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
16256         table header might contain just the two top rules.
16258 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
16260         * troff/div.c: Implement new request `ptr' to print all traps.
16262         * troff/env.c (init_env_requests): Implement `.tabs' reg with
16263         init_string_env_reg.
16264         * troff/env.c (class tab_reg): Deleted.
16266 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
16268         * troff/div.c: New number register .pn returns the number of the
16269         next page as set by the pn request.
16271         * macros/tmac.an: Redid headers and footers.  Number each manual
16272         entry starting from 1 unless \nC is > 0, like Sun.  Added an
16273         optional 5th argument to .TH which specifies the manual name and
16274         appears in the center of the header.  Understand the X, P and D
16275         registers like Sun.
16277 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
16279         * troff/env.c (init_env_requests): New number register `.lt' to
16280         return the title length.
16282         * troff/node.h (class transparent_dummy_node): New class.
16283         * troff/node.c (class transparent_dummy_node): Provide member
16284         functions. 
16285         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
16286         than a dummy_node.
16288         * troff/input.c (token::next): New escape sequence \).
16289         * troff/input.c (get_copy): Recognize \) in copy mode.
16291         * troff/input.c (input_stack::clear): New function.
16292         * troff/input.c (exit_request): Use input_stack::clear.
16294         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
16295         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
16297         * troff/env.c: Move set_page_character to input.c.  Move
16298         page_character to input.c also.
16299         * troff/env.c (title): Split off the reading of the parts of the
16300         title into read_title_parts.
16301         * troff/input.c (read_title_parts): New function.  Check the
16302         input_level when testing whether a token matches the delimiter.
16304         * troff/input.c (exit_request): New function.
16305         * troff/input.c (init_input_requests): Bind ex request to
16306         exit_request rather than exit_groff.
16308         * troff/input.c (exit_groff): Call tok.next() before
16309         process_input_stack().
16311 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
16313         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
16314         * troff/env.h: ditto.
16315         * troff/input.c: ditto.
16317         * troff/env.c (environment::is_empty): Test pending_lines.
16319         * troff/env.c (environment::have_pending_lines): Removed.
16321         * troff/input.c: Add request to flush pending lines from the
16322         environment.
16324         * troff/env.c, troff/env.h: Add automatic widow control feature.
16326         * troff/input.c (exit_groff):  Do process_input_stack() after
16327         do_break() but before setting exit_flag to 2.
16329         * troff/input.c: Remove FLUSH_PENDING_LINES and
16330         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
16331         environment after END_TRAP token seen, but only if there aren't
16332         any more traps still unfinished.
16333         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
16335 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
16337         * troff/env.c: Rename the `retain_size' member of class
16338         pending_output_line to `no_fill'.
16340         * troff/env.c (title): When the line is output, make the
16341         retain_size argument !fill.
16343         * troff/node.h: Add `hyphenated' member to struct breakpoint.
16344         * troff/node.c (space_node::get_breakpoints),
16345         (dbreak_node::get_breakpoints):  Fill this in.
16346         * troff/env.c:  Allow specification of maximum number of
16347         consecutive hyphenated lines.
16349         * troff/env.c (environment::is_empty): Add test for !current_tab.
16351 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
16353         * troff/env.c (environment::hyphenate_line): Don't completely give
16354         up if the word is not to be hyphenated; continue so that breaks
16355         can be made at break_char_node's.
16357         * lib/lib.h: Only define INT_MAX if it's not already defined;
16358         undef INT_MIN if it's already defined.
16360         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
16362         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
16363         This works around a bug in AT&T C++ 2.0 used with an ANSI C
16364         compiler.
16365         
16366         * macros/tmac.an (an-header): Set no-space mode.
16368         * macros/tmac.an (TH): Start a new page if necessary.
16370         * Started using ChangeLog at version 0.4.
16372 Local Variables:
16373 version-control: never
16374 coding: latin-1
16375 End: